/* ========================================
           1. CSS VARIABLES & RESET
        ======================================== */
        :root {
            /* Colors - Light Theme */
            --color-bg: #FAFAFA;
            --color-bg-alt: #F0F0F0;
            --color-text: #1A1A1A;
            --color-text-secondary: #6B6B6B;
            --color-accent: #E10600;
            --color-accent-dark: #2D2D2D;
            --color-border: #E0E0E0;
            --color-highlight: #FFD700;
            --color-surface: #F8F8F8;
            --color-success: #22C55E;
            --color-danger: #E10600;

            /* Typography */
            --font-display: 'Barlow Condensed', sans-serif;
            --font-body: 'Inter', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;

            /* Spacing */
            --section-gap: clamp(3rem, 6vw, 5rem);
            --content-max-width: 720px;
            --sidebar-width: 240px;

            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-base: 250ms ease;
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #0A0A0A;
                --color-bg-alt: #141414;
                --color-text: #F0F0F0;
                --color-text-secondary: #9A9A9A;
                --color-accent: #FF3B30;
                --color-accent-dark: #D0D0D0;
                --color-border: #2A2A2A;
                --color-surface: #1A1A1A;
}

        

        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            font-size: 18px;
            font-weight: 400;
            line-height: 1.7;
            color: var(--color-text);
            background-color: var(--color-bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ========================================
           2. GENERAL TYPOGRAPHY
        ======================================== */
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-display);
            line-height: 1.2;
            text-align: left;
        }

        h1 {
            font-size: clamp(2.5rem, 6vw, 3.5rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: -0.02em;
        }

        h2 {
            font-size: clamp(1.75rem, 4vw, 2.25rem);
            font-weight: 700;
            margin-top: var(--section-gap);
            margin-bottom: 1.25rem;
            scroll-margin-top: 2rem;
        }

        h3 {
            font-size: clamp(1.25rem, 3vw, 1.5rem);
            font-weight: 600;
            margin-top: 2rem;
            margin-bottom: 1rem;
            scroll-margin-top: 2rem;
        }

        p {
            text-align: left;
            margin-bottom: 1.25rem;
        }

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

        a {
            color: var(--color-accent);
            text-decoration: underline;
            text-underline-offset: 2px;
            transition: opacity var(--transition-fast);
        }

        a:hover {
            opacity: 0.8;
        }

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

        strong {
            font-weight: 600;
        }

        em {
            font-style: italic;
        }

        ul, ol {
            text-align: left;
            margin-bottom: 1.25rem;
            padding-left: 1.5rem;
        }

        li {
            margin-bottom: 0.5rem;
        }

        blockquote {
            text-align: left;
            border-left: 3px solid var(--color-accent);
            padding-left: 1.5rem;
            margin: 1.5rem 0;
            font-style: italic;
            color: var(--color-text-secondary);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 16px;
        }

        th, td {
            text-align: left;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--color-border);
        }

        th {
            font-weight: 600;
            background-color: var(--color-bg-alt);
        }

        /* ========================================
           3. LAYOUT - SECTIONS
        ======================================== */
        header {
            /* Empty header - no visual gap before hero */
        }

        main {
            width: 100%;
            display: grid;
            grid-template-columns: var(--sidebar-width) 1fr;
            gap: 3rem;
            max-width: calc(var(--content-max-width) + var(--sidebar-width) + 6rem);
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        [data-content] {
            grid-column: 2;
            max-width: var(--content-max-width);
            padding: var(--section-gap) 0;
        }

        [data-content="hero"] {
            grid-column: 1 / -1;
            max-width: none;
            width: 100vw;
            margin-left: calc(50% - 50vw);
            padding: 0;
        }

        [data-content="toc"] {
            grid-column: 1;
            grid-row: 2 / span 30;
            position: sticky;
            top: 2rem;
            max-height: calc(100vh - 4rem);
            overflow-y: auto;
            padding-right: 1.5rem;
            scrollbar-width: thin;
            scrollbar-color: var(--color-border) transparent;
        }

        [data-content="toc"]::-webkit-scrollbar {
            width: 4px;
        }

        [data-content="toc"]::-webkit-scrollbar-track {
            background: transparent;
        }

        [data-content="toc"]::-webkit-scrollbar-thumb {
            background-color: var(--color-border);
            border-radius: 2px;
        }

        @media (max-width: 900px) {
            main {
                display: block;
                padding: 0 1rem;
            }

            [data-content] {
                max-width: 100%;
                padding: calc(var(--section-gap) * 0.75) 0;
            }

            [data-content="hero"] {
                width: 100vw;
                margin-left: -1rem;
            }

            [data-content="toc"] {
                position: static;
                max-height: none;
                overflow-y: visible;
                padding-right: 0;
                padding-bottom: 2rem;
                border-bottom: 1px solid var(--color-border);
                margin-bottom: 2rem;
            }
        }

        /* ========================================
           4. COMPONENTS
        ======================================== */

        /* --- info-box --- */
        .info-box {
            background-color: var(--color-bg-alt);
            border-left: 4px solid var(--color-accent);
            padding: 24px 28px;
            margin: 32px 0;
        }

        .info-box p {
            font-family: var(--font-body);
            font-size: 16px;
            font-weight: 400;
            text-align: left;
            margin-bottom: 0.75rem;
        }

        .info-box p:first-child {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 600;
        }

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

        /* --- odds-example --- */
        .odds-example {
            background-color: #1A1A1A;
            border-radius: 8px;
            padding: 28px 32px;
            margin: 40px 0;
            text-align: center;
        }

        .odds-example p {
            color: #FFFFFF;
            text-align: center;
            margin-bottom: 0.75rem;
        }

        .odds-example p:first-child {
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1rem;
        }

        .odds-example p:nth-child(2) {
            font-family: var(--font-mono);
            font-size: 28px;
            font-weight: 700;
            color: #FFD700;
        }

        .odds-example p:last-child {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 0;
        }

        @media (prefers-color-scheme: dark) {
            .odds-example {
                background-color: #1A1A1A;
            }

            .odds-example p {
                color: #FFFFFF;
            }

            .odds-example p:nth-child(2) {
                color: #FFD700;
            }

            .odds-example p:last-child {
                color: rgba(255, 255, 255, 0.7);
            }
        }

        /* --- callout --- */
        .callout {
            background-color: transparent;
            border: 2px solid var(--color-accent);
            padding: 20px 24px;
            margin: 28px 0;
        }

        .callout p {
            font-family: var(--font-body);
            font-size: 16px;
            font-weight: 500;
            font-style: italic;
            text-align: left;
            margin-bottom: 0;
        }

        /* --- card-grid --- */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin: 32px 0;
        }

        .card-grid > div {
            background-color: var(--color-bg);
            border: 1px solid var(--color-border);
            padding: 20px;
            transition: border-color var(--transition-base), box-shadow var(--transition-base);
        }

        .card-grid > div:hover {
            border-color: var(--color-accent);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .card-grid p {
            text-align: left;
        }

        .card-grid p:first-child {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .card-grid p:last-child {
            font-family: var(--font-body);
            font-size: 15px;
            font-weight: 400;
            color: var(--color-text-secondary);
            margin-bottom: 0;
        }

        /* --- key-takeaway --- */
        .key-takeaway {
            border-top: 3px solid var(--color-accent-dark);
            padding-top: 16px;
            margin: 32px 0;
            max-width: 80%;
        }

        .key-takeaway p {
            font-family: var(--font-display);
            font-size: clamp(20px, 3vw, 24px);
            font-weight: 600;
            line-height: 1.3;
            text-align: left;
            margin-bottom: 0;
        }

        /* --- fun-fact --- */
        .fun-fact {
            position: relative;
            padding-left: 1.5rem;
            margin: 24px 0;
        }

        .fun-fact::before {
            content: '\2014';
            position: absolute;
            left: 0;
            top: 0;
            color: var(--color-accent);
            font-weight: 700;
        }

        .fun-fact p {
            font-style: italic;
            color: var(--color-text-secondary);
            text-align: left;
            margin-bottom: 0;
        }

        /* --- glossary-term --- */
        .glossary-term {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin: 16px 0;
        }

        .glossary-term strong {
            font-family: var(--font-mono);
            color: var(--color-accent);
            text-decoration: underline;
            text-underline-offset: 3px;
            flex-shrink: 0;
        }

        .glossary-term span {
            font-family: var(--font-body);
            color: var(--color-text-secondary);
        }

        @media (max-width: 600px) {
            .glossary-term {
                flex-direction: column;
                gap: 4px;
            }
        }

        /* --- dos-donts --- */
        .dos-donts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin: 32px 0;
        }

        .dos-donts > div {
            padding: 20px;
        }

        .dos-donts > div:first-child {
            border-top: 4px solid var(--color-success);
        }

        .dos-donts > div:last-child {
            border-top: 4px solid var(--color-danger);
        }

        .dos-donts p {
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            text-align: left;
            margin-bottom: 1rem;
        }

        .dos-donts > div:first-child p {
            color: var(--color-success);
        }

        .dos-donts > div:last-child p {
            color: var(--color-danger);
        }

        .dos-donts ul {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }

        .dos-donts li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.5rem;
            text-align: left;
        }

        .dos-donts li::before {
            position: absolute;
            left: 0;
            font-weight: 700;
        }

        .dos-donts > div:first-child li::before {
            content: '\2713';
            color: var(--color-success);
        }

        .dos-donts > div:last-child li::before {
            content: '\2717';
            color: var(--color-danger);
        }

        @media (max-width: 600px) {
            .dos-donts {
                grid-template-columns: 1fr;
            }
        }

        /* --- pre-bet-checklist --- */
        .pre-bet-checklist {
            margin: 32px 0;
        }

        .pre-bet-checklist p {
            font-family: var(--font-display);
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-accent);
            text-align: left;
            margin-bottom: 1rem;
        }

        .pre-bet-checklist ul {
            list-style: none;
            padding-left: 1.5rem;
            margin-bottom: 0;
            border-left: 2px solid var(--color-border);
        }

        .pre-bet-checklist li {
            position: relative;
            padding-left: 1rem;
            margin-bottom: 0.75rem;
            text-align: left;
        }

        .pre-bet-checklist li::before {
            content: '\2610';
            position: absolute;
            left: -0.75rem;
            color: var(--color-accent);
            background-color: var(--color-bg);
            padding: 0 2px;
        }

        /* --- at-a-glance --- */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            margin: 32px 0;
        }

        .at-a-glance > div {
            background-color: var(--color-bg-alt);
            padding: 16px 20px;
            border-right: 1px solid var(--color-border);
            text-align: center;
        }

        .at-a-glance > div:last-child {
            border-right: none;
        }

        .at-a-glance p {
            text-align: center;
        }

        .at-a-glance p:first-child {
            font-family: var(--font-body);
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--color-text-secondary);
            margin-bottom: 0.5rem;
        }

        .at-a-glance p:last-child {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 700;
            color: var(--color-text);
            margin-bottom: 0;
        }

        @media (max-width: 600px) {
            .at-a-glance {
                grid-template-columns: 1fr 1fr;
            }

            .at-a-glance > div {
                border-right: none;
                border-bottom: 1px solid var(--color-border);
            }

            .at-a-glance > div:nth-child(odd) {
                border-right: 1px solid var(--color-border);
            }

            .at-a-glance > div:nth-last-child(-n+2) {
                border-bottom: none;
            }
        }

        /* --- worked-example --- */
        .worked-example {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 4px;
            padding: 24px;
            margin: 32px 0;
        }

        .worked-example p {
            text-align: left;
            margin-bottom: 0.75rem;
        }

        .worked-example p:first-child {
            font-family: var(--font-display);
            font-size: 16px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--color-border);
        }

        .worked-example p:last-child {
            margin-bottom: 0;
            font-family: var(--font-mono);
            font-size: 18px;
            font-weight: 700;
            color: var(--color-accent);
        }

        .worked-example strong {
            font-family: var(--font-mono);
            font-size: 16px;
        }

        /* --- section-bridge --- */
        .section-bridge {
            text-align: center;
            padding: 40px 0;
            margin: 24px 0;
        }

        .section-bridge p {
            display: inline-block;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            font-style: italic;
            color: var(--color-text-secondary);
            text-align: center;
            margin-bottom: 0;
        }

        .section-bridge p::before,
        .section-bridge p::after {
            content: '\25C6';
            margin: 0 1rem;
            font-size: 8px;
            vertical-align: middle;
            color: var(--color-accent);
        }

        /* --- comparison --- */
        .comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin: 32px 0;
        }

        .comparison > div {
            padding: 20px;
            border: 1px solid var(--color-border);
        }

        .comparison p {
            text-align: left;
        }

        .comparison p:first-child {
            font-family: var(--font-display);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

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

        /* ========================================
           5. HERO SECTION
        ======================================== */
        [data-content="hero"] {
            background: 
                radial-gradient(ellipse at 50% 100%, rgba(225, 6, 0, 0.1) 0%, transparent 60%),
                repeating-linear-gradient(
                    45deg,
                    transparent,
                    transparent 39px,
                    rgba(45, 45, 45, 0.04) 39px,
                    rgba(45, 45, 45, 0.04) 40px
                ),
                var(--color-bg);
            padding: clamp(3rem, 8vw, 6rem) 1.5rem;
            text-align: center;
            grid-column: 1 / -1 !important; 
            width: 100% !important;
            max-width: 1200px !important; 
            margin: 0 auto !important; 
            box-sizing: border-box !important;    
        }

        @media (prefers-color-scheme: dark) {
            [data-content="hero"] {
                background: 
                    radial-gradient(ellipse at 50% 100%, rgba(255, 59, 48, 0.12) 0%, transparent 60%),
                    repeating-linear-gradient(
                        45deg,
                        transparent,
                        transparent 39px,
                        rgba(200, 200, 200, 0.03) 39px,
                        rgba(200, 200, 200, 0.03) 40px
                    ),
                    var(--color-bg);
            }
        }

        .hero-inner {
            max-width: var(--content-max-width);
            margin: 0 auto;
        }

        .hero-meta {
            font-family: var(--font-body);
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-secondary);
            margin-bottom: 1.5rem;
        }

        .hero-inner h1 {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .hero-subtitle {
            font-family: var(--font-body);
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            font-weight: 400;
            line-height: 1.6;
            color: var(--color-text-secondary);
            text-align: center;
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        .hero-image {
            margin-top: 2.5rem;
        }

        .hero-image img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            border-radius: 4px;
        }

        .hero-image figcaption {
            font-family: var(--font-body);
            font-size: 14px;
            color: var(--color-text-secondary);
            text-align: center;
            margin-top: 1rem;
            line-height: 1.5;
        }

        /* ========================================
           6. TOC - SIDEBAR STYLE
        ======================================== */
        .toc-nav {
            padding-top: var(--section-gap);
        }

        .toc-title {
            font-family: var(--font-display);
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-secondary);
            margin-bottom: 1.5rem;
        }

        .toc-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .toc-list li {
            margin-bottom: 0.25rem;
        }

        .toc-list a {
            display: block;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            color: var(--color-text);
            text-decoration: none;
            padding: 0.375rem 0;
            border-left: 2px solid transparent;
            padding-left: 0.75rem;
            transition: color var(--transition-fast), border-color var(--transition-fast);
        }

        .toc-list a:hover {
            color: var(--color-accent);
            border-left-color: var(--color-accent);
        }

        .toc-list a:focus {
            outline: none;
            color: var(--color-accent);
            border-left-color: var(--color-accent);
        }

        .toc-list .toc-subsection {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .toc-list .toc-subsection a {
            font-size: 13px;
            font-weight: 400;
            color: var(--color-text-secondary);
            padding-left: 1.5rem;
        }

        .toc-list .toc-subsection a:hover {
            color: var(--color-accent);
        }

        /* ========================================
           7. IMAGES
        ======================================== */
        figure {
            margin: 2rem 0;
        }

        .article-image {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
        }

        figcaption {
            font-family: var(--font-body);
            font-size: 14px;
            color: var(--color-text-secondary);
            text-align: center;
            margin-top: 0.75rem;
            line-height: 1.5;
        }

        /* ========================================
           8. FAQ ACCORDION
        ======================================== */
        details {
            border-bottom: 1px solid var(--color-border);
            interpolate-size: allow-keywords;
        }

        details:first-of-type {
            border-top: 1px solid var(--color-border);
        }

        summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 0;
            font-family: var(--font-body);
            font-size: 17px;
            font-weight: 600;
            color: var(--color-text);
            cursor: pointer;
            list-style: none;
        }

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

        summary::after {
            content: '+';
            font-size: 1.5rem;
            font-weight: 400;
            color: var(--color-accent);
            transition: transform var(--transition-base);
            flex-shrink: 0;
            margin-left: 1rem;
        }

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

        summary:hover {
            color: var(--color-accent);
        }

        summary:focus {
            outline: none;
        }

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

        ::details-content {
            opacity: 0;
            block-size: 0;
            overflow: hidden;
            transition: 
                opacity var(--transition-base),
                block-size var(--transition-base) allow-discrete,
                content-visibility var(--transition-base) allow-discrete;
        }

        details[open]::details-content {
            opacity: 1;
            block-size: auto;
        }

        details > div {
            padding-bottom: 1.25rem;
        }

        details > div > div {
            /* Schema.org Answer wrapper */
        }

        details p {
            text-align: left;
            color: var(--color-text-secondary);
            line-height: 1.7;
        }

        /* Fallback for older browsers */
        @supports not selector(::details-content) {
            @keyframes fade-in {
                from {
                    opacity: 0;
                }
                to {
                    opacity: 1;
                }
            }

            details[open] > *:not(summary) {
                animation: fade-in var(--transition-base) ease forwards;
            }
        }

        /* ========================================
           10. MEDIA QUERIES
        ======================================== */
        @media (max-width: 900px) {
            :root {
                --section-gap: clamp(2rem, 5vw, 3rem);
            }

            h1 {
                font-size: clamp(2rem, 8vw, 2.5rem);
            }

            h2 {
                font-size: clamp(1.5rem, 5vw, 1.75rem);
            }

            h3 {
                font-size: clamp(1.125rem, 4vw, 1.25rem);
            }

            body {
                font-size: 17px;
            }

            .hero-inner {
                padding: 0 0.5rem;
            }

            .toc-nav {
                padding-top: 0;
            }

            .toc-title {
                margin-bottom: 1rem;
            }

            .toc-list {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            .toc-list > li {
                margin-bottom: 0;
            }

            .toc-list a {
                padding: 0.5rem 0.75rem;
                border: 1px solid var(--color-border);
                border-radius: 4px;
                border-left-width: 1px;
                padding-left: 0.75rem;
            }

            .toc-list a:hover {
                border-color: var(--color-accent);
            }

            .toc-list .toc-subsection {
                display: none;
            }
        }

        @media (max-width: 480px) {
            body {
                font-size: 16px;
            }

            [data-content] {
                padding: calc(var(--section-gap) * 0.6) 0;
            }

            .info-box,
            .callout,
            .worked-example {
                padding: 16px 20px;
            }

            .odds-example {
                padding: 20px;
            }

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

/* =========================================
   UNIVERSAL DESKTOP & MOBILE MENU
   ========================================= */

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border, #333);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-navigation-bar {
    max-width: var(--wide-width, 1100px);
    margin: 0 auto;
    padding: 15px var(--component-padding, 24px);
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep mobile burger on the right */
}

/* --- DESKTOP MENU --- */
.site-nav--desktop {
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 769px) {
    .top-navigation-bar {
        justify-content: center; /* Center the desktop menu */
    }

    .site-nav--desktop {
        display: block;
    }
    .mobile-controls {
        display: none; /* Hide burger on desktop */
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .menu-desktop a:hover {
        color: var(--color-accent);
    }
}

/* --- MOBILE BURGER BUTTON --- */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1000;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Burger Animation to X */
.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MOBILE MENU SLIDER --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding: 60px 30px;
}

.mobile-menu.is-open {
    right: 0; /* Slide in */
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent);
}

.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-mobile a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 20px;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-mobile a:hover {
    color: var(--color-accent);
    padding-left: 10px; /* Nice slide effect on hover */
}

/* --- OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); /* Beautiful blur effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

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

.f1-custom-footer {
    background-color: #0a0a0a; 
    color: #a3a3a3;
    padding: 4rem 2rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 1px solid #1f1f1f;
}

.f1-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1f1f1f;
}

.f1-footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.f1-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #e10600; 
}

.f1-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.f1-footer-list li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.f1-footer-list a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.f1-footer-list a:hover {
    color: #ffffff;
}

.highlight-link {
    color: #e10600 !important;
    font-weight: 600;
}

.highlight-link:hover {
    color: #ff1e15 !important;
}

.f1-footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
}

.f1-footer-bottom p {
    text-align: center;
    color: #e3dbdb;
}

@media (max-width: 992px) {
    .f1-footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .f1-custom-footer {
        padding: 3rem 1.5rem 1rem;
    }
    .f1-footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}