/* ==========================================
           1. CSS VARIABLES & RESET
           ========================================== */
        :root {
            /* Colors - Light Theme */
            --color-primary: #1B4D3E;
            --color-primary-light: #2D5A4A;
            --color-accent: #C9A227;
            --color-accent-light: #D4B44A;
            --color-text: #4A5568;
            --color-text-secondary: #718096;
            --color-bg: #F7F7F5;
            --color-surface: #FFFFFF;
            --color-border: #E2E8F0;
            --color-success: #48BB78;
            --color-danger: #E53E3E;
            
            /* Typography */
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
            
            /* Spacing */
            --section-gap: clamp(3rem, 6vw, 5rem);
            --content-max-width: 800px;
            --content-padding: clamp(1rem, 4vw, 2rem);
            
            /* Shadows */
            --shadow-sm: 0 1px 2px rgba(27, 77, 62, 0.05);
            --shadow-md: 0 4px 12px rgba(27, 77, 62, 0.08);
            --shadow-lg: 0 8px 24px rgba(27, 77, 62, 0.12);
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #4A9B82;
                --color-primary-light: #5DB899;
                --color-accent: #E5C04A;
                --color-accent-light: #F0D06A;
                --color-text: #E2E8F0;
                --color-text-secondary: #A0AEC0;
                --color-bg: #1A202C;
                --color-surface: #2D3748;
                --color-border: #4A5568;
                --color-success: #68D391;
                --color-danger: #FC8181;
                
                --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
                --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
                --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

        

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            font-size: clamp(1rem, 1.5vw, 1.125rem);
            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-body);
            color: var(--color-primary);
            font-weight: 600;
            line-height: 1.2;
            text-align: left;
        }

        h2 {
            font-size: clamp(1.5rem, 3vw, 2.25rem);
            margin-bottom: 1.5rem;
            scroll-margin-top: 2rem;
        }

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

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

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

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

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

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

        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.25rem;
            margin: 1.5rem 0;
            font-style: italic;
            color: var(--color-text-secondary);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.95rem;
            background: var(--color-surface);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        thead {
            background: var(--color-primary);
        }

        thead th {
            color: var(--color-bg);
            font-weight: 600;
            text-align: left;
            padding: 1rem;
        }

        @media (prefers-color-scheme: dark) {
            thead th {
                color: #FFFFFF;
            }
        }

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

        tbody tr:last-child td {
            border-bottom: none;
        }

        tbody tr:hover {
            background: rgba(27, 77, 62, 0.03);
        }

        @media (prefers-color-scheme: dark) {
            tbody tr:hover {
                background: rgba(74, 155, 130, 0.1);
            }
        }

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

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

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

        /* ==========================================
           3. LAYOUT - DATA-CONTENT SECTIONS
           ========================================== */
        header {
            position: relative;
            z-index: 10;
        }

        main {
            width: 100%;
        }

        [data-content] {
            max-width: var(--content-max-width);
            margin-left: auto;
            margin-right: auto;
            padding-left: var(--content-padding);
            padding-right: var(--content-padding);
            padding-top: var(--section-gap);
            padding-bottom: var(--section-gap);
        }

        [data-content="hero"] {
            max-width: none;
            padding: 0;
        }

        [data-content="toc"] {
            max-width: 900px;
        }

        /* ==========================================
           4. COMPONENTS
           ========================================== */
        
        /* Info Box */
        .info-box {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-left: 4px solid var(--color-primary);
            border-radius: 0 8px 8px 0;
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            box-shadow: var(--shadow-sm);
        }

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

        .info-box strong {
            color: var(--color-primary);
        }

        /* Odds Example */
        .odds-example {
            background: var(--color-primary);
            color: #FFFFFF;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            box-shadow: var(--shadow-md);
        }

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

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

        .odds-example strong {
            color: var(--color-accent);
        }

        @media (prefers-color-scheme: dark) {
            .odds-example {
                background: #1B4D3E;
            }
            .odds-example p,
            .odds-example strong {
                color: #FFFFFF;
            }
            .odds-example strong {
                color: var(--color-accent);
            }
        }

        /* Callout */
        .callout-tip,
        .callout-warning {
            border-radius: 8px;
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            border-left: 4px solid;
        }

        .callout-tip {
            background: rgba(201, 162, 39, 0.08);
            border-left-color: var(--color-accent);
        }

        .callout-warning {
            background: rgba(229, 62, 62, 0.08);
            border-left-color: var(--color-danger);
        }

        .callout-tip p,
        .callout-warning p {
            text-align: left;
            margin-bottom: 0;
            color: var(--color-text);
        }

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

        .key-takeaway p {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            font-weight: 600;
            color: var(--color-primary);
            text-align: left;
            margin-bottom: 0;
        }

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

        .fun-fact::before {
            content: '—';
            position: absolute;
            left: 0;
            color: var(--color-accent);
            font-weight: 600;
        }

        .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: 1rem 0;
        }

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

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

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

        /* Dos and Don'ts */
        .dos-donts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }

        .dos-donts .do,
        .dos-donts .dont {
            padding: 1.25rem;
            border-radius: 8px;
        }

        .dos-donts .do {
            background: rgba(72, 187, 120, 0.1);
            border: 1px solid var(--color-success);
        }

        .dos-donts .dont {
            background: rgba(229, 62, 62, 0.1);
            border: 1px solid var(--color-danger);
        }

        .dos-donts h4 {
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.75rem;
        }

        .dos-donts .do h4 {
            color: var(--color-success);
        }

        .dos-donts .dont h4 {
            color: var(--color-danger);
        }

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

        .dos-donts li {
            text-align: left;
            color: var(--color-text);
        }

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

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

        .pre-bet-checklist h4 {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-accent);
            margin-bottom: 1rem;
        }

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

        .pre-bet-checklist li {
            position: relative;
            padding-left: 0.5rem;
            text-align: left;
            color: var(--color-text);
        }

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

        /* At a Glance */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0;
            margin: 1.5rem 0;
            background: var(--color-surface);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        .at-a-glance .stat {
            padding: 1.25rem;
            border-right: 1px solid var(--color-border);
            text-align: center;
        }

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

        .at-a-glance .stat-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-text-secondary);
            margin-bottom: 0.5rem;
        }

        .at-a-glance .stat-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--color-primary);
        }

        @media (max-width: 600px) {
            .at-a-glance {
                grid-template-columns: 1fr 1fr;
            }
            .at-a-glance .stat {
                border-bottom: 1px solid var(--color-border);
            }
            .at-a-glance .stat:nth-child(even) {
                border-right: none;
            }
            .at-a-glance .stat:nth-last-child(-n+2) {
                border-bottom: none;
            }
        }

        /* Worked Example */
        .worked-example {
            background: var(--color-surface);
            padding: 1.5rem;
            border-radius: 8px;
            margin: 1.5rem 0;
            box-shadow: var(--shadow-md);
        }

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

        .worked-example p:first-child {
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--color-border);
        }

        .worked-example p:last-child {
            margin-bottom: 0;
            font-weight: 600;
            color: var(--color-accent);
        }

        .worked-example code,
        .worked-example .mono {
            font-family: var(--font-mono);
            font-size: 0.95em;
        }

        /* Section Bridge */
        .section-bridge {
            text-align: center;
            margin: 2rem 0;
            color: var(--color-accent);
            font-style: italic;
            position: relative;
        }

        .section-bridge::before,
        .section-bridge::after {
            content: '—';
            margin: 0 0.75rem;
            color: var(--color-border);
        }

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

        .card-grid .card {
            background: var(--color-surface);
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            transition: box-shadow 0.2s ease, transform 0.2s ease;
        }

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

        .card-grid .card h4 {
            color: var(--color-primary);
            margin-bottom: 0.75rem;
        }

        .card-grid .card p {
            text-align: left;
            color: var(--color-text);
            margin-bottom: 0;
        }

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

        .comparison .option {
            background: var(--color-surface);
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
        }

        .comparison .option h4 {
            color: var(--color-primary);
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--color-accent);
        }

        .comparison .option p {
            text-align: left;
            color: var(--color-text);
            margin-bottom: 0.5rem;
        }

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

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

        /* TL;DR Block */
        .tldr {
            background: var(--color-surface);
            border-left: 4px solid var(--color-accent);
            padding: 1.5rem 2rem;
            margin: 0;
            border-radius: 0 8px 8px 0;
        }

        .tldr h2 {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            color: var(--color-primary);
            margin-bottom: 1rem;
        }

        .tldr ul {
            margin-bottom: 0;
        }

        .tldr li {
            text-align: left;
            color: var(--color-text);
        }

        /* ==========================================
           5. HERO SECTION
           ========================================== */
        [data-content="hero"] {
            width: 100vw;
            margin-left: calc(50% - 50vw);
            position: relative;
            background: linear-gradient(135deg, #1B4D3E 0%, #2D5A4A 100%);
            overflow: hidden;
        }

        [data-content="hero"]::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 40px,
                    rgba(255,255,255,0.02) 40px,
                    rgba(255,255,255,0.02) 41px
                ),
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 40px,
                    rgba(255,255,255,0.02) 40px,
                    rgba(255,255,255,0.02) 41px
                );
            pointer-events: none;
        }

        [data-content="hero"]::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 150%;
            height: 150%;
            background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
            pointer-events: none;
        }

        .hero-inner {
            max-width: var(--content-max-width);
            margin: 0 auto;
            padding: clamp(4rem, 10vw, 7rem) var(--content-padding);
            position: relative;
            z-index: 1;
        }

        .hero-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255,255,255,0.8);
            background: rgba(255,255,255,0.1);
            padding: 0.375rem 0.75rem;
            border-radius: 4px;
        }

        .hero-trust {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255,255,255,0.6);
        }

        [data-content="hero"] h1 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            color: #FFFFFF;
            line-height: 1.1;
            margin-bottom: 1rem;
            text-align: left;
        }

        .hero-subtitle {
            font-size: clamp(1rem, 2vw, 1.25rem);
            color: rgba(255,255,255,0.85);
            line-height: 1.5;
            margin-bottom: 1.5rem;
            max-width: 600px;
        }

        .hero-hook {
            font-size: 0.875rem;
            letter-spacing: 0.02em;
            color: var(--color-accent);
            font-weight: 500;
        }

        .hero-cta {
            margin-top: 2rem;
        }

        .btn-start {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--color-accent);
            color: #1B4D3E;
            font-weight: 600;
            font-size: 0.875rem;
            text-decoration: none;
            padding: 0.875rem 1.5rem;
            border-radius: 6px;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .btn-start:hover {
            background: var(--color-accent-light);
            transform: translateY(-1px);
            color: #1B4D3E;
        }

        .btn-start::after {
            content: '\2193';
            font-size: 1rem;
        }

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

        [data-content="hero"] figure {
            margin: 0;
        }

        [data-content="hero"] .hero-image {
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
        }

        [data-content="hero"] figcaption {
            color: rgba(255,255,255,0.6);
            margin-top: 0.75rem;
        }

        /* ==========================================
           6. TABLE OF CONTENTS
           ========================================== */
        [data-content="toc"] {
            padding-top: calc(var(--section-gap) * 0.75);
        }

        .toc-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-secondary);
            margin-bottom: 1.5rem;
        }

        .toc-grid {
            column-count: 2;
            column-gap: 2rem;
        }

        .toc-section {
            break-inside: avoid;
            margin-bottom: 1.25rem;
        }

        .toc-section > a {
            display: block;
            font-weight: 600;
            color: var(--color-primary);
            text-decoration: none;
            margin-bottom: 0.5rem;
            transition: color 0.2s ease;
        }

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

        .toc-subsections {
            list-style: none;
            padding-left: 1rem;
            margin: 0;
        }

        .toc-subsections li {
            margin-bottom: 0.375rem;
        }

        .toc-subsections a {
            font-size: 0.875rem;
            color: var(--color-text-secondary);
            text-decoration: none;
            transition: color 0.2s ease;
        }

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

        @media (max-width: 600px) {
            .toc-grid {
                column-count: 1;
            }
        }

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

        details:last-of-type {
            border-bottom: none;
        }

        summary {
            padding: 1.25rem 2rem 1.25rem 0;
            cursor: pointer;
            font-weight: 600;
            color: var(--color-primary);
            position: relative;
            list-style: none;
            transition: color 0.2s ease;
        }

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

        summary::after {
            content: '+';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.25rem;
            color: var(--color-accent);
            transition: transform 0.3s ease;
        }

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

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

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

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

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

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

        details > div p {
            text-align: left;
            color: var(--color-text);
        }

        /* Fallback for older browsers */
        @supports not selector(::details-content) {
            details[open] > *:not(summary) {
                animation: fade-in 0.3s ease forwards;
            }

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

     
        /* ==========================================
           9. MEDIA QUERIES
           ========================================== */
        @media (max-width: 768px) {
            :root {
                --section-gap: 2.5rem;
            }

            [data-content="hero"] h1 {
                font-size: 2rem;
            }

            .hero-subtitle {
                font-size: 1rem;
            }

            table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }

            .hero-meta {
                flex-direction: column;
                align-items: flex-start;
            }
        }

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

            h2 {
                font-size: 1.5rem;
            }

            h3 {
                font-size: 1.25rem;
            }
        }

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

/* 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: 950px; /* Optimized width to keep menu centered but separated */
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes logo left and burger/menu right */
}

/* --- LOGO FIXES --- */
.site-logo img {
    max-height: 75px; /* Optimal height for most logos */
    width: auto !important; /* Prevents squishing */
    display: block;
    transition: transform 0.2s ease;
}

.site-logo img:hover {
    transform: scale(1.02);
}

/* --- DESKTOP MENU --- */
.site-nav--desktop {
    display: none; /* 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 --- */
.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;
}

/* =========================================
   4-COLUMN FOOTER (Fixed Odds Theme)
   ========================================= */
.site-footer-4col {
    background-color: #0d131f; /* Deep dark blue/navy background */
    color: #94a3b8;
    padding: 70px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #14b8a6); /* Teal/Cyan border */
}

.footer-4col-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-4col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .footer-4col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-4col-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Teal Titles */
.widget-title {
    color: var(--color-accent, #14b8a6); 
    font-family: var(--font-display, sans-serif); 
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.widget-list li {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
}

.widget-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-list a:hover {
    color: var(--color-accent, #14b8a6);
}

/* Teal bullets */
.bullet-list li {
    position: relative;
    padding-left: 18px;
}

.bullet-list li::before {
    content: '•';
    color: var(--color-accent, #14b8a6); 
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.clean-list li {
    padding-left: 0;
    padding-bottom: 0.8rem;
}

.clean-list li::before {
    display: none;
}

.footer-4col-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
}

.footer-4col-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent, #14b8a6);
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

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

.back-to-top-btn:hover {
    background-color: #fff;
    transform: translateY(-5px);
}

/* --- Desktop Header: Logo strictly to the left edge, Menu center --- */
@media (min-width: 1024px) {
    body header.site-header .top-navigation-bar {
        max-width: 100% !important; 
        padding-left: 40px !important; 
        padding-right: 40px !important;
        display: grid !important; 
        grid-template-columns: 1fr auto 1fr !important; 
        align-items: center !important;
    }

    body header.site-header .top-navigation-bar .site-logo {
        grid-column: 1 !important;
        justify-self: start !important; 
        margin: 0 !important;
    }

    body header.site-header .top-navigation-bar .site-nav--desktop {
        grid-column: 2 !important;
        justify-self: center !important;
    }
}

body {
    overflow-x: clip;
}