@import url('forms.css');

/* Modern Link Styling - Remove underlines */
a {
    text-decoration: none;
    color: inherit;
}

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Global image hover effect: gently zoom all pictures site-wide */
img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* New Header and Navigation System */
:root {
    --brand-blue: #0a4a7a;
    --brand-gold: #cda34f;
    --tennis-green: #005f40;
    --court-blue: #2c5aa0;
    --ball-yellow: #f0e68c;
}

body {
    border-top: 3px solid var(--brand-gold);
}

/* Tennis Ball Corner Decoration */
body::before {
    content: '';
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--ball-yellow);
    border-radius: 50%;
    box-shadow: inset -3px -3px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: floatBall 3s ease-in-out infinite;
}

@keyframes floatBall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

header {
    background: var(--brand-blue);
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Top Tier of Navigation */
.nav-top-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-utility {
    display: flex;
    align-items: center;
    border: 1px solid var(--brand-gold);
    padding: 5px 10px;
}

.nav-utility a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    padding: 0 10px;
    letter-spacing: 1px;
}

.nav-utility a:not(:last-child) {
    border-right: 1px solid var(--brand-gold);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--brand-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Responsive Navigation */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1001;
        background: rgba(10, 74, 122, 0.9);
        border: 2px solid var(--brand-gold);
        border-radius: 6px;
        padding: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: var(--brand-gold);
        transform: scale(1.05);
    }

    .mobile-menu-toggle span {
        background: var(--brand-gold);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-utility {
        flex-direction: column;
        border: none;
        padding: 0;
        gap: 8px;
    }

    .nav-utility a {
        border: none;
        padding: 8px;
        font-size: 11px;
    }

    .nav-bottom-tier {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--brand-blue);
        flex-direction: column;
        border-top: 2px solid var(--brand-gold);
        z-index: 1000;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        width: 100%;
        padding-top: 60px; /* Make room for the toggle button */
    }

    .nav-bottom-tier.mobile-open {
        display: flex;
    }

    .nav-main-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .nav-main-menu > li {
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .nav-main-menu > li > a {
        padding: 15px 20px;
        border-bottom: none;
        display: block;
        width: 100%;
    }

    .dropdown {
        position: static !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border: none !important;
        display: none !important;
        min-width: auto;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav-main-menu li.active > .dropdown,
    .nav-main-menu li > .dropdown.open {
        display: block !important;
    }

    .dropdown li a {
        padding: 12px 20px 12px 40px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown li > a[aria-haspopup="true"] {
        position: relative;
        padding-right: 40px !important;
    }

    .dropdown li > a[aria-haspopup="true"]::after {
        content: '▶';
        position: absolute;
        right: 20px;
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .dropdown li > a[aria-expanded="true"]::after {
        transform: rotate(90deg);
    }

    .dropdown .dropdown {
        background: rgba(0, 0, 0, 0.3) !important;
    }

    .dropdown .dropdown li a {
        padding-left: 60px !important;
    }

    .nav-top-tier {
        padding: 10px 15px;
        background: var(--brand-blue);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-img {
        max-height: 50px;
    }
}

/* Bottom Tier of Navigation */
.nav-bottom-tier {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.nav-main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.nav-main-menu li {
    position: relative; /* For dropdown positioning */
}

.nav-main-menu > li > a {
    color: var(--brand-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 0;
    display: block;
}

/* Dropdown Menu Styling */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--brand-blue);
    list-style: none;
    padding: 10px;
    margin: 0;
    min-width: 200px;
    border-top: 2px solid var(--brand-gold);
}

.nav-main-menu li:hover .dropdown {
    display: block;
}

.dropdown li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    font-size: 14px;
}

.dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    margin-left: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .nav-top-tier {
        align-items: center;
    }

    .nav-utility {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-bottom-tier {
        display: none;
        padding-top: 10px;
    }

    .nav-bottom-tier.mobile-open {
        display: block;
    }

    .nav-main-menu {
        flex-direction: column;
        gap: 0;
        align-items: center;
        text-align: center;
    }

    .nav-main-menu > li {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }

    .nav-main-menu > li > a {
        padding: 12px 0;
        width: 100%;
    }

    /* Fallback fixed hamburger button (visible when normal toggle hidden) */
    .fallback-mobile-toggle {
        position: fixed;
        right: 14px;
        top: 12px;
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        align-items: center;
        background: rgba(10,74,122,0.95);
        border-radius: 8px;
        border: 2px solid var(--brand-gold);
        z-index: 10060;
        padding: 6px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }
    .fallback-mobile-toggle span { display:block; width:20px; height:3px; background: var(--brand-gold); border-radius:2px; }
    .fallback-mobile-toggle.open { background: rgba(0,0,0,0.8); }


/* Visible textual MENU fallback button (always visible) */
.fallback-menu-text {
    position: fixed;
    right: 14px;
    top: 66px; /* below header area */
    background: linear-gradient(135deg, var(--brand-gold) 0%, #ffd66b 100%);
    color: var(--brand-blue);
    border: 0;
    padding: 10px 16px 10px 44px; /* space for icon on the left */
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    z-index: 10070;
    box-shadow: 0 10px 30px rgba(10,74,122,0.14);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    min-height: 44px;
    padding-left: 46px;
}


.fallback-menu-text {
    position: fixed;
    right: 14px;
    top: 66px; /* below header area */
    background: linear-gradient(135deg, var(--brand-gold) 0%, #ffd66b 100%);
    color: var(--brand-blue);
    border: 0;
    padding: 10px 16px 10px 46px; /* space for icon on the left */
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    z-index: 10070;
    box-shadow: 0 10px 30px rgba(10,74,122,0.14);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    min-height: 44px;
    padding-left: 48px;
}

.fallback-menu-text .menu-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--brand-blue);
}
.fallback-menu-text .menu-text { font-size: 13px; }

.fallback-menu-text:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(10,74,122,0.22); }

.fallback-menu-text[aria-expanded="true"] {
    background: #fff;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
    box-shadow: 0 8px 24px rgba(11,61,145,0.12);
}

.fallback-menu-text:focus { outline: 3px solid rgba(11,61,145,0.18); outline-offset: 3px; }

@media (min-width: 1200px) {
    /* hide textual fallback on very large screens where menu is visible */
    .fallback-menu-text { display: none; }
}
    .dropdown {
        position: static;
        border-top: none;
        padding-left: 15px;
        background: rgba(10, 74, 122, 0.95);
    }

    /* Show dropdowns when JS adds active/open classes on mobile */
    .nav-main-menu > li.active > .dropdown,
    .dropdown.open {
        display: block;
    }
}

/* Hero Section */
.hero {
    background: url('../images/main.jpeg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 50px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gold);
    animation: slide-in 1s ease forwards;
}

@keyframes slide-in {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Responsive video embed used on event pages */
.video-wrapper {
    margin: 40px 0;
    text-align: center;
}
.video-wrapper h2 {
    color: var(--brand-blue);
    margin-bottom: 15px;
    font-size: 1.6rem;
}
.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
}
.responsive-video iframe,
.responsive-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTube / Video Grid styling */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.video-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.video-card h4 {
    margin: 0;
    color: var(--brand-blue);
}
.video-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* Event grid: description + video side-by-side on larger screens */
.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 900px) {
    .event-grid {
        grid-template-columns: 1fr 560px;
    }
    .event-grid .responsive-video {
        max-width: 560px;
        margin: 0 auto;
    }
}

.page-hero {
    padding: 60px 0;
    color: #fff;
    text-align: center;
}
.page-hero .hero-content h1 {
    font-size: 2rem;
}
.page-hero .hero-content p {
    font-size: 1.05rem;
    opacity: 0.95;
}

.hero-content p::before {
    content: '🎾';
    position: absolute;
    left: -30px;
    animation: bounce 1s infinite;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #005f40, #007a52);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: var(--brand-gold);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.btn:hover {
    background: #004d33;
}

/* Events Page */
.events-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.event-item {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.event-date {
    background: var(--brand-blue);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    min-width: 70px;
}

.event-date .month {
    display: block;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.event-date .day {
    display: block;
    font-size: 32px;
    font-weight: bold;
}

.event-details h3 {
    color: var(--brand-blue);
    margin-top: 0;
}

/* Photo Gallery Section */
.photo-gallery-section {
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
    border-radius: 18px;
}

.gallery-grid.full-gallery {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Masonry-style gallery layout (full images, smaller tiles) */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
}

.masonry-gallery .gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-gallery {
        column-count: 1;
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item.featured {
    grid-row: span 2;
    grid-column: span 2;
}

.gallery-item .caption {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .caption {
    bottom: 0;
}

.gallery-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Gallery Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--brand-blue);
    border-radius: 25px;
    color: var(--brand-blue);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand-blue);
    color: white;
}

/* Featured gallery items */
.gallery-item.featured {
    grid-row: span 2;
    grid-column: span 2;
}

/* Gallery item overlay */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(0, 0, 0, 0.6)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Default: square thumbnails */
    object-fit: cover;
    object-position: center; /* Default center for most galleries */
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item img.img-pos-up {
    object-position: 50% 20%; /* Move view up */
}

.gallery-item img.img-pos-down {
    object-position: 50% 80%; /* Move view down */
}

.gallery-item img.img-pos-center {
    object-position: center; /* Center this specific image */
}

/* Socials page gallery: show more of people, reduce awkward cropping */
.socials-gallery-grid .gallery-item {
    grid-auto-rows: 220px;
}

.socials-gallery-grid .gallery-item img {
    aspect-ratio: 4 / 3; /* Slightly taller crop for people shots */
    object-position: 50% 20%; /* Bias upward so heads stay in frame */
}

.gallery-item img:hover {
    transform: scale(1.1); /* Make the zoom effect more noticeable */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}

.home-gallery .gallery-item {
    animation: fadeIn 0.5s ease-in-out forwards;
    opacity: 0;
    border: 1px solid rgba(10, 74, 122, 0.12);
    background: #ffffff;
}

/* Home page photo gallery: modern equal cards on desktop/tablet */
.gallery-grid.home-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 14px;
    padding: 12px;
}

.home-gallery .gallery-item,
.home-gallery .gallery-item.featured {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 14px;
    overflow: hidden;
}

.home-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

/* On phones, use a tighter grid of smaller thumbnails */
@media (max-width: 768px) {
    .gallery-grid.home-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
        gap: 10px;
        padding: 10px;
    }

    .home-gallery .gallery-item {
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        overflow: hidden;
        border-radius: 10px;
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .home-gallery .gallery-item:active {
        transform: scale(0.98);
    }

    .home-gallery .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1 / 1;
    }

    .gallery-item .caption {
        font-size: 0.9rem;
        padding: 10px;
    }

    .gallery-item .zoom-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .gallery-filters {
        gap: 8px;
        margin-bottom: 20px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid.home-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
        gap: 12px;
        padding: 12px;
    }

    .home-gallery .gallery-item {
        border-radius: 8px;
    }
}

/* Standalone gallery page grid (gallery.html): use people-friendly crop */
.gallery-grid.full-gallery .gallery-item img {
    aspect-ratio: 4 / 3;
    object-position: 50% 20%;
}

/* When using masonry layout, always show full image, not cropped */
.masonry-gallery .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

/* Staggered animation for gallery items */
.home-gallery .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.home-gallery .gallery-item:nth-child(2) { animation-delay: 0.2s; }
.home-gallery .gallery-item:nth-child(3) { animation-delay: 0.3s; }
.home-gallery .gallery-item:nth-child(4) { animation-delay: 0.4s; }
.home-gallery .gallery-item:nth-child(5) { animation-delay: 0.5s; }
.home-gallery .gallery-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-secondary {
    background: transparent;
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
    margin-top: 30px;
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: #fff;
}

/* Sponsors Section */
.sponsors-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0a4a7a 0%, #005f40 100%);
    position: relative;
    overflow: hidden;
}

.sponsors-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(205,163,79,0.08);
    border-radius: 50%;
    animation: floatBg 8s ease-in-out infinite;
}

.sponsors-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: floatBg 10s ease-in-out infinite reverse;
}

.sponsors-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.sponsors-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.sponsors-header h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sponsors-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--brand-gold);
    margin: 20px auto 0;
    border-radius: 2px;
}

.sponsors-header p {
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.sponsors-tiers {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Platinum Sponsors */
.platinum-sponsors {
    background: linear-gradient(45deg, #f8f9fa, #ffffff, #f8f9fa);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tier-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.tier-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--brand-gold);
}

.platinum-sponsors .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Gold Sponsors */
.gold-sponsors .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Silver Sponsors */
.silver-sponsors .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Sponsor Image Styles */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    align-items: center;
    padding: 20px 0;
}

.sponsor-card {
    background: rgba(255,255,255,0.95);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    backdrop-filter: blur(10px);
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sponsor-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(205,163,79,0.05) 0%, rgba(10,74,122,0.05) 100%);
    transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.sponsor-card:hover::before {
    transform: scaleX(1);
}

.sponsor-card:hover::after {
    left: 0;
}

.sponsor-logo {
    max-width: 85%;
    max-height: 150px;
    object-fit: contain;
    filter: grayscale(70%);
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.sponsor-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(205,163,79,0.25);
    background: rgba(255,255,255,1);
}

.sponsor-card:hover .sponsor-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.sponsor-name {
    margin-top: 15px;
    color: var(--brand-blue);
    font-weight: 600;
}

/* Responsive Design for Sponsors */
@media (max-width: 1200px) {
    .platinum-sponsors .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
    .gold-sponsors .sponsors-grid { grid-template-columns: repeat(3, 1fr); }
    .silver-sponsors .sponsors-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .platinum-sponsors .sponsors-grid { grid-template-columns: 1fr; }
    .gold-sponsors .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
    .silver-sponsors .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

.sponsor-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.sponsor-card:hover::before {
    transform: scaleX(1);
}

.sponsor-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.sponsor-card:hover .sponsor-logo {
    filter: grayscale(0%);
}

.sponsor-name {
    font-size: 1.1rem;
    color: var(--brand-blue);
    margin: 10px 0;
    font-weight: 600;
}

.sponsor-tier {
    font-size: 0.9rem;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sporty Elements */
.tennis-ball-loader {
    width: 20px;
    height: 20px;
    background: #CFB53B;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    animation: bounce 0.5s alternate infinite;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.section-divider {
    height: 4px;
    margin: 60px 0;
    position: relative;
    background: var(--tennis-green);
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--brand-blue),
        var(--brand-blue) 10px,
        var(--brand-gold) 10px,
        var(--brand-gold) 20px
    );
    animation: slideLine 3s linear infinite;
}

@keyframes slideLine {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Tennis Net Pattern */
.net-pattern {
    height: 20px;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 5px,
            var(--brand-blue) 5px,
            var(--brand-blue) 7px
        );
    opacity: 0.1;
    margin: 30px 0;
}

.sporty-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform: rotate(15deg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.animated-racket {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('../images/racket-icon.png');
    background-size: contain;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
    100% { transform: rotate(0deg); }
}

/* Icon Features Section */
.icon-features-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 32px;
    color: var(--brand-blue);
    margin: 40px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0 50px;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: 
        radial-gradient(circle at center, 
            var(--ball-yellow) 40%, 
            transparent 40%),
        repeating-linear-gradient(45deg,
            var(--ball-yellow) 0px,
            var(--ball-yellow) 2px,
            transparent 2px,
            transparent 4px);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: spinBall 3s linear infinite;
}

@keyframes spinBall {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.section-title::before {
    left: 0;
}

.section-title::after {
    right: 0;
}

/* Tennis Court Pattern Background */
.section-background {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
}

.section-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--tennis-green) 2px, transparent 2px),
        linear-gradient(90deg, var(--tennis-green) 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.section-title::before {
    left: -40px;
}

.section-title::after {
    right: -40px;
}

.icon-features-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.icon-feature-card {
    background: #fff;
    border: none;
    border-radius: 15px;
    padding: 30px;
    width: 250px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.icon-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right,
        var(--brand-gold),
        var(--court-blue),
        var(--brand-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.icon-feature-card::after {
    content: '🎾';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
}

.icon-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.icon-feature-card:hover::before {
    transform: scaleX(1);
}

.icon-feature-card:hover::after {
    opacity: 1;
    transform: rotate(0deg);
}

.icon-wrapper {
    margin-bottom: 20px;
}

.icon-wrapper svg {
    stroke: var(--brand-gold);
}

.icon-feature-card h3 {
    color: var(--brand-blue);
    font-size: 18px;
    margin: 0;
}

/* Features Section */
.features-section {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 40px 20px;
}

.feature {
    max-width: 300px;
}

.feature img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Visitor Section */
.visitor-section {
    padding: 40px 20px;
    text-align: center;
}

.visitor-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.visitor-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    width: 300px;
}

.visitor-card h3 {
    color: var(--brand-blue);
}

.visitor-card .price {
    font-size: 36px;
    font-weight: bold;
    color: var(--brand-blue);
    margin: 10px 0;
}

/* Join Us Section */
.join-us-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.join-us-content {
    flex: 1;
}

.join-us-image {
    flex: 1;
}

.join-us-image img {
    width: 100%;
    border-radius: 8px;
}

.membership-fee {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.membership-fee .price {
    font-size: 48px;
    font-weight: bold;
    color: #005f40;
    margin: 10px 0;
}

/* About Section */
#about {
    padding: 40px 20px;
    text-align: center;
}

/* Activities Page */
.activities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.activity-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.activity-card h3 {
    color: #005f40;
}

/* Profile Page */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.profile-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.profile-card h3 {
    color: #005f40;
    margin-top: 0;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

/* Booking Page */
.booking-grid {
    margin-top: 30px;
}

.booking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.booking-table th, .booking-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.booking-table th {
    background-color: #f2f2f2;
}

.btn-book {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-book:hover {
    background: #218838;
}

.booked {
    background: #dc3545;
    color: white;
}

.unavailable {
    background: #6c757d;
    color: white;
}

/* YouTube Page */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.video-card iframe {
    width: 100%;
    height: 200px;
}

/* Login Button */
.btn-login {
    background: #ff8c00;
    padding: 5px 15px;
    border-radius: 5px;
}

.btn-login:hover {
    background: #cc7000;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--ball-yellow);
    outline-offset: 3px;
}

.note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

/* Socials Page */
.socials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.social-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.social-card h3 {
    color: #005f40;
}

/* Club Champions Page - Modernized */
.champions-hero {
    background: linear-gradient(rgba(10, 74, 122, 0.9), rgba(10, 74, 122, 0.9)), 
                url('../images/tennis-court.jpg') no-repeat center center/cover;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.champions-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.champions-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.champions-section {
    padding: 40px 0;
}

.champions-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Configure grid positions for each category */
.champions-category:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }  /* Row 1, Column 1 */
.champions-category:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }  /* Row 1, Column 3 */
.champions-category:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }  /* Row 2, Column 2 */
.champions-category:nth-child(4) { grid-area: 3 / 1 / 4 / 2; }  /* Row 3, Column 1 */
.champions-category:nth-child(5) { grid-area: 3 / 3 / 4 / 4; }  /* Row 3, Column 3 */

/* Basic category styling */
.champions-category {
    transition: all 0.4s ease;
}

/* Featured Mixed Doubles category */
.champions-category.featured-category {
    position: relative;
    transform: scale(1.05);
    background: linear-gradient(45deg, #1a5a8a, var(--brand-blue));
    border: 2px solid var(--brand-gold);
}

.featured-category::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, var(--brand-gold), #fff, var(--brand-gold));
    border-radius: 22px;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.featured-category::after {
    content: '★ FEATURED ★';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.featured-category .champions-category-title,
.featured-category .champion-info h3 {
    color: white;
}

.featured-category .champion-status {
    color: var(--brand-gold);
}

.featured-category .btn-secondary {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.featured-category .btn-secondary:hover {
    background: white;
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.featured-category .category-icon {
    transform: scale(1.2);
    margin-bottom: 20px;
}

.featured-category .champion-card {
    transform: translateY(0);
    transition: all 0.5s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.featured-category:hover .champion-card {
    transform: translateY(-10px);
}

.featured-category .champion-image-wrapper {
    height: 350px;
}

.champions-category {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.champions-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.champions-category-title {
    font-size: 1.8rem;
    color: var(--brand-blue);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.champions-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-gold);
    border-radius: 2px;
}

.champion-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}

.champion-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.champion-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.champion-card:hover .champion-image-wrapper img {
    transform: scale(1.1);
}

.year-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-gold);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.champion-info {
    padding: 20px;
}

.champion-info h3 {
    color: var(--brand-blue);
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}

.champion-status {
    color: var(--brand-gold);
    font-weight: 600;
    margin: 0;
}

.btn-secondary {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
}

.past-champions-cta {
    background: linear-gradient(rgba(10, 74, 122, 0.95), rgba(10, 74, 122, 0.95)),
                url('../images/tennis-court-2.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
    color: white;
}

.past-champions-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.past-champions-cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--brand-gold);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: none;
}

.btn-primary:hover {
    background: #d4aa5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .champions-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .champions-title {
        font-size: 3rem;
    }
}

@media (max-width: 1200px) {
    .champions-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .champions-category:nth-child(-n+4) {
        grid-column: span 1;
    }

    .featured-category {
        grid-column: 1 / -1;
        transform: scale(1.05);
        max-width: 500px;
        margin: 20px auto;
    }
}

/* Generic Mobile responsive improvements */
@media (max-width: 768px) {
    .champs-promotion {
        padding: 25px !important;
        margin: 20px 15px !important;
        border-radius: 8px;
    }

    .champs-promotion h2 {
        font-size: 1.4rem !important;
    }

    .champs-promotion p {
        font-size: 0.9rem !important;
    }

    .btn {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }

    .photo-gallery-section {
        padding: 30px 15px !important;
    }

    .section-title {
        font-size: 24px !important;
    }

    .icon-features-grid {
        flex-direction: column;
        align-items: center;
    }

    .icon-feature-card {
        width: 100% !important;
        max-width: 350px;
    }

    .join-us-section {
        flex-direction: column;
        gap: 20px;
        padding: 25px 15px;
        margin: 20px 15px;
    }

    .sponsors-section {
        padding: 60px 15px !important;
    }

    .sponsors-header h2 {
        font-size: 1.8rem !important;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .sponsor-card {
        padding: 20px !important;
    }

    .hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 28px !important;
    }

    .hero-content p {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .champs-promotion {
        padding: 20px !important;
        margin: 15px 10px !important;
    }

    .champs-promotion h2 {
        font-size: 1.1rem !important;
    }

    .champs-promotion p {
        font-size: 0.85rem !important;
        line-height: 1.4;
    }

    .photo-gallery-section {
        padding: 20px 10px !important;
    }

    .sponsors-grid {
        grid-template-columns: 1fr !important;
    }

    .sponsor-card {
        padding: 15px !important;
    }

    .hero {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 20px !important;
    }

    .section-title {
        font-size: 20px !important;
        padding: 0 20px !important;
    }

    .fallback-menu-text {
        padding: 8px 12px 8px 40px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    .champions-directory-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 30px;
    }
    
    .champions-category,
    .featured-category {
        grid-column: span 1;
        transform: none !important;
    }
    
    .champions-title {
        font-size: 2.5rem;
    }
    
    .champions-hero {
        height: 40vh;
    }
    
    .past-champions-cta h2 {
        font-size: 2rem;
    }

    .champions-category {
        transform: none;
    }

    .featured-category {
        margin: 40px auto;
    }

    .featured-category::before {
        animation: none;
        background: linear-gradient(45deg, var(--brand-gold), #fff);
    }
}

.champions-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.champions-category-title {
    font-size: 24px;
    color: var(--brand-blue);
    margin-bottom: 15px;
}

.champions-category .champion-card {
    margin-bottom: 20px;
}

.champions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center; /* Center the grid items */
}

.champion-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin: 0 auto; /* Center the card within the grid cell */
}

.champions-grid.full-history .champion-card {
    max-width: none;
}

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

.champion-card .champion-image-wrapper {
    position: relative;
    overflow: hidden;
}

.champion-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.champion-card .year-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-gold);
    color: var(--brand-blue);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

.champion-info {
    padding: 20px;
}

.champion-info h3 {
    margin: 0 0 5px 0;
    color: var(--brand-blue);
    font-size: 20px;
}

.champion-info p {
    margin: 0;
    color: #666;
    font-size: 16px;
}


/* Coaches Page */
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.coach-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}

.coach-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.coach-card h3 {
    margin-bottom: 5px;
}

/* Players Grid for Hitting Partners */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.player-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.player-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.player-card h3 {
    margin: 10px 0 5px 0;
    font-size: 1.1em;
    color: var(--brand-blue);
}

/* Moving Racquet Animation */
#moving-racquet {
    position: absolute;
    top: 20%;
    width: 100px; /* Adjust size as needed */
    height: auto;
    animation: moveRacquet 15s linear infinite;
    z-index: 10; /* Ensure it appears on top of other content */
    pointer-events: none; /* Make it non-interactive */
}

@keyframes moveRacquet {
    0% {
        left: -100px; /* Start off-screen to the left */
        transform: rotate(0deg);
    }
    50% {
        left: 100vw; /* Move across to the right edge of the screen */
        transform: rotate(180deg);
    }
    100% {
        left: -100px; /* Return to the start */
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header and Navigation */
    .nav-top-tier {
        flex-direction: column;
        gap: 15px;
    }

    .nav-bottom-tier {
        justify-content: center;
    }

    .nav-main-menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .nav-main-menu > li > a {
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .dropdown {
        position: static;
        display: none; /* Initially hide dropdown */
        width: 100%;
        background: rgba(0,0,0,0.2);
        border-top: none;
    }

    .nav-main-menu li:hover .dropdown {
        display: none; /* Disable hover effect on mobile */
    }
    
    .nav-main-menu li.active .dropdown {
        display: block; /* Show on click */
    }

    .dropdown li a {
        text-align: center;
        padding: 10px;
        background: var(--brand-blue);
    }

    /* General Layout */
    .hero-content h1 {
        font-size: 36px;
    }

    .features-section, .join-us-section, .visitor-content {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .champions-directory-grid, .champions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .champions-category:last-child {
        grid-column: span 2;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .champions-directory-grid, .champions-grid {
        grid-template-columns: 1fr;
    }

    .champions-category:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
}

/* Modern Footer */
footer {
    background: #042E4E; /* Darker, more distinct blue */
    color: #EAEAEA;
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-logo-column .footer-logo {
    width: 150px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-logo-column p {
    font-size: 14px;
    line-height: 1.6;
    color: #a0a0a0;
}

.footer-column h4 {
    color: var(--brand-gold);
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

.footer-column ul li a {
    color: #EAEAEA;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--brand-gold);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: #EAEAEA;
    transition: fill 0.3s ease;
}

.social-icons a:hover svg {
    fill: var(--brand-gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1a4a7a;
    font-size: 14px;
    color: #a0a0a0;
}

/* Social Card Styling */
.socials-hero {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--court-blue) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.socials-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatBg 8s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.socials-hero h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.95;
}

/* Why Join Section */
.why-join-section {
    background: #f9f9f9;
    padding: 50px 20px;
    border-radius: 8px;
    margin: 40px 0;
}

.why-join-section h3 {
    text-align: center;
    color: var(--brand-blue);
    font-size: 1.8em;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--brand-gold);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.benefit-card h4 {
    color: var(--brand-blue);
    margin: 15px 0 10px 0;
}

.benefit-card p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}

/* Social Card Styling */
.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.social-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--brand-gold);
    transition: all 0.3s ease;
    position: relative;
}

.social-card.featured-card {
    border-left: 4px solid var(--brand-blue);
    background: linear-gradient(135deg, #f0f8ff 0%, white 100%);
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-gold);
    color: var(--brand-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}

.social-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.social-card h3 {
    color: var(--brand-blue);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.social-card p {
    margin: 10px 0;
    line-height: 1.6;
}

.perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 79, 64, 0.05);
    border-radius: 4px;
}

.perk {
    font-size: 0.9em;
    color: var(--tennis-green);
    font-weight: 500;
}

.social-card .btn-secondary {
    background: var(--brand-gold);
    color: var(--brand-blue);
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.social-card .btn-secondary:hover {
    background: #b8982a;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--court-blue) 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.cta-banner h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.cta-banner p {
    margin: 0;
    font-size: 1.05em;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .socials-grid {
        grid-template-columns: 1fr;
    }
    
    .socials-hero h1 {
        font-size: 1.8em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner {
        padding: 20px;
    }
    
    .cta-banner h3 {
        font-size: 1.1em;
    }
}

/* Events Page Styling */
.events-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0 60px 0;
}

.event-card-featured {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-card-featured:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.event-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card-featured:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-content {
    padding: 25px;
}

.event-card-content h3 {
    color: var(--brand-blue);
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.event-card-content p {
    margin: 10px 0;
    line-height: 1.6;
    color: #666;
}

.event-card-content .btn-primary {
    margin-top: 15px;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.event-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--court-blue) 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.event-date .month {
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 5px;
}

.event-details h3 {
    color: var(--brand-blue);
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.event-details p {
    margin: 5px 0;
    color: #666;
}

/* Featured Events Section */
.featured-events-section {
    margin: 60px 0;
    padding: 40px 0;
}

.featured-events-section h2 {
    text-align: center;
    color: var(--brand-blue);
    font-size: 2em;
    margin-bottom: 40px;
}

.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-event-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-event-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-event-card:hover .event-image {
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 74, 122, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-event-card:hover .event-overlay {
    opacity: 1;
}

.event-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.event-date-text {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.btn-primary {
    background: var(--brand-gold);
    color: var(--brand-blue);
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #cda34f;
}

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

    .event-card-featured {
        margin-bottom: 20px;
    }

    .event-card-image {
        height: 200px;
    }

    .event-card-content {
        padding: 20px;
    }

    .event-card-content h3 {
        font-size: 1.2em;
    }

    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        min-width: auto;
        justify-content: space-around;
        padding: 15px;
    }
    
    .event-date .month,
    .event-date .day {
        display: inline;
        margin-top: 0;
        margin-right: 10px;
    }
    
    .featured-events-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-events-section h2 {
        font-size: 1.5em;
    }
}

/* Heritage Day Page Styling */
.heritage-hero {
    background: linear-gradient(135deg, #005f40 0%, #0a4a7a 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.heritage-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatBg 8s ease-in-out infinite;
}

.heritage-hero .hero-content {
    position: relative;
    z-index: 2;
}

.heritage-hero h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: bold;
}

.heritage-hero .hero-subtitle {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.95;
}

.event-description {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 4px solid var(--brand-gold);
}

.event-description h2 {
    color: var(--brand-blue);
    margin-top: 0;
}

.event-description p {
    line-height: 1.8;
    color: #666;
    font-size: 1.05em;
}

.heritage-gallery-section {
    margin: 60px 0;
}

.heritage-gallery-section h2 {
    text-align: center;
    color: var(--brand-blue);
    font-size: 2em;
    margin-bottom: 10px;
}

.heritage-gallery-section > p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.heritage-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.heritage-cta {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--court-blue) 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    margin: 60px 0;
}

.heritage-cta h3 {
    font-size: 1.8em;
    margin: 0 0 15px 0;
}

.heritage-cta p {
    font-size: 1.1em;
    margin: 0 0 25px 0;
    opacity: 0.95;
}

.heritage-cta .btn-primary {
    background: var(--brand-gold);
    color: var(--brand-blue);
    padding: 12px 30px;
    font-size: 1.05em;
}

@media (max-width: 768px) {
    .heritage-hero {
        padding: 50px 20px;
    }

    .heritage-hero h1 {
        font-size: 1.8em;
    }

    .heritage-hero .hero-subtitle {
        font-size: 1em;
    }

    .event-description {
        padding: 25px;
    }

    .heritage-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .heritage-cta {
        padding: 30px 20px;
    }

    .heritage-cta h3 {
        font-size: 1.3em;
    }
}

/* Global Mobile-First Tweaks */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        height: 55vh;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin: 30px 0 20px;
        padding: 0 30px;
    }

    /* Stack feature / join-us / profile cards */
    .features-section,
    .join-us-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .visitor-content,
    .profile-grid {
        flex-direction: column;
        display: flex;
    }

    /* Socials cards */
    .socials-grid {
        grid-template-columns: 1fr;
    }

    /* Champions directory: single column on phones */
    .champions-directory-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .champions-hero {
        height: auto;
        padding: 40px 20px;
        margin-bottom: 30px;
    }

    .champions-title {
        font-size: 2.2rem;
    }

    /* Booking table: enable horizontal scroll */
    .booking-grid {
        overflow-x: auto;
    }

    .booking-table {
        min-width: 600px;
    }

    /* Masonry galleries: narrower gutters on very small screens */
    .masonry-gallery {
        column-gap: 14px;
    }

    .photo-gallery-section {
        padding: 30px 10px;
    }

    /* Footer: stack columns */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* Mobile dropdown / open states for the injected nav */
.nav-main-menu li.active > .dropdown,
.nav-main-menu li > .dropdown.open {
    display: block;
    position: static;
    background: transparent;
    padding-left: 12px;
}

.nav-main-menu li > a[aria-expanded="true"] {
    color: #fff;
}

/* Ensure dropdown items look distinct on mobile */
.nav-main-menu .dropdown li a {
    padding: 8px 10px;
    display: block;
    color: #fff;
}

/* Focus styles for accessibility */
.nav-main-menu a:focus {
    outline: 3px solid rgba(205,163,79,0.45);
    outline-offset: 2px;
}

/* Figure caption for video embeds */
.video-figure {
    margin: 0;
}
.video-figure figcaption {
    font-size: 0.95rem;
    color: #444;
    margin-top: 8px;
}

@media (min-width: 900px) {
    .nav-main-menu {
        gap: 30px;
    }
    .nav-main-menu li > .dropdown {
        position: absolute;
        left: 0;
        top: 100%;
        background: var(--brand-blue);
        border-top: 2px solid var(--brand-gold);
        display: none;
    }
    .nav-main-menu li:hover > .dropdown {
        display: block;
    }
}

/* ===== Mbombela Open Headline Showcase ===== */

.headline-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 60px 0;
    align-items: stretch;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    padding: 30px 20px 20px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
    opacity: 1;
}

.showcase-overlay h3 {
    font-size: 1.5em;
    margin: 0;
    font-weight: bold;
}

/* Prize Money Card */
.prize-money-card {
    grid-column: 1 / 3;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--tennis-green) 100%);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prize-money-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(10, 74, 122, 0.3);
}

.prize-image {
    width: 40%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.prize-content {
    flex: 1;
    color: white;
}

.prize-content h3 {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: bold;
    color: var(--brand-gold);
}

.prize-highlight {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive for tablet */
@media (max-width: 1024px) {
    .headline-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .showcase-item {
        min-height: 250px;
    }

    .prize-money-card {
        grid-column: 1 / 3;
    }
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .headline-showcase {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 40px 0;
    }

    .showcase-item,
    .prize-money-card {
        grid-column: 1 !important;
        min-height: 280px;
    }

    .prize-money-card {
        flex-direction: column;
        text-align: center;
    }

    .prize-image {
        width: 100%;
        height: 200px;
    }

    .prize-content h3 {
        font-size: 1.5em;
    }

    .prize-highlight {
        font-size: 1.05em;
    }

    .showcase-overlay h3 {
        font-size: 1.2em;
    }
}

/* ===========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   =========================================== */

/* Note: Global img styles are already set at top of file - don't override header/logo */

/* Preserve header styling on desktop */
header .logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: none;
    transform: none;
    box-shadow: none;
}

header .logo-img:hover {
    transform: none;
    box-shadow: none;
}

/* Ensure nav-utility is visible on desktop */
@media (min-width: 901px) {
    .nav-utility {
        display: flex !important;
        flex-direction: row;
        border: 1px solid var(--brand-gold);
        padding: 5px 10px;
    }
    
    .nav-utility a {
        border: none;
        padding: 0 10px;
        font-size: 12px;
    }
    
    .nav-utility a:not(:last-child) {
        border-right: 1px solid var(--brand-gold);
    }
    
    .nav-bottom-tier {
        display: flex !important;
        position: static;
    }
    
    .nav-main-menu {
        flex-direction: row;
        gap: 30px;
    }
}

/* ===== TABLET STYLES (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
        gap: 15px;
    }
    
    .gallery-item.featured {
        grid-row: span 1;
        grid-column: span 1;
    }
    
    .icon-features-grid {
        gap: 20px;
    }
    
    .icon-feature-card {
        width: 220px;
        padding: 25px;
    }
    
    .section-title {
        font-size: 26px;
        padding: 0 30px;
    }
    
    .section-title::before,
    .section-title::after {
        width: 25px;
        height: 25px;
    }
    
    .join-us-section {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ===== MOBILE STYLES (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Hide tennis ball decoration on mobile */
    body::before {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        padding: 0 15px;
    }
    
    .hero-content h1::after {
        bottom: -5px;
        height: 2px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .hero-content p::before {
        display: none;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 22px;
        padding: 0;
        margin: 25px 0;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 8px;
        padding: 8px;
    }
    
    .gallery-grid.full-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item {
        border-radius: 6px;
        overflow: hidden;
        aspect-ratio: 1 / 1;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .gallery-item .caption {
        font-size: 12px;
        padding: 10px;
    }
    
    .gallery-item .zoom-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    /* Filter Buttons */
    .gallery-filters {
        gap: 8px;
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Icon Features */
    .icon-features-section {
        padding: 40px 15px;
    }
    
    .icon-features-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .icon-feature-card {
        width: 100%;
        max-width: 300px;
        padding: 20px;
    }
    
    .icon-feature-card h3 {
        font-size: 16px;
    }
    
    .icon-wrapper svg {
        width: 40px;
        height: 40px;
    }
    
    /* Sponsors */
    .sponsors-section {
        padding: 50px 15px;
    }
    
    .sponsors-header h2 {
        font-size: 1.8rem;
    }
    
    .sponsors-header p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .sponsor-card {
        padding: 15px;
        min-height: 150px;
    }
    
    .sponsor-logo {
        width: 100px;
        height: 100px;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
        padding: 30px 15px;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .footer-logo {
        max-width: 120px;
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icons img {
        width: 35px;
        height: 35px;
    }
    
    /* Events */
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        width: 100%;
        padding: 10px;
    }
    
    .event-details {
        padding: 15px;
    }
    
    /* YouTube Grid */
    .youtube-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-card iframe {
        height: 200px;
    }
    
    /* Booking Table */
    .booking-table {
        font-size: 12px;
    }
    
    .booking-table th,
    .booking-table td {
        padding: 8px 4px;
    }
    
    .btn-book {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    /* Join Us Section */
    .join-us-section {
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .join-us-content h2 {
        font-size: 1.5rem;
    }
    
    /* Profile Grid */
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    /* Champions */
    .champions-directory-grid {
        grid-template-columns: 1fr;
    }
    
    .champions-category:nth-child(n) {
        grid-area: auto;
    }
    
    .champions-title {
        font-size: 2rem;
    }
    
    /* Committee Grid */
    .committee-grid {
        grid-template-columns: 1fr;
    }
    
    /* Membership Table */
    .membership-table {
        font-size: 12px;
    }
    
    .membership-table th,
    .membership-table td {
        padding: 8px 5px;
    }
}

/* ===== SMALL MOBILE STYLES (max-width: 480px) ===== */
@media (max-width: 480px) {
    .hero {
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-content p {
        font-size: 13px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 6px;
        padding: 6px;
    }
    
    .gallery-item {
        aspect-ratio: 1 / 1;
        min-height: 0;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .sponsors-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .sponsor-card {
        padding: 10px;
        min-height: 120px;
    }
    
    .sponsor-logo {
        width: 70px;
        height: 70px;
    }
    
    /* Booking table scroll */
    .booking-grid {
        overflow-x: auto;
    }
    
    .booking-table {
        min-width: 600px;
    }
    
    .nav-utility {
        display: none;
    }
    
    /* Footer more compact */
    .footer-container {
        padding: 20px 10px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* ===== TOURNAMENT PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .external-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .external-links .website-link {
        text-align: center;
        justify-content: center;
    }
    
    .month-header {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .event-details {
        text-align: center;
        padding: 1rem;
    }
    
    .event-title {
        font-size: 1rem;
    }
}

/* ===== LOGIN PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-section {
        padding: 20px 15px;
    }
    
    .login-form input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===== ENSURE IMAGES FIT FRAMES ===== */
.gallery-item img,
.sponsor-logo,
.footer-logo,
.logo-img,
.feature img,
.video-card img,
.profile-card img,
.social-card img,
.committee-member img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Contain mode for logos to show full image */
.sponsor-logo,
.footer-logo,
.logo-img {
    object-fit: contain;
}

/* Fix for masonry gallery on mobile */
@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 1;
    }
    
    .masonry-gallery .gallery-item img {
        width: 100%;
        height: auto;
    }
}

