/*
Theme Name: TPFA Theme
Author: Ante Cerkez
Description: A custom theme for The Plavsic Football Agency.
Version: 1.0
*/

/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #080808;
    --text-color: #f0f0f0;
    --accent-color: #333333;
    --brand-font: 'Oswald', sans-serif;
    --body-font: 'Inter', sans-serif;
    --easing: cubic-bezier(0.77, 0, 0.175, 1);
}

html {
    scrollbar-width: none;
}

/* Firefox */
body {
    -ms-overflow-style: none;
}

/* IE and Edge */
body::-webkit-scrollbar,
body::-webkit-scrollbar-button {
    display: none;
}

/* Chrome */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.nav-links li {
    list-style: none;
    /* This removes the bullet point */
    margin: 0;
    padding: 0;
}

/* This ensures the <li> tags act as flex items correctly */
.nav-links ul {
    display: contents;
    /* Makes the <ul> wrapper invisible to flexbox */
}

.nav-links>.menu-item {
    display: inline-block;
    /* Treat each menu item as an inline block */
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    font-family: var(--brand-font);
    text-transform: uppercase;
    font-weight: 700;
}

.hero-text {
    font-size: 9vw;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: var(--brand-font);
}

.outline-text {
    -webkit-text-stroke: 2px #3a86ff;
    color: transparent;
    transition: all 0.5s ease;
    padding-inline: 3px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    display: inline-block;
    line-height: 1;
}

/* --- UTILITIES FOR ANIMATION --- */
.reveal-container {
    overflow: hidden;
    display: block;
}

.reveal-container.d {
    display: flex;
    gap: .5rem;
    flex-direction: column;
}

.reveal-text {
    opacity: 0;
    display: block;
    transform: translateY(200%);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    /* Adjusted slightly for a tighter bar */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;

    /* GLASS EFFECT SETTINGS */
    background-color: rgba(8, 8, 8, 0.65);
    /* Dark semi-transparent background */
    backdrop-filter: blur(5px);
    /* The Blur effect */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
    border-bottom: 2px solid #5cb4e2;
    /* Subtle glass edge */

    transition: padding 0.3s ease, background-color 0.3s ease;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

.logo {
    font-family: var(--brand-font);
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: #fff;
    /* Ensure white text since we removed mix-blend-mode */
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    /* Slightly muted white for elegance */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #5cb4e2;
    transition: width 0.3s ease;
}

/* Combined Hover AND Active state */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- LAYOUTS --- */
main {
    padding-top: 0;
    min-height: 100vh;
}

.hero {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.hero-sub {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #888;
}

/* Athletes Grid */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.athlete-card {
    background-color: #111;
    border: 1px solid #222;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.athlete-card:hover {
    transform: translateY(-10px);
    border-color: #444;
}

.card-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.athlete-card:hover .card-image {
    filter: grayscale(0%);
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: #888;
    font-size: 0.9rem;
}

/* Contact Page */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80vh;
}

.contact-row {
    font-size: 4vw;
    font-family: var(--brand-font);
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
}

.contact-row:hover {
    padding-left: 2rem;
    background-color: #0f0f0f;
}

/* --- ANIMATION LAYERS --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.loader-logo {
    font-family: var(--brand-font);
    font-size: 5rem;
    color: #fff;
    opacity: 0;
}

.loader-logo>img {
    filter: brightness(0) invert(1);
}


/* Ball animation styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader svg {
    height: 300px;
    display: block;
    margin: 0 auto;
}

.loader path {
    animation-duration: 1s;
    animation-name: pulse;
    animation-iteration-count: infinite;
    fill: #3a86ff;
    /* Changed color to match the SVG paths */
}

.loader .path-7 {
    animation-delay: -1s
}

.loader .path-6 {
    animation-delay: -.875s
}

.loader .path-5 {
    animation-delay: -.75s
}

.loader .path-4 {
    animation-delay: -.625s
}

.loader .path-3 {
    animation-delay: -.5s
}

.loader .path-2 {
    animation-delay: -.375s
}

.loader .path-1 {
    animation-delay: -.25s
}

.loader .path-0 {
    animation-delay: -.125s
}

@keyframes pulse {
    0% {
        opacity: .1;
    }

    30% {
        opacity: .8;
    }

    100% {
        opacity: .1;
    }
}

.transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 9000;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 20vw !important;
    }

    .contact-row {
        font-size: 2rem;
    }

    /* Nav hiding logic moved to bottom media query */
}

/* --- LENIS SMOOTH SCROLL REQUIRED STYLES --- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --- CONTACT PAGE STYLES --- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* Info Column */
.info-group {
    margin-bottom: 3rem;
}

.info-group .label {
    font-family: var(--brand-font);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.info-group p,
.info-group a {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #fff;
    display: block;
    transition: color 0.3s ease;
}

.hover-link:hover {
    color: #888;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

/* Minimal Form Styling */
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
    padding-top: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    font-family: var(--body-font);
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-group textarea {
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 25px;
    left: 0;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* Floating Label Logic */
.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #fff;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: 0;
    font-size: 0.8rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Submit Button */
.submit-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 3rem;
    font-family: var(--brand-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #fff;
    color: #000;
}

/* Responsive Contact */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text {
        font-size: 20vw;
    }
}

/* --- HOME: ABOUT SECTION --- */
.about-us {
    padding-bottom: 10rem;
    position: relative;
    z-index: 10;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Left title smaller, right text wider */
    gap: 4rem;
    align-items: start;
}

/* Sub-headline (Birthplace of Greatness) */
.about-tagline {
    font-family: var(--brand-font);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #fff;
}

/* Body Text */
.about-body {
    font-family: var(--body-font);
    font-size: 1.15rem;
    line-height: 1.6;
    color: #999;
    max-width: 600px;
}

.highlight {
    color: #fff;
    font-weight: 600;
}

/* Pill Button Style (used in Hero) */
.btn-pill {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-pill:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
}

/* Arrow Link Style */
.link-arrow {
    font-family: var(--brand-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 20px;
    color: #ccc;
}

/* Responsive adjustments for About Section */
@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 3rem;
    }

    .about-tagline {
        font-size: 2rem;
    }

    .about-us {
        padding-bottom: 6rem;
    }
}

/* --- WHY CHOOSE SECTION --- */
.why-choose {
    background-color: #121212;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Updated Grid Layout */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 4rem;
    align-items: flex-start;
    /* Align items to the top */
}

/* Column 1: Typography */
.blue-sub {
    color: #5cb4e2;
    font-family: var(--body-font);
    font-weight: 600;
    text-transform: none;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.why-desc {
    color: #999;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Column 2: Details Column (Image + New Text) */
.why-details-col {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* Space between image and the new text block */
}

/* Image & Badge Styling (remains the same) */
.why-image-wrapper {
    position: relative;
    padding-bottom: 2rem;
}

.main-feature-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.9);
}

.history-badge {
    position: absolute;
    bottom: 0;
    right: 10%;
    background-color: #5cb4e2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.history-year {
    font-family: var(--brand-font);
    font-size: 4rem;
    color: #fff;
    line-height: 1;
    font-weight: 700;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.history-label {
    font-family: var(--body-font);
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    margin-top: 0.5rem;
}

/* --- NEW: Partner With Us Section Styling --- */
.why-partner {
    color: #ccc;
}

.partner-title {
    font-family: var(--brand-font);
    font-size: 2.5rem;
    /* Prominent title */
    color: #fff;
    margin-bottom: 1rem;
    border-left: 3px solid #5cb4e2;
    padding-left: 1.5rem;
}

.partner-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #999;
    margin-bottom: 2rem;
    padding-left: 1.7rem;
    /* Align with title */
}

.partner-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 1.7rem;
    /* Align with title */
}

.partner-list li strong {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.partner-list li p {
    color: #999;
    line-height: 1.5;
    margin: 0;
}


/* Responsive */
@media (max-width: 1100px) {
    .why-grid {
        grid-template-columns: 1fr;
        /* Stack columns on smaller screens */
        gap: 3rem;
    }

    .why-image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .history-badge {
        right: -10px;
        bottom: -20px;
    }

    /* Remove the old responsive styles for stats */
}

/* --- MAP STYLING --- */
.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
    border: 1px solid #333;
    /* Matches your other border styles */
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    /* Optional: Grayscale filter to blend better with dark theme */
    filter: grayscale(100%) invert(92%) contrast(83%);
    transition: filter 0.5s ease;
}

/* On hover, show the map in full color */
.map-wrapper:hover iframe {
    filter: grayscale(0%) invert(0%);
}

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #050505;
    border-top: 1px solid #1a1a1a;
    /* padding: 6rem 0 4rem 0; */
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* Big Logo Styling */
.footer-brand {
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

.footer-logo {
    user-select: none;
}

.footer-logo>img {
    filter: brightness(0) invert(1);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.col-title {
    font-family: var(--brand-font);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 1.5rem;
}

.footer-col address {
    font-style: normal;
    color: #888;
    line-height: 1.6;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #888;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .footer-logo {
        font-size: 25vw;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack all columns on mobile */
        gap: 3rem;
    }

    .site-footer {
        padding-top: 0rem;
    }
}

/* --- FOOTER BOTTOM BAR --- */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    /* This acts as your <hr> */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    color: #444;
    font-size: 0.85rem;
    font-family: var(--body-font);
    letter-spacing: 0.5px;
}

.back-to-top {
    color: #444;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--brand-font);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #fff;
}

/* Mobile adjustment for bottom bar */
@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 3rem;
    }
}

/* --- MOBILE MENU STYLES (Fixed & Consolidated) --- */

/* 1. Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    /* Ensure button is ALWAYS on top of everything */
    position: relative;
    z-index: 10001;
}

.menu-toggle .bar {
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    display: block;
}

/* 2. Full Screen Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 999;
    /* High Z-Index, but below the Toggle Button */

    /* We use visibility:hidden in CSS, JS turns it visible */
    visibility: hidden;

    /* The Circle Animation Start Point */
    clip-path: circle(0% at calc(100% - 3rem) 3rem);
    -webkit-clip-path: circle(0% at calc(100% - 3rem) 3rem);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. The Links Container */
.mobile-menu-container {
    text-align: center;
    padding: 2rem;
    width: 100%;
    /* Ensure content is above the overlay background */
    z-index: 10000;
}

.mobile-links-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.mobile-link {
    font-family: var(--brand-font);
    font-size: 3rem;
    text-transform: uppercase;
    color: #ffffff !important;
    /* FORCE WHITE */
    text-decoration: none;

    /* Animation Initial State */
    opacity: 0;
    transform: translateY(30px);
}

.mobile-link.active {
    text-decoration: underline;
    text-underline-offset: 10px;
    color: #888 !important;
    /* Distinct color for active page */
}

.mobile-footer {
    margin-top: 4rem;
    color: #555;
    font-family: var(--body-font);
    font-size: 0.9rem;
    opacity: 0;
}

/* 4. New Modal Close Button Style (Optional backup) */
.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--brand-font);
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: block;
}

/* --- RESPONSIVE TRIGGERS --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* --- GALLERY GRID STYLES --- */
.gallery-intro {
    margin-bottom: 6rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #1a1a1a;
}

.gallery-subtitle {
    font-family: var(--brand-font, sans-serif);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-desc {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

/* Make every 3rd item span full width */
.gallery-item:nth-child(3n) {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #111;
    cursor: pointer;
    /* Indicates clickable */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.5s ease;
    filter: grayscale(100%) brightness(0.8);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

/* --- LIGHTBOX (FULLSCREEN) STYLES --- */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    font-family: var(--brand-font, sans-serif);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* Controls */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 10000;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #bbb;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(3n) {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px;
        font-size: 24px;
    }
}

/* --- TEAM SECTION STYLES --- */
.team-section {
    padding: 8rem 0;
    background-color: #050505;
    /* Matches footer/dark theme */
    border-top: 1px solid #1a1a1a;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.team-card {
    position: relative;
    group: both;
}

/* Image Container */
.member-image-box {
    width: 100%;
    aspect-ratio: 3/4;
    /* Portrait ratio */
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #1a1a1a;
    position: relative;
}

.member-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.team-card:hover .member-image-box img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Typography */
.member-name {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.member-role {
    color: #888;
    font-family: var(--brand-font, sans-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.member-email {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.member-email:hover {
    border-color: #fff;
}

/* License Badge */
.license-badge {
    background-color: #0056b3;
    /* Matches the blue in your image */
    color: #fff;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .member-image-box {
        aspect-ratio: 4/5;
        /* Slightly shorter on mobile */
    }
}

/* --- FIFA LICENSE SECTION --- */
.license-section {
    padding: 8rem 0;
    background-color: #000;
    /* Pitch black background as per image */
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
    /* Vertically align content */
}

.license-text .eyebrow {
    color: #3a86ff;
    /* A vibrant blue */
    font-family: var(--brand-font, sans-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.license-text h2 {
    color: #fff;
    font-size: 2.5rem;
    /* Large, authoritative text */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.license-text p {
    color: #ccc;
    /* Slightly brighter than standard text for emphasis */
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 500px;
}

.license-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.license-image img {
    max-width: 400px;
    /* Control max size */
    width: 100%;
    border-radius: 8px;
    /* Optional: adds slightly rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .license-grid {
        grid-template-columns: 1fr;
        /* Stack columns on tablets/mobile */
        gap: 3rem;
        text-align: center;
    }

    .license-text p {
        margin: 0 auto;
        /* Center the paragraph text */
    }

    .license-image {
        order: -1;
        /* Move the image to the top on mobile */
    }
}

/* --- PROGRAM SECTION STYLES --- */
.program-section {
    padding: 8rem 0;
    background-color: #0c0c0c;
    /* A very dark grey, near black */
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.program-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Left column is wider */
    gap: 5rem;
    align-items: start;
    /* Align items to the top */
}

/* Right Column (Sticky) */
.program-intro {
    position: sticky;
    top: 120px;
    /* Adjust as needed based on your header height */
    height: fit-content;
}

.program-intro .eyebrow {
    color: #3a86ff;
    /* Your theme blue */
    font-family: var(--brand-font, sans-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.program-intro h2 {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.program-intro p {
    color: #888;
    line-height: 1.7;
}

/* Left Column (Accordion) */
.accordion-item {
    background-color: transparent;
    border: 1px solid #1a1a1a;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: background-color 0.4s ease;
}

.accordion-item.active {
    background-color: #111;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.accordion-header h3 {
    color: #3a86ff;
    font-size: 1.5rem;
    font-weight: 500;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.4s ease;
}

/* Creating the '+' with pseudo-elements */
.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #3a86ff;
    transition: transform 0.4s ease;
}

.accordion-icon::before {
    /* Horizontal bar */
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

.accordion-icon::after {
    /* Vertical bar */
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    margin-left: -1px;
}

/* Animate icon to 'x' on active */
.accordion-item.active .accordion-icon {
    transform: rotate(135deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding-top 0.5s ease-out;
}

.accordion-content p {
    color: #888;
    line-height: 1.7;
    font-size: 1rem;
}

.accordion-item.active .accordion-content {
    padding-top: 1.5rem;
    /* Space between title and text */
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .program-layout {
        grid-template-columns: 1fr;
        /* Stack columns */
        gap: 4rem;
    }

    .program-intro {
        position: static;
        /* Unstick the right column */
        top: auto;
        text-align: center;
        order: -1;
        /* This moves the intro block to the top */
    }

    .program-intro h2 {
        font-size: 2.2rem;
    }

    .accordion-header h3 {
        font-size: 1.2rem;
    }
}


/* ABOUT US */

.about-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
}

.mission-section {
    padding: 6rem 2rem;
    text-align: center;
}

.mission-quote {
    font-family: var(--brand-font);
    font-size: 2.5rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.values-section {
    background-color: #0c0c0c;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.value-card {
    background-color: #111;
    padding: 2.5rem 2rem;
    border: 1px solid #1a1a1a;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: #3a86ff;
}

.value-card h3 {
    font-size: 1.5rem;
    color: #3a86ff;
    margin-bottom: 1rem;
}

.value-card p {
    color: #999;
    line-height: 1.6;
}

.approach-section {
    padding: 8rem 0;
}

.approach-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.approach-list li {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.approach-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #3a86ff;
}

.final-tagline {
    padding: 8rem 2rem;
    background-color: #000;
    text-align: center;
}

.final-tagline h2 {
    font-size: 4vw;
    color: #fff;
    font-family: var(--brand-font);
}

@media (max-width: 900px) {
    .approach-layout {
        grid-template-columns: 1fr;
    }

    .final-tagline h2 {
        font-size: 6vw;
    }
}

/* Services  */

.services-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
}

.service-section {
    padding: 6rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.service-section:last-of-type {
    border-bottom: none;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.service-title h2 {
    font-size: 2.5rem;
    position: sticky;
    top: 120px;
    /* Adjust based on nav height */
    line-height: 1.2;
}

.service-description .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-description .feature-item {
    margin-bottom: 2.5rem;
}

.service-description .feature-item:last-child {
    margin-bottom: 0;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #999;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
}

.cta-section {
    background-color: #121212;
    padding: 8rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    font-family: var(--brand-font);
    color: #fff;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-title h2 {
        position: static;
        font-size: 2rem;
        margin-bottom: 3rem;
        border-bottom: 1px solid #222;
        padding-bottom: 1rem;
    }

    .feature-item h3 {
        font-size: 1.3rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .service-section {
        border-bottom: none;
    }
}

/* Parents */
.parents-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
}

.parents-intro-p {
    color: #999;
    max-width: 800px;
    margin: 1rem auto 0;
    font-size: 1.2rem;
    line-height: 1.7;
}

.parents-section {
    padding: 6rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.parents-section:last-of-type {
    border-bottom: none;
}

.parents-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.parents-title h2 {
    font-size: 2.5rem;
    position: sticky;
    top: 120px;
    /* Adjust based on nav height */
    line-height: 1.2;
}

.parents-description .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parents-description .feature-item {
    margin-bottom: 2.5rem;
}

.parents-description .feature-item:last-child {
    margin-bottom: 0;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #999;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
}

.cta-section {
    background-color: #000;
    padding: 8rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    font-family: var(--brand-font);
    color: #fff;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .parents-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .parents-title h2 {
        position: static;
        font-size: 2rem;
        margin-bottom: 3rem;
        border-bottom: 1px solid #222;
        padding-bottom: 1rem;
    }

    .feature-item h3 {
        font-size: 1.3rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }
}

/* Testimonial */

/* --- TESTIMONIALS PAGE STYLES --- */
.testimonials-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
}

.testimonials-intro-p {
    color: #999;
    max-width: 800px;
    margin: 1rem auto 0;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* --- FEATURED TESTIMONIAL --- */
.featured-testimonial-section {
    padding: 6rem 0;
    background-color: #0c0c0c;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.featured-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.featured-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(50%);
}

.featured-quote h2 {
    font-family: var(--brand-font);
    font-size: 2.5rem;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 2rem;
}

.featured-quote .author-name {
    font-family: var(--brand-font);
    font-size: 1.2rem;
    color: #fff;
    display: block;
}

.featured-quote .author-role {
    color: #888;
    font-size: 1rem;
}

/* --- ASYMMETRICAL TESTIMONIAL GRID --- */
.testimonials-grid-section {
    padding: 8rem 0;
}

.testimonial-grid {
    --col-count: 3;
    --gap: 2rem;
    display: grid;
    grid-template-columns: repeat(var(--col-count), 1fr);
    gap: var(--gap);
}

.testimonial-card {
    background-color: #111;
    border: 1px solid #1a1a1a;
    padding: 2.5rem;
    break-inside: avoid;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: #5cb4e2;
}

/* Staggered Layout Logic */
.testimonial-card:nth-child(3n+2) {
    margin-top: 3rem;
}

.testimonial-card:nth-child(3n+3) {
    margin-top: 6rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details .name {
    font-weight: 600;
    color: #fff;
}

.author-details .role {
    font-size: 0.9rem;
    color: #888;
}

/* --- SCROLLING MARQUEE --- */
.marquee-section {
    padding: 4rem 0;
    background-color: #050505;
    border-top: 1px solid #1a1a1a;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 45s linear infinite;
}

.marquee-item {
    display: inline-block;
    font-family: var(--brand-font);
    font-size: 1.5rem;
    color: #444;
    padding: 0 3rem;
    text-transform: uppercase;
}

.marquee-item span {
    color: #888;
    margin-right: 1rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .testimonial-grid {
        --col-count: 2;
    }

    /* Reset staggering for 2 columns */
    .testimonial-card:nth-child(3n+2),
    .testimonial-card:nth-child(3n+3) {
        margin-top: 0;
    }

    .testimonial-card:nth-child(2n+2) {
        margin-top: 4rem;
    }

    .featured-testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .testimonial-grid {
        --col-count: 1;
        gap: 0;
    }

    /* Reset all margins and add gap via row-gap */
    .testimonial-card:nth-child(n) {
        margin-top: 0;
    }

    .testimonial-grid {
        row-gap: 2rem;
    }
}




/* HOMEPAGE */
/* --- [NEW] COMMITMENT SECTION --- */
.commitment-section {
    background-color: var(--bg-color);
    text-align: center;
}

.commitment-headline {
    font-family: var(--brand-font);
    font-size: 2.8rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.commitment-subheadline {
    font-size: 1.2rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

/* --- [NEW] WHY US SECTION --- */
.why-us-section {
    background-color: #0c0c0c;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: #888;
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: #111;
    border: 1px solid #222;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: #3a86ff;
}

.benefit-title {
    font-family: var(--brand-font);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.benefit-description {
    color: #999;
    line-height: 1.6;
}

/* --- [NEW] ABOUT PREVIEW SECTION --- */
.about-preview {
    background-color: var(--bg-color);
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-preview-content .eyebrow {
    color: #3a86ff;
    font-family: var(--brand-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-preview-content h2 {
    font-family: var(--brand-font);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-preview-content p {
    color: #999;
    line-height: 1.7;
    max-width: 500px;
}

.about-preview-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    filter: grayscale(20%);
}


/* --- [NEW] PLAYER SERVICES SECTION --- */
.player-services {
    background-color: #050505;
    border-top: 1px solid #1a1a1a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background-color: #0c0c0c;
    border: 1px solid #1a1a1a;
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: #111;
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem auto;
    color: #3a86ff;
}

.service-name {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

/* --- [NEW] TESTIMONIAL PREVIEW --- */
.testimonial-preview {
    background-color: #121212;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.testimonial-content blockquote {
    font-family: var(--brand-font);
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    border: none;
    padding: 0;
}

.testimonial-content cite {
    font-style: normal;
}

.testimonial-content .author-name {
    font-family: var(--brand-font);
    font-size: 1.1rem;
    color: #fff;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-content .author-role {
    color: #888;
    font-size: 0.9rem;
}


/* --- [NEW] CTA SECTION --- */
.cta-section {
    background-color: #000;
    text-align: center;
    padding: 6rem 2rem;
    border-top: 1px solid #1a1a1a;
}

.cta-section h2 {
    font-family: var(--brand-font);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

/* --- RESPONSIVE ADJUSTMENTS FOR NEW SECTIONS --- */
@media (max-width: 900px) {

    .commitment-headline,
    .about-preview-content h2,
    .testimonial-content blockquote,
    .cta-section h2 {
        font-size: 2rem;
    }

    .about-preview .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-preview-image {
        order: -1;
        /* Move image to the top on mobile */
    }

    .about-preview-image img {
        height: 400px;
    }
}


/* News List */

/* These styles can be moved to style.css */
.news-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
}

.featured-article-section {
    padding-bottom: 6rem;
}

.featured-article-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #111;
    border: 1px solid #1a1a1a;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

.featured-article-card:hover {
    background-color: #1a1a1a;
}

.featured-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.featured-content {
    padding: 4rem;
}

.featured-content .category {
    font-family: var(--brand-font);
    text-transform: uppercase;
    color: #3a86ff;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.featured-content p {
    color: #999;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.articles-grid-section {
    padding-bottom: 8rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: #111;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: #3a86ff;
}

.article-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.article-card:hover .article-card-image img {
    filter: grayscale(0%);
}

.article-card-content {
    padding: 2rem;
}

.article-card-content .category {
    font-family: var(--brand-font);
    text-transform: uppercase;
    color: #3a86ff;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-card-content h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-card-content .date {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 900px) {
    .featured-article-card {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 2.5rem;
    }

    .featured-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}


/* News Post */

/* These styles can be moved to style.css */
.article-header {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.article-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.article-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 8, 1) 0%, rgba(8, 8, 8, 0.7) 50%, rgba(8, 8, 8, 0.4) 100%);
    z-index: 2;
}

.article-header-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
}

.article-header .category {
    font-family: var(--brand-font);
    text-transform: uppercase;
    color: #3a86ff;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: white;
    width: fit-content;
    margin: 0 auto;
    padding: 1px 4px;
}

.article-header h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    font-size: 1rem;
    color: #ccc;
}

.article-body {
    padding: 6rem 0;
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
    color: #ccc;
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-content h2,
.article-content h3 {
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content a {
    color: #5cb4e2;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content blockquote {
    border-left: 3px solid #3a86ff;
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-size: 1.4rem;
    font-style: italic;
    color: #fff;
}

.article-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-footer {
    max-width: 750px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 0 1.5rem;
        font-size: 1.1rem;
    }
}


/* BALL */

/* Ball animation styles can be kept here or moved to style.css */
.ball-container {
    position: absolute;
    height: 100%;
    width: 100%;
    user-select: none;
    overflow: hidden;
    filter: saturate(0);
    opacity: 0.5;
}

.grass {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, #2e7d32, #4caf50);
    z-index: 1;
}

.square {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/d/d3/Soccerball.svg');
    background-size: cover;
    background-position: center;
    position: absolute;
    will-change: transform, opacity;
    user-select: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.goal {
    position: absolute;
    bottom: 40px;
    height: 180px;
    width: auto;
    z-index: 3;
    user-select: none;
    pointer-events: none;
}

.left-goal {
    left: 0;
    transform: scaleX(-1) translateX(10px);

}

.right-goal {
    right: 0;
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .square {
        width: 40px;
        height: 40px;
    }

    .goal {
        height: 100px;
    }
}

/* Privacy Policy */

.legal-page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
}

.legal-content-container {
    padding-bottom: 8rem;
}

.legal-text {
    max-width: 850px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0.5rem;
}

.legal-text h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.legal-text p,
.legal-text li {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-text ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.legal-text strong {
    color: #ccc;
}

.legal-text a {
    color: #5cb4e2;
    text-decoration: underline;
}

/* Terms and Conditions */


.legal-page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
}

.legal-content-container {
    padding-bottom: 8rem;
}

.legal-text {
    max-width: 850px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0.5rem;
}

.legal-text p,
.legal-text li {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-text ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.legal-text strong {
    color: #ccc;
}

.legal-text a {
    color: #5cb4e2;
    text-decoration: underline;
}

.legal-page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
}

.legal-content-container {
    padding-bottom: 8rem;
}

.legal-text {
    max-width: 850px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0.5rem;
}

.legal-text h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.legal-text p,
.legal-text li {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-text ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.legal-text strong {
    color: #ccc;
}

.legal-text a {
    color: #5cb4e2;
    text-decoration: underline;
}