/* ============================================================
   OFK MALESH BEROVO - Ultra Premium Design System
   Founded 1919 · Pride of Maleshevija
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand Colors - from club logo */
    --color-navy: #1B2A4A;
    --color-navy-deep: #0F1A2E;
    --color-navy-light: #2A3F6B;
    --color-burgundy: #8B1A32;
    --color-burgundy-dark: #6D1428;
    --color-burgundy-light: #A82040;
    --color-gold: #D4AF37;
    --color-gold-light: #E8C84A;
    --color-gold-dark: #B8922E;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-off-white: #F8F7F4;
    --color-cream: #F0EDE6;
    --color-gray-100: #E8E6E1;
    --color-gray-200: #D4D0C8;
    --color-gray-300: #B0AAA0;
    --color-gray-400: #8A8478;
    --color-gray-500: #6B6560;
    --color-gray-600: #4A4540;
    --color-gray-700: #2E2A26;
    --color-black: #0A0A0A;

    /* Semantic */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-win: #22C55E;
    --color-draw: #F59E0B;
    --color-loss: #EF4444;

    /* Glass */
    --glass-bg: rgba(27, 42, 74, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;

    --fs-hero: clamp(3.5rem, 8vw, 8rem);
    --fs-h1: clamp(2.5rem, 5vw, 4.5rem);
    --fs-h2: clamp(2rem, 4vw, 3.5rem);
    --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
    --fs-h4: clamp(1.25rem, 2vw, 1.75rem);
    --fs-h5: clamp(1rem, 1.5vw, 1.25rem);
    --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
    --fs-small: clamp(0.8rem, 1vw, 0.9rem);
    --fs-tiny: clamp(0.7rem, 0.8vw, 0.8rem);

    /* 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;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --section-padding: clamp(4rem, 8vw, 8rem);

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --container-narrow: 960px;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --shadow-glow-gold: 0 0 40px rgba(212,175,55,0.3);
    --shadow-glow-burgundy: 0 0 40px rgba(139,26,50,0.3);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;

    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-cursor: 500;
    --z-preloader: 9999;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--color-burgundy) var(--color-navy-deep);
}

html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--color-navy-deep); }
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-burgundy), var(--color-gold-dark));
    border-radius: 4px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--color-gray-700);
    background-color: var(--color-off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

::selection {
    background-color: var(--color-burgundy);
    color: var(--color-white);
}


/* ============================================================
   3. LAYOUT & CONTAINERS
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section--dark {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section--gradient {
    background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
    color: var(--color-white);
}

.section--cream {
    background-color: var(--color-cream);
}


/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-navy);
}

.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6,
.section--gradient h1, .section--gradient h2, .section--gradient h3 {
    color: var(--color-white);
}

.heading-hero { font-size: var(--fs-hero); }
.heading-1 { font-size: var(--fs-h1); }
.heading-2 { font-size: var(--fs-h2); }
.heading-3 { font-size: var(--fs-h3); }
.heading-4 { font-size: var(--fs-h4); }
.heading-5 { font-size: var(--fs-h5); }

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    position: relative;
}

.section-header__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.section-header__label::before,
.section-header__label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--color-gold);
}

.section-header__title {
    margin-bottom: var(--space-md);
}

.section-header__subtitle {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--color-gray-400);
    max-width: 600px;
    margin: 0 auto;
}

.section--dark .section-header__subtitle,
.section--gradient .section-header__subtitle {
    color: rgba(255,255,255,0.6);
}

/* Gold accent line under headings */
.heading-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-burgundy));
    margin-top: var(--space-md);
    border-radius: 2px;
}

.heading-accent--center::after {
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   5. PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--color-navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    text-align: center;
}

.preloader__logo {
    margin-bottom: var(--space-xl);
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader__logo img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(212,175,55,0.4));
}

.preloader__bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto var(--space-lg);
}

.preloader__progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold), var(--color-burgundy));
    border-radius: 2px;
    animation: preloaderBar 1.5s var(--ease-out) forwards;
}

.preloader__text {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    color: var(--color-gold);
    letter-spacing: 0.3em;
    font-weight: 300;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes preloaderBar {
    0% { width: 0%; }
    100% { width: 100%; }
}


/* ============================================================
   6. CUSTOM CURSOR
   ============================================================ */
.cursor {
    display: none;
}

.cursor__dot {
    width: 6px;
    height: 6px;
    background: var(--color-white);
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: -3px;
    will-change: transform;
}

.cursor__ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -20px;
    will-change: transform;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

.cursor.is-hover .cursor__ring {
    width: 60px;
    height: 60px;
    border-color: var(--color-gold);
}

@media (pointer: coarse) {
    .cursor { display: none; }
}


/* ============================================================
   7. NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-lg) 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar.is-scrolled {
    padding: var(--space-sm) 0;
    background: rgba(15, 26, 46, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212,175,55,0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar__container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

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

.navbar__logo-img {
    width: 48px;
    height: 48px;
    transition: transform var(--duration-normal) var(--ease-spring);
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.navbar__logo:hover .navbar__logo-img {
    transform: rotate(-5deg) scale(1.05);
}

.navbar__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar__club-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.navbar__club-year {
    font-size: var(--fs-tiny);
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.15em;
}

.navbar__menu { flex: 1; }

.navbar__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-small);
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.navbar__link:hover,
.navbar__link.is-active {
    color: var(--color-white);
    background: rgba(255,255,255,0.08);
}

.navbar__link.is-active {
    color: var(--color-gold);
}

.navbar__chevron {
    transition: transform var(--duration-fast) var(--ease-out);
}

/* Dropdown */
.navbar__item--dropdown {
    position: relative;
}

.navbar__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-xl);
}

.navbar__item--dropdown:hover .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.navbar__item--dropdown:hover .navbar__chevron {
    transform: rotate(180deg);
}

.navbar__dropdown li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-small);
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.navbar__dropdown li a:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.08);
    padding-left: var(--space-lg);
}

/* Language Switcher */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.navbar__lang:hover {
    border-color: var(--color-gold);
    background: rgba(212,175,55,0.1);
}

.navbar__lang-code {
    font-size: var(--fs-tiny);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

/* Mobile Toggle */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.navbar__toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

.navbar__toggle.is-active .navbar__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.is-active .navbar__toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar__toggle.is-active .navbar__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   8. MOBILE MENU - PREMIUM FULLSCREEN
   ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--color-navy-deep);
    clip-path: circle(0% at calc(100% - 40px) 36px);
    transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
    clip-path: circle(150% at calc(100% - 40px) 36px);
}

/* Animated gradient background */
.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(139,26,50,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle pattern overlay */
.mobile-menu::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' stroke='%23D4AF37' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    pointer-events: none;
}

.mobile-menu__inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
}

/* Logo in mobile menu */
.mobile-menu__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(212,175,55,0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s var(--ease-out) 0.3s;
}

.mobile-menu.is-open .mobile-menu__header {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu__logo {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
}

.mobile-menu__brand {
    display: flex;
    flex-direction: column;
}

.mobile-menu__brand-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
}

.mobile-menu__brand-sub {
    font-size: var(--fs-tiny);
    color: var(--color-gold);
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* Navigation links */
.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    gap: 0;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.4s var(--ease-out);
    transform: translateX(-30px);
    opacity: 0;
    position: relative;
}

/* Gold accent line on left for active/hover */
.mobile-menu__link::before {
    content: '';
    position: absolute;
    left: -var(--space-2xl);
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.4s var(--ease-out);
    transform: translateY(-50%);
}

.mobile-menu__link:active::before,
.mobile-menu__link:hover::before {
    width: 20px;
    left: -28px;
}

/* Link counter number */
.mobile-menu__link-num {
    font-family: var(--font-primary);
    font-size: var(--fs-tiny);
    font-weight: 500;
    color: rgba(212,175,55,0.3);
    min-width: 28px;
    margin-right: var(--space-md);
    letter-spacing: 0.05em;
}

/* Stagger animation for each link */
.mobile-menu.is-open .mobile-menu__link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1)  { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2)  { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3)  { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4)  { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5)  { transition-delay: 0.35s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6)  { transition-delay: 0.40s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(7)  { transition-delay: 0.45s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(8)  { transition-delay: 0.50s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(9)  { transition-delay: 0.55s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(10) { transition-delay: 0.60s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(11) { transition-delay: 0.65s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(12) { transition-delay: 0.70s; }

.mobile-menu__link:active,
.mobile-menu__link:hover {
    color: var(--color-white);
    padding-left: var(--space-sm);
}

/* Active page gold highlight */
.mobile-menu__link.is-active {
    color: var(--color-gold);
}

/* Footer area */
.mobile-menu__footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(212,175,55,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--ease-out) 0.7s;
}

.mobile-menu.is-open .mobile-menu__footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu__lang {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: var(--radius-full);
    font-size: var(--fs-tiny);
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--duration-fast) var(--ease-out);
}

.mobile-menu__lang:active {
    background: rgba(212,175,55,0.1);
}

.mobile-menu__social {
    display: flex;
    gap: var(--space-sm);
}

.mobile-menu__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    transition: all var(--duration-fast) var(--ease-out);
}

.mobile-menu__social a:active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(212,175,55,0.1);
}


/* ============================================================
   9. HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-navy-deep);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(139,26,50,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(27,42,74,0.3) 0%, transparent 60%),
        linear-gradient(180deg,
            rgba(15,26,46,0.4) 0%,
            rgba(15,26,46,0.6) 40%,
            rgba(15,26,46,0.85) 80%,
            var(--color-navy-deep) 100%
        );
}

/* Animated particles background */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
}

.hero__particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero__content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 var(--space-xl);
    max-width: 900px;
}

.hero__logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-2xl);
    filter: drop-shadow(0 0 40px rgba(212,175,55,0.3));
    animation: heroLogoFloat 6s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: var(--radius-full);
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero__title span {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--fs-h5);
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    margin-bottom: var(--space-2xl);
    letter-spacing: 0.05em;
}

.hero__year {
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 20rem);
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

/* Hero Stats Row */
.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.hero__stat-label {
    font-size: var(--fs-tiny);
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255,255,255,0.4);
    font-size: var(--fs-tiny);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-gold), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}


/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    font-family: var(--font-primary);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn:hover::before { opacity: 1; }

.btn--primary {
    background: linear-gradient(135deg, var(--color-burgundy), var(--color-burgundy-dark));
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(139,26,50,0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139,26,50,0.4);
}

.btn--outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    backdrop-filter: blur(10px);
}

.btn--outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(212,175,55,0.1);
}

.btn--gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-navy-deep);
    box-shadow: var(--shadow-glow-gold);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(212,175,55,0.5);
}

.btn--sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--fs-tiny);
}


/* ============================================================
   11. CARDS
   ============================================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: var(--color-white);
}

.card--glass:hover {
    border-color: rgba(212,175,55,0.2);
    box-shadow: var(--shadow-glow-gold);
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card__body {
    padding: var(--space-xl);
}

.card__label {
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-sm);
}

.card--glass .card__label {
    color: var(--color-gold);
}

.card__title {
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.card__text {
    color: var(--color-gray-400);
    font-size: var(--fs-small);
    line-height: 1.6;
}

.card--glass .card__text {
    color: rgba(255,255,255,0.6);
}

.card__footer {
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-small);
    color: var(--color-gray-400);
}


/* ============================================================
   12. MATCH RESULT CARDS
   ============================================================ */
.match-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    border-left: 4px solid transparent;
}

.match-card--win { border-left-color: var(--color-win); }
.match-card--draw { border-left-color: var(--color-draw); }
.match-card--loss { border-left-color: var(--color-loss); }

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.match-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: var(--fs-tiny);
    color: var(--color-gray-400);
}

.match-card__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.match-card__team {
    text-align: center;
    flex: 1;
}

.match-card__team-name {
    font-weight: 600;
    font-size: var(--fs-small);
    color: var(--color-navy);
}

.match-card__team-name--malesh {
    color: var(--color-burgundy);
    font-weight: 700;
}

.match-card__score {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 800;
    color: var(--color-navy);
    min-width: 80px;
    text-align: center;
    letter-spacing: 0.05em;
}

.match-card__score-separator {
    color: var(--color-gray-300);
    margin: 0 var(--space-xs);
}


/* ============================================================
   13. STANDINGS TABLE
   ============================================================ */
.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--fs-small);
}

.standings-table th {
    padding: var(--space-md) var(--space-sm);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--fs-tiny);
    letter-spacing: 0.1em;
    color: var(--color-gray-400);
    border-bottom: 2px solid var(--color-gray-100);
    text-align: center;
    white-space: nowrap;
}

.standings-table th:nth-child(2) {
    text-align: left;
}

.standings-table td {
    padding: var(--space-md) var(--space-sm);
    text-align: center;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background var(--duration-fast);
}

.standings-table td:nth-child(2) {
    text-align: left;
    font-weight: 500;
}

.standings-table tr:hover td {
    background: rgba(27,42,74,0.03);
}

.standings-table tr.is-malesh td {
    background: linear-gradient(90deg, rgba(139,26,50,0.08), rgba(212,175,55,0.05));
    font-weight: 600;
}

.standings-table tr.is-malesh td:first-child {
    border-left: 3px solid var(--color-burgundy);
}

.standings-table .pos-cell {
    font-weight: 700;
    width: 40px;
    color: var(--color-navy);
}

.standings-table .pts-cell {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 1em;
}

/* Dark variant */
.standings-table--dark th {
    color: rgba(255,255,255,0.5);
    border-bottom-color: rgba(255,255,255,0.1);
}

.standings-table--dark td {
    color: rgba(255,255,255,0.8);
    border-bottom-color: rgba(255,255,255,0.05);
}

.standings-table--dark tr:hover td {
    background: rgba(255,255,255,0.05);
}

.standings-table--dark tr.is-malesh td {
    background: linear-gradient(90deg, rgba(212,175,55,0.15), rgba(139,26,50,0.1));
}


/* ============================================================
   14. FORM / RESULT BADGES
   ============================================================ */
.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-tiny);
    font-weight: 700;
    color: var(--color-white);
}

.form-badge--W { background: var(--color-win); }
.form-badge--D { background: var(--color-draw); }
.form-badge--L { background: var(--color-loss); }

.form-string {
    display: flex;
    gap: 4px;
}


/* ============================================================
   15. NEWS CARDS
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
}
@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

.news-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(15,26,46,0.18), 0 8px 20px rgba(139,26,50,0.08);
}

/* Image wrapper */
.news-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

/* Gradient overlay on image bottom for depth */
.news-card__image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(15,26,46,0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--duration-normal);
}

.news-card:hover .news-card__image-wrap::after {
    opacity: 0.7;
}

/* Decorative accent line at image bottom */
.news-card__image-wrap::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-burgundy), var(--color-gold));
    z-index: 3;
    transition: width var(--duration-slow) var(--ease-out);
}

.news-card:hover .news-card__image-wrap::before {
    width: 100%;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
    will-change: transform;
}

.news-card:hover .news-card__image {
    transform: scale(1.08);
}

/* Category badge */
.news-card__category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 5px 14px;
    background: var(--color-burgundy);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(139,26,50,0.4);
    backdrop-filter: blur(4px);
    transition: background var(--duration-fast), transform var(--duration-fast) var(--ease-spring);
}

.news-card:hover .news-card__category {
    background: var(--color-burgundy-light);
    transform: scale(1.05);
}

/* Card body */
.news-card__body {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Date */
.news-card__date {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-gold-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

/* Title */
.news-card__title {
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin-bottom: var(--space-sm);
    transition: color var(--duration-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.news-card:hover .news-card__title {
    color: var(--color-burgundy);
}

/* Ensure card titles stay navy even inside dark sections */
.section--dark .news-card__title,
.section--dark .news-card__excerpt,
.section--dark .news-card__date,
.section--dark .news-card__link {
    color: var(--color-navy);
}
.section--dark .news-card__excerpt { color: var(--color-gray-400); }
.section--dark .news-card__date { color: var(--color-gold-dark); }
.section--dark .news-card__link { color: var(--color-burgundy); }
.section--dark .news-card:hover .news-card__title { color: var(--color-burgundy); }
.section--dark .news-card {
    box-shadow: none;
    background: var(--color-gray-700);
}
.section--dark .news-card .news-card__body {
    background: var(--color-white);
}
.news-card .news-card__image-wrap .news-card__image {
    display: block;
}

/* Excerpt */
.news-card__excerpt {
    color: var(--color-gray-500);
    font-family: var(--font-primary);
    font-size: var(--fs-small);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Read more link */
.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-100);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-burgundy);
    transition: gap var(--duration-fast) var(--ease-out),
                color var(--duration-fast);
}

.news-card__link svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.news-card:hover .news-card__link {
    gap: var(--space-md);
    color: var(--color-burgundy-dark);
}

.news-card:hover .news-card__link svg {
    transform: translateX(3px);
}

/* Featured / large card variant */
.news-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.news-card--featured .news-card__image-wrap {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 310px;
}

.news-card--featured .news-card__body {
    padding: var(--space-2xl);
    justify-content: center;
}

.news-card--featured .news-card__excerpt {
    -webkit-line-clamp: 5;
}

.news-card--featured .news-card__title {
    font-size: var(--fs-h4);
    -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
    .news-card--featured { flex-direction: column; }
    .news-card--featured .news-card__image-wrap { flex: none; min-height: auto; aspect-ratio: 16 / 9; }
    .news-card--featured .news-card__body { padding: var(--space-xl); }
    .news-card--featured .news-card__title { font-size: var(--fs-h5); }
    .news-card--featured .news-card__excerpt { -webkit-line-clamp: 2 !important; }
}

/* News pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-3xl);
}

.news-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--color-gray-500);
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    transition: all var(--duration-fast) var(--ease-out);
    text-decoration: none;
}

.news-pagination__btn:hover {
    border-color: var(--color-burgundy);
    color: var(--color-burgundy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.news-pagination__btn--active {
    background: linear-gradient(135deg, var(--color-burgundy), var(--color-burgundy-dark));
    color: var(--color-white);
    border-color: var(--color-burgundy);
    box-shadow: 0 4px 15px rgba(139,26,50,0.3);
}

.news-pagination__btn--active:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,26,50,0.4);
}

/* Empty state for no news */
.news-empty {
    text-align: center;
    padding: var(--space-5xl) var(--space-xl);
}

.news-empty__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.news-empty__title {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    color: var(--color-gray-400);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.news-empty__text {
    color: var(--color-gray-300);
    font-size: var(--fs-small);
}

/* Article page styles */
.article-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: var(--color-navy-deep);
}

.article-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 8s var(--ease-out);
}

.article-hero:hover .article-hero__bg {
    transform: scale(1.03);
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15,26,46,0.95) 0%,
        rgba(15,26,46,0.7) 30%,
        rgba(15,26,46,0.4) 60%,
        rgba(15,26,46,0.3) 100%
    );
    z-index: 1;
}

/* Accent line at bottom of hero */
.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-burgundy), var(--color-gold), var(--color-burgundy));
    z-index: 3;
}

.article-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: calc(70px + var(--space-3xl)) var(--space-xl) var(--space-3xl);
}

.article-hero__category {
    display: inline-block;
    padding: 5px 18px;
    background: var(--color-burgundy);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 12px rgba(139,26,50,0.4);
    margin-bottom: var(--space-lg);
}

.article-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: var(--fs-tiny);
    color: rgba(255,255,255,0.5);
}

.article-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.article-hero__meta-item svg {
    opacity: 0.6;
}

.article-hero__meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0.6;
}

.article-hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.article-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--fs-tiny);
    color: rgba(255,255,255,0.4);
}

.article-hero__breadcrumb a {
    color: rgba(255,255,255,0.5);
    transition: color var(--duration-fast);
    text-decoration: none;
}

.article-hero__breadcrumb a:hover {
    color: var(--color-gold);
}

.article-hero__breadcrumb-sep {
    opacity: 0.4;
}

/* Article content card */
.article-card {
    background: var(--color-white);
    max-width: 800px;
    margin: calc(-1 * var(--space-3xl)) auto 0;
    padding: var(--space-3xl) var(--space-3xl) var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 -10px 60px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .article-card {
        margin-top: calc(-1 * var(--space-xl));
        padding: var(--space-xl) var(--space-lg);
        border-radius: var(--radius-md);
    }
}

/* Article content typography */
.article-content {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: 1.9;
    color: var(--color-gray-600);
}

.article-content p {
    margin-bottom: var(--space-lg);
}

.article-content h2, .article-content h3 {
    color: var(--color-navy);
    margin: var(--space-2xl) 0 var(--space-md);
}

.article-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
}

.article-content blockquote {
    border-left: 3px solid var(--color-gold);
    padding: var(--space-md) var(--space-xl);
    margin: var(--space-xl) 0;
    background: var(--color-off-white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-gray-500);
}

.article-content ul, .article-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.article-content li {
    margin-bottom: var(--space-sm);
}

/* Share section */
.article-share {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-gray-100);
}

.article-share__label {
    font-family: var(--font-display);
    font-size: var(--fs-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.article-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid var(--color-gray-100);
    color: var(--color-gray-600);
    background: var(--color-white);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.article-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.article-share__btn--facebook { border-color: #1877F2; color: #1877F2; }
.article-share__btn--facebook:hover { background: #1877F2; color: #fff; }

.article-share__btn--twitter { border-color: #0F1419; color: #0F1419; }
.article-share__btn--twitter:hover { background: #0F1419; color: #fff; }

.article-share__btn--whatsapp { border-color: #25D366; color: #25D366; }
.article-share__btn--whatsapp:hover { background: #25D366; color: #fff; }

.article-share__btn--email { border-color: var(--color-navy); color: var(--color-navy); }
.article-share__btn--email:hover { background: var(--color-navy); color: #fff; }

.article-share__btn--copy { border-color: var(--color-gold-dark); color: var(--color-gold-dark); }
.article-share__btn--copy:hover { background: var(--color-gold-dark); color: #fff; }

/* Related news section */
.related-news {
    margin-top: var(--space-4xl);
    padding-top: var(--space-3xl);
}

.related-news__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.related-news__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.related-news__label::before,
.related-news__label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.4;
}

.related-news__title {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
}


/* ============================================================
   16. PLAYER CARDS
   ============================================================ */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-xl);
}

.player-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    text-align: center;
}

.player-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.player-card__image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    overflow: hidden;
}

.player-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.player-card:hover .player-card__image {
    transform: scale(1.05);
}

.player-card__number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 900;
    color: rgba(255,255,255,0.15);
    line-height: 1;
}

.player-card__position-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-burgundy);
    color: var(--color-white);
    font-size: var(--fs-tiny);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-card__info {
    padding: var(--space-lg);
}

.player-card__name {
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-xs);
}

.player-card__meta {
    font-size: var(--fs-tiny);
    color: var(--color-gray-400);
}

.player-card__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-100);
}

.player-card__stat-value {
    font-weight: 700;
    color: var(--color-navy);
}

.player-card__stat-label {
    font-size: var(--fs-tiny);
    color: var(--color-gray-400);
}


/* ============================================================
   17. GALLERY GRID
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15,26,46,0.8), transparent 60%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

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

.gallery-item__title {
    color: var(--color-white);
    font-size: var(--fs-small);
    font-weight: 500;
}

/* Masonry variant */
.gallery-grid--masonry .gallery-item:nth-child(4n+1) { grid-row: span 2; aspect-ratio: auto; }


/* ============================================================
   18. PATTERN DIVIDERS (Maleshevo Motifs)
   ============================================================ */
.pattern-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.pattern-divider__svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Embroidery-inspired border - hidden */
.maleshevo-border {
    display: none;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6 L5 0 L10 6 L15 0 L20 6 L25 0 L30 6 L35 0 L40 6' stroke='%23D4AF37' stroke-width='1' fill='none' opacity='0.3'/%3E%3Cpath d='M0 6 L5 12 L10 6 L15 12 L20 6 L25 12 L30 6 L35 12 L40 6' stroke='%238B1A32' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    height: 12px;
    width: 100%;
}

/* Diamond pattern inspired by Macedonian embroidery */
.maleshevo-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' stroke='%23D4AF37' stroke-width='0.5' fill='none' opacity='0.06'/%3E%3Cpath d='M30 10 L50 30 L30 50 L10 30Z' stroke='%238B1A32' stroke-width='0.5' fill='none' opacity='0.06'/%3E%3Cpath d='M30 20 L40 30 L30 40 L20 30Z' stroke='%23D4AF37' stroke-width='0.5' fill='none' opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat;
}


/* ============================================================
   19. FOOTER
   ============================================================ */
.footer {
    background: var(--color-navy-deep);
    color: rgba(255,255,255,0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.footer__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' stroke='%23D4AF37' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.footer__logo img {
    transition: transform var(--duration-normal) var(--ease-spring);
}

.footer__logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.footer__title {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    color: var(--color-white);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.footer__tagline {
    font-size: var(--fs-tiny);
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.footer__description {
    font-size: var(--fs-small);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 300px;
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    transition: all var(--duration-fast) var(--ease-out);
}

.footer__social-link:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(212,175,55,0.1);
    transform: translateY(-2px);
}

.footer__heading {
    font-family: var(--font-primary);
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-md);
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-gold);
}

.footer__list li {
    margin-bottom: var(--space-sm);
}

.footer__list a {
    font-size: var(--fs-small);
    color: rgba(255,255,255,0.6);
    transition: all var(--duration-fast) var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__list a:hover {
    color: var(--color-gold);
    padding-left: var(--space-sm);
}

.footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--fs-small);
}

.footer__contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-gold);
}

.footer__contact-list a:hover {
    color: var(--color-gold);
}

.footer__badge {
    margin-top: var(--space-xl);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.footer__badge-text {
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}

.footer__copyright {
    font-size: var(--fs-tiny);
    color: rgba(255,255,255,0.4);
}

.footer__made {
    font-size: var(--fs-tiny);
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer__heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}


/* ============================================================
   20. BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-burgundy);
    border-color: var(--color-burgundy);
    transform: translateY(-2px);
}


/* ============================================================
   21. PAGE HEROES (inner pages) - Compact & Premium
   ============================================================ */
.page-hero {
    position: relative;
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
    background: var(--color-navy-deep);
    overflow: hidden;
    text-align: center;
}

/* Diagonal accent line at bottom */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-burgundy), var(--color-gold), var(--color-burgundy));
}

/* Subtle radial glow */
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139,26,50,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.page-hero__subtitle {
    font-size: var(--fs-small);
    color: rgba(255,255,255,0.5);
    max-width: 500px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: var(--fs-tiny);
    color: rgba(255,255,255,0.4);
}

.breadcrumb a {
    color: rgba(255,255,255,0.5);
    transition: color var(--duration-fast);
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb__sep { opacity: 0.3; }


/* ============================================================
   22. GRID UTILITIES
   ============================================================ */
.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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


/* ============================================================
   23. STAT COUNTER CARDS
   ============================================================ */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.stat-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-gold);
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--color-gold);
}

.stat-card__value {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-card__label {
    font-size: var(--fs-tiny);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}


/* ============================================================
   24. TIMELINE (History page)
   ============================================================ */
.timeline {
    position: relative;
    padding: var(--space-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-gold), var(--color-burgundy), var(--color-gold));
    transform: translateX(-50%);
}

.timeline__item {
    position: relative;
    width: 50%;
    padding: 0 var(--space-3xl) var(--space-3xl);
}

.timeline__item:nth-child(odd) {
    margin-left: 50%;
    padding-left: var(--space-3xl);
}

.timeline__item:nth-child(even) {
    padding-right: var(--space-3xl);
    text-align: right;
}

.timeline__dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border: 3px solid var(--color-navy-deep);
    border-radius: 50%;
    top: 4px;
    z-index: 2;
}

.timeline__item:nth-child(odd) .timeline__dot {
    left: -8px;
}

.timeline__item:nth-child(even) .timeline__dot {
    right: -8px;
}

.timeline__year {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.timeline__title {
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.timeline__text {
    font-size: var(--fs-small);
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}


/* ============================================================
   25. SPONSOR TIERS
   ============================================================ */
.sponsor-tier {
    margin-bottom: var(--space-3xl);
    text-align: center;
}

.sponsor-tier__title {
    font-family: var(--font-primary);
    font-size: var(--fs-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray-400);
    margin-bottom: var(--space-xl);
}

.sponsor-tier__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl);
    align-items: center;
}

.sponsor-logo {
    max-height: 60px;
    max-width: 180px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all var(--duration-normal) var(--ease-out);
}

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

.sponsor-tier--main .sponsor-logo {
    max-height: 100px;
    max-width: 280px;
}


/* ============================================================
   26. CONTACT FORM
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-burgundy);
    box-shadow: 0 0 0 3px rgba(139,26,50,0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}


/* ============================================================
   27. FILTER TABS
   ============================================================ */
.filter-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-gray-400);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.filter-tab:hover {
    border-color: var(--color-burgundy);
    color: var(--color-burgundy);
}

.filter-tab.is-active {
    background: var(--color-burgundy);
    border-color: var(--color-burgundy);
    color: var(--color-white);
}


/* ============================================================
   28. REVEAL ANIMATIONS
   Content is ALWAYS VISIBLE by default.
   JS adds body.js-ready, then animations work.
   This prevents invisible content when JS fails.
   ============================================================ */
.reveal, .reveal--left, .reveal--right, .reveal--scale {
    opacity: 1;
    transform: none;
}

.stagger-children > * {
    opacity: 1;
    transform: none;
}

/* Only hide elements for animation when JS is confirmed working */
body.js-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}
body.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
body.js-ready .reveal--left { transform: translateX(-30px); }
body.js-ready .reveal--left.is-visible { transform: translateX(0); }
body.js-ready .reveal--right { transform: translateX(30px); }
body.js-ready .reveal--right.is-visible { transform: translateX(0); }
body.js-ready .reveal--scale { transform: scale(0.95); }
body.js-ready .reveal--scale.is-visible { transform: scale(1); }

body.js-ready .stagger-children > * {
    opacity: 0; transform: translateY(20px); transition: all 0.6s var(--ease-out);
}
body.js-ready .stagger-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
body.js-ready .stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
body.js-ready .stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
body.js-ready .stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
body.js-ready .stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
body.js-ready .stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.5s; }
body.js-ready .stagger-children.is-visible > * { opacity: 1; transform: translateY(0); }


/* ============================================================
   29. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .navbar__list { gap: 0; }
    .navbar__link { padding: var(--space-sm) var(--space-sm); font-size: var(--fs-tiny); }
}

@media (max-width: 1024px) {
    .footer__top {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before { left: 20px; }
    .timeline__item { width: 100%; margin-left: 0 !important; padding-left: 60px !important; padding-right: 0 !important; text-align: left !important; }
    .timeline__dot { left: 12px !important; right: auto !important; }

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

@media (max-width: 768px) {
    .navbar__menu { display: none; }
    .navbar__toggle { display: flex; }

    /* Hero mobile optimization */
    .hero { min-height: 100svh; }
    .hero__content { padding: 0 var(--space-md); }
    .hero__stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-lg) var(--space-2xl);
        margin-top: var(--space-2xl);
    }
    .hero__stat-value { font-size: var(--fs-h3); }
    .hero__stat-label { font-size: 0.65rem; }
    .hero__badge { font-size: 0.6rem; padding: 6px 12px; }
    .hero__subtitle { font-size: var(--fs-small); }
    .hero__scroll { display: none; }

    /* Grids collapse */
    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .player-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    /* Match result/next match cards - always row on mobile */
    .match-card__teams {
        gap: var(--space-md);
    }
    .match-card__team-name {
        font-size: var(--fs-tiny);
    }
    .match-card__score {
        font-size: var(--fs-h4);
        min-width: 60px;
    }

    /* Countdown smaller on mobile */
    .hero__stat-value[data-days],
    .hero__stat-value[data-hours],
    .hero__stat-value[data-mins] {
        font-size: var(--fs-h4) !important;
    }

    /* Section headers tighter */
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    .section-header__label { font-size: 0.6rem; letter-spacing: 0.15em; }
    .section-header__label::before,
    .section-header__label::after { width: 20px; }

    /* Standings table mobile */
    .standings-table {
        font-size: var(--fs-tiny);
    }
    .standings-table th,
    .standings-table td {
        padding: var(--space-sm) var(--space-xs);
    }
    /* Hide less important columns on mobile */
    .standings-table th:nth-child(n+6):not(:last-child),
    .standings-table td:nth-child(n+6):not(:last-child) {
        display: none;
    }

    /* Page hero on mobile */
    .page-hero {
        padding: calc(65px + var(--space-xl)) 0 var(--space-lg);
    }
    .page-hero__title {
        font-size: var(--fs-h3);
    }

    /* Footer mobile */
    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .footer__description { max-width: 100%; }
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Cards tighter padding */
    .card__body {
        padding: var(--space-lg);
    }
    .stat-card {
        padding: var(--space-lg) var(--space-md);
    }

    /* Timeline single column */
    .timeline::before { left: 20px; }
    .timeline__item { width: 100%; margin-left: 0 !important; padding-left: 50px !important; padding-right: 0 !important; text-align: left !important; }
    .timeline__dot { left: 12px !important; right: auto !important; }
    .timeline__item { padding-bottom: var(--space-2xl) !important; }

    /* Filter tabs scrollable */
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: var(--space-sm);
        gap: var(--space-sm);
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab {
        flex-shrink: 0;
        font-size: var(--fs-tiny);
    }

    /* Gallery 2 columns */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
    .gallery-grid--masonry .gallery-item:nth-child(4n+1) {
        grid-row: span 1;
    }

    /* Breadcrumb wrap */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.65rem;
    }

    /* News card image smaller */
    .news-card__image-wrap {
        aspect-ratio: 16 / 9;
    }

    .news-card__body {
        padding: var(--space-lg) var(--space-lg) var(--space-md);
    }

    /* Article hero compact */
    .article-hero { min-height: 50vh; }
    .article-hero__title { font-size: var(--fs-h3); }
    .article-hero__content { padding-top: calc(65px + var(--space-2xl)); padding-bottom: var(--space-2xl); }
    .article-hero__meta { flex-wrap: wrap; justify-content: center; }

    /* Player card smaller numbers */
    .player-card__number {
        font-size: var(--fs-h3);
    }

    /* Contact grid stack */
    .form-input, .form-textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
    }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-md); }

    /* Hero compact */
    .hero__logo { width: 72px; height: 72px; margin-bottom: var(--space-lg); }
    .hero__title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .hero__year { font-size: clamp(5rem, 25vw, 10rem); }
    .hero__stats { gap: var(--space-md) var(--space-xl); }

    /* Buttons stack */
    .hero .btn { width: 100%; }
    .hero .flex-center.gap-2 {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Grids */
    .player-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }

    /* Stat cards 2x2 */
    .stat-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .stat-card { padding: var(--space-lg) var(--space-md); }
    .stat-card__value { font-size: var(--fs-h4); }

    /* Cards compact */
    .card--glass .card__body { padding: var(--space-lg); }

    /* Back to top */
    .back-to-top { width: 40px; height: 40px; bottom: var(--space-md); right: var(--space-md); }

    /* Mobile menu compact */
    .mobile-menu__link { font-size: clamp(1.1rem, 4vw, 1.5rem); padding: 10px 0; }
    .mobile-menu__link-num { font-size: 0.6rem; min-width: 24px; }
    .mobile-menu__inner { padding: var(--space-2xl) var(--space-lg) var(--space-lg); }
}

/* Extra small phones (iPhone SE, Galaxy S mini, 360px width) */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero__logo { width: 60px; height: 60px; }
    .hero__badge { display: none; }
    .hero__stats { gap: var(--space-sm) var(--space-lg); }
    .hero__stat-value { font-size: var(--fs-h4); }
    .mobile-menu__link { font-size: 1rem; }
    .mobile-menu__header { margin-bottom: var(--space-xl); }
    .stat-row { gap: var(--space-sm); }
    .stat-card { padding: var(--space-md); }
    .section-header__title { font-size: var(--fs-h3); }
    .page-hero__title { font-size: var(--fs-h3); }
    .match-card { padding: var(--space-md); }
    .match-card__score { font-size: var(--fs-h5); min-width: 50px; }
}

/* ============================================================
   GLOBAL RESPONSIVE OVERRIDES FOR INLINE GRIDS
   These classes are added to inline-styled grids to enable
   responsive behavior that inline styles can't provide.
   ============================================================ */
@media (max-width: 768px) {
    .resp-2col { grid-template-columns: 1fr !important; }
    .resp-3col { grid-template-columns: 1fr !important; }
    .resp-5col { grid-template-columns: repeat(3, 1fr) !important; }
    .resp-4col { grid-template-columns: repeat(2, 1fr) !important; }
    .resp-nature-grid { grid-template-columns: 1fr !important; }
    .resp-nature-grid > *:first-child { grid-row: span 1 !important; }
    .resp-flex-gap { gap: var(--space-lg) !important; }
    .resp-standings { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .resp-match-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .resp-player-flex > div { width: calc(50% - 8px) !important; }
    .resp-player-flex { gap: var(--space-md) !important; }
}
@media (max-width: 480px) {
    .resp-5col { grid-template-columns: repeat(2, 1fr) !important; }
    .resp-4col { grid-template-columns: repeat(2, 1fr) !important; }
    .resp-player-flex > div { width: calc(50% - 6px) !important; }
}

/* Touch-friendly tap targets (Apple HIG: 44px minimum) */
@media (pointer: coarse) {
    .navbar__link { min-height: 44px; }
    .filter-tab { min-height: 44px; padding: 10px 16px; }
    .btn { min-height: 44px; }
    .mobile-menu__link { min-height: 48px; }
    .footer__list a { min-height: 44px; display: inline-flex; align-items: center; }
    .navbar__lang { width: 44px; height: 44px; }
    .navbar__toggle { width: 44px; height: 44px; justify-content: center; align-items: center; }
    .back-to-top { width: 48px; height: 48px; }
    .gallery-item { min-height: 44px; }
}

/* Safe area for notch/gesture phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer__bottom {
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
    }
    .mobile-menu__inner {
        padding-bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom));
    }
    .back-to-top {
        bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
    }
}


/* ============================================================
   30. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--color-gold); }
.text-burgundy { color: var(--color-burgundy); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-gray-400); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mt-4 { margin-top: var(--space-3xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.mb-4 { margin-bottom: var(--space-3xl); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: var(--space-md); }
.gap-2 { gap: var(--space-xl); }
.gap-3 { gap: var(--space-2xl); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Image placeholder for missing images */
.img-placeholder {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}

/* ============================================================
   31. ARTICLE PAGE
   ============================================================ */
.article-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background: var(--color-navy-deep);
    overflow: hidden;
}
.article-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--color-navy-deep) 0%, rgba(15,26,46,0.7) 50%, rgba(15,26,46,0.4) 100%);
}
.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-burgundy), var(--color-gold), var(--color-burgundy));
}
.article-hero__content {
    position: relative;
    z-index: 2;
    padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.article-hero__category {
    display: inline-block;
    padding: 5px 14px;
    background: var(--color-burgundy);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}
.article-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--fs-tiny);
    color: rgba(255,255,255,0.5);
}
.article-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-hero__meta-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.2);
}
.article-hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}
.article-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}
.article-hero__breadcrumb a {
    color: rgba(255,255,255,0.45);
    transition: color var(--duration-fast);
}
.article-hero__breadcrumb a:hover { color: var(--color-gold); }
.article-hero__breadcrumb-sep { opacity: 0.3; }

/* Article content card */
.article-card {
    max-width: 800px;
    margin: -40px auto 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3xl);
    position: relative;
    z-index: 3;
}
.article-content {
    font-size: var(--fs-body);
    line-height: 1.9;
    color: var(--color-gray-600);
}
.article-content p { margin-bottom: var(--space-lg); }
.article-content p:last-child { margin-bottom: 0; }

/* Share buttons */
.article-share {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-gray-100);
}
.article-share__label {
    font-family: var(--font-display);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}
.article-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.article-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-size: var(--fs-tiny);
    font-weight: 600;
    color: var(--color-gray-500);
    background: transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    font-family: var(--font-primary);
}
.article-share__btn:hover { transform: translateY(-1px); }
.article-share__btn--facebook { border-color: #1877F2; color: #1877F2; }
.article-share__btn--facebook:hover { background: #1877F2; color: #fff; }
.article-share__btn--twitter { border-color: #000; color: #000; }
.article-share__btn--twitter:hover { background: #000; color: #fff; }
.article-share__btn--whatsapp { border-color: #25D366; color: #25D366; }
.article-share__btn--whatsapp:hover { background: #25D366; color: #fff; }
.article-share__btn--email { border-color: var(--color-gray-400); color: var(--color-gray-500); }
.article-share__btn--email:hover { background: var(--color-gray-400); color: #fff; }
.article-share__btn--copy { border-color: var(--color-gold); color: var(--color-gold-dark); }
.article-share__btn--copy:hover { background: var(--color-gold); color: var(--color-navy-deep); }

/* News pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}
.news-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-gray-200);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--color-gray-500);
    transition: all var(--duration-fast) var(--ease-out);
}
.news-pagination__btn:hover { border-color: var(--color-burgundy); color: var(--color-burgundy); }
.news-pagination__btn--active {
    background: var(--color-burgundy);
    border-color: var(--color-burgundy);
    color: var(--color-white);
}

/* News empty state */
.news-empty {
    text-align: center;
    padding: var(--space-4xl);
    background: var(--color-navy);
    border-radius: var(--radius-lg);
}
.news-empty__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
}
.news-empty__title {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}
.news-empty__text {
    color: rgba(255,255,255,0.4);
    font-size: var(--fs-small);
}

@media (max-width: 768px) {
    .article-hero { min-height: 300px; }
    .article-hero__title { font-size: var(--fs-h3); }
    .article-card { padding: var(--space-xl); margin-top: -20px; }
    .article-share__buttons { flex-direction: column; }
    .article-share__btn { justify-content: center; }
}
