/* ========================================
           1. CSS Variables & Reset
        ======================================== */
        :root {
            /* Colors - Light Theme */
            --color-bg: #FFFFFF;
            --color-bg-secondary: #FAFAF8;
            --color-surface: #F8F8F8;
            --color-text: #1A1A1A;
            --color-text-secondary: #5C5C5C;
            --color-accent: #2D8A6E;
            --color-accent-light: #F0F7F4;
            --color-border: #E5E5E5;
            --color-border-dark: #E0E0E0;
            
            /* Component Colors */
            --color-success: #2D8A6E;
            --color-danger: #C45C5C;
            --color-warning-bg: #FFF9E6;
            --color-warning-border: #E6D9A8;
            --color-tip-bg: #E8F5F0;
            --color-tip-border: #B8D9CD;
            
            /* Hero */
            --color-hero-bg: #F5FAF8;
            --color-hero-glow: rgba(45, 138, 110, 0.08);
            
            /* Typography */
            --font-display: 'Oswald', sans-serif;
            --font-body: 'Source Sans 3', sans-serif;
            --font-mono: 'Space Mono', monospace;
            
            /* Sizes */
            --h1-size: clamp(36px, 6vw, 48px);
            --h2-size: clamp(26px, 4vw, 32px);
            --h3-size: clamp(20px, 3vw, 24px);
            --body-size: 18px;
            --caption-size: 14px;
            --small-size: 12px;
            
            /* Spacing */
            --section-gap: clamp(48px, 8vw, 80px);
            --content-max-width: 830px;
            --content-padding: clamp(20px, 5vw, 40px);
            
            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-medium: 250ms ease;
            --transition-slow: 400ms ease-out;
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #121212;
                --color-bg-secondary: #1A1A1A;
                --color-surface: #1E1E1E;
                --color-text: #F0F0F0;
                --color-text-secondary: #A0A0A0;
                --color-accent: #4CAF8A;
                --color-accent-light: #1A2F28;
                --color-border: #333333;
                --color-border-dark: #404040;
                
                --color-warning-bg: #2A2820;
                --color-warning-border: #4D4A3D;
                --color-tip-bg: #1A2A25;
                --color-tip-border: #2D4A40;
                
                --color-hero-bg: #0F1512;
                --color-hero-glow: rgba(76, 175, 138, 0.06);
}
        
        
        
        /* Reset */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: var(--font-body);
            font-size: var(--body-size);
            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 {
            font-family: var(--font-display);
            line-height: 1.2;
            text-align: left;
        }
        
        h1 {
            font-size: var(--h1-size);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        h2 {
            font-size: var(--h2-size);
            font-weight: 600;
            margin-bottom: 1.25em;
            scroll-margin-top: 2rem;
        }
        
        h3 {
            font-family: var(--font-body);
            font-size: var(--h3-size);
            font-weight: 600;
            margin-bottom: 1em;
            scroll-margin-top: 2rem;
        }
        
        p {
            text-align: left;
            margin-bottom: 1.25em;
        }
        
        p:last-child {
            margin-bottom: 0;
        }
        
        a {
            color: var(--color-accent);
            text-decoration: underline;
            text-underline-offset: 3px;
            transition: opacity var(--transition-fast);
        }
        
        a:hover {
            opacity: 0.8;
        }
        
        a:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 2px;
        }
        
        strong {
            font-weight: 600;
        }
        
        em {
            font-style: italic;
        }
        
        ul, ol {
            text-align: left;
            margin-bottom: 1.25em;
            padding-left: 1.5em;
        }
        
        li {
            margin-bottom: 0.5em;
        }
        
        li:last-child {
            margin-bottom: 0;
        }
        
        blockquote {
            text-align: left;
            border-left: 3px solid var(--color-accent);
            padding-left: 1.5em;
            margin: 1.5em 0;
            font-style: italic;
            color: var(--color-text-secondary);
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5em 0;
            text-align: left;
        }
        
        th, td {
            padding: 12px 16px;
            border-bottom: 1px solid var(--color-border);
            text-align: left;
        }
        
        th {
            font-weight: 600;
            background-color: var(--color-bg-secondary);
        }
        
        figcaption {
            font-size: var(--caption-size);
            color: var(--color-text-secondary);
            text-align: center;
            margin-top: 12px;
        }
        
        /* ========================================
           3. Layout - Sections
        ======================================== */
        header {
            position: relative;
        }
        
        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);
            margin-bottom: var(--section-gap);
        }
        
        [data-content] figure {
            max-width: 100%;
            margin: 1.5em auto;
        }
        
        [data-content] img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        
        .hero-image {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            border-radius: 6px;
        }
        
        .article-image {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            border-radius: 4px;
        }
        
        /* ========================================
           4. Components
        ======================================== */
        
        /* --- Info Box --- */
        .info-box {
            background-color: var(--color-accent-light);
            border-left: 4px solid var(--color-accent);
            padding: 24px 28px;
            margin: 1.5em 0;
            border-radius: 0 4px 4px 0;
        }
        
        .info-box p {
            text-align: left;
            margin-bottom: 0.75em;
        }
        
        .info-box p:last-child {
            margin-bottom: 0;
        }
        
        .info-box strong {
            font-family: var(--font-body);
            font-size: var(--caption-size);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: block;
            margin-bottom: 12px;
            color: var(--color-text);
        }
        
        /* --- Odds Example --- */
        .odds-example {
            background-color: #1A1A1A;
            border-radius: 8px;
            padding: 32px;
            margin: 1.5em 0;
        }
        
        @media (prefers-color-scheme: dark) {
            .odds-example {
                background-color: #0A0A0A;
                border: 1px solid var(--color-border);
            }
        }
        
        .odds-example p {
            color: #FFFFFF;
            text-align: center;
            margin-bottom: 1em;
        }
        
        .odds-example p:last-child {
            margin-bottom: 0;
        }
        
        .odds-example strong {
            font-family: var(--font-mono);
            font-size: 16px;
            color: #FFFFFF;
        }
        
        .odds-example table {
            width: 100%;
            border-collapse: collapse;
            margin: 1em 0;
        }
        
        .odds-example th,
        .odds-example td {
            padding: 12px 16px;
            text-align: center;
            color: #FFFFFF;
            border-bottom: 1px solid #333333;
        }
        
        .odds-example th {
            font-family: var(--font-body);
            font-size: var(--caption-size);
            font-weight: 400;
            color: #888888;
            background-color: transparent;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .odds-example td {
            font-family: var(--font-mono);
            font-size: 16px;
        }
        
        .odds-example tbody tr:last-child td {
            border-bottom: none;
        }
        
        /* --- Callout --- */
        .callout {
            padding: 20px 24px;
            margin: 1.5em 0;
            border-radius: 4px;
            border: 1px solid var(--color-warning-border);
            background-color: var(--color-warning-bg);
        }
        
        .callout p {
            text-align: left;
            color: var(--color-text);
            margin-bottom: 0.5em;
        }
        
        .callout p:last-child {
            margin-bottom: 0;
        }
        
        .callout strong {
            display: block;
            margin-bottom: 8px;
            color: var(--color-text);
        }
        
        .callout.tip {
            background-color: var(--color-tip-bg);
            border-color: var(--color-tip-border);
        }
        
        /* --- Key Takeaway --- */
        .key-takeaway {
            border-top: none;
            padding-top: 20px;
            margin: 2em 0;
        }
        
        .key-takeaway p {
            font-family: var(--font-body);
            font-size: clamp(20px, 3vw, 24px);
            font-weight: 600;
            line-height: 1.4;
            text-align: left;
            color: var(--color-text);
        }
        
        /* --- Card Grid --- */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin: 1.5em 0;
        }
        
        .card-grid > div {
            background-color: var(--color-bg-secondary);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            padding: 24px;
            transition: box-shadow var(--transition-medium);
        }
        
        .card-grid > div:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        
        .card-grid p {
            text-align: left;
            color: var(--color-text);
        }
        
        .card-grid strong {
            display: block;
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--color-text);
        }
        
        /* --- Comparison --- */
        .comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            margin: 1.5em 0;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            overflow: hidden;
        }
        
        .comparison > div {
            background-color: var(--color-bg-secondary);
            padding: 24px;
        }
        
        .comparison > div:first-child {
            border-right: 1px solid var(--color-border);
        }
        
        .comparison p {
            text-align: left;
            color: var(--color-text);
        }
        
        .comparison strong {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 600;
            display: block;
            margin-bottom: 16px;
            color: var(--color-text);
        }
        
        .comparison ul {
            list-style: disc;
            padding-left: 1.25em;
            margin-bottom: 0;
        }
        
        .comparison li {
            margin-bottom: 8px;
            color: var(--color-text);
        }
        
        @media (max-width: 600px) {
            .comparison {
                grid-template-columns: 1fr;
            }
            
            .comparison > div:first-child {
                border-right: none;
                border-bottom: 1px solid var(--color-border);
            }
        }
        
        /* --- Fun Fact --- */
        .fun-fact {
            position: relative;
            padding-left: 24px;
            margin: 1.5em 0;
        }
        
        .fun-fact::before {
            content: '—';
            position: absolute;
            left: 0;
            top: 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: 1.5em 0;
        }
        
        .glossary-term strong {
            font-family: var(--font-mono);
            font-size: 16px;
            color: var(--color-accent);
            text-decoration: underline;
            text-decoration-style: dotted;
            text-underline-offset: 4px;
            flex-shrink: 0;
        }
        
        .glossary-term p {
            font-style: italic;
            color: var(--color-text-secondary);
            text-align: left;
            margin-bottom: 0;
        }
        
        @media (max-width: 500px) {
            .glossary-term {
                flex-direction: column;
                gap: 4px;
            }
        }
        
        /* --- Dos and Don'ts --- */
        .dos-donts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            margin: 1.5em 0;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid var(--color-border);
        }
        
        .dos-donts > div {
            padding: 24px;
            background-color: var(--color-bg-secondary);
        }
        
        .dos-donts > div:first-child {
            border-right: 1px solid var(--color-border);
        }
        
        .dos-donts > div:first-child strong {
            color: var(--color-success);
        }
        
        .dos-donts > div:last-child strong {
            color: var(--color-danger);
        }
        
        .dos-donts p {
            text-align: left;
            margin-bottom: 12px;
            color: var(--color-text);
        }
        
        .dos-donts strong {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 600;
            display: block;
        }
        
        .dos-donts ul {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }
        
        .dos-donts li {
            position: relative;
            padding-left: 24px;
            margin-bottom: 10px;
            color: var(--color-text);
        }
        
        .dos-donts li::before {
            position: absolute;
            left: 0;
            font-weight: 600;
        }
        
        .dos-donts > div:first-child li::before {
            content: '\2713';
            color: var(--color-success);
        }
        
        .dos-donts > div:last-child li::before {
            content: '\2717';
            color: var(--color-danger);
        }
        
        @media (max-width: 600px) {
            .dos-donts {
                grid-template-columns: 1fr;
            }
            
            .dos-donts > div:first-child {
                border-right: none;
                border-bottom: 1px solid var(--color-border);
            }
        }
        
        /* --- Pre-Bet Checklist --- */
        .pre-bet-checklist {
            margin: 1.5em 0;
        }
        
        .pre-bet-checklist > p {
            font-family: var(--font-display);
            font-size: var(--caption-size);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--color-accent);
            margin-bottom: 16px;
            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: 28px;
            margin-bottom: 12px;
            color: var(--color-text);
        }
        
        .pre-bet-checklist li::before {
            content: '\2610';
            position: absolute;
            left: 0;
            color: var(--color-accent);
            font-size: 16px;
            background-color: var(--color-bg);
            padding: 0 4px;
            margin-left: -14px;
        }
        
        /* --- At a Glance --- */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0;
            margin: 1.5em 0;
            background-color: var(--color-surface);
            border: 1px solid var(--color-border-dark);
            border-radius: 6px;
            overflow: hidden;
        }
        
        .at-a-glance > div {
            padding: 16px 24px;
            border-right: 1px solid var(--color-border-dark);
        }
        
        .at-a-glance > div:last-child {
            border-right: none;
        }
        
        .at-a-glance p {
            text-align: center;
            margin-bottom: 0;
            color: var(--color-text);
        }
        
        .at-a-glance p:first-child,
        .at-a-glance strong {
            font-family: var(--font-body);
            font-size: var(--small-size);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--color-text-secondary);
            display: block;
            margin-bottom: 8px;
        }
        
        .at-a-glance p:last-child {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 600;
            color: var(--color-text);
        }
        
        @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-dark);
            }
            
            .at-a-glance > div:last-child {
                border-bottom: none;
            }
        }
        
        /* --- Worked Example --- */
        .worked-example {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border-dark);
            border-radius: 6px;
            padding: 28px;
            margin: 1.5em 0;
        }
        
        .worked-example p {
            text-align: left;
            margin-bottom: 1em;
            color: var(--color-text);
        }
        
        .worked-example p:last-child {
            margin-bottom: 0;
        }
        
        .worked-example strong {
            font-family: var(--font-body);
            font-size: 16px;
            font-weight: 600;
            display: block;
            margin-bottom: 16px;
            color: var(--color-text);
        }
        
        .worked-example p:not(:first-child) {
            font-family: var(--font-mono);
            font-size: 15px;
            padding: 8px 0;
            border-bottom: 1px dashed var(--color-border);
        }
        
        .worked-example p:last-child {
            background-color: var(--color-accent-light);
            padding: 12px;
            border-radius: 4px;
            border-bottom: none;
            margin-top: 16px;
        }
        
        /* --- Section Bridge --- */
        .section-bridge {
            display: block;
            max-width: 600px;
            margin: 48px auto;
            text-align: center;
        }
        
        .section-bridge p {
            font-family: var(--font-body);
            font-style: italic;
            font-size: var(--body-size);
            color: var(--color-text-secondary);
            text-align: center;
            position: relative;
            display: inline;
        }
        
        .section-bridge p::before,
        .section-bridge p::after {
            content: '—';
            color: var(--color-accent);
            margin: 0 12px;
        }
        
        /* ========================================
           5. Hero Section
        ======================================== */
        [data-content="hero"] {
            max-width: none;
            padding: 0;
            margin-bottom: var(--section-gap);
            background: 
                radial-gradient(ellipse at 50% 30%, var(--color-hero-glow) 0%, transparent 60%),
                var(--color-hero-bg);
        }
        
        .hero-inner {
            max-width: calc(var(--content-max-width) + var(--content-padding) * 2);
            margin: 0 auto;
            padding: clamp(48px, 10vw, 80px) var(--content-padding);
            text-align: center;
        }
        
        .hero-label {
            font-family: var(--font-body);
            font-size: var(--small-size);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--color-accent);
            margin-bottom: 16px;
        }
        
        [data-content="hero"] h1 {
            text-align: center;
            margin-bottom: 24px;
        }
        
        .hero-description {
            font-size: clamp(18px, 2.5vw, 20px);
            line-height: 1.6;
            max-width: 720px;
            margin: 0 auto 32px;
            color: var(--color-text-secondary);
            text-align: center;
        }
        
        .hero-divider {
            width: 60px;
            height: 2px;
            background-color: var(--color-accent);
            margin: 0 auto 24px;
        }
        
        .hero-meta {
            font-size: var(--caption-size);
            color: var(--color-text-secondary);
            margin-bottom: 40px;
        }
        
        .hero-meta time {
            margin-right: 16px;
        }
        
        .hero-badge {
            display: inline-block;
            background-color: var(--color-accent-light);
            color: var(--color-accent);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: var(--small-size);
            font-weight: 600;
        }
        
        [data-content="hero"] figure {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 var(--content-padding);
        }
        
        [data-content="hero"] figure img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 6px;
        }
        
        [data-content="hero"] figcaption {
            margin-top: 16px;
        }
        
        /* ========================================
           6. Table of Contents (Grid Style)
        ======================================== */
        [data-content="toc"] {
            max-width: calc(var(--content-max-width) + 100px);
            margin-bottom: var(--section-gap);
            padding: 32px var(--content-padding);
            background-color: var(--color-bg-secondary);
            border: 1px solid var(--color-border);
            border-radius: 6px;
        }
        
        [data-content="toc"] h2 {
            font-size: var(--h3-size);
            margin-bottom: 24px;
            text-align: left;
        }
        
        .toc-grid {
            column-count: 2;
            column-gap: 48px;
        }
        
        .toc-item {
            break-inside: avoid;
            margin-bottom: 20px;
        }
        
        .toc-item a {
            font-family: var(--font-body);
            font-size: 16px;
            font-weight: 600;
            color: var(--color-text);
            text-decoration: none;
            transition: color var(--transition-fast);
        }
        
        .toc-item a:hover {
            color: var(--color-accent);
            opacity: 1;
        }
        
        .toc-subitems {
            list-style: none;
            padding-left: 16px;
            margin-top: 8px;
        }
        
        .toc-subitems li {
            margin-bottom: 6px;
        }
        
        .toc-subitems a {
            font-size: var(--caption-size);
            font-weight: 400;
            color: var(--color-text-secondary);
        }
        
        @media (max-width: 700px) {
            .toc-grid {
                column-count: 1;
            }
        }
        
        /* ========================================
           7. FAQ Accordion
        ======================================== */
        [data-content="faq"] details {
            border-bottom: 1px solid var(--color-border);
            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: 20px 0;
            cursor: pointer;
            font-family: var(--font-body);
            font-size: var(--body-size);
            font-weight: 600;
            color: var(--color-text);
            list-style: none;
            transition: color var(--transition-fast);
        }
        
        [data-content="faq"] summary::-webkit-details-marker {
            display: none;
        }
        
        [data-content="faq"] summary::after {
            content: '+';
            font-family: var(--font-mono);
            font-size: 20px;
            font-weight: 400;
            color: var(--color-accent);
            transition: transform var(--transition-medium);
            flex-shrink: 0;
            margin-left: 16px;
        }
        
        [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;
        }
        
        /* Modern ::details-content animation */
        [data-content="faq"] ::details-content {
            opacity: 0;
            block-size: 0;
            overflow: hidden;
            transition: 
                opacity var(--transition-medium),
                block-size var(--transition-medium),
                content-visibility var(--transition-medium) allow-discrete;
        }
        
        [data-content="faq"] details[open]::details-content {
            opacity: 1;
            block-size: auto;
        }
        
        /* Fallback for older browsers */
        @supports not selector(::details-content) {
            [data-content="faq"] details[open] > *:not(summary) {
                animation: faq-fade-in var(--transition-medium) ease-out;
            }
            
            @keyframes faq-fade-in {
                from {
                    opacity: 0;
                    transform: translateY(-8px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
        }
        
        [data-content="faq"] details > div {
            padding-bottom: 20px;
        }
        
        [data-content="faq"] details > div p {
            color: var(--color-text-secondary);
            text-align: left;
        }
        
      
        
        /* ========================================
           9. Back to Top
        ======================================== */
        .back-to-top {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-body);
            font-size: var(--caption-size);
            font-weight: 600;
            color: var(--color-text-secondary);
            text-decoration: none;
            padding: 12px 20px;
            border: 1px solid var(--color-border);
            border-radius: 4px;
            transition: 
                color var(--transition-fast),
                border-color var(--transition-fast),
                transform var(--transition-fast);
        }
        
        .back-to-top:hover {
            color: var(--color-accent);
            border-color: var(--color-accent);
            transform: translateY(-2px);
            opacity: 1;
        }
        
        .back-to-top::before {
            content: '\2191';
            font-size: 16px;
        }
        
        .back-to-top-container {
            text-align: center;
            margin-top: 48px;
            margin-bottom: 24px;
        }
        
        /* ========================================
           10. Media Queries
        ======================================== */
        @media (max-width: 768px) {
            :root {
                --section-gap: clamp(32px, 6vw, 48px);
            }
            
            [data-content] {
                padding-left: 20px;
                padding-right: 20px;
            }
            
            .hero-inner {
                padding: 40px 20px;
            }
            
            [data-content="toc"] {
                padding: 24px 20px;
            }
        }
        
        @media (max-width: 480px) {
            :root {
                --body-size: 17px;
            }
            
            h1 {
                letter-spacing: 1px;
            }
            
            .hero-meta {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }
            
            .hero-meta time {
                margin-right: 0;
            }
        }

/* =========================================
   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 Structure & Styles
   ========================================= */

.site-footer {
    background-color: #0f0f11; /* Very dark background */
    color: #a0a0a0;
    padding: 60px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-top: 1px solid #222;
}

/* 4-Column Grid */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: none; /* Removes the line at the bottom of the grid */
}

/* Headings */
.widget-title {
    color: #2ecc71; /* Green accent color matching your site */
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* List Styling (Custom Dashes instead of dots) */
.custom-bullet-list,
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-bullet-list li,
.footer-menu-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex; /* Flex to align dashes nicely */
    align-items: flex-start;
}

/* Styling the custom marker */
.custom-bullet-list li::before,
.footer-menu-list li::before {
    content: "—";
    color: #2ecc71; /* Green dashes */
    margin-right: 10px;
    font-weight: bold;
}

/* Links inside footer */
.site-footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Copyright Bottom Bar */
.footer-copyright {
    width: 100%;
    padding-top: 25px;
    margin-top: 20px;
    border-top: none; /* Removes the line above the copyright */
    
    /* Using flexbox to guarantee center alignment */
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright p {
    text-align: center !important;
    margin: 0 !important;
    font-size: 0.85rem;
    color: rgb(255, 255, 255)
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr; /* 1 column on mobile phones */
    }
}

/* Prevent horizontal scrolling on mobile devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

footer {
  padding-top: 3rem;     
  margin-top: calc(var(--section-gap) + 1rem);
}

/* Add bottom margin to all paragraphs inside the main content */
main p {
    margin-bottom: 24px !important;
}

/* Add space above and below headings to separate sections */
main h1, 
main h2, 
main h3, 
main h4, 
main h5, 
main h6 {
    margin-top: 45px !important;
    margin-bottom: 16px !important;
}

/* Remove top margin for the very first element so it doesn't push down unnecessarily */
main > *:first-child {
    margin-top: 0 !important;
}

/* Add bottom margin for lists (useful for your Indice block) */
main ul, 
main ol {
    margin-bottom: 24px !important;
}

/* Add top space to the intro section if needed */
section[data-content="intro"] {
    margin-top: 20px !important;
}