/* --- Global Styles & Variables --- */
:root {
    --main-color: #213448;
    --secondary-color: #547792;
    --accent-color-light: #94B4C1;
    --accent-color-cream: #ECEFCA;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --light-text-color: #FFFFFF;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --container-width: 1140px;
    --padding-base: 1rem;
    --section-padding: 3rem 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--main-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--main-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 10px var(--padding-base);
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--accent-color-cream); /* Using cream for light background sections */
}

.text-center {
    text-align: center;
}

/* Add this if not already present */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--main-color);
    color: var(--light-text-color);
}

.btn-small {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--main-color);
    color: var(--light-text-color);
    border-color: var(--main-color);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}
.btn-secondary:hover {
    background-color: var(--main-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 0.5rem 1rem;
    margin-left: 0.5rem; /* For desktop nav */
}
.btn-nav:hover {
    background-color: var(--main-color);
    color: var(--light-text-color);
}


/* --- Header & Navigation --- */
header {
    background-color: var(--main-color);
    color: var(--light-text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 120px; /* Adjust as needed */
    margin-right: 0.5rem;
}
.logo-text {
    font-family: var(--font-primary);
    font-size: 1.0rem; /* Adjust if using image too */
    font-weight: 700;
    color: var(--light-text-color);
}
.logo-text:hover {
    color: var(--accent-color-cream);
}


.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--accent-color-light);
    font-weight: 600;
    font-family: var(--font-primary);
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color-cream);
    border-bottom-color: var(--accent-color-cream);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 2rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(33, 52, 72, 0.7), rgba(33, 52, 72, 0.7)), url('../images/bg1-web.png') no-repeat center center/cover;
    /* Replace with your actual hero image */
    color: var(--light-text-color);
    padding: 6rem 0; /* More padding for hero */
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem; /* Larger for hero */
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.hero .btn-secondary:hover {
    background-color: var(--accent-color-cream);
    color: var(--main-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero .btn {
    margin: 0 0.5rem;
}
.hero .btn-primary {
    background-color: var(--accent-color-cream);
    color: var(--main-color);
    border-color: var(--accent-color-cream);
}
.hero .btn-primary:hover {
    background-color: var(--light-text-color);
    border-color: var(--light-text-color);
}
.hero .btn-secondary {
    border-color: var(--accent-color-cream);
    color: var(--accent-color-cream);
}
.hero .btn-secondary:hover {
    background-color: var(--accent-color-cream);
    color: var(--main-color);
}


/* --- Features Grid (Why Us) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.feature-item img {
    margin: 0 auto 1rem auto; /* Center image */
    width: 80px;
    height: 80px;
}
.feature-item h3 {
    color: var(--secondary-color);
}


/* --- Testimonials --- */
/* Basic slider - you might want a JS library for more advanced sliders */
.testimonial-slider {
    display: flex;
    overflow-x: auto; /* Simple scroll for now */
    gap: 1.5rem;
    padding-bottom: 1rem; /* For scrollbar */
}
.testimonial {
    min-width: 300px; /* Adjust as needed */
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
    border-left: 5px solid var(--secondary-color);
}
.testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
}
.testimonial h4 {
    text-align: right;
    color: var(--main-color);
    font-weight: normal;
}

/* --- Generic Card Layout (for Coaches, Events) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* For image fitting */
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* .card-img-top {
    transition: transform 0.3s ease;
    height: 30%; 
    object-fit: contain; 
} */

.card-img-top {
    transition: transform 0.3s ease;
    height: 250px; /* Or 200px, adjust as needed */
    width: 100%;
    object-fit: contain;
    background: #f8f9fa; /* Optional: subtle bg for transparent PNGs */
    display: block;
    margin: 0 auto;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Allows footer to stick to bottom if card heights vary */
    display: flex;
    flex-direction: column;
}
.card-body h3 {
    margin-top: 0;
}
.card-title { /* Alias for h3 in card */
    margin-top: 0;
    color: var(--main-color);
}
.card-text {
    flex-grow: 0; /* Prevents the element from stretching vertically */
    margin-bottom: 1rem; /* Keeps the existing bottom margin for spacing */
}
.card-link {
    margin-top: auto; /* Pushes to bottom */
    color: var(--secondary-color);
    font-weight: bold;
}
.card-link:hover {
    color: var(--main-color);
}

/* Coach specialty badge */
.card-text strong {
    background: linear-gradient(135deg, var(--accent-color-light), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Coach Bio Markdown Styles --- */
.coach-bio-full {
    line-height: 1.6;
    color: var(--text-color);
}

.coach-bio-full h1,
.coach-bio-full h2,
.coach-bio-full h3,
.coach-bio-full h4,
.coach-bio-full h5,
.coach-bio-full h6 {
    color: var(--main-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
    font-weight: 700;
}

.coach-bio-full h1 { font-size: 1.5rem; }
.coach-bio-full h2 { font-size: 1.35rem; }
.coach-bio-full h3 { font-size: 1.2rem; }
.coach-bio-full h4 { font-size: 1.1rem; }
.coach-bio-full h5 { font-size: 1rem; }
.coach-bio-full h6 { font-size: 0.9rem; }

.coach-bio-full p {
    margin-bottom: 1rem;
    text-align: justify;
}

.coach-bio-full ul,
.coach-bio-full ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.coach-bio-full li {
    margin-bottom: 0.25rem;
}

.coach-bio-full strong {
    color: var(--main-color);
    font-weight: 700;
}

.coach-bio-full em {
    font-style: italic;
    color: var(--secondary-color);
}

.coach-bio-full blockquote {
    border-left: 4px solid var(--accent-color-light);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: var(--accent-color-cream);
    font-style: italic;
    color: var(--main-color);
}

.coach-bio-full blockquote p {
    margin-bottom: 0;
}

.coach-bio-full code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.coach-bio-full pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.coach-bio-full pre code {
    background: none;
    padding: 0;
}

/* Coach bio short text truncation */
.coach-bio-short {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Read more/less button styling */
.read-more-coach {
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.read-more-coach:hover {
    transform: translateY(-2px);
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(84, 119, 146, 0.3);
}

/* --- Schedule Table --- */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto; /* For smaller screens */
    display: block; /* For overflow-x to work on table */
}
.schedule-table th, .schedule-table td {
    border: 1px solid var(--accent-color-light);
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: middle;
}
.schedule-table th {
    background-color: var(--main-color);
    color: var(--light-text-color);
    font-family: var(--font-primary);
}
.schedule-table tbody tr:nth-child(even) {
    background-color: var(--accent-color-cream);
}
.schedule-table tbody tr:hover {
    background-color: var(--accent-color-light);
    color: var(--main-color);
}

/* --- Programs Layout --- */
.program-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color-light), var(--secondary-color));
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/*
.program-category h2 {
    color: var(--main-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}
*/

/* Add proper styling for program category headers */
.program-category-section {
    margin-bottom: 4rem;
}

.program-category-section:last-child {
    margin-bottom: 2rem;
}

.program-category-section h2 {
    color: var(--main-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.program-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--secondary-color);
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.program-card.upcoming {
    border-left-color: #ffa500;
    opacity: 0.8;
}

.program-header {
    margin-bottom: 1rem;
}

.program-name {
    color: var(--main-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.program-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-status {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.program-status.available {
    background-color: #e8f5e8;
    color: #4a7c4a;
}

.program-status.upcoming {
    background-color: #fff3cd;
    color: #856404;
}

.program-details {
    margin: 1rem 0;
}

.program-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.program-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--main-color);
    min-width: 80px;
}

.detail-value {
    color: #555;
    text-align: right;
    flex: 1;
}

.program-focus {
    font-style: italic;
    color: #666;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
}

.program-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-color);
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: #f0f8ff;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
}


/* --- Private Session Pricing Structure --- */
.program-pricing {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f0f8ff;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
}

.program-pricing::before {
    content: "💰 Pricing Options";
    display: block;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.pricing-tier:hover {
    background-color: rgba(33, 52, 72, 0.05);
    border-radius: 4px;
}

.pricing-tier:last-child {
    border-bottom: none;
}

.pricing-pax {
    font-weight: 600;
    color: var(--main-color);
    min-width: 80px;
    font-size: 0.95rem;
}

.pricing-amount {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
}

/* --- Program Included Information --- */
.program-included {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e8f5e8;
    border-radius: 6px;
    border-left: 4px solid #4a7c4a;
    font-size: 0.9rem;
    color: #2d5a2d;
    font-style: italic;
    line-height: 1.4;
    position: relative;
}

.program-included::before {
    content: "✅ ";
    font-style: normal;
    font-weight: 700;
    margin-right: 0.3rem;
}

/* --- About Pickleball Sections --- */
.about-section {
    margin-bottom: 2.5rem;
}
.about-section h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* --- Location Page --- */
.location-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border: 2px solid var(--main-color);
    border-radius: 8px;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.address-details p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.address-details strong {
    color: var(--main-color);
}

/* --- Footer --- */
footer {
    background-color: var(--main-color);
    color: var(--accent-color-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}
footer p {
    margin-bottom: 0.5rem;
}


/* --- Mobile First Responsive Styles --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .hero-content h1 { font-size: 2.2rem; }

    .menu-toggle {
        display: block; /* Show hamburger */
        z-index: 1001; /* Ensure it's above other elements */
        position: relative; /* For z-index to take effect */
    }

    nav {
        position: static; /* Simpler positioning for the nav container */
    }

    .nav-links {
        display: none; /* Hide by default */
        flex-direction: column;
        align-items: center; /* Center items horizontally */
        width: 100%; /* Take full width of its parent */
        position: absolute; /* Position relative to the header */
        top: 100%; /* Position it right below the header */
        left: 0;
        background-color: var(--main-color);
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000; /* Below the toggle but above page content */
        border-top: 1px solid var(--accent-color-light);
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 0.75rem 0;
        text-align: center;
        width: 100%; /* Make list items take full width */
    }

    .nav-links a { /* Style for links within the mobile menu */
        display: block; /* Make links take full width of li */
        padding: 0.75rem 1rem;
        width: 100%;
        color: var(--accent-color-cream); /* Ensure text is visible on dark background */
        font-weight: 600;
    }

    .nav-links a:hover {
        background-color: var(--secondary-color); /* Add a hover effect */
        color: var(--light-text-color);
    }

    .nav-links .btn-nav { /* Specific styling for the button in nav */
        display: inline-block; /* Allow auto width */
        width: auto; /* Reset width from general 'a' if needed */
        padding: 0.75rem 1.5rem; /* Adjust padding for button */
        margin-top: 0.5rem;
        background-color: var(--accent-color-cream);
        color: var(--main-color);
    }

    .nav-links .btn-nav:hover {
        background-color: var(--light-text-color);
    }

    .hero {
        padding: 4rem 0;
    }

    .hero .btn {
        display: block;
        margin: 0.5rem auto;
        width: fit-content;
    }    .location-content {
        grid-template-columns: 1fr; /* Stack map and address */
    }

    /* Program cards mobile styles */
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .program-card {
        padding: 1rem;
    }

    .program-name {
        font-size: 1.1rem;
    }

    .program-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }    .detail-value {
        text-align: left;
    }

    /* Mobile styles for new pricing and included elements */
    .pricing-tier {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.3rem 0;
    }

    .pricing-pax {
        min-width: auto;
        font-size: 0.9rem;
    }

    .pricing-amount {
        font-size: 0.9rem;
    }

    .program-included {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}

/* Larger desktop adjustments if needed */
@media (min-width: 992px) {
    .location-content {
        grid-template-columns: 2fr 1fr; /* Map larger than address */
        align-items: center;
    }
}

/* --- Event Detail Page --- */
.event-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.event-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-info h2 {
    color: var(--main-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color-light);
    padding-bottom: 0.5rem;
}

.event-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.event-description h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.event-description p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.event-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-register {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    font-weight: bold;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- About ACE Academy Page Styles --- */
.about-nav-section {
    background-color: var(--accent-color-cream);
    border-bottom: 1px solid var(--accent-color-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.about-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.about-nav-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--main-color);
    font-weight: 500;
    font-family: var(--font-primary);
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-nav-link:hover,
.about-nav-link.active {
    background-color: var(--main-color);
    color: var(--light-text-color);
    border-color: var(--main-color);
}

.about-content-section {
    scroll-margin-top: 100px; /* Account for sticky nav */
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.mission-card,
.vision-card {
    background: linear-gradient(135deg, var(--accent-color-light), var(--accent-color-cream));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.mission-card h3,
.vision-card h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.values-section {
    margin-top: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
    text-align: left;
}

.value-item h4 {
    color: var(--main-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.pickleball-content-grid {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.pickleball-section {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pickleball-section h3 {
    color: var(--main-color);
    border-bottom: 2px solid var(--accent-color-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.pickleball-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.pickleball-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* --- Redirect Notice Styles --- */
.redirect-notice {
    background: linear-gradient(135deg, var(--accent-color-cream), var(--accent-color-light));
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.redirect-notice h2 {
    color: var(--main-color);
    margin-bottom: 1rem;
}

.redirect-notice p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Program Schedule Styles */
.program-schedule {
    margin-top: 1rem;
    padding: 1rem;
    background-color: transparent;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.program-schedule h4 {
    margin: 0 0 0.75rem 0;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    align-items: center;
}

.schedule-day {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.schedule-time {
    color: var(--text-color);
    font-size: 0.9rem;
}

.schedule-slots {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: right;
}

/* Schedule Summary Table Styles */
.schedule-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0;
}

.schedule-table thead {
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    color: white;
}

.schedule-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.schedule-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.schedule-row {
    transition: background-color 0.2s ease;
}

.schedule-row:hover {
    background-color: #f8f9fa;
}

.schedule-row.upcoming {
    opacity: 0.7;
}

.schedule-day {
    font-weight: 600;
    color: var(--main-color);
}

.schedule-time {
    color: var(--text-color);
    font-size: 0.9rem;
}

.schedule-program strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.schedule-program small {
    color: var(--text-light);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

.schedule-level {
    font-size: 0.85rem;
    color: var(--text-color);
}

.schedule-location {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
}

.schedule-capacity {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Status Badge Cell - Center the badge */
.status-badge-cell {
    text-align: center;
    vertical-align: middle;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.status-badge.available {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.upcoming {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Mobile Schedule Responsiveness */
@media (max-width: 768px) {
    .schedule-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: center;
    }
    
    .schedule-slots {
        text-align: center;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.8rem;
        vertical-align: middle;
        text-align: center;
    }
        
    /* Ensure program column stays left-aligned on mobile */
    .schedule-table .schedule-program {
        text-align: left;
    }
    
    /* Fix status badge centering on mobile */
    .status-badge-cell {
        text-align: center;
        vertical-align: middle;
        padding: 0.5rem 0.2rem;
    }
    
    .status-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        margin: 0 auto;
    }
        
    .schedule-program strong {
        font-size: 0.85rem;
    }
    
    .program-category {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
        margin-left: 0.3rem;
    }
    
    .schedule-program small {
        font-size: 0.75rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .program-card {
        padding: 1rem;
    }

    .program-name {
        font-size: 1.1rem;
    }

    .program-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .detail-value {
        text-align: left;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: center;
    }
    
    .schedule-slots {
        text-align: center;
    }

    /* Mobile styles for new pricing and included elements */
    .pricing-tier {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.3rem 0;
    }

    .pricing-pax {
        min-width: auto;
        font-size: 0.9rem;
    }

    .pricing-amount {
        font-size: 0.9rem;
    }

    .program-included {
        font-size: 0.8rem;
        padding: 0.6rem;
    }    
}

@media (max-width: 480px) {
    /* Hide Level and Location columns on very small screens */
    .schedule-table th:nth-child(4),
    .schedule-table td:nth-child(4),
    .schedule-table th:nth-child(5),
    .schedule-table td:nth-child(5) {
        display: none;
    }
    
    /* Make status badge even smaller on mobile but keep centered */
    .status-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .status-badge-cell {
        padding: 0.4rem 0.1rem;
        text-align: center;
        vertical-align: middle;
    }
    
    .program-category {
        font-size: 0.55rem;
        padding: 0.08rem 0.3rem;
        margin-left: 0.2rem;
    }
}

/* Schedule Legend */
.schedule-legend {
    display: flex;
    gap: 2rem;
    margin: 1rem 0 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .schedule-legend {
        flex-direction: column;
        gap: 1rem;
    }
}


.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(84, 119, 146, 0.3);
}

/* Animated loading state */
.coaches-loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.coaches-loading::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: var(--secondary-color);
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow:
            .25em 0 0 var(--secondary-color),
            .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 var(--secondary-color),
            .5em 0 0 var(--secondary-color);
    }
}