/* ========================================
       1. CSS VARIABLES & RESET
    ======================================== */
    :root {
      /* Colors - Light Theme (from design spec) */
      --color-primary: #1A365D;
      --color-accent: #059669;
      --color-text: #374151;
      --color-bg: #F9FAFB;
      --color-surface: #FFFFFF;
      --color-warning: #D97706;
      --color-warning-bg: #FFFBEB;
      --color-accent-bg: #ECFDF5;
      --color-border: #E5E7EB;
      --color-text-secondary: #6B7280;
      --color-success: #059669;
      --color-danger: #DC2626;
      
      /* Typography */
      --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      
      /* Sizes */
      --h1-size: clamp(32px, 5vw, 48px);
      --h2-size: clamp(24px, 3.5vw, 32px);
      --h3-size: clamp(18px, 2.5vw, 24px);
      --body-size: clamp(16px, 1.5vw, 18px);
      --caption-size: 14px;
      
      /* Spacing */
      --section-gap: clamp(48px, 8vw, 80px);
      --content-max-width: 820px;
      --content-padding: clamp(20px, 5vw, 40px);
      
      /* Effects */
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
      --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
      --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
      --transition-fast: 150ms ease;
      --transition-base: 250ms ease;
    
    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #93C5FD;
        --color-accent: #34D399;
        --color-text: #E5E7EB;
        --color-bg: #111827;
        --color-surface: #1F2937;
        --color-warning: #FBBF24;
        --color-warning-bg: #422006;
        --color-accent-bg: #064E3B;
        --color-border: #374151;
        --color-text-secondary: #9CA3AF;
        --color-success: #34D399;
        --color-danger: #F87171;
}

    

    *,
    *::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
    ======================================== */
    p {
      text-align: left;
      margin-bottom: 1.25em;
    }

    h2, h3, h4 {
      font-family: var(--font-display);
      color: var(--color-primary);
      text-align: left;
      line-height: 1.3;
      scroll-margin-top: 2rem;
    }

    h2 {
      font-size: var(--h2-size);
      font-weight: 600;
      margin-bottom: 1em;
      margin-top: 0;
    }

    h3 {
      font-size: var(--h3-size);
      font-weight: 500;
      margin-bottom: 0.75em;
      margin-top: 1.5em;
    }

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

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

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

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

    li {
      margin-bottom: 0.5em;
      text-align: left;
    }

    strong {
      font-weight: 600;
    }

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

    table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5em 0;
      font-size: 0.95em;
    }

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

    @media (prefers-color-scheme: dark) {
      thead {
        background-color: #2D4A6D;
        color: #F9FAFB;
      }
    }

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

    tbody tr:nth-child(even) {
      background-color: var(--color-surface);
    }

    tbody tr:hover {
      background-color: var(--color-accent-bg);
    }

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

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

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

    /* ========================================
       3. LAYOUT - SECTIONS (data-content)
    ======================================== */
    header {
      position: relative;
      z-index: 10;
    }

    main {
      width: 100%;
    }

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

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

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

    /* ========================================
       4. COMPONENTS
    ======================================== */
    
    /* --- Info Box (Warning style) --- */
    .info-box {
      background-color: var(--color-warning-bg);
      border-left: 4px solid var(--color-warning);
      padding: 1.25em 1.5em;
      margin: 1.5em 0;
      border-radius: 0 8px 8px 0;
      box-shadow: var(--shadow-sm);
    }

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

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

    @media (prefers-color-scheme: dark) {
      .info-box {
        background-color: var(--color-warning-bg);
        border-left-color: var(--color-warning);
      }
      .info-box p {
        color: #FEF3C7;
      }
      .info-box strong {
        color: var(--color-warning);
      }
    }

    /* --- Callout (Accent style) --- */
    .callout {
      background-color: var(--color-accent-bg);
      border-left: 4px solid var(--color-accent);
      padding: 1.25em 1.5em;
      margin: 1.5em 0;
      border-radius: 0 8px 8px 0;
      box-shadow: var(--shadow-sm);
    }

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

    @media (prefers-color-scheme: dark) {
      .callout {
        background-color: var(--color-accent-bg);
      }
      .callout p {
        color: #D1FAE5;
      }
    }

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

    .odds-example p {
      text-align: center;
      margin-bottom: 0.5em;
      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: #2D4A6D;
        color: #F9FAFB;
      }
      .odds-example p,
      .odds-example strong {
        color: #F9FAFB;
      }
    }

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

    .card-grid > div {
      background-color: var(--color-surface);
      padding: 1.5em;
      border-radius: 8px;
      border: 1px solid var(--color-border);
      box-shadow: var(--shadow-sm);
      transition: box-shadow var(--transition-base), transform var(--transition-base);
    }

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

    .card-grid p {
      color: var(--color-text);
    }

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

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

    .comparison > div {
      background-color: var(--color-surface);
      padding: 1.25em;
      border-radius: 8px;
      border: 1px solid var(--color-border);
      box-shadow: var(--shadow-sm);
    }

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

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

    /* --- TL;DR --- */
    .tldr {
      background-color: var(--color-surface);
      border-left: 4px solid var(--color-accent);
      padding: 1.5em 2em;
      margin-top: 1.5em;
      margin-bottom: 1.5em;
      border-radius: 0 8px 8px 0;
      box-shadow: var(--shadow-sm);
    }

    .tldr h2 {
      font-size: clamp(18px, 2vw, 20px);
      font-weight: 600;
      margin-bottom: 0.75em;
      color: var(--color-primary);
    }

    .tldr ul {
      margin-bottom: 0;
    }

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

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

    .key-takeaway p {
      font-family: var(--font-display);
      font-size: clamp(18px, 2.5vw, 22px);
      font-weight: 600;
      line-height: 1.4;
      color: var(--color-primary);
      margin-bottom: 0;
    }

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

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

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

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

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

    .glossary-term strong {
      font-family: 'Courier New', monospace;
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: 3px;
      white-space: nowrap;
    }

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

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

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

    .dos-donts > div {
      padding: 1.25em;
      border-radius: 8px;
    }

    .dos-donts > div:first-child {
      background-color: rgba(5, 150, 105, 0.08);
      border: 1px solid var(--color-success);
    }

    .dos-donts > div:last-child {
      background-color: rgba(220, 38, 38, 0.08);
      border: 1px solid var(--color-danger);
    }

    .dos-donts h4 {
      font-size: 1em;
      font-weight: 600;
      margin-bottom: 0.75em;
    }

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

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

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

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

    @media (prefers-color-scheme: dark) {
      .dos-donts > div:first-child {
        background-color: rgba(52, 211, 153, 0.1);
      }
      .dos-donts > div:last-child {
        background-color: rgba(248, 113, 113, 0.1);
      }
    }

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

    .pre-bet-checklist > p:first-child {
      font-family: var(--font-display);
      font-size: var(--caption-size);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-accent);
      margin-bottom: 0.75em;
    }

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

    .pre-bet-checklist li {
      position: relative;
      padding-left: 0.5em;
    }

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

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

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

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

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

    .at-a-glance strong {
      display: block;
      font-family: var(--font-display);
      font-size: 1.5em;
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 0.25em;
    }

    .at-a-glance span {
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
    }

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

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

    .worked-example p {
      font-family: 'Courier New', monospace;
      font-size: 0.95em;
      line-height: 1.6;
      color: var(--color-text);
    }

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

    .worked-example p:last-child {
      margin-top: 1em;
      padding-top: 1em;
      border-top: 1px dashed var(--color-border);
      font-family: var(--font-display);
      font-weight: 600;
      color: var(--color-accent);
    }

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

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

    .section-bridge p {
      display: inline;
      font-style: italic;
      color: var(--color-accent);
      font-size: 0.95em;
    }

    /* ========================================
       5. HERO SECTION
    ======================================== */
    .hero-section {
      width: 100vw;
      margin-left: calc(50% - 50vw);
      background: linear-gradient(135deg, #1A365D 0%, #2D4A6D 100%);
      padding: clamp(60px, 12vh, 100px) var(--content-padding) clamp(50px, 10vh, 80px);
      position: relative;
      overflow: hidden;
    }

    @media (prefers-color-scheme: dark) {
      .hero-section {
        background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6D 100%);
      }
    }

    .hero-inner {
      max-width: var(--content-max-width);
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }

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

    .hero-section .date-badge {
      font-size: var(--caption-size);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: rgba(255,255,255,0.7);
      background-color: rgba(255,255,255,0.1);
      padding: 0.4em 0.8em;
      border-radius: 4px;
    }

    .hero-section .trust-marker {
      font-size: var(--caption-size);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: rgba(255,255,255,0.6);
    }

    .hero-section h1 {
      font-family: var(--font-display);
      font-size: var(--h1-size);
      font-weight: 700;
      color: #FFFFFF;
      line-height: 1.15;
      margin-bottom: 0.75em;
      text-align: left;
    }

    .hero-section .lead {
      font-size: clamp(16px, 2vw, 18px);
      line-height: 1.7;
      color: rgba(255,255,255,0.85);
      max-width: 600px;
    }

    .hero-section .lead p {
      margin-bottom: 1em;
      text-align: left;
      color: rgba(255,255,255,0.85);
    }

    .hero-section .lead p:last-child {
      margin-bottom: 0;
    }

    .hero-section figure {
      margin-top: 2.5em;
    }

    .hero-section .hero-image {
      width: 100%;
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: var(--shadow-lg);
    }

    .hero-section figcaption {
      color: rgba(255,255,255,0.6);
    }

    /* ========================================
       6. TABLE OF CONTENTS (Grid 2-column)
    ======================================== */
    [data-content="toc"] {
      margin-top: var(--section-gap);
    }

    .toc-container {
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 1.5em 2em;
      box-shadow: var(--shadow-sm);
    }

    .toc-title {
      font-size: var(--caption-size);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-text-secondary);
      margin-bottom: 1.25em;
      padding-bottom: 0.75em;
      border-bottom: 1px solid var(--color-border);
    }

    .toc-list {
      column-count: 2;
      column-gap: 2.5em;
      list-style: none;
      padding: 0;
      margin: 0;
    }

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

    .toc-list > li {
      break-inside: avoid;
      margin-bottom: 0.75em;
    }

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

    .toc-list > li > a:hover {
      color: var(--color-accent);
      text-decoration: underline;
    }

    .toc-sublist {
      list-style: none;
      padding-left: 1em;
      margin-top: 0.4em;
      margin-bottom: 0;
    }

    .toc-sublist li {
      margin-bottom: 0.3em;
    }

    .toc-sublist a {
      font-size: 0.9em;
      font-weight: 400;
      color: var(--color-text-secondary);
      text-decoration: none;
    }

    .toc-sublist a:hover {
      color: var(--color-accent);
      text-decoration: underline;
    }

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

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

    summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25em 0;
      cursor: pointer;
      font-weight: 500;
      color: var(--color-primary);
      list-style: none;
      transition: color var(--transition-fast);
    }

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

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

    details[open] summary::after {
      transform: 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 var(--transition-base), block-size var(--transition-base);
      transition-behavior: allow-discrete;
    }

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

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

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

    @supports not selector(::details-content) {
      @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
      }
      details[open] > *:not(summary) {
        animation: fade-in var(--transition-base) ease forwards;
      }
    }

    /* ========================================
       8. BACK TO TOP
    ======================================== */
    .back-to-top {
      display: inline-flex;
      align-items: center;
      gap: 0.5em;
      padding: 0.6em 1.2em;
      font-size: var(--caption-size);
      font-weight: 500;
      color: var(--color-accent);
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 6px;
      text-decoration: none;
      transition: background-color var(--transition-fast), transform var(--transition-fast);
      margin-top: 2em;
    }

    .back-to-top:hover {
      background-color: var(--color-accent-bg);
      transform: translateY(-2px);
    }

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

    /* ========================================
       10. MEDIA QUERIES
    ======================================== */
    @media (max-width: 768px) {
      :root {
        --section-gap: 48px;
        --content-padding: 20px;
      }

      .hero-section {
        padding: 50px var(--content-padding) 40px;
      }

      h2 {
        font-size: 24px;
      }

      h3 {
        font-size: 18px;
      }

      table {
        font-size: 0.85em;
      }

      th, td {
        padding: 0.6em 0.75em;
      }
    }

    @media (max-width: 480px) {
      .hero-section h1 {
        font-size: 28px;
      }

      .toc-container {
        padding: 1.25em 1.5em;
      }
    }

/* =========================================
   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 Base Styles */
.site-footer {
    background-color: #1a1d24; /* Elegant dark background */
    color: #a0aec0;
    padding: 50px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 3px solid #2b6cb0; /* Optional top border accent */
}

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

/* Full-width Disclaimer */
.footer-disclaimer {
    font-size: 0.85rem;
    line-height: 1.6;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 25px;
    margin-bottom: 40px;
    color: #718096;
    text-align: center;
}

.footer-disclaimer strong {
    color: #e2e8f0;
}

/* 4-Column Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Responsive grid for tablets and desktops */
@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Headings */
.footer-heading {
    color: #edf2f7;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Lists and Links */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Subtle dot before list items for structured look */
.footer-list li::before {
    content: "•";
    color: #4a5568;
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Remove dot specifically for WP menu wrapper if it injects differently */
.footer-wp-menu li::before {
    display: none;
}

.footer-column a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #63b3ed; /* Soft blue hover effect */
}

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

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


html, body {
  overflow-x: hidden;
}

