:root {
    --primary-green: #0f7c59;
    --accent-orange: #ff7a00;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --luxury-gold: linear-gradient(45deg, #d4af37, #ffcc70);
}

html,
body {
    overflow-x: hidden;
}

/* ====== PREMIUM SOCCER PRELOADER ====== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#preloader .spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader .spinner {
    position: relative;
    width: 120px;
    height: 120px;
}

#preloader .spinner .ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 6px solid rgba(212, 175, 55, 0.4);
    border-top-color: var(--luxury-gold);
    border-radius: 50%;
    animation: spin 1.4s linear infinite;
    box-sizing: border-box;
}

#preloader .spinner .logo-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%) scale(0.9);
    animation: pulse 1.8s ease-in-out infinite;
}

#preloader .spinner .loader-text {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #d4af37;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInText 2s ease forwards;
    animation-delay: 0.6s;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* end preloader */

/* Animated Gradient Background */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background: linear-gradient(-45deg, #d1fae5, #ffffff, #ffe8cc, #bbf7d0);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
}

/* Animation */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Smooth Fade Page Transition */
main {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gold-text {
    background: var(--luxury-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ===============================
   PREMIUM NAVBAR / HEADER
=================================*/

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    height: auto;
}

.logo {
    position: absolute;
    left: 40px;
    top: 30px;
    transform: translateY(-50%);
    z-index: 1001;
}

.logo img {
    width: 140px;
    height: auto;
    position: absolute;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6));
    animation: floatLogo 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

header.scrolled {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: 0.3s ease;
}


header img {
    width: 70px;
}

header h1 {
    color: white;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin: 0;
}

header p {
    display: none;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    height: 80px;
    border: none;
    box-shadow: none;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Container for your links to keep them together */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 25px 100px 25px 40px;
    background: linear-gradient(to right,
            rgba(94, 107, 103, 0.95) 0%,
            rgba(131, 156, 149, 0.7) 50%,
            transparent 100%);
    border-radius: 50px 0 0 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    position: relative;
    transition: 0.3s ease;
}

/* The "Field Line" Hover Effect */
nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0%;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--luxury-gold);
}

nav a:hover::after {
    width: 100%;
}

/* Keeps the line visible for the active page */
nav a.active {
    color: var(--luxury-gold) !important;
}

nav a.active::after {
    width: 100% !important;
    background: var(--luxury-gold);
}

/* Glassmorphism Card Style */
.blog-card,
.programs {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px;
    margin: 80px auto;
    max-width: 900px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===============================
   PREMIUM HERO SECTION
=================================*/

.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;

    background:
        linear-gradient(rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)),
        url("/static/media/hero.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: white;
    padding: 0 20px;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--luxury-gold);
}

.hero h2 {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;

    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 900;
}

.hero p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 20px auto 15px;
    opacity: 0.9;
    color: #e0e0e0;
}

.hero .cta-main {
    margin-top: 30px;
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    background: var(--luxury-gold);
    color: black;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .cta-main:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 30px rgba(255, 122, 0, 0.6),
        0 15px 50px rgba(0, 0, 0, 0.4);
}

.hero-inner {
    max-width: 900px;
}

.hero-stats {
    position: absolute;
    bottom: -52px;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 50px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 25px 50px;
    border-radius: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
    color: rgb(0, 0, 0);
}

.stat h3 {
    font-size: 34px;
    margin: 0 0 5px 0;
    background: linear-gradient(45deg, #ffcc70, #ff7a00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat span {
    font-size: 14px;
    opacity: 0.85;
}

.stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.stat-link:hover {
    transform: translateY(-5px);
}

.stat-link:hover h3 {
    filter: brightness(1.2);
    /* Makes the gold text glow slightly */
}

.hero-stats .stat+.stat {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    padding-left: 30px;
}

/* Text Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 1s ease forwards;
}

/* Generic scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.club-overview {
    width: 100%;
    background: #fdf6e9;
    padding: 40px 0;
    margin-top: 0;
    box-sizing: border-box;
}

.club-overview>div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0%;
}

/* WHY CHOOSE US */
.why-section {
    max-width: 1200px;
    margin: 0px auto 0;
    padding: 0px 0 0px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 10px;
}

.why-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px 22px 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 124, 89, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card h3 {
    margin: 15px 0 10px;
    color: var(--primary-green);
    font-size: 1.3rem;
    /* Slightly larger */
    font-weight: 700;
}

.why-card p {
    font-size: 0.95rem;
    color: #374151;
    /* Darker for better contrast */
    line-height: 1.6;
}

.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 124, 89, 0.08);
    color: var(--primary-green);
    font-size: 1.2rem;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Container for the sliding images */
.slider {
    position: relative;
    width: 400px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #eee;
}

/* Base style for every slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 1s ease-in-out;
    animation: imageFade 12s linear infinite;
    /* 12 seconds total for the loop */
    /* display: block; */
}

/* Stagger the start time for each image */
.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 4s;
}

.slide:nth-child(3) {
    animation-delay: 8s;
}

/* The animation logic */
@keyframes imageFade {

    0%,
    100% {
        opacity: 0;
    }

    5%,
    33% {
        opacity: 1;
    }

    /* Visible for 1/3 of the time */
    38%,
    95% {
        opacity: 0;
    }

    /* Hidden for the rest */
}

/* Intro Row */
.intro-container {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    margin: 50px auto;
    max-width: 1200px;
    padding: 0px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.intro-image img {
    width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Sponsors */
.sponsors-section {
    padding: 30px 120px 30px;
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.sponsor-item {
    background: #ffffff;
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    color: #888;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sponsor-item:hover {
    transform: translateY(-6px);
    background: #f3faf7;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.sponsor-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.sponsor-item a {
    text-decoration: none;
    color: #888;
    display: block;
    width: 100%;
}

.sponsor-item a:hover {
    color: var(--primary-green);
    font-weight: 700;
}

.sponsor-item span {
    font-size: 0.9rem;
    display: block;
}

.sponsor-logo {
    height: 3.5rem;
    width: auto;
    display: block;
    margin: 0 auto 0px auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* 3. Show color on hover */
.sponsor-item:hover .sponsor-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* PLAYER SPOTLIGHT */
.player-spotlight {
    margin-top: 30px;
    background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.22), transparent 55%), #0b3b2b;
    color: #ecfdf5;
    padding: 30px 0;
}

.player-spotlight-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

.player-spotlight-header {
    text-align: left;
    margin-bottom: 32px;
}

.player-spotlight-header .section-title {
    color: #ffffff;
    font-size: 2.6rem;
}

.player-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.player-spotlight-card {
    background: rgba(15, 124, 89, 0.12);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.player-spotlight-image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.player-spotlight-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(11, 59, 43, 0.8), transparent);
    z-index: 1;
}

.player-spotlight-image img {
    width: 100%;
    height: 205%;
    object-fit: cover;
}

.player-spotlight-body {
    padding: 24px 24px 28px;
    position: relative;
    z-index: 2;
}

.player-spotlight-body h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.player-spotlight-pos {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a7f3d0;
    margin-bottom: 8px;
}

.player-spotlight-body p {
    font-size: 0.9rem;
    color: #d1fae5;
    margin-bottom: 14px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(236, 253, 245, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #ecfdf5;
    background: transparent;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-outline:hover {
    background: #ecfdf5;
    color: #064e3b;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.player-spotlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(236, 253, 245, 0.4);
}

/* News Cards */
.news-section {
    padding: 100px 0;
    /* background: #f6fffb; */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    /* Clips the image corners */
    border: none;
    /* Removing the left border for a cleaner media look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.news-card h4 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    /* Larger for hierarchy */
    font-weight: 700;
    color: var(--primary-green);
}

.news-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.news-media {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.news-card:hover .news-media img {
    transform: scale(1.1);
}

/* Social Grid - Centered Flex for Triangle Effect */
.social-grid {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    /* Centers the cards on the bottom row */
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 0px;
}

/* Social Card Styling - Match News Card Aesthetic */
.social-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    /* Added: global safeguard */
    box-sizing: border-box;
    /* Added: global safeguard */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    /* Match exactly the width of news grid columns (3-columns) */
    width: calc((100% - 40px) / 3);
    width: 320px;
    /* Ensures cards don't get too small on tablet */
    height: 333px;
    display: flex;
    flex-direction: column;
}

/* Force Instagram to respect container width */
.instagram-media {
    min-width: unset !important;
    width: 100% !important;
}


/* New Professional Header Style */
.social-card .card-header {
    position: absolute;
    /* Floats over the video */
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.7);
    /* Transparent white */
    backdrop-filter: blur(8px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* User Info Styling */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-orange);
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 20px rgb(250, 135, 4);
}

.media-container {
    width: 100%;
    height: 100%;
    /* Occupies full card space */
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.social-card iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    /* Use object-fit like behavior */
    object-fit: cover;
}

/* Platform Badge Styling */
.platform-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.platform-badge.instagram i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Clip Instagram Header (Removes View Profile button) */
.social-card.instagram {
    overflow: hidden;
}

.social-card.instagram iframe {
    margin-top: -56px !important;
    /* Shifting up to hide header */
    height: calc(100% + 56px) !important;
    border: none;
}


.platform-badge.facebook i {
    color: #1877F2;
}

/* Makes the news videos show a pointer cursor */
.clickable-video {
    cursor: pointer;
}

/* Fullscreen background overlay */
.video-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

/* The actual video inside the pop-up */
#modalVideoPlayer {
    width: 85%;
    max-width: 1000px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* The close button (X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 60px;
    cursor: pointer;
    line-height: 1;
}

/* Video Play Overlay Effect */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 124, 89, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 2px solid white;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    transition: 0.2s;
}

.read-more:hover {
    letter-spacing: 1px;
    color: var(--accent-orange);
}

/* Hide the actual checkbox */
.read-more-check {
    display: none;
}

/* Initial state of expanded text */
.expand-wrapper {
    max-height: 40px;
    /* Show only first line */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.extra-text {
    display: none;
    margin-top: 10px;
}

/* Button Styling */
.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    cursor: pointer;
    transition: 0.3s;
}

.text-less {
    display: none;
}

/* The MAGIC: When checked, expand and swap text */
.read-more-check:checked~.news-content .expand-wrapper {
    max-height: 1000px;
    /* Large enough to show all text */
    transition: max-height 1s ease-in-out;
}

.read-more-check:checked~.news-content .extra-text {
    display: block;
}

.read-more-check:checked~.news-content .read-more-btn .text-more {
    display: none;
}

.read-more-check:checked~.news-content .read-more-btn .text-less {
    display: inline;
    color: var(--accent-orange);
}

/* Blog */
.blog-card h3 {
    color: var(--primary-green);
}

/* TESTIMONIALS */
.testimonials-section {
    padding: 50px 0;
    background: #ffffff;
}

.testimonials-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 18px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(15, 124, 89, 0.08);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 12px;
    left: 18px;
    font-size: 2.4rem;
    color: rgba(15, 124, 89, 0.12);
}

.testimonial-quote {
    margin: 10px 0 14px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 800;
    /* Bolder */
    color: var(--primary-green);
    margin-top: 10px;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 80px;
    font-weight: 500;
}

.sub-title {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 4px;
    /* Essential for "Premium" look */
    color: var(--accent-orange);
    font-weight: 900;
    margin-bottom: 12px;
    text-align: center;
    opacity: 0.9;
}


/* FOOTER */

.footer {
    margin-top: 0px;
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff, #d1fae5);
    border-top: 3px solid var(--accent-orange);
}

.footer-top {
    text-align: center;
    margin-bottom: 50px;
}

.footer-top h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

/* Footer Email & Number Styling */
.footer-col a[href^="mailto:"],
.footer-col a[href^="tel:"],
.footer-col a[href^="index.html"] {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: block;
    margin: 5px 0;
}

.footer-col a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.newsletter {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter input {
    padding: 12px 15px;
    border-radius: 30px;
    border: 1px solid #ccc;
    width: 260px;
    outline: none;
}

.newsletter button {
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background: var(--accent-orange);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.newsletter button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    text-align: center;
}

.footer-col h3,
.footer-col h4 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-green);
    font-size: 18px;
    transition: 0.3s ease;
    text-decoration: none;
}

.socials a:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.4);
}

.logo-col img {
    border-radius: 50%;
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ===============================
   PREMIUM PARALLAX SECTION
=================================*/

.parallax-section {
    position: relative;
    width: 100%;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(135deg,
            rgba(15, 124, 89, 0.35),
            rgba(255, 122, 0, 0.30)),
        url("/static/football.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

/* Fixtures Full Width */
.fixtures-box {
    width: 100%;
    padding: 40px 0px;
    margin-bottom: 70px;

    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(35px);
    backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fixture-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 130px 10px;
}

.fixture-preview-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 14px 16px 16px;
    text-align: left;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(15, 124, 89, 0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fixture-preview-card.placeholder {
    opacity: 0.85;
}

.fixture-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.fixture-preview-teams {
    font-weight: 700;
    font-size: 0.95rem;
    color: #022c22;
}

.fixture-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: #4b5563;
    gap: 8px;
}

.fixture-preview-meta span i {
    color: var(--primary-green);
    margin-right: 4px;
    font-size: 0.7rem;
    opacity: 0.8;
}

.fixture-preview-time {
    font-weight: 600;
    color: var(--primary-green);
}

.fixture-preview-tag {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 124, 89, 0.12);
    color: #064e3b;
}

.fixture-preview-tag.done {
    background: rgba(55, 65, 81, 0.2);
    color: #111827;
}

.fixtures-view-all {
    margin-top: 26px;
}

/* Container for 8-10 items */
.fixtures-list {
    max-height: 450px;
    /* Limits height so it doesn't break the page */
    overflow-y: auto;
    padding: 10px;
    margin: 0 auto;
    max-width: 600px;
}

.fixtures-two-col {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.fixture-column {
    flex: 1;
    /* Makes columns equal width */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid var(--glass-border);
}

.fixture-column h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Scroll area for each column */
.column-scroll {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Individual Card */
.fixture-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.fixture-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.35);
}

/* Date Badge */
.fixture-date {
    background: var(--luxury-gold);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
    margin-right: 20px;
}

.fixture-info {
    text-align: left;
    flex-grow: 1;
}

/* 3. Status Badges */
.status-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    margin-left: 10px;
}

.status-badge.upcoming {
    background: var(--primary-green);
    color: white;
}

.status-badge.done {
    background: #666;
    /* Grey for finished games */
    color: white;
}

/* 4. Score Styling */
.match-score {
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Subtle color difference for types */
.match-type {
    border-left: 4px solid var(--luxury-gold);
}

.training-type {
    border-left: 4px solid var(--primary-green);
}

.fixture-date {
    min-width: 65px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #0f7c59;
}

.fixture-info h4 {
    margin: 0;
    font-size: 0.9rem;
}

.fixture-info p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

.fixture-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--primary-green);
    color: white;
}

/* Scrollbar Styling */
.fixtures-list::-webkit-scrollbar {
    width: 6px;
}

.fixtures-list::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 10px;
}

.sliding-wrapper {
    display: flex;
    width: 200%;
    /* Two views side-by-side */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure each section takes up exactly the full width of the container */
#main-parallax-view,
#fixtures-data-view {
    width: 50%;
    flex-shrink: 0;
    padding: 0 4px;
    box-sizing: border-box;
}

/* Class to trigger the slide */
.show-fixtures {
    transform: translateX(-50%);
}

.fixtures-box h2 {
    margin-top: -5px;
    font-size: 3.2rem;
    /* Increased size */
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.cta-button {
    padding: 14px 40px;
    border-radius: 50px;
    background: white;
    color: var(--primary-green);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 30px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 25px rgba(255, 122, 0, 0.35),
        0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Premium Value Cards */
.values-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.value-card {
    color: white;
    position: relative;
    padding: 20px 30px;
    border-radius: 18px;

    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(255, 255, 255, 0.15);

    transition: all 0.35s ease;
}

.value-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 0 25px rgba(255, 122, 0, 0.35),
        0 15px 40px rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 122, 0, 0.6);
}

.value-card h3 {
    position: relative;
    font-size: 22px;
    margin-bottom: 18px;
    display: inline-block;
}

.value-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background: #ff7a00;
    transition: width 0.3s ease;
}

.value-card:hover h3::after {
    width: 100%;
}

.value-card p {
    line-height: 1.6;
}

/*
OTHERPAGES HERO
*/

/* players/coaches grid improvements for all sizes */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.player-group .staff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-card {
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.player-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.player-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
}

.jersey-number {
    font-size: 2.2rem;
}

/* 1. Make the hero smaller for sub-pages */
.small-hero {
    height: 70vh;
    /* Slightly taller for better drama */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-hero .hero-inner {
    text-align: center;
}

/* Add this to style the "The 2026 Squad" text */
.small-hero p {
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 10px;
    opacity: 1;
}

.small-hero h2 {
    font-size: 5.5rem;
    /* Massive impact */
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* About Page Specific Hero Background */
.about-hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("/static/media/hero.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Better for mobile-friendly parallax effect on sub-pages */
}

.sub-title {
    display: block;
    text-transform: uppercase;
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* 2. Container for About Content */
.about-section {
    max-width: 1100px;
    margin: -100px auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.about-section>div,
.about-section>section {
    margin-bottom: 30px;
    /* Increased spacing between sections */
}

/* ===========================
   ABOUT PAGE PARALLAX HEIGHT
=========================== */

/* Smaller default height (About only) */
.about-parallax {
    min-height: 260px;
    transition: min-height 0.5s ease;
}

/* When fixtures are shown, expand height */
.about-parallax:has(.show-fixtures) {
    min-height: 600px;
}

/* 3. The Mission Card */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    padding: 40px 60px;
    margin-bottom: 60px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.07);
}

.section-title {
    color: var(--primary-green);
    font-size: 3.8rem;
    /* Slightly increased */
    font-weight: 800;
    /* Stronger hierarchy */
    margin-bottom: 25px;
    margin-top: 10px;
    letter-spacing: -1.5px;
}

/* Gold underline for player position categories */
.player-group .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 35px;
}

.player-group .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 80px;
    height: 4px;
    background: var(--luxury-gold);
    border-radius: 999px;
}


/* 4. The Grid for Founded/Location */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.info-box i {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.info-box h3 {
    margin: 10px 0;
    color: var(--primary-green);
}

/* Approach Section */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.approach-item {
    overflow: hidden;
    border-radius: 20px;
    background: white;
    padding-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.approach-item img {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}

.approach-item:hover img {
    transform: scale(1.1);
}

.approach-item p {
    margin-top: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-green);
    letter-spacing: 0.3px;
    padding: 0 10px;
}

/* Staff Section */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 0px;
}

.staff-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 350px;
}

.staff-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    text-align: justify;
}

.staff-info h4 {
    margin: 8px 0px;
}

.staff-socials a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.staff-socials a:hover {
    color: var(--accent-orange);
}

/* Captain Ribbon */
.captain-ribbon,
.captain-ribbon-spotlight {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000;
    width: 37px;
    height: 23px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    z-index: 5;
}

@keyframes float-ribbon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.staff-card.is-captain {
    border: 2px solid var(--luxury-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}


.player-spotlight-image {
    position: relative;
}

/* About Page Enhancements */
.side-by-side {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    text-align: left;
}

.side-by-side.reverse {
    flex-direction: row-reverse;
}

.side-by-side .content-side {
    flex: 1;
}

.side-by-side .image-side {
    flex: 1.1;
    /* Give image a bit more weight */
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    aspect-ratio: 4/3;
}

.side-by-side .image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.side-by-side:hover .image-side img {
    transform: scale(1.05);
}

/* Timeline */
.timeline-section {
    /* padding: 80px 0; */
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--luxury-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--accent-orange);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 0px 35px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.timeline-content h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* Gallery */
/* .gallery-section {
    padding: 80px 0;
} */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 40px;
}

.gallery-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 166, 81, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}


/* PLAYERS PAGE */

/* The floating jersey number */
.jersey-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    z-index: 2;
    font-style: italic;
    transition: 0.3s ease;
}

.player-card:hover .jersey-number {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.player-pos {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b5f5e1;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Text spacing for the mission-style text */
.mission-text {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: #444;
    font-weight: 500;
}

/* Full-view player photo modal */
.player-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.player-modal-overlay.active {
    display: flex;
}

.player-modal-content {
    max-width: 1000px;
    width: 100%;
}

.player-modal-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.player-modal-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.player-modal-jersey {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2.4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

.player-modal-name {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.player-modal-close {
    position: absolute;
    top: 18px;
    right: 28px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 5;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
}

.player-modal-close:hover {
    color: var(--accent-orange);
}

.player-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.player-modal-nav.prev {
    left: 10px;
}

.player-modal-nav.next {
    right: 10px;
}

.player-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-orange);
}

p {
    margin-right: 15px;
}

/* ==================
   MOBILE / RESPONSIVE
   ================== */

/* hamburger icon for mobile */
.hamburger {
    display: none;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    right: 50px;
    top: 35px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .header {
        padding: 20px;
    }

    .hero h2 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-stats {
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 95%;
        max-width: 500px;
        padding: 15px 10px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.15);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        gap: 10px;
    }

    .hero-stats div h3 {
        font-size: 18px;
    }

    .hero-stats div span {
        font-size: 10px;
    }

    /* Grids stack earlier to avoid squeezing */
    .why-grid,
    .player-spotlight-grid,
    .news-grid,
    .testimonials-grid {
        /* grid-template-columns: 1fr; */
        gap: 15px;
    }

    .fixture-preview-grid {
        gap: 20px;
        margin-left: 17px;
        width: 90%;
    }

    .intro-container {
        flex-direction: column;
        padding: 40px 20px;
        margin: 40px auto;
        text-align: center;
        max-width: 90%;
    }
}

@media (max-width: 900px) {
    .hero {
        background-attachment: scroll;
    }

    .parallax-section {
        background-attachment: scroll;
    }

    .slider {
        width: 98%;
        height: 200px;
    }

    .intro-container {
        padding: 30px 7px;
        margin: 20px auto;
        gap: 20px;
    }

    .intro-image img {
        width: 100%;
    }

    header {
        padding: 20px;
        justify-content: space-between;
    }

    .logo {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
    }

    .logo img {
        width: 110px;
        margin-top: -32px;
        margin-left: -12px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        background: rgba(0, 0, 0, 0.85);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 20px;
        border-radius: 10px;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .nav-links.open {
        transform: scaleY(1);
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .captain-ribbon-spotlight {
        width: 37px;
        height: 20px;
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
    }

    .hero {
        height: 60vh;
    }

    .hero h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-stats {
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 95%;
        max-width: 500px;
        padding: 15px 10px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.15);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        gap: 10px;
    }

    .hero-stats div h3 {
        font-size: 18px;
    }

    .hero-stats div span {
        font-size: 10px;
    }

    .hero p {
        max-width: 90%;
    }

    /* overview/intros */
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .intro-image {
        order: -1;
    }

    .intro-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .fixtures-two-col {
        flex-direction: column;
    }

    .fixtures-box {
        margin-bottom: 30px;
    }

    .values-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-top {
        text-align: center;
        padding: 30px 20px;
        margin-bottom: 0px;
    }

    .newsletter {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .newsletter input,
    .newsletter button {
        width: 100%;
    }

    .social-grid {
        display: grid;
        /* Added to support grid properties */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .social-card .card-header {
        padding: 6px 10px;
    }

    .social-card .username {
        font-size: 10px;
        font-weight: 700;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .social-card .view-profile-btn {
        font-size: 9px;
        padding: 4px 8px;
        border-radius: 4px;
    }

    .social-section {
        margin: 20px 0;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 columns */
        gap: 8px;
        /* Tighter gap for narrow screens */
        padding: 0 5px;
    }

    .social-card {
        width: 100%;
        padding: 4px;
        border-radius: 12px;
        height: 216px;
        background: #fff;
    }

    .platform-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
        bottom: 8px !important;
        right: 8px !important;
    }

    .social-card iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        border-radius: 8px;
    }

    /* Keep header hidden on mobile */
    .social-card.instagram iframe {
        margin-top: -56px !important;
        height: calc(100% + 56px) !important;
    }

    /* Footer: Stack the columns */
    .footer {
        padding: 0px 20px 20px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0px;
    }

    .club-overview {
        padding: 60px 10px;
    }

    .sponsors-section {
        padding: 0px 20px 30px;
    }

    .logo-col {
        display: none;
    }

    .staff-card,
    .player-card {
        height: 220px;
    }

    .glass-card {
        margin-bottom: 20px;
        padding: 26px 16px;
    }

    #main-parallax-view {
        padding: 0 8px;
    }

    .parallax-content {
        padding: 30px 0;
    }

    .side-by-side {
        flex-direction: column !important;
        gap: 30px;
        text-align: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item::after {
        left: 21px;
    }

    .left,
    .right {
        left: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-card {
        padding: 10px 22px 10px;
    }

    .why-grid,
    .player-spotlight-grid,
    .news-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    p {
        margin-right: 1px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    .sponsors-grid {
        gap: 12px;
    }

    .newsletter input {
        width: 160px;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        /* Stack stats in one column */
    }

    .newsletter {
        flex-direction: column;
    }

    .newsletter input {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .jersey-number {
        font-size: 1.8rem;
    }

    .staff-info {
        text-align: justify;
        margin-left: -13px;
        margin-bottom: -13px;
    }

    h4 {
        margin: 10px 0px;
    }

    .player-group .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ultra small phones like S8 (~360px) */
@media (max-width: 360px) {
    header {
        padding: 12px;
    }

    .hamburger {
        right: 30px;
        top: 28px;
    }

    .logo img {
        width: 100px;
    }

    .hero {
        height: 45vh;
    }

    .hero h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero .cta-main {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 8px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .hero-stats .stat h3 {
        font-size: 20px;
    }

    .intro-container {
        padding: 15px;
    }

    .intro-image img {
        max-width: 100%;
    }

    .sponsors-grid {
        gap: 10px;
    }

    .sponsor-item {
        padding: 15px;
    }

    .sponsor-item span {
        font-size: 0.85rem;
    }

    .news-card h4 {
        font-size: 0.95rem;
    }

    .news-card p {
        font-size: 0.75rem;
    }

    .fixtures-box {
        padding: 25px 0;
    }

    .fixtures-two-col {
        gap: 10px;
    }

    .value-card {
        padding: 25px 15px;
    }

    .newsletter {
        flex-direction: column;
    }

    .newsletter input {
        width: 100%;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .newsletter button {
        width: 100%;
        font-size: 0.9rem;
    }

    .staff-grid {
        gap: 15px;
    }

    .player-card {
        min-height: 320px;
    }

    .logo img {
        width: 80px;
        margin-top: -42px;
        margin-left: -3px;
    }
}

/* extra tiny devices (~320px width) */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }

    header {
        padding: 10px;
    }

    .logo img {
        width: 90px;
    }

    .hero {
        height: 40vh;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.8rem;
    }

    .hero .cta-main {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .hero-stats {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .hero-stats .stat h3 {
        font-size: 18px;
    }

    .intro-container {
        padding: 10px;
    }

    .intro-text p {
        font-size: 0.85rem;
    }

    .news-card h4 {
        font-size: 0.85rem;
    }

    .news-card p {
        font-size: 0.7rem;
    }

    .value-card {
        padding: 20px 10px;
    }

    .newsletter input {
        width: 100%;
        margin-bottom: 10px;
    }

    .newsletter button {
        font-size: 0.8rem;
    }

    .player-card {
        min-height: 300px;
    }
}