/* ==========================================================================
   BOUNDLESS CLASS FUTSAL — Main Stylesheet
   Mobile-First | Sport Theme | MVC Framework
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --color-primary:    #ffec50;
    --color-bg:         #2a323f;
    --color-accent:     #3e84d1;
    --color-bg-dark:    #1e2530;
    --color-bg-darker:  #151b24;
    --color-text:       #ffffff;
    --color-text-muted: #a0aab8;
    --color-text-dark:  #2a323f;

    /* Fonts */
    --font-heading: 'Bebas Neue', 'Impact', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Header */
    --header-height: 64px;

    /* Transitions */
    --transition-fast:   0.2s ease;
    --transition-base:   0.3s ease;
    --transition-slow:   0.6s ease;
    --transition-slider: 0.7s cubic-bezier(0.65, 0, 0.35, 1);

    /* Borders & Radius */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  20px;
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

ul, ol {
    list-style: none;
}


/* ==========================================================================
   HEADER — Mobile First
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(30, 37, 48, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

/* Move backdrop-filter to pseudo-element to avoid trapping fixed descendants */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: -1;
}

.header--scrolled {
    background: rgba(30, 37, 48, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: center; /* Center logo on mobile */
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

/* -- Logo -- */
.header__logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.header__logo-img {
    height: 48px;
    width: auto;
    transition: transform var(--transition-base);
}

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


/* -- Hamburger (Mobile) — positioned left -- */
.header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    z-index: 1001;
    padding: 6px;
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.header__hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.header__hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.25s ease,
                width 0.25s ease;
    transform-origin: center;
}

/* Hamburger active (X) with bounce animation */
.header__hamburger--active .header__hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    width: 22px;
}

.header__hamburger--active .header__hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
    transform: scaleX(0);
}

.header__hamburger--active .header__hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 22px;
}


/* -- Navigation (Mobile: fullscreen overlay with slide-down) -- */
.header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 27, 36, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    /* Slide down animation */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.header__nav--open {
    clip-path: inset(0 0 0 0);
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

/* Staggered item animation */
.header__nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.header__nav--open .header__nav-item {
    opacity: 1;
    transform: translateY(0);
}

.header__nav--open .header__nav-item:nth-child(1) { transition-delay: 0.1s; }
.header__nav--open .header__nav-item:nth-child(2) { transition-delay: 0.15s; }
.header__nav--open .header__nav-item:nth-child(3) { transition-delay: 0.2s; }
.header__nav--open .header__nav-item:nth-child(4) { transition-delay: 0.25s; }
.header__nav--open .header__nav-item:nth-child(5) { transition-delay: 0.3s; }

/* -- Nav Link -- */
.header__nav-link {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-muted);
    position: relative;
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + 6px);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    
    /* Background-image based underline */
    background-color: transparent;
    background-image: linear-gradient(#ffec50, #ffec50);
    background-repeat: no-repeat;
    background-size: 0% 3px;
    background-position: left bottom;
    
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    transition: color var(--transition-base), background-size 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--color-text);
    background-size: 100% 3px;
}

.header__nav-link--active {
    color: #ffec50;
}

/* -- Chevron -- */
.header__chevron {
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: 2px;
}

.header__nav-link--dropdown[aria-expanded="true"] .header__chevron {
    transform: rotate(180deg);
}


/* -- Dropdown (Mobile) -- */
.header__dropdown {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease, visibility 0.35s;
    overflow: hidden;
    padding: 0;
}

.header__dropdown--open {
    max-height: 500px; /* Arbitrary large height to allow content to expand */
    opacity: 1;
    visibility: visible;
    padding-top: var(--space-sm);
}

.header__dropdown > * {
    overflow: hidden;
}

.header__dropdown-link {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast),
                transform var(--transition-fast);
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.header__dropdown-link:hover {
    color: var(--color-primary);
    background: rgba(255, 236, 80, 0.08);
    transform: translateX(4px);
}

@keyframes dropdownAppear {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   HERO CAROUSEL — Sliding transition
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
    background: #151b24; /* Matches overlay bottom color to hide gaps */
}

/* -- Slides Container -- */
.hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: none;
    transform: translateX(100%);
    z-index: 1;
    overflow: hidden; /* Clips the scaled background image to prevent bleeding */
}

.hero__slide--active,
.hero__slide--exit-left,
.hero__slide--exit-right {
    transition: transform var(--transition-slider);
}

.hero__slide--active {
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.hero__slide--exit-left {
    transform: translateX(-100%);
    z-index: 1;
}

.hero__slide--exit-right {
    transform: translateX(100%);
    z-index: 1;
}

.hero__slide--enter-left {
    transition: none;
    transform: translateX(-100%);
    z-index: 2;
}

.hero__slide--enter-right {
    transition: none;
    transform: translateX(100%);
    z-index: 2;
}

/* -- Background Image Slider -- */
.hero__bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* -- Background Image -- */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.08);
    transition: transform 10s linear;
}

.hero__slide--active .hero__bg {
    transform: scale(1);
}

/* -- Overlay -- */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(21, 27, 36, 0.95) 0%,
        rgba(21, 27, 36, 0.7) 30%,
        rgba(21, 27, 36, 0.3) 55%,
        rgba(21, 27, 36, 0.15) 100%
    );
    z-index: 2; /* Between background and content */
    pointer-events: none;
}

/* Diagonal sport accent stripe */
.hero__overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, transparent 100%);
    z-index: 2;
}


/* -- Content -- */
.hero__content {
    position: absolute;
    inset: 0;
    z-index: 2; /* Above overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl) var(--space-lg);
    padding-bottom: 90px;
    padding-top: calc(var(--header-height) + var(--space-xl));
}

.hero__content-inner {
    max-width: 700px;
}

/* Content entrance animation */
.hero__slide--active .hero__content-inner {
    animation: heroContentIn 0.6s 0.25s ease both;
}

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

/* -- Badge -- */
.hero__badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--color-primary);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    position: relative;
}

/* Sport-style angled badge */
.hero__badge::before {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 6px;
    height: 100%;
    background: var(--color-primary);
    clip-path: polygon(0 0, 100% 0, 0% 100%);
}

/* -- Title -- */
.hero__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.05;
    color: var(--color-text);
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* -- Description -- */
.hero__desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.95rem; /* Slightly larger to compensate for light weight */
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -- Date -- */
.hero__date {
    display: block;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-lg);
}

/* -- Per-article Read More Button -- */
.hero__read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-text-dark);
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    transition: all var(--transition-base);
    text-transform: uppercase;
}

.hero__read-more:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 236, 80, 0.3);
}

.hero__read-more svg {
    transition: transform var(--transition-fast);
}

.hero__read-more:hover svg {
    transform: translateX(4px);
}


/* -- Watermark / Club Logo -- */
.hero__watermark {
    display: none;
}


/* -- Bottom Bar -- */
.hero__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    padding: var(--space-lg);
    padding-bottom: var(--space-xl);
}


/* -- Indicators -- */
.hero__indicators {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero__indicator {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    border: none;
    /* Animate width change */
    width: 28px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.3s ease;
}

.hero__indicator:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero__indicator--active {
    width: 56px;
    background: rgba(255, 255, 255, 0.2);
}

.hero__indicator-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 236, 80, 0.4);
}

.hero__indicator--active .hero__indicator-bar {
    animation: progressFill 10s linear forwards;
}

@keyframes progressFill {
    from { width: 0%; }
    to   { width: 100%; }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--color-bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

/* Sport-style accent top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 60%, transparent 100%);
}

.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

/* -- Brand -- */
.footer__brand {
    min-width: 0;
}

.footer__logo {
    height: 56px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer__tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* -- Headings -- */
.footer__heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* -- Links -- */
.footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

/* -- Social -- */
.footer__social-icons {
    display: flex;
    gap: var(--space-md);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(255, 236, 80, 0.25);
}

/* -- Divider -- */
.footer__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: var(--space-xl) 0;
}

/* -- Bottom -- */
.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer__credit {
    font-size: 0.75rem;
    color: rgba(160, 170, 184, 0.5);
}


/* ==========================================================================
   TABLET BREAKPOINT (≥768px)
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --header-height: 72px;
    }

    .header__logo-img {
        height: 54px;
    }

    /* -- Hero -- */
    .hero {
        min-height: 600px;
    }

    .hero__title {
        font-size: 3.2rem;
    }

    .hero__desc {
        font-size: 0.95rem;
    }

    .hero__content {
        padding: var(--space-2xl);
        padding-bottom: 110px;
    }

    .hero__watermark {
        display: block;
        position: absolute;
        right: var(--space-2xl);
        bottom: 20px;
    }

    .hero__watermark-img {
        height: 80px;
        width: auto;
        opacity: 0.6;
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
        transition: opacity var(--transition-base);
    }

    .hero__watermark:hover .hero__watermark-img {
        opacity: 0.9;
    }

    .hero__indicator {
        width: 36px;
    }

    .hero__indicator--active {
        width: 72px;
    }

    /* -- Footer -- */
    .footer__top {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* ==========================================================================
   DESKTOP BREAKPOINT (≥1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    :root {
        --header-height: 80px;
    }

    /* -- Header: Desktop layout -- */
    .header__inner {
        justify-content: flex-start; /* Logo left on desktop */
        gap: var(--space-xl);
    }

    .header__hamburger {
        display: none;
    }

    .header__logo-img {
        height: 58px;
    }

    /* Desktop nav: inline, visible */
    .header__nav {
        position: static;
        clip-path: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .header__nav-list {
        flex-direction: row;
        gap: 0;
    }

    /* Reset stagger animation for desktop */
    .header__nav-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .header__nav-link {
        font-size: 0.78rem;
        padding: var(--space-sm) var(--space-md);
        padding-bottom: calc(var(--space-sm) + 12px); /* Extended padding to act as built-in bridge */
        letter-spacing: 1.5px;
        font-weight: 500;
    }

    @keyframes dropdownAppear {
        /* Removed in favor of transitions for delay */
    }



    /* Dropdown Desktop — absolute positioned panel */
    .header__nav-item--dropdown {
        position: relative;
    }

    .header__dropdown {
        position: absolute;
        top: calc(100% + 4px);
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        min-width: 180px;
        background: rgba(30, 37, 48, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        padding: var(--space-sm) 0;
        
        /* Override mobile max-height logic */
        max-height: none;
        overflow: visible;
        
        /* Hidden state with delay when leaving */
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s linear 0.4s, opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s;
    }

    /* Invisible bridge to prevent hover loss in the gap */
    .header__dropdown::before {
        content: '';
        position: absolute;
        top: -40px;
        left: -40px;
        right: -40px;
        height: 40px;
    }

    .header__dropdown--open,
    .header__nav-item--dropdown:hover .header__dropdown {
        /* Visible state instantly when hovering */
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        transition: visibility 0s linear 0s, opacity 0.3s ease 0s, transform 0.3s ease 0s;
    }

    .header__dropdown-link {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.85rem;
        border-radius: 0;
        text-align: left;
    }

    .header__dropdown-link:hover {
        transform: none;
        padding-left: calc(var(--space-lg) + 4px);
    }

    /* -- Hero Desktop -- */
    .hero__title {
        font-size: 3.8rem;
    }

    .hero__desc {
        font-size: 1rem;
        max-width: 550px;
    }

    .hero__content {
        padding: var(--space-3xl);
        padding-bottom: 120px;
    }

    .hero__content-inner {
        max-width: 800px;
    }

    .hero__read-more {
        font-size: 0.82rem;
        padding: 12px 28px;
    }

    .hero__watermark-img {
        height: 100px;
    }

    .hero__bottom {
        padding: var(--space-lg) var(--space-3xl);
        padding-bottom: var(--space-xl);
    }

    .hero__indicator {
        width: 44px;
        height: 5px;
    }

    .hero__indicator--active {
        width: 90px;
    }

    /* -- Footer -- */
    .footer__top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}


/* ==========================================================================
   LARGE DESKTOP (≥1440px)
   ========================================================================== */
@media (min-width: 1440px) {
    .header__logo-img {
        height: 62px;
    }

    .hero__title {
        font-size: 4.5rem;
    }

    .hero__content {
        padding: var(--space-3xl) 80px;
        padding-bottom: 140px;
    }
}


/* ==========================================================================
   SCHEDULE SECTION
   ========================================================================== */
.schedule-section {
    padding: var(--space-3xl) var(--space-lg);
    background-color: var(--color-bg-darker);
    color: var(--color-text);
}

.schedule__header {
    max-width: 1400px;
    margin: 0 auto var(--space-xl) auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: var(--space-md);
}

.schedule__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--color-text);
    margin: 0;
    letter-spacing: 1.5px;
    position: relative;
}

.schedule__title-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.schedule__btn-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    transition: all var(--transition-base);
}

.schedule__btn-small:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.schedule__grid-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto; /* Horizontal scroll for mobile/tablets */
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
}
.schedule__grid-wrapper::-webkit-scrollbar {
    display: none;
}

.schedule__grid {
    display: flex;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08); /* Separator lines */
    min-width: min-content;
    width: max-content; /* Let it size to content */
    margin: 0 auto; /* Center within the wrapper if smaller than screen */
}

.schedule__card {
    flex: 0 0 260px;
    background-color: var(--color-bg-darker);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-base);
    position: relative;
    cursor: default;
}

.schedule__card:hover {
    background-color: var(--color-bg-dark);
}

.schedule__card--next {
    /* Highlight the next match slightly */
}

.schedule__card-top {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.schedule__competition-logo {
    height: 72px; /* Increased height to make it bigger */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* Center the block element */
}

.schedule__card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-xl);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.schedule__date-full,
.schedule__time,
.schedule__venue {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule__date-full {
    color: var(--color-text);
    font-weight: 500;
}

.schedule__date-large {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: var(--space-2xl);
    color: var(--color-text);
}

.schedule__teams {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: auto;
}

.schedule__team {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.schedule__team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.schedule__team-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.schedule__empty {
    padding: var(--space-2xl);
    color: var(--color-text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .schedule-section {
        padding: var(--space-xl) var(--space-md);
    }
    .schedule__header {
        padding-bottom: var(--space-md);
    }
    .schedule__title {
        font-size: 2.4rem;
    }
    .schedule__btn-text {
        display: none;
    }
}


/* ==========================================================================
   BRACKET SECTION
   ========================================================================== */
.bracket-section {
    padding: var(--space-3xl) var(--space-lg);
    background-color: var(--color-bg);
}

.bracket__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.bracket__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.1;
    color: var(--color-text);
    margin: 0 0 var(--space-2xl) 0;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}
.bracket__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.bracket__image-wrapper {
    background: var(--color-bg-darker);
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

/* Glass effect highlight */
.bracket__image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
    pointer-events: none;
}

.bracket__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    transition: transform var(--transition-slow);
}

.bracket__image-wrapper:hover .bracket__image {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .bracket-section {
        padding: var(--space-xl) var(--space-md);
    }
    .bracket__title {
        font-size: 2.4rem;
        margin-bottom: var(--space-xl);
    }
    .bracket__image-wrapper {
        padding: 4px;
    }
}

/* ==========================================================================
   LATEST NEWS SECTION
   ========================================================================== */
.news-section {
    padding: var(--space-3xl) var(--space-lg);
    background-color: var(--color-bg-darker);
    color: var(--color-text);
}

.news__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.news__header {
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: var(--space-md);
}

.news__title-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.news__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--color-text);
    margin: 0;
    letter-spacing: 1.5px;
}

.news__btn-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.news__btn-small:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* --- Featured Cards (Top 2) --- */
.news__featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* --- Small Cards Grid (Bottom 4) --- */
.news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* --- Card Base --- */
.news__card {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base);
}

.news__card:hover {
    transform: translateY(-4px);
}

/* --- Card Image --- */
.news__card-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.news__card--large .news__card-image {
    aspect-ratio: 16 / 9;
}

.news__card--small .news__card-image {
    aspect-ratio: 16 / 10;
}

.news__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.news__card:hover .news__card-image img {
    transform: scale(1.05);
}

.news__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(21, 27, 36, 0.6) 0%,
        transparent 50%
    );
    pointer-events: none;
}

/* --- Card Body --- */
.news__card-body {
    padding: var(--space-md) 0 0 0;
}

.news__card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.news__card--large .news__card-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    letter-spacing: 0;
    margin: 0 0 var(--space-sm) 0;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.news__card--small .news__card-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0;
    margin: 0 0 var(--space-xs) 0;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.news__card:hover .news__card-title {
    color: var(--color-primary);
}

.news__card-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- News Responsive --- */
@media (max-width: 1024px) {
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: var(--space-xl) var(--space-md);
    }
    .news__title {
        font-size: 2.4rem;
    }
    .news__btn-text {
        display: none;
    }
    .news__featured {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-md);
    }
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    .news__card--large .news__card-title {
        font-size: 1.2rem;
    }
    .news__card--small .news__card-title {
        font-size: 1rem;
    }
}

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


/* ==========================================================================
   ARTICLE DETAIL PAGE
   ========================================================================== */

/* --- Article Hero Banner (Image Only) --- */
.article-hero {
    position: relative;
    height: 55vh;
    overflow: hidden;
    margin-top: calc(var(--header-height));
}

.article-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* --- Article Header Block (Solid Color) --- */
.article-header-block {
    background-color: var(--color-bg-darker);
    padding: var(--space-3xl) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-header-block__inner {
    max-width: 900px;
    margin: 0 auto;
}

.article-hero__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-bg-darker);
    background: var(--color-primary);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: var(--space-lg);
}

.article-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--color-text);
    letter-spacing: 1px;
    margin: 0 0 var(--space-lg) 0;
}

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.article-hero__author-line {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.article-hero__date,
.article-hero__time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Article Body Layout --- */
.article-body {
    background-color: var(--color-bg-darker);
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
}

.article-body__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-3xl);
    align-items: start;
}

/* --- Article Content --- */
.article-content {
    min-width: 0;
}

.article-content__lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    font-weight: 500;
    margin: 0 0 var(--space-xl) 0;
}

.article-content__divider {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-bottom: var(--space-xl);
}

.article-content__text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-muted);
}

.article-content__text p {
    margin: 0 0 var(--space-lg) 0;
}

.article-content__text p:last-child {
    margin-bottom: 0;
}

/* --- Share Section --- */
.article-content__share {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.article-content__share-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.article-content__share-icons {
    display: flex;
    gap: var(--space-sm);
}

.article-content__share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    transition: all var(--transition-base);
    text-decoration: none;
}

.article-content__share-link:hover {
    background: var(--color-primary);
    color: var(--color-bg-darker);
    transform: translateY(-2px);
}

/* --- Sidebar --- */
.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.article-sidebar__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text);
    letter-spacing: 1px;
    margin: 0 0 var(--space-lg) 0;
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-primary);
}

.article-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.article-sidebar__card {
    display: flex;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--color-text);
    transition: transform var(--transition-base);
}

.article-sidebar__card:hover {
    transform: translateX(4px);
}

.article-sidebar__card-image {
    flex: 0 0 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-sidebar__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.article-sidebar__card:hover .article-sidebar__card-image img {
    transform: scale(1.08);
}

.article-sidebar__card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.article-sidebar__card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--color-text);
    margin: 0 0 4px 0;
    transition: color var(--transition-base);
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-sidebar__card:hover .article-sidebar__card-title {
    color: var(--color-primary);
}

.article-sidebar__card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* --- Article Responsive --- */
@media (max-width: 1024px) {
    .article-body__inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .article-sidebar {
        position: static;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: var(--space-xl);
    }

    .article-sidebar__list {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        gap: var(--space-md);
        padding-bottom: var(--space-sm);
    }
    .article-sidebar__list::-webkit-scrollbar {
        display: none;
    }

    .article-sidebar__card {
        flex-direction: column;
        flex: 0 0 200px;
        gap: var(--space-sm);
    }

    .article-sidebar__card-image {
        flex: none;
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: 40vh;
    }

    .article-header-block {
        padding: var(--space-xl) var(--space-md);
    }

    .article-hero__title {
        font-size: 2.2rem;
    }

    .article-hero__meta {
        gap: var(--space-md);
        font-size: 0.8rem;
    }

    .article-body {
        padding: var(--space-xl) var(--space-md) var(--space-2xl);
    }

    .article-content__lead {
        font-size: 1rem;
    }

    .article-content__share {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* ==========================================================================
   ACCESSIBILITY & UTILITIES
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Reduced motion (disabled to ensure requested animations always play) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for keyboard nav */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   TEAMS SECTION
   ========================================================================== */

.teams__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.teams__card {
    background: rgba(21, 27, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.teams__card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 236, 80, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 236, 80, 0.08);
}

.teams__card-logo-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    padding: var(--space-sm);
    transition: background 0.35s ease, transform 0.35s ease;
}

.teams__card:hover .teams__card-logo-wrap {
    background: rgba(255, 236, 80, 0.06);
    transform: scale(1.05);
}

.teams__card-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.teams__card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.teams__card-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-text);
    letter-spacing: 1px;
    line-height: 1.15;
    margin: 0;
    transition: color 0.3s ease;
}

.teams__card:hover .teams__card-name {
    color: var(--color-primary);
}

.teams__card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Teams responsive */
@media (max-width: 640px) {
    .teams__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .teams__card {
        padding: var(--space-md);
    }

    .teams__card-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .teams__card-logo {
        width: 52px;
        height: 52px;
    }

    .teams__card-name {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   BRACKET LIGHTBOX
   ========================================================================== */

.bracket-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.bracket-lightbox--open {
    opacity: 1;
    visibility: visible;
}

.bracket-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.bracket-lightbox__close:hover {
    background: rgba(255, 80, 80, 0.5);
    transform: rotate(90deg);
}

.bracket-lightbox__body {
    position: relative;
    width: 95vw;
    height: 90vh;
    overflow: auto;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bracket-lightbox__body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.bracket-lightbox__body::-webkit-scrollbar-track {
    background: transparent;
}

.bracket-lightbox__body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.bracket-lightbox__body:active {
    cursor: grabbing;
}

.bracket-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.25s ease;
    transform: scale(1);
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}

.bracket-lightbox--open .bracket-lightbox__img {
    transform: scale(1);
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: var(--color-text-dark);
}
