:root {
            --color-bg: #FAFAFA;
            --color-text: #1A1A1A;
            --color-text-secondary: #5C5C5C;
            --color-accent: #2E7D32;
            --color-border: #E0E0E0;
            --color-surface: #F5F5F5;
            --color-surface-alt: #F8F9FA;
            --color-warning-bg: #FFF8E1;
            --color-warning-border: #F9A825;
            --color-success: #2E7D32;
            --color-danger: #C62828;
            --font-display: 'Oswald', sans-serif;
            --font-body: 'Inter', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
            --max-width: 720px;
            --section-gap: 4rem;
            --content-padding: 1.5rem;
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #121212;
                --color-text: #E8E8E8;
                --color-text-secondary: #A0A0A0;
                --color-accent: #4CAF50;
                --color-border: #333333;
                --color-surface: #1E1E1E;
                --color-surface-alt: #252525;
                --color-warning-bg: #2C2410;
                --color-warning-border: #F9A825;
}

        

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

        html {
            scroll-behavior: smooth;
        }

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

        header {
            padding: 0;
        }

        main {
            width: 100%;
        }

        /* Typography */
        h1 {
            font-family: var(--font-display);
            font-size: clamp(48px, 8vw, 64px);
            font-weight: 700;
            line-height: 1.1;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            color: var(--color-text);
        }

        h2 {
            font-family: var(--font-display);
            font-size: clamp(28px, 4vw, 36px);
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: 0.01em;
            color: var(--color-text);
            margin-bottom: 1.5rem;
            text-align: left;
        }

        h3 {
            font-family: var(--font-body);
            font-size: clamp(22px, 3vw, 24px);
            font-weight: 600;
            line-height: 1.3;
            color: var(--color-text);
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            text-align: left;
            scroll-margin-top: 2rem;
        }

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

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

        a:hover {
            opacity: 0.8;
        }

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

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

        li {
            margin-bottom: 0.5rem;
        }

        strong {
            font-weight: 600;
        }

        em {
            font-style: italic;
        }

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

        figure {
            margin: 2rem auto;
            max-width: 100%;
        }

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

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

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 15px;
            text-align: left;
        }

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

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

        /* Section layout */
        [data-content] {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: var(--section-gap) var(--content-padding);
        }

        [data-content] h2:first-child {
            margin-top: 0;
        }

        /* Hero Section */
        [data-content="hero"] {
            max-width: 100%;
            padding: 0;
            position: relative;
            overflow: hidden;
        }

        .hero-inner {
            position: relative;
            padding: 4rem var(--content-padding) 3rem;
            background: 
                radial-gradient(ellipse at 50% 30%, rgba(46,125,50,0.08) 0%, transparent 60%),
                var(--color-bg);
        }

        .hero-inner::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0.04;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cg fill='none' stroke='%232E7D32' stroke-width='0.5'%3E%3Cline x1='0' y1='200' x2='800' y2='200'/%3E%3Ccircle cx='400' cy='200' r='60'/%3E%3Ccircle cx='400' cy='200' r='4' fill='%232E7D32'/%3E%3Cpath d='M 0 120 Q 80 120 80 200 Q 80 280 0 280'/%3E%3Cpath d='M 800 120 Q 720 120 720 200 Q 720 280 800 280'/%3E%3Crect x='0' y='140' width='40' height='120' rx='0'/%3E%3Crect x='760' y='140' width='40' height='120' rx='0'/%3E%3C/g%3E%3C/svg%3E");
            background-size: 100% auto;
            background-position: center;
            background-repeat: no-repeat;
            mask-image: radial-gradient(ellipse at center, transparent 20%, black 80%);
            -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black 80%);
        }

        @media (prefers-color-scheme: dark) {
            .hero-inner {
                background: 
                    radial-gradient(ellipse at 50% 30%, rgba(76,175,80,0.1) 0%, transparent 60%),
                    var(--color-bg);
            }
            .hero-inner::before {
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cg fill='none' stroke='%234CAF50' stroke-width='0.5'%3E%3Cline x1='0' y1='200' x2='800' y2='200'/%3E%3Ccircle cx='400' cy='200' r='60'/%3E%3Ccircle cx='400' cy='200' r='4' fill='%234CAF50'/%3E%3Cpath d='M 0 120 Q 80 120 80 200 Q 80 280 0 280'/%3E%3Cpath d='M 800 120 Q 720 120 720 200 Q 720 280 800 280'/%3E%3Crect x='0' y='140' width='40' height='120' rx='0'/%3E%3Crect x='760' y='140' width='40' height='120' rx='0'/%3E%3C/g%3E%3C/svg%3E");
            }
        }

        .hero-content {
            position: relative;
            max-width: var(--max-width);
            margin: 0 auto;
            text-align: center;
            z-index: 1;
        }

        .hero-label {
            font-family: var(--font-body);
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--color-accent);
            margin-bottom: 1rem;
        }

        .hero-title {
            margin-bottom: 1.5rem;
        }

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

        .hero-divider {
            width: 60px;
            height: 2px;
            background-color: var(--color-text);
            margin: 0 auto 1.5rem;
        }

        .hero-meta {
            font-size: 14px;
            color: var(--color-text-secondary);
            margin-bottom: 2.5rem;
        }

        .hero-meta time {
            margin-right: 0.5rem;
        }

        .hero-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background-color: var(--color-surface);
            border-radius: 3px;
            font-size: 12px;
            font-weight: 500;
            margin-left: 0.5rem;
        }

        .hero-image {
            max-width: 100%;
            margin: 0 auto;
            padding: 0 var(--content-padding);
        }

        .hero-image img {
            width: 100%;
            max-width: 1000px;
            height: auto;
            margin: 0 auto;
            border-radius: 4px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }

        @media (prefers-color-scheme: dark) {
            .hero-image img {
                box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            }
        }

        .hero-cta {
            display: inline-block;
            margin-top: 2rem;
            padding: 0.875rem 2rem;
            background-color: var(--color-accent);
            color: #ffffff;
            font-family: var(--font-body);
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            border-radius: 4px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(46,125,50,0.3);
            opacity: 1;
        }

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

        /* TOC - Horizontal compact strip */
        [data-content="toc"] {
            max-width: 100%;
            padding: 1.5rem var(--content-padding);
            background-color: var(--color-surface);
            border-top: 1px solid var(--color-border);
            border-bottom: 1px solid var(--color-border);
        }

        .toc-inner {
            max-width: 1100px;
            margin: 0 auto;
        }

        .toc-nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem 1.5rem;
        }

        .toc-nav a {
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            color: var(--color-text);
            text-decoration: none;
            padding: 0.5rem 0;
            transition: color 0.2s ease;
            white-space: nowrap;
        }

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

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

        @media (max-width: 768px) {
            .toc-nav {
                justify-content: flex-start;
                gap: 0.25rem 1rem;
            }
            .toc-nav a {
                font-size: 13px;
            }
        }

        /* Components */
        
        /* Info Box */
        .info-box {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-accent);
            padding: 24px 28px;
            margin: 2rem 0;
        }

        .info-box p {
            margin-bottom: 0;
            font-size: 16px;
            color: var(--color-text);
            text-align: left;
        }

        .info-box p strong {
            display: block;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-accent);
            margin-bottom: 0.5rem;
        }

        /* Odds Example */
        .odds-example {
            background-color: var(--color-bg);
            border: 1px solid var(--color-border);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            padding: 20px 24px;
            margin: 2rem 0;
        }

        @media (prefers-color-scheme: dark) {
            .odds-example {
                box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            }
        }

        .odds-example p {
            margin-bottom: 0.75rem;
            font-size: 16px;
            text-align: center;
            color: var(--color-text);
        }

        .odds-example p:last-child {
            margin-bottom: 0;
        }

        .odds-example p strong {
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-text-secondary);
        }

        .odds-example .odds-value {
            font-family: var(--font-mono);
            font-size: 24px;
            font-weight: 700;
            color: var(--color-accent);
        }

        /* Callout */
        .callout {
            background-color: var(--color-warning-bg);
            border-left: 4px solid var(--color-warning-border);
            padding: 20px 24px;
            margin: 2rem 0;
            position: relative;
        }

        .callout p {
            margin-bottom: 0;
            font-size: 16px;
            text-align: left;
            color: var(--color-text);
        }

        .callout p strong {
            color: var(--color-text);
        }

        /* Key Takeaway */
        .key-takeaway {
            border-top: 2px solid var(--color-text);
            padding-top: 16px;
            margin: 32px 0;
        }

        .key-takeaway p {
            font-family: var(--font-body);
            font-size: 22px;
            font-weight: 500;
            line-height: 1.5;
            color: var(--color-text);
            margin-bottom: 0;
            text-align: left;
        }

        /* Worked Example */
        .worked-example {
            background-color: var(--color-surface-alt);
            border: 1px dashed var(--color-border);
            padding: 28px 32px;
            margin: 2rem 0;
        }

        .worked-example p {
            margin-bottom: 0.75rem;
            font-size: 16px;
            text-align: left;
            color: var(--color-text);
        }

        .worked-example p:first-child strong {
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-text-secondary);
        }

        .worked-example p:last-child {
            margin-bottom: 0;
        }

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

        .worked-example .result {
            background-color: #E8F5E9;
            padding: 0.25rem 0.5rem;
            font-weight: 600;
        }

        @media (prefers-color-scheme: dark) {
            .worked-example .result {
                background-color: rgba(76,175,80,0.2);
            }
        }

        .worked-example .arrow {
            color: var(--color-accent);
            margin: 0 0.25rem;
        }

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

        .glossary-term p {
            margin-bottom: 0;
            text-align: left;
        }

        .glossary-term p strong {
            font-family: var(--font-mono);
            font-size: 15px;
            color: var(--color-accent);
            text-decoration: underline;
            text-decoration-style: dotted;
            text-underline-offset: 3px;
        }

        .glossary-term p span {
            color: var(--color-text-secondary);
        }

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

        /* Section Bridge */
        .section-bridge {
            text-align: center;
            padding: 40px 0;
            position: relative;
        }

        .section-bridge::before,
        .section-bridge::after {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 1px;
            background-color: var(--color-border);
        }

        .section-bridge::before {
            top: 0;
        }

        .section-bridge::after {
            bottom: 0;
        }

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

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

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

        .comparison > div p:first-child {
            font-family: var(--font-body);
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            background-color: var(--color-surface);
            margin: -24px -24px 16px;
            padding: 12px 24px;
        }

        .comparison > div p {
            font-size: 15px;
            margin-bottom: 0.75rem;
            text-align: left;
            color: var(--color-text);
        }

        .comparison > div p:last-child {
            margin-bottom: 0;
        }

        .comparison > div p strong {
            color: var(--color-accent);
        }

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

        /* Dos and Donts */
        .dos-donts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            margin: 2rem 0;
        }

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

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

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

        .dos-donts > div p {
            font-family: var(--font-body);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 1rem;
            text-align: left;
            color: var(--color-text);
        }

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

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

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

        .dos-donts li {
            font-size: 15px;
            margin-bottom: 0.5rem;
            text-align: left;
            color: var(--color-text);
        }

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

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

        .card-grid > div {
            background-color: var(--color-surface);
            padding: 24px;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        @media (prefers-color-scheme: dark) {
            .card-grid > div {
                box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            }
        }

        .card-grid > div p {
            margin-bottom: 0.5rem;
            text-align: left;
            color: var(--color-text);
        }

        .card-grid > div p:last-child {
            margin-bottom: 0;
        }

        /* Pre-bet Checklist */
        .pre-bet-checklist {
            margin: 2rem 0;
        }

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

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

        .pre-bet-checklist li {
            position: relative;
            padding-left: 24px;
            margin-bottom: 0.75rem;
            font-size: 15px;
            text-align: left;
            color: var(--color-text);
        }

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

        /* At a Glance */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 0;
            margin: 2rem 0;
            border: 1px solid var(--color-border);
        }

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

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

        .at-a-glance > div p:first-child {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 0.5rem;
            text-align: center;
            color: var(--color-text);
        }

        .at-a-glance > div p {
            font-size: 14px;
            margin-bottom: 0.25rem;
            text-align: center;
            color: var(--color-text-secondary);
        }

        .at-a-glance > div p:last-child {
            margin-bottom: 0;
        }

        @media (max-width: 700px) {
            .at-a-glance {
                grid-template-columns: 1fr;
            }
            .at-a-glance > div {
                border-right: none;
                border-bottom: 1px solid var(--color-border);
            }
            .at-a-glance > div:last-child {
                border-bottom: none;
            }
        }

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

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

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

        /* FAQ Section */
        [data-content="faq"] details {
            border-bottom: 1px solid var(--color-border);
            padding: 0;
            interpolate-size: allow-keywords;
        }

        [data-content="faq"] details:first-of-type {
            border-top: 1px solid var(--color-border);
        }

        [data-content="faq"] 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;
            text-align: left;
        }

        [data-content="faq"] summary::-webkit-details-marker {
            display: none;
        }

        [data-content="faq"] summary::after {
            content: '+';
            font-size: 24px;
            font-weight: 400;
            color: var(--color-accent);
            transition: transform 0.3s ease;
            flex-shrink: 0;
            margin-left: 1rem;
        }

        [data-content="faq"] details[open] summary::after {
            transform: rotate(45deg);
        }

        [data-content="faq"] summary:hover {
            color: var(--color-accent);
        }

        [data-content="faq"] summary:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 2px;
        }

        [data-content="faq"] ::details-content {
            opacity: 0;
            block-size: 0;
            overflow: hidden;
            transition: 
                opacity 0.3s ease,
                block-size 0.3s ease,
                content-visibility 0.3s ease allow-discrete;
        }

        [data-content="faq"] details[open] ::details-content {
            opacity: 1;
            block-size: auto;
        }

        [data-content="faq"] details > div {
            padding-bottom: 1.25rem;
        }

        [data-content="faq"] details > div p {
            font-size: 16px;
            line-height: 1.7;
            color: var(--color-text);
            margin-bottom: 0;
            text-align: left;
        }

        @supports not selector(::details-content) {
            @keyframes fade-in {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            [data-content="faq"] details[open] > *:not(summary) {
                animation: fade-in 0.3s ease;
            }
        }

        /* Back to Top */
        .back-to-top {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 14px;
            font-weight: 500;
            color: var(--color-text-secondary);
            text-decoration: none;
            margin-top: 3rem;
            transition: color 0.2s ease;
        }

        .back-to-top:hover {
            color: var(--color-accent);
            opacity: 1;
        }

        .back-to-top::before {
            content: '\2191';
        }


        /* Responsive adjustments */
        @media (max-width: 768px) {
            :root {
                --section-gap: 3rem;
                --content-padding: 1.25rem;
            }

            .hero-inner {
                padding: 3rem var(--content-padding) 2rem;
            }

            h3 {
                scroll-margin-top: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            :root {
                --section-gap: 2.5rem;
                --content-padding: 1rem;
            }

            body {
                font-size: 16px;
            }

            .hero-inner {
                padding: 2.5rem var(--content-padding) 1.5rem;
            }
        }

/* =========================================
   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: center; /* Aligns menu to the right */
    
}

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

@media (min-width: 769px) {
    .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 --- */

.mobile-controls {
    margin-left: auto;
}

.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;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.site-footer {
    background-color: var(--color-surface, #1E1E1E);
    border-top: 1px solid var(--color-border, #333333);
    padding: 60px 20px 20px;
    margin-top: 60px; /* Pushes footer to the bottom */
}

.footer-container {
    max-width: var(--wide-width, 1100px);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-title {
    color: var(--color-accent, #4CAF50);
    font-family: var(--font-display, sans-serif);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list li {
    color: var(--color-text-secondary, #A0A0A0);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    font-family: var(--font-body, sans-serif);
}

.footer-list a {
    color: var(--color-text-secondary, #A0A0A0);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: var(--color-text, #E8E8E8);
}

/* Custom red bullets for the first 3 columns */
.custom-bullet li {
    padding-left: 15px;
}

.custom-bullet li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-danger, #C62828); /* Red dot */
    font-weight: bold;
    font-size: 16px;
    line-height: 1.4;
}

/* Override bullets for the dynamic WP menu column */
.menu-footer li {
    padding-left: 0;
}

.menu-footer li::before {
    display: none;
}

/* Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid var(--color-border, #333333);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-secondary, #e5dfdf);
    font-size: 13px;
    margin: 0;
    font-family: var(--font-body, sans-serif);
    text-align: center;
}

/* =========================================
   404 PAGE STYLES
   ========================================= */
.container-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; 
    text-align: center;
    padding: 60px 20px;
}

.content-404 {
    max-width: 600px;
}

.title-404 {
    font-size: 10rem;
    line-height: 1;
    margin: 0 0 10px;
    color: var(--color-accent);
    font-family: var(--font-display, sans-serif);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}

.subtitle-404 {
    font-size: 2.5rem;
    margin: 0 0 20px;
    color: var(--color-text);
    font-family: var(--font-display, sans-serif);
}

.text-404 {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin: 0 0 40px;
    line-height: 1.6;
    font-family: var(--font-body, sans-serif);
}

.btn-404 {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    font-family: var(--font-body, sans-serif);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn-404:hover {
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    color: #ffffff;
}

@media (max-width: 768px) {
    .title-404 { font-size: 6rem; }
    .subtitle-404 { font-size: 1.8rem; }
    .container-404 { min-height: 50vh; }
}