/* ============================================
   GLOBAL VARIABLES (Dark Theme Default)
   ============================================ */
:root {
    /* Color Palette - Dark Mode Base */
    --color-primary: #4a90d9;
    --color-primary-light: #6ba3e0;
    --color-accent: #f5a623;
    --color-accent-hover: #ffb84d;
    --color-success: #27ae60;
    
    /* Text Colors */
    --color-text: #e2e8f0;
    --color-text-light: #a0aec0;
    
    /* Background Colors */
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-bg-card: #1e293b;
    
    /* Borders & Shadows */
    --color-border: #334155;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-hover: rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-serif: Georgia, 'Times New Roman', 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;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Layout */
    --max-width: 75rem;
    --content-width: 52rem;

    /* Image Variables */
    --img-radius: 12px;
    --img-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --img-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.45);
    --img-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --img-scale-hover: 1.02;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

a:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    margin-bottom: var(--space-md);
    color: var(--color-primary-light);
}

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

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

strong {
    font-weight: 600;
    color: var(--color-primary);
}

blockquote {
    font-family: var(--font-serif);
    font-size: 1.15em;
    font-style: italic;
    color: var(--color-text-light);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote cite {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.85em;
    font-style: normal;
    font-family: var(--font-sans);
    color: var(--color-primary);
}

mark {
    background: linear-gradient(120deg, rgba(245, 166, 35, 0.3) 0%, rgba(245, 166, 35, 0.3) 100%);
    padding: 0.1em 0.3em;
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

@media (min-width: 768px) {
    main {
        padding: var(--space-3xl) var(--space-xl);
    }
}

main > header,
main > .page-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

main > header h1,
main > .page-header h1 {
    margin-bottom: var(--space-lg);
}

.subtitle {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    color: var(--color-text-light);
    max-width: 42rem;
    margin: 0 auto var(--space-xl);
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-xl);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

article {
    max-width: var(--content-width);
    margin: 0 auto;
}

section {
    margin-bottom: var(--space-3xl);
    scroll-margin-top: var(--space-xl);
}

section:last-of-type {
    margin-bottom: var(--space-2xl);
}

/* Table of Contents */
nav[aria-label="Table of Contents"] {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-3xl);
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

nav h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    padding-bottom: 0;
    border-bottom: none;
    display: block;
}

.toc-list {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
}

@media (min-width: 640px) {
    .toc-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.toc-list li {
    position: relative;
}

.toc-list a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    color: var(--color-text);
}

.toc-list a:hover {
    transform: translateX(4px);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--color-shadow);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-card) 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

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

li::marker {
    color: var(--color-accent);
}

dl {
    display: grid;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

dt {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.05em;
}

dd {
    margin-left: 0;
    padding-left: var(--space-lg);
    border-left: 2px solid var(--color-border);
    color: var(--color-text-light);
}

/* FAQ Accordion */
.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.faq-item:hover {
    box-shadow: 0 8px 24px var(--color-shadow);
}

details {
    width: 100%;
}

summary {
    padding: var(--space-lg) var(--space-xl);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background var(--transition-fast);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform var(--transition-base);
}

details[open] summary::after {
    transform: rotate(45deg);
}

summary:hover {
    background: var(--color-bg-alt);
}

.faq-answer {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--color-text-light);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Aside / Call to Action */
aside {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin: var(--space-3xl) 0;
    text-align: center;
}

aside h3 {
    color: #fff;
    margin-bottom: var(--space-md);
}

aside p {
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

aside p:last-child {
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: #fff; /* Changed for better contrast on dark */
    font-weight: 600;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.cta-button:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer.site-footer {
    background-color: var(--color-bg-alt); /* Matches your dark theme */
    color: var(--color-text);
    padding: 4rem 1.5rem 3rem;
    margin-top: 5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.95rem;
}

/* Container limits width */
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* 1. Main Grid - 4 Columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* 2. Force Left Alignment for Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Force content to left */
    text-align: left;        
}

/* Responsive: 2 cols on tablet, 1 col on mobile */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-column {
        align-items: center; /* Center on mobile */
        text-align: center;
    }
}

/* 3. Headings - Uses your Gold/Accent Color */
.footer-heading {
    color: var(--color-accent); /* Gold color */
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: block;
    width: 100%;
    padding-bottom: 0.5rem;
}

/* 4. Lists - STRICT Vertical Stacking */
.footer-list, 
.footer-menu-vertical,
.footer-menu-vertical ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Flexbox layout to force vertical stack */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem; 
    width: 100%;
}

/* Mobile Alignment Override */
@media (max-width: 600px) {
    .footer-list, 
    .footer-menu-vertical,
    .footer-menu-vertical ul {
        align-items: center !important;
    }
}

/* 5. List Items */
.footer-list li,
.footer-menu-vertical li {
    margin: 0 !important;
    width: 100%;
    display: block;
}

/* Column 1: Warning List (Red text for danger) */
.warning-list li {
    color: #ef4444; /* Standard Red for warnings */
    font-size: 0.9rem;
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
}

.warning-list li a {
    color: #ef4444;
    text-decoration: underline;
}

/* Custom Bullet for Warning List */
.warning-list li::before {
    content: "•";
    color: var(--color-accent); /* Gold bullet */
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1; 
}

/* Column 3: Resource Links (Uses your Primary Blue) */
.link-list a {
    color: var(--color-primary); /* Your site blue */
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.link-list a:hover {
    color: var(--color-accent); /* Gold on hover */
    text-decoration: underline;
}

/* Column 4: Info Links (Grey links) */
.footer-menu-vertical a {
    color: var(--color-text-light);
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.footer-menu-vertical a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

/* Footer Bottom Section */
.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.footer-divider {
    height: 1px;
    background: var(--color-border);
    margin-bottom: 2rem;
    width: 100%;
    opacity: 0.5;
}

.disclaimer-text {
    max-width: 800px;
    margin: 0 auto 1rem;
    opacity: 0.8;
}

.copyright-text {
    opacity: 0.6;
}

/* ============================================
   IMAGES STYLES (Modern & Dark Optimized)
   ============================================ */

/* Base Image Container */
.article-image {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--img-radius);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--img-radius);
    box-shadow: var(--img-shadow);
    transition: var(--img-transition);
}

.article-image img:hover {
    transform: scale(var(--img-scale-hover));
    box-shadow: var(--img-shadow-hover);
}

/* Wrapper for overflow control */
.article-image-wrapper {
    overflow: hidden;
    border-radius: var(--img-radius);
    box-shadow: var(--img-shadow);
    transition: box-shadow 0.35s ease;
}

.article-image-wrapper:hover {
    box-shadow: var(--img-shadow-hover);
}

.article-image-wrapper img {
    box-shadow: none;
}

/* Hero Image */
.hero-image {
    margin: 2.5rem auto 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--img-radius);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--img-radius);
    box-shadow: var(--img-shadow);
    transition: var(--img-transition);
    object-fit: cover;
}

.hero-image img:hover {
    transform: scale(1.015);
    box-shadow: var(--img-shadow-hover);
}

/* Section Images */
.section-image {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--img-radius);
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--img-radius);
    box-shadow: var(--img-shadow);
    transition: var(--img-transition);
    object-fit: cover;
}

.section-image img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--img-shadow-hover);
}

/* Figures with Captions */
figure {
    margin: var(--space-xl) 0;
}

figure.article-figure {
    margin: 2rem 0;
    padding: 0;
    overflow: hidden;
}

figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

figure.article-figure img {
    display: block;
    border-radius: var(--img-radius);
    box-shadow: var(--img-shadow);
    transition: var(--img-transition);
}

figure.article-figure:hover img {
    transform: scale(var(--img-scale-hover));
    box-shadow: var(--img-shadow-hover);
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: var(--space-sm);
    font-style: italic;
    padding: 0 1rem;
}

figure.article-figure figcaption {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
}

/* Specific Image Types */
.img-format {
    border: 1px solid var(--color-border);
}

.img-markets {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 0;
}

.img-strategy {
    border-left: 4px solid var(--color-accent);
}

.img-live {
    position: relative;
}

.img-live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.03) 0%, transparent 100%);
    border-radius: var(--img-radius);
    pointer-events: none;
    z-index: 1;
}

.img-bankroll {
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    padding: 0;
}

/* Image Animations */
@keyframes imageLoadFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-image img,
.section-image img,
.hero-image img,
figure.article-figure img {
    animation: imageLoadFade 0.5s ease-out;
}

/* Image Loading State (Shimmer Effect) */
.article-image,
.section-image,
.hero-image {
    background: linear-gradient(90deg, #2d3748 25%, #1a202c 50%, #2d3748 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.article-image img,
.section-image img,
.hero-image img {
    background: transparent;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Remove shimmer when loaded */
.article-image:has(img[src]),
.section-image:has(img[src]),
.hero-image:has(img[src]) {
    background: none;
    animation: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
    .article-image,
    .section-image,
    figure.article-figure {
        margin: 1.5rem -1rem;
        border-radius: 0;
    }
    
    .article-image img,
    .section-image img,
    figure.article-figure img,
    .hero-image,
    .hero-image img {
        border-radius: 0;
    }
    
    .hero-image {
        margin-left: -1rem;
        margin-right: -1rem;
    }
}

@media (min-width: 769px) {
    .hero-image {
        margin-top: 3rem;
    }
    
    .hero-image img {
        border-radius: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-image {
        max-width: 900px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    nav, aside, .skip-link {
        display: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3 {
        color: #000;
        page-break-after: avoid;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .article-image,
    .section-image,
    .hero-image,
    figure.article-figure {
        page-break-inside: avoid;
        margin: 1rem 0;
    }
    
    .article-image img,
    .section-image img,
    .hero-image img,
    figure.article-figure img {
        box-shadow: none;
        border: 1px solid #ccc;
        max-width: 100%;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .article-image img:hover,
    .section-image img:hover,
    .hero-image img:hover,
    figure.article-figure:hover img {
        transform: none;
    }
}

/* ==========================================================================
   DESKTOP MENU STYLES - "Champions League Glow"
   ========================================================================== */

/* 1. Main Navigation Container */
.site-nav--desktop {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    /* No border-bottom here, keeping it clean for the "floating" feel */
}

/* 2. Menu List Layout */
ul.menu-desktop {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;                      /* Smaller gap because items have padding */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Reset List Items */
ul.menu-desktop li {
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Link Styles - THE "GLASS BUTTON" LOOK */
ul.menu-desktop a {
    text-decoration: none;
    color: #e2e8f0;                 /* Light grey/white text */
    font-family: var(--font-sans, sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    /* Button Shape & Glass Effect */
    padding: 0.75rem 1.5rem;        /* Spacing inside the button */
    background-color: rgba(255, 255, 255, 0.05); /* Very faint white background */
    border: 1px solid rgba(255, 255, 255, 0.1);  /* Thin border */
    border-radius: 50px;            /* Makes it pill-shaped (oval) */
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth animation */
}

/* 5. Hover Effect - "CHAMPIONS BLUE GLOW" */
ul.menu-desktop a:hover {
    background-color: #3b82f6;      /* Bright Electric Blue */
    border-color: #3b82f6;          /* Border matches background */
    color: #ffffff;                 /* Pure white text */
    
    /* The Glow Effect */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6); 
    transform: translateY(-2px);    /* Lifts up slightly */
}

/* 6. Active Page Style (Keep the button lit up if on that page) */
ul.menu-desktop .current-menu-item > a {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #ffffff;
}

/* ==========================================================================
   MOBILE MENU - "DARK GLASS DRAWER" (Slide-in)
   ========================================================================== */

/* 1. Background Overlay (Darken the site behind menu) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px); /* Blur the content behind */
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* 2. The Menu Drawer (Glass Effect) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;           /* Takes 80% of screen width */
    max-width: 350px;     /* But not too wide on tablets */
    height: 100vh;
    
    /* THE GLASS LOOK: Dark Blue/Black semi-transparent */
    background: rgba(15, 23, 42, 0.95); 
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Subtle glowing edge */
    
    z-index: 9999;
    transform: translateX(100%); /* Hidden to the right */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide */
    
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5); /* Deep shadow */
}

/* Open State */
.mobile-menu.is-open {
    transform: translateX(0); /* Slide in */
    display: flex !important;
}

/* 3. Header inside Menu (Close button area) */
.mobile-menu__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

/* Close Button (X) */
.mobile-menu__close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Circle button */
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-menu__close:hover {
    background: #3b82f6; /* Electric Blue on hover */
}

/* 4. Links List */
ul.menu-mobile {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

/* 5. Link Styles */
ul.menu-mobile a {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-sans, sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;       /* Off-white text */
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Very faint divider */
    transition: all 0.2s ease;
}

/* Hover Effect */
ul.menu-mobile a:hover {
    color: #3b82f6;       /* Electric Blue text */
    padding-left: 10px;   /* Slight slide to right */
    border-bottom-color: #3b82f6;
}

/* ==========================================================================
   MOBILE CONTROLS (Burger Styles)
   ========================================================================== */

@media (max-width: 991px) {
    /* Hide Desktop Menu */
    .site-nav--desktop {
        display: none !important;
    }

    /* Show Burger Wrapper */
    .mobile-controls {
        display: flex !important;
        justify-content: flex-end;
        padding-right: 1rem;
    }

    /* Burger Button Style */
    .burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        padding: 0 !important;
        z-index: 1000;
    }

    /* Burger Lines */
    .burger span {
        display: block;
        width: 28px;
        height: 2px;
        background-color: #ffffff !important;
        border-radius: 2px;
        margin: 0 auto; /* Center lines inside button */
    }
}

@media (min-width: 992px) {
    .mobile-menu, 
    .mobile-menu-overlay,
    .mobile-controls {
        display: none !important;
    }
}

/* ==========================================================================
   FIX BURGER ICON (Nuclear Option - Block & Margins)
   ========================================================================== */

@media (max-width: 991px) {
    /* 1. Position Right */
    .mobile-controls {
        display: flex !important;
        justify-content: flex-end !important; /* Right align */
        align-items: center !important;
        padding-right: 15px;
        width: 100%;
        height: 60px; /* Force height for header alignment */
    }

    /* 2. The Button Container */
    .burger {
        display: block !important; /* Stop using Flexbox inside button */
        width: 50px !important;
        height: 50px !important;
        background: transparent !important;
        border: none !important;
        padding: 12px 8px !important; /* Manual padding to center lines */
        cursor: pointer;
        z-index: 10001;
        position: relative;
    }

    /* 3. The Lines (Spans) */
    .burger span {
        display: block !important;      /* Force Block element */
        width: 32px !important;         /* Fixed width */
        height: 3px !important;         /* Fixed height (Thickness) */
        background-color: #ffffff !important; /* White color */
        border-radius: 3px !important;
        
        /* The Magic: Use Margin instead of Gap */
        margin-left: auto !important;   
        margin-right: auto !important;
        margin-bottom: 7px !important;  /* Space between lines */
        margin-top: 0 !important;
    }

    /* Remove margin from the last line so it sits perfectly */
    .burger span:last-child {
        margin-bottom: 0 !important;
    }
}

/* ==========================================================================
   FINAL FIX: MENU LAYERING (Hide burger behind menu)
   ========================================================================== */

/* 1. Make the menu drawer the absolute top layer */
.mobile-menu {
    z-index: 999999 !important; /* Higher than everything else */
}

/* 2. Make the overlay sit right behind the menu */
.mobile-menu-overlay {
    z-index: 999998 !important;
}

/* 3. Lower the burger z-index so the menu covers it */
@media (max-width: 991px) {
    .burger {
        z-index: 500 !important; /* Lower than menu */
        position: relative !important;
    }
}
/* ==========================================================================
   FOOTER MENU - "CHAMPIONS LEAGUE" STYLE
   ========================================================================== */

/* 1. Container Styles */
footer ul {
    display: flex !important;           
    flex-wrap: wrap;                    
    justify-content: center;            
    gap: 2rem;                          
    list-style: none !important;        
    padding: 2rem 0 0 !important;       
    margin: 2rem 0 0 !important;       
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

/* 2. Reset Items */
footer li {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Link Styles (Muted Look) */
footer ul a {
    color: #94a3b8;                     
    text-decoration: none;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.85rem;                 
    font-weight: 500;
    text-transform: uppercase;          
    letter-spacing: 0.1em;              
    transition: all 0.3s ease;
    border: none;
}

/* 4. Hover Effect (Electric Glow) */
footer ul a:hover {
    color: #3b82f6;                     
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.5); 
    transform: translateY(-1px);       
}

/* 5. Mobile Version */
@media (max-width: 600px) {
    footer ul {
        flex-direction: column;         
        gap: 1.2rem;
        border-top: none;              
    }
}

/* ==========================================================================
   404 ERROR PAGE - "STADIUM SCOREBOARD" STYLE
   ========================================================================== */

/* 1. Main Container (Full Height & Centered) */
.container-404 {
    min-height: 70vh; /* Takes up most of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); /* Subtle spotlight effect */
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

/* 2. The Huge "404" Number (Outline Style) */
.error-code {
    font-size: clamp(6rem, 15vw, 12rem); /* Massive responsive text */
    font-weight: 900;
    line-height: 1;
    margin: 0;
    
    /* Hollow text effect with Blue Stroke */
    color: transparent;
    -webkit-text-stroke: 2px #3b82f6; 
    
    /* Neon Glow */
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    font-family: var(--font-sans, sans-serif);
    letter-spacing: -5px;
}

/* 3. The "OFFSIDE!" Title */
.error-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: -1rem; /* Pull it up closer to the number */
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    border: none; /* Remove default borders if any */
}

/* 4. Description Text */
.error-text {
    font-size: 1.1rem;
    color: #94a3b8; /* Muted gray-blue */
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* 5. "Return to Pitch" Button */
.btn-home {
    display: inline-block;
    background-color: #3b82f6;      /* Electric Blue */
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;            /* Pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); /* Button Glow */
}

/* Button Hover */
.btn-home:hover {
    background-color: #2563eb;      /* Darker blue */
    transform: translateY(-3px);    /* Lift up */
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6); /* Stronger glow */
    color: #fff;
    opacity: 1;
}

#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

#crumbs a:hover {
    text-decoration: underline;
}

#crumbs .current {
    font-weight: bold;
    color: rgb(255, 255, 255);
}