.feature-image {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

/* Form Layout Styles */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.form-row label {
    min-width: 160px;
    margin-right: 10px;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    max-width: 400px;
}

.form-row .checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-row input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.form-group .form-check {
    margin-left: 200px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group .form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-group .help-text {
    margin-left: 200px;
    font-size: 0.875em;
    color: #666;
}

.submit-row {
    margin-left: 200px;
    margin-top: 20px;
}


/* League Rules Section Styles */
.league-rules-section {
    margin: 20px 0;
}

.league-rules-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.rule-item {
    margin: 8px 0;
    padding-left: 25px;
    font-size: 0.9em;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.rule-checkbox {
    margin-right: 10px;
    margin-top: 3px;
}

.rule-label {
    font-weight: normal;
    line-height: 1.4;
}

.additional-rules-section {
    margin-top: 20px;
}

/* Ready Golf League - Base Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f6f1ea;
    color: #000000;
    line-height: 1.6;
}

/* Message styles */
.messages {
    margin-bottom: 20px;
}

.message-success, .message-info, .message-warning, .message-error {
    padding: 14px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.message-success {
    background-color: #eef5ee;
    color: #1a5632;
    border: 1px solid #1a5632;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Typography */
body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

a {
    color: #1a5632;
    text-decoration: none;
}

a:hover {
    color: #2d8a4e;
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */

/* Header and nav styles are handled by nav-header.css */

.brand {
    font-size: 1.2em;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 20px; /* Added margin for spacing */
}

nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 0; /* Removed extra margin */
    flex-wrap: nowrap;
    flex-grow: 1;
    justify-content: flex-end;
}

nav ul li {
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
}

nav img {
    width: auto;
    height: 55px;
    margin-right: 15px;
    vertical-align: middle;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.brand-container {
    height: 60px;
    display: flex;
    align-items: center;
    background-color: transparent;
}

/* League Cards on Home Page */
.leagues-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.league-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.league-name {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.league-name a {
    color: #333;
    text-decoration: none;
}

.league-name a:hover {
    color: #c8a951;
}

.next-match {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.match-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.no-match {
    color: #666;
    font-style: italic;
}

.welcome-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-card .actions {
    margin-top: 25px;
    text-align: center;
}

.password-requirements {
  font-size: 0.6em;
  color: #ff0000;
  margin: 5px 0;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.password-requirements ul {
  margin: 5px 0;
  padding-left: 20px;
}

.error-message {
  color: #ff0000;
  font-size: 0.9em;
  margin-top: 5px;
  padding: 5px;
  background-color: #fff3f3;
  border-radius: 4px;
}

.form-error-banner {
  background-color: #ffebee;
  border: 1px solid #ef9a9a;
  color: #ff0000;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 1em;
}

.form-error-banner ul {
  margin: 5px 0 0 20px;
  padding: 0;
}

.form-error-banner li {
  margin-bottom: 3px;
  color: #ff0000;
  font-size: 1em;
}

/* Unified Brand Button */
.btn-brand {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1a5632;
    color: white !important;
    text-decoration: none !important;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.btn-brand:hover {
    background-color: #2d8a4e;
    color: white !important;
    text-decoration: none !important;
}

.btn-brand:active {
    transform: scale(0.98);
}

.btn-brand-outline {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #1a5632 !important;
    text-decoration: none !important;
    border: 2px solid #1a5632;
    border-radius: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.btn-brand-outline:hover {
    background-color: #1a5632;
    color: white !important;
    text-decoration: none !important;
}

.btn-brand-outline:active {
    transform: scale(0.98);
}

/* Login Page Styles */
.login-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-container h2 {
    margin-bottom: 1.25rem;
    color: #1a5632;
}

.login-container form p {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.login-container form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.95rem;
}

.login-container form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.login-container form input:focus {
    outline: none;
    border-color: #1a5632;
    box-shadow: 0 0 0 2px rgba(26, 86, 50, 0.15);
}

.login-container .btn-brand {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    font-size: 1.05rem;
}

.login-alert {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-alert h3 {
    margin-top: 0;
    color: #856404;
}

.login-alert p {
    color: #856404;
}

.login-alert .btn-brand {
    margin-top: 10px;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.login-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.login-container .social-login {
    text-align: center;
}

.login-links {
    margin-top: 20px;
    text-align: center;
}

.login-links p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.profile-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-container form p {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.profile-container form input,
.profile-container form select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.profile-details {
    margin-bottom: 20px;
}

.profile-picture {
    text-align: center;
    margin-bottom: 20px;
}

.profile-picture img,
.player-logo {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}

.profile-picture img,
.player-logo {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}

/* Only apply large profile picture styling on the profile page */
.profile-container .profile-picture img {
    width: 150px;
    height: 150px;
    border: 3px solid #1a5632;
}

.profile-actions {
    text-align: center;
    margin-top: 20px;
}

.welcome-card .actions, .about-content .actions, .no-leagues .actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 10px auto;
}

/* Login and Register button alignment */
.login-register-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 20%;
    margin-top: 2rem;
}

.login-register-actions .login-button {
    margin-left: auto;
}

.login-register-actions .register-button {
    margin-right: auto;
}

.actions .button {
    display: inline-block;
    width: 200px;
    padding: 12px 24px;
    background-color: #1a5632;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    margin: 0 auto;
    transition: background-color 0.2s;
}

.actions .button:hover {
    background-color: #2d8a4e;
    color: white !important;
    text-decoration: none !important;
}

.mt-1 {
    margin-top: 1rem;
}

.view-league {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1a5632;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.view-league:hover {
    background-color: #2d8a4e;
}


/* Main Content Styles */
main {
    padding: 20px 0 5rem 0;
}

.card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



/* Ribbon Navigation Styles are handled by ribbon-nav.css */

/* League Detail Styles */
.league-form {
    margin: 20px 0;
}

.league-form p {
    margin-bottom: 15px;
}

.league-settings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.league-settings-table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    line-height: 1.2;
}

.league-settings-table tr td:first-child {
    background-color: #f8f9fa;
    font-weight: 500;
    width: 30%;
}

.league-settings-table tr td:last-child {
    width: 70%;
}

.league-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.league-form input[type="text"],
.league-form input[type="number"],
.league-form input[type="date"],
.league-form select,
.league-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.invite-section input[type="text"],
.invite-section input[type="email"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

/* Footer Styles */
html, body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    background-color: #2b2b2b;
    color: white;
    padding: 2rem 0;
    width: 100vw;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

body > footer,
main + footer,
.container-fluid > footer {
    max-width: none !important;
    width: 100vw !important;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.chat-container h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1a5632;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

.message {
    margin-bottom: 8px;
    padding: 6px 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    color: #666;
    font-size: 0.85em;
}

.message-header strong {
    color: #1a5632;
}

/* Home Page Sections */
.home-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  box-sizing: border-box;
}

.home-section h3 {
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature {
  text-align: center;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1a5632;
  color: white;
  font-weight: bold;
  margin-bottom: 1rem;
}

.feature h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial {
  background-color: white;
  border-left: 4px solid #1a5632;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  text-align: right;
  font-weight: 500;
  color: #666;
}

.features-list {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
}

.home-features-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  columns: 2;
  column-gap: 2rem;
}

.home-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #444;
  font-size: 0.97rem;
  line-height: 1.6;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  break-inside: avoid;
}

.home-features-list li:last-child { border-bottom: none; }

.hfl-icon {
  color: #1a5632;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .home-features-list { columns: 1; }
}

/* Home Page Container Styles */
.home-container {
  margin: 2rem 0;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* For non-logged in users, separate section styles */
body:not(.logged-in) .home-container {
  margin: 1.5rem 0;
}

.section-title {
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #1a5632;
}

.section-content {
  padding: 1rem 0;
}

/* Welcome Container */
.welcome-container {
  background-color: #f9f9f9;
  border-left: 5px solid #1a5632;
}

.welcome-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* How It Works Container */
.how-it-works-container {
  background-color: #f5f8ff;
}

/* Testimonials Container */
.testimonials-container {
  background-color: #f5f8ff;
  border-left: 5px solid #28a745;
}

/* Features Container */
.features-container {
  background-color: #f9f9f9;
  border-left: 5px solid #ffc107;
}

/* Feature Image Container */
.feature-image-container {
  max-width: 1000px; /* Match container width */
  overflow: hidden;
  margin: 30px auto;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  object-fit: cover;
}

#golf-buddies-image {
  filter: none !important;
}

.feature-image[src*="solo-tee-shot"] {
  filter: grayscale(50%);
}

.text-center {
  text-align: center;
}

.my-4 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.features-container .features-list {
  padding-left: 20px;
}

.features-container .features-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 10px;
}

/* Examples Container */
.examples-container {
  background-color: #f5f8ff;
  border-left: 5px solid #6c757d;
}

.example-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.example-image {
  max-width: 300px;
  width: 100%;
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.example-image h3 {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.example-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-container {
    padding: 1.5rem;
    margin: 4rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .example-images {
    gap: 15px;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .example-image {
    max-width: 90%;
    width: 90%;
    padding: 10px;
    margin: 0 auto;
  }

  .example-img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
  }

  .home-section {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
  }
}

.features-list li {
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 1rem;
  }
}


.message-content {
    word-wrap: break-word;
    font-size: 0.9em;
    line-height: 1.3;
}

.message-form {
    display: flex;
    gap: 10px;
}

.message-form textarea {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    min-height: 60px;
}

.message-form button {
    padding: 10px 20px;
    background: #1a5632;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.message-form button:hover {
    background: #2d8a4e;
}

.thank-you {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 2rem;
}

.my-season-section {
    margin-top: 3rem;
    padding: 0 20px;
}

.my-season-section h3.league-name {
  margin: 2rem 0 1rem;
  color: #333;
}

.table-responsive {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.season-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.season-table th,
.season-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}

.season-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.season-table tr:hover {
  background-color: #f9f9f9;
}

/*Added table styles*/
.standings-table {
    width: 100%;
    border-collapse: collapse;
}
.standings-table th,
.standings-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: normal;
}

.standings-table td:first-child,
.standings-table th:first-child {
  text-align: center;
}

.standings-table th:first-child,
.standings-table td:first-child {
  width: 45%;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  width: 45%;
}

.standings-table th:nth-child(3),
.standings-table td:nth-child(3) {
  width: 10%;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 4rem; }

.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

footer .button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

footer .button:hover {
    background-color: #45a049;
}

/* Media Queries */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #333;
        z-index: 1000;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    main {
        margin-top: 60px;
        padding-bottom: 70px;
    }

    .container {
        padding: 0 10px;
    }
}

@media (min-width: 769px) {
    body {
        font-size: 18px;
    }

    .card {
        padding: 2rem;
    }

    .home-section, .home-container {
        max-width: 1000px; /* Changed to standardize container width */
        margin-left: auto;
        margin-right: auto;
    }

    /* Make welcome card narrower to match other elements */
    .welcome-card {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Reduce width of the leagues container */
    .leagues-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 700px;
        margin: 0 auto;
        padding: 20px;
    }

    /* Reduce width of the welcome card */
    .welcome-card {
        background: white;
        border-radius: 8px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        max-width: 1000px; /* Adjusted max-width */
 margin: 0 auto;
    }

    /*    /* Make the buttons in the welcome card not stretch the full container width */
    .welcome-card .actions .button {
        min-width: 160px;
        width: auto;
    }
}

.footer-column ul li a, footer a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

.footer-column ul li a:hover, footer a:hover {
    color: white;
}

.footer-column ul li a:after, footer a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-column ul li a:hover:after, footer a:hover:after {
    width: 100%;
}
.welcome-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text .league-info {
    margin-top: 2rem;
}

.about-text .league-info p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text .thank-you {
    margin-top: 2.5rem;
    font-style: italic;
    color: #666;
}

/* Legal Pages Styling */
.legal-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legal-container h1 {
    margin-bottom: 1rem;
    color: #333;
}

.legal-section {
    margin: 2rem 0;
}

.legal-section h2 {
    color: #444;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.legal-section ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 480px;
  background: url("/static/images/hero-golf-course.b23b99f3a144.jpg") center 70% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
}

.hero-content h1 {
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.hero-h1-multiline {
  font-size: 2.25rem !important;
  line-height: 1.3 !important;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.3px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-button {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-width: 180px;
  text-align: center;
  background-color: #1a5632;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

.hero-button:hover {
  background-color: #2d8a4e;
  transform: translateY(-2px);
  text-decoration: none !important;
  color: #ffffff !important;
}

.hero-button-outline {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid #ffffff;
  color: #ffffff !important;
}

.hero-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-button {
    min-width: 150px;
    padding: 12px 28px;
    font-size: 1rem;
  }
}

.onboarding-section {
  text-align: center;
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.onboarding-greeting {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: #1a5632;
  margin-bottom: 0.5rem;
}

.onboarding-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.onboarding-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.onboarding-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboarding-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.onboarding-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.onboarding-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.onboarding-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .onboarding-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .onboarding-greeting {
    font-size: 1.5rem;
  }
}

.dashboard-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a5632;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
}

.dashboard-actions .button {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.league-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 4px solid #1a5632;
  transition: transform 0.2s ease;
}

.league-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.league-card .league-name a {
  color: #1a5632;
  font-family: 'Playfair Display', Georgia, serif;
}

.league-card .league-name a:hover {
  color: #c8a951;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.testimonial-stars {
  color: #c8a951;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1a5632;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.testimonial-detail {
  color: #888;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.screenshot-item {
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
  overflow: hidden;
  max-width: 100%;
}

.screenshot-item:hover {
  transform: translateY(-3px);
}

.screenshot-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
}

.screenshot-item h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a5632;
  margin-bottom: 0.5rem;
}

.screenshot-item p {
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .screenshot-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.page-card {
  max-width: 800px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-card-header {
  background-color: #1a5632;
  padding: 20px 28px;
}

.page-card-header h2 {
  margin: 0;
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-card-body {
  padding: 28px;
}

.form-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a5632;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c8a951;
}

.form-group-styled {
  margin-bottom: 1rem;
}

.form-group-styled label {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-help-text {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-top: 4px;
}

.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 4px;
}

.form-input-styled {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input-styled:focus {
  border-color: #1a5632;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.btn-primary-green {
  background-color: #1a5632;
  color: #ffffff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary-green:hover {
  background-color: #2d8a4e;
  transform: translateY(-1px);
}

.btn-gold {
  background-color: #c8a951;
  color: #ffffff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-gold:hover {
  background-color: #b8993f;
  transform: translateY(-1px);
}

.btn-danger {
  background-color: #dc3545;
  color: #ffffff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-danger:hover {
  background-color: #c82333;
}

.free-agent-league-item {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 15px;
  background-color: #fafafa;
  transition: box-shadow 0.2s;
}

.free-agent-league-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.free-agent-status-box {
  border-radius: 10px;
  padding: 20px;
}

.free-agent-active {
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.free-agent-inactive {
  background-color: #fef8e8;
  border: 1px solid #f0e0a0;
}

.badge-pending {
  background-color: #c8a951;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 700;
  white-space: nowrap;
}

.badge-active {
  background-color: #1a5632;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.page-card-body input[type="text"],
.page-card-body input[type="number"],
.page-card-body input[type="date"],
.page-card-body input[type="email"],
.page-card-body select,
.page-card-body textarea {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.page-card-body input[type="text"]:focus,
.page-card-body input[type="number"]:focus,
.page-card-body input[type="date"]:focus,
.page-card-body select:focus,
.page-card-body textarea:focus {
  border-color: #1a5632;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.page-card-body textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
}

@media (max-width: 768px) {
  .page-card {
    margin: 1rem auto;
    border-radius: 8px;
  }

  .page-card-header {
    padding: 15px 20px;
  }

  .page-card-body {
    padding: 20px;
  }

  .form-row-inline {
    flex-wrap: wrap;
  }
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 2rem;
}

.faq-title {
  text-align: center;
  color: #1a5632;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1.5rem;
}

.faq-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-section h2 {
  color: #1a5632;
  border-bottom: 2px solid #c8a951;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.faq-item p {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.scoring-formula {
  margin-left: 20px;
  font-family: monospace;
  background: #f0f7f2;
  padding: 8px 14px;
  border-radius: 6px;
  border-left: 3px solid #1a5632;
  display: inline-block;
}

.net-score-calculator {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid #e0e0e0;
}

.net-score-calculator h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a5632;
  margin-bottom: 1rem;
}

.calc-input {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.calc-input:focus {
  border-color: #1a5632;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-container {
    padding: 1rem;
  }

  .faq-section {
    padding: 1.5rem;
  }

  .faq-title {
    font-size: 1.8rem;
  }
}

/* ==========================================
   FOOTER STYLES
   ========================================== */

.site-footer {
    background-color: #2b2b2b;
    color: white;
    padding: 30px 0;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-col {
    padding: 0 15px;
    flex: 1 1 300px;
    margin-bottom: 20px;
    min-width: 250px;
    box-sizing: border-box;
}

.footer-col h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-col p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a,
.footer-email a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover,
.footer-email a:hover {
    color: white;
    text-decoration: none;
}

.footer-email {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
}

.footer-links-grid ul {
    flex: 1 1 140px;
}

.footer-logout-form {
    display: inline;
}

.footer-logout-form button {
    background: none;
    border: none;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.footer-logout-form button:hover {
    color: white;
}

.footer-legal {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    width: 100%;
}

.footer-legal-links {
    margin-bottom: 15px;
}

.footer-legal-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: white;
}

.footer-legal p {
    color: #ccc;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
    }

    .footer-col {
        flex: 100%;
        text-align: left;
        margin-bottom: 1rem;
    }

    .footer-col h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .footer-col p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .footer-links-grid {
        justify-content: flex-start;
    }

    .footer-links-grid ul {
        flex: 0 1 auto;
        min-width: 120px;
        text-align: left;
    }

    .footer-email {
        font-size: 13px;
    }

    .footer-legal {
        text-align: center;
    }

    .footer-legal-links a {
        display: inline-block;
        margin: 4px 8px;
    }

    .form-group .form-check,
    .form-group .help-text,
    .submit-row {
        margin-left: 0;
    }

    .login-container {
        margin: 20px auto;
        padding: 20px;
    }
}

.open-leagues-table tbody tr:hover {
    background-color: #f5f9f6;
}