:root {
            --color-primary: #1A365D;
            --color-secondary: #38A169;
            --color-accent: #D69E2E;
            --color-neutral-light: #E2E8F0;
            --color-neutral-dark: #2D3748;
            --color-alert: #C53030;
            --color-bg: #FFFFFF;
            --color-text: #2D3748;
            --color-text-secondary: #4A5568;
            --color-surface: #F7FAFC;
            --color-border: #CBD5E0;
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
            --max-width-content: 780px;
            --section-gap: clamp(3rem, 6vw, 5rem);
            --transition-base: 0.2s ease;
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #1A202C;
                --color-text: #E2E8F0;
                --color-text-secondary: #A0AEC0;
                --color-surface: #2D3748;
                --color-border: #4A5568;
                --color-neutral-light: #2D3748;
                --color-primary: #63B3ED;
                --color-secondary: #68D391;
                --color-accent: #ECC94B;
                --color-alert: #FC8181;
}

        

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-sans);
            font-size: clamp(1rem, 2vw, 1.125rem);
            line-height: 1.7;
            color: var(--color-text);
            background-color: var(--color-bg);
        }

        /* Typography base */
        p {
            text-align: left;
            margin-bottom: 1.25em;
        }

        h2 {
            font-size: clamp(1.5rem, 4vw, 2.25rem);
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 1rem;
            margin-top: 0;
            text-align: left;
            line-height: 1.3;
            scroll-margin-top: 2rem;
        }

        h3 {
            font-size: clamp(1.25rem, 3vw, 1.75rem);
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 0.75rem;
            margin-top: 2rem;
            text-align: left;
            line-height: 1.35;
            scroll-margin-top: 2rem;
        }

        a {
            color: var(--color-secondary);
            text-decoration: underline;
            text-underline-offset: 2px;
            transition: color var(--transition-base);
        }

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

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

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

        li {
            margin-bottom: 0.5em;
        }

        strong {
            font-weight: 600;
        }

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

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

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

        tr:hover td {
            background-color: var(--color-surface);
        }

        /* Header */
        header {
            padding: 0;
        }

        .header-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            padding: 1rem 1.5rem;
            max-width: var(--max-width-content);
            margin: 0 auto;
        }

        .date-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-text-secondary);
            background-color: var(--color-surface);
            padding: 0.375rem 0.75rem;
            border-radius: 4px;
        }

        .trust-marker {
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-text-secondary);
        }

        /* Main */
        main {
            width: 100%;
        }

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

        [data-content]:last-of-type {
            margin-bottom: 0;
        }

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

        .hero-wrapper {
            position: relative;
            background: linear-gradient(135deg, var(--color-primary) 0%, #2C5282 100%);
            padding: clamp(4rem, 10vw, 8rem) 1.5rem clamp(3rem, 8vw, 6rem);
        }

        .hero-wrapper::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 40px,
                    rgba(255,255,255,0.03) 40px,
                    rgba(255,255,255,0.03) 41px
                ),
                repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 40px,
                    rgba(255,255,255,0.03) 40px,
                    rgba(255,255,255,0.03) 41px
                );
            pointer-events: none;
        }

        .hero-wrapper::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255,255,255,0.08) 0%, transparent 70%);
            pointer-events: none;
        }

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

        .hero-rubric {
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: rgba(255,255,255,0.7);
            margin-bottom: 1.5rem;
        }

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

        .hero-subtitle {
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            color: rgba(255,255,255,0.85);
            font-style: italic;
            letter-spacing: 0.02em;
            margin-bottom: 2rem;
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background-color: var(--color-secondary);
            color: #FFFFFF;
            padding: 0.875rem 1.75rem;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: transform var(--transition-base), box-shadow var(--transition-base);
        }

        .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
            color: #FFFFFF;
        }

        .hero-cta:focus {
            outline: 2px solid #FFFFFF;
            outline-offset: 2px;
        }

        [data-content="hero"] figure {
            max-width: var(--max-width-content);
            margin: 2rem auto 0;
            padding: 0 1.5rem;
        }

        [data-content="hero"] .hero-image {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        }

        [data-content="hero"] figcaption {
            text-align: center;
            font-size: 0.875rem;
            color: rgba(255,255,255,0.7);
            margin-top: 0.75rem;
        }

        /* Intro Section */
        [data-content="intro"] {
            padding-top: var(--section-gap);
        }

        /* TL;DR Section */
        [data-content="tldr"] {
            padding-top: 0;
        }

        .tldr {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-secondary);
            padding: 1.5rem 2rem;
            border-radius: 0 8px 8px 0;
        }

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

        .tldr ul {
            margin-bottom: 0;
        }

        .tldr li {
            margin-bottom: 0.75rem;
        }

        .tldr li:last-child {
            margin-bottom: 0;
        }

        /* TOC Section - Vertical List */
        [data-content="toc"] {
            background-color: var(--color-surface);
            padding: 2rem;
            border-radius: 8px;
            border: 1px solid var(--color-border);
        }

        [data-content="toc"] h2 {
            font-size: 1rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-text-secondary);
            margin-bottom: 1.25rem;
        }

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

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

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

        .toc-list a {
            color: var(--color-text);
            text-decoration: none;
            font-weight: 500;
            transition: color var(--transition-base);
        }

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

        .toc-sublist {
            list-style: none;
            padding-left: 1.25rem;
            margin-top: 0.5rem;
            margin-bottom: 0;
        }

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

        .toc-sublist a {
            font-weight: 400;
            font-size: 0.95rem;
            color: var(--color-text-secondary);
        }

        .toc-sublist a:hover {
            color: var(--color-secondary);
        }

        /* Content Sections */
        [data-content="how-quoten-work"],
        [data-content="quoten-formats"],
        [data-content="quoten-types"],
        [data-content="finding-value"],
        [data-content="quoten-comparison"],
        [data-content="live-quoten"],
        [data-content="bundesliga-focus"],
        [data-content="common-mistakes"],
        [data-content="tools-calculator"],
        [data-content="faq"] {
            padding-top: 1rem;
        }

        /* Subsections */
        [data-content="calculation-formula"],
        [data-content="quotenschluessel-explained"],
        [data-content="real-vs-fair-quote"],
        [data-content="decimal-format"],
        [data-content="fractional-format"],
        [data-content="american-format"],
        [data-content="dreiwegwette"],
        [data-content="over-under"],
        [data-content="handicap"],
        [data-content="special-markets"],
        [data-content="value-bet-formula"],
        [data-content="expected-value"],
        [data-content="why-compare"],
        [data-content="comparison-methodology"] {
            margin-bottom: calc(var(--section-gap) * 0.6);
        }

        /* Components */

        /* Info Box */
        .info-box {
            background-color: var(--color-neutral-light);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }

        .info-box p {
            margin-bottom: 0.75rem;
            text-align: left;
        }

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

        /* Worked Example (Formula Card) */
        .worked-example {
            background-color: var(--color-surface);
            border: 2px solid var(--color-primary);
            border-radius: 8px;
            padding: 1.75rem;
            margin: 2rem 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        .worked-example p {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
            text-align: left;
        }

        .worked-example p:first-child {
            font-family: var(--font-sans);
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 1rem;
        }

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

        /* Callout */
        .callout {
            border-left: 4px solid var(--color-accent);
            background-color: rgba(214, 158, 46, 0.08);
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 8px 8px 0;
        }

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

        @media (prefers-color-scheme: dark) {
            .callout {
                background-color: rgba(236, 201, 75, 0.1);
            }
        }

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

        .key-takeaway p {
            font-size: clamp(1.1rem, 2.5vw, 1.25rem);
            font-weight: 600;
            line-height: 1.5;
            margin-bottom: 0;
            text-align: left;
            color: var(--color-text);
        }

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

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

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

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

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

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

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

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

        .dos-donts > div:first-child {
            border-left: 3px solid var(--color-secondary);
            padding-left: 1rem;
        }

        .dos-donts > div:last-child {
            border-left: 3px solid var(--color-alert);
            padding-left: 1rem;
        }

        .dos-donts p {
            font-weight: 600;
            margin-bottom: 0.75rem;
            text-align: left;
        }

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

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

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

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

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

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

        .pre-bet-checklist h4 {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-secondary);
            margin-bottom: 1rem;
        }

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

        .pre-bet-checklist li {
            position: relative;
            margin-bottom: 0.75rem;
        }

        .pre-bet-checklist li::before {
            content: '\2610';
            position: absolute;
            left: -1.75rem;
            color: var(--color-secondary);
            background-color: var(--color-bg);
            padding: 0 0.25rem;
        }

        /* At a Glance */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0;
            margin: 2rem 0;
            background-color: var(--color-surface);
            border-radius: 8px;
            overflow: hidden;
        }

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

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

        .at-a-glance h4 {
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 700;
            color: var(--color-primary);
            margin-bottom: 0.5rem;
        }

        .at-a-glance p {
            font-size: 0.875rem;
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: center;
        }

        @media (max-width: 600px) {
            .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;
            }
        }

        /* Section Bridge */
        .section-bridge {
            text-align: center;
            margin: 2.5rem 0;
        }

        .section-bridge p {
            display: inline-block;
            font-style: italic;
            color: var(--color-secondary);
            position: relative;
            padding: 0 2rem;
            margin-bottom: 0;
            text-align: center;
        }

        .section-bridge p::before,
        .section-bridge p::after {
            content: '\2014\2014';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: var(--color-border);
            font-style: normal;
        }

        .section-bridge p::before {
            right: 100%;
        }

        .section-bridge p::after {
            left: 100%;
        }

        /* Odds Example */
        .odds-example {
            background-color: var(--color-primary);
            color: var(--color-bg);
            padding: 1.75rem;
            border-radius: 8px;
            margin: 2rem 0;
            text-align: center;
        }

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

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

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

        @media (prefers-color-scheme: dark) {
            .odds-example {
                background-color: #2C5282;
                color: #E2E8F0;
            }
            .odds-example p,
            .odds-example strong {
                color: #E2E8F0;
            }
        }

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

        .card-grid > div {
            background-color: var(--color-surface);
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--color-border);
            box-shadow: 0 2px 4px rgba(0,0,0,0.04);
            transition: box-shadow var(--transition-base), transform var(--transition-base);
        }

        .card-grid > div:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }

        .card-grid h4 {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 0.75rem;
        }

        .card-grid p {
            font-size: 0.95rem;
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: left;
        }

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

        .comparison > div {
            background-color: var(--color-surface);
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--color-border);
        }

        .comparison h4 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 0.75rem;
            text-align: left;
        }

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

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

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

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

        [data-content="faq"] summary {
            cursor: pointer;
            font-weight: 600;
            color: var(--color-text);
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-right: 1.5rem;
            position: relative;
            transition: color var(--transition-base);
        }

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

        [data-content="faq"] summary::after {
            content: '+';
            position: absolute;
            right: 0;
            font-size: 1.25rem;
            font-weight: 400;
            color: var(--color-secondary);
            transition: transform var(--transition-base);
        }

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

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

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

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

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

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

        [data-content="faq"] details p {
            text-align: left;
        }


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

        .article-image {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
        }

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

        /* Back to Top */
        .back-to-top {
            display: flex;        /* Change inline-flex to flex to allow block-level behavior */
            width: fit-content;   /* Restrict the width to the size of the text */
            margin: 2rem auto 0;  /* Set top margin to 2rem, and auto for left/right to center it */
            
            /* Leave the rest of your properties as they are: */
            align-items: center;
            gap: 0.5rem;
            color: var(--color-text-secondary);
            font-size: 0.875rem;
            text-decoration: none;
            transition: color var(--transition-base);
        }

        .back-to-top:hover {
            color: var(--color-secondary);
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            :root {
                --section-gap: clamp(2rem, 5vw, 3rem);
            }

            [data-content] {
                padding: 0 1rem;
            }

            .header-meta {
                padding: 0.75rem 1rem;
            }

            .hero-wrapper {
                padding: clamp(3rem, 8vw, 5rem) 1rem clamp(2rem, 6vw, 4rem);
            }

            [data-content="hero"] figure {
                padding: 0 1rem;
            }

            [data-content="toc"] {
                padding: 1.5rem;
            }

            .tldr {
                padding: 1.25rem 1.5rem;
            }

            .worked-example {
                padding: 1.25rem;
            }

            .at-a-glance > div {
                padding: 1.25rem;
            }
        }

/* =========================================
   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;
}

/* Footer Main Layout */
.site-footer {
    background-color: #1a202c; /* Match your site's dark background */
    color: #cbd5e0;
    padding: 60px 20px 20px;
    font-family: inherit;
    border-top: 1px solid #2d3748;
}

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

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

/* Column Headings */
.footer-col-title {
    color: #ecc94b; /* Soft yellow to distinct headings */
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Common List Styles for all columns */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    padding-left: 14px;
}

/* Custom bullet points */
.footer-list li::before {
    content: "•";
    color: #e53e3e; /* Red bullet point accent */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* WP Nav specific overrides if needed */
.footer-nav-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer {
        padding: 40px 15px 15px;
    }
}

/* Logo container styling */
.site-logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* Pushes the nav menu to the right */
}

/* Ensure the logo image doesn't break the header height */
.site-logo img {
    max-height: 40px; /* Adjust according to your design */
    width: auto;
    display: block;
}

/* Fallback text style if no logo is uploaded */
.site-name-fallback {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
}

html, body {
    overflow-x: hidden;
}