/* ========================================
       1. CSS Variables & Reset
    ======================================== */
    :root {
      /* Colors - Light Theme */
      --color-bg: #FFFFFF;
      --color-text: #1F2937;
      --color-text-secondary: #6B7280;
      --color-accent: #1D4ED8;
      --color-border: #E5E7EB;
      --color-surface: #F9FAFB;
      
      /* Component Colors */
      --color-callout-bg: #FEF3C7;
      --color-callout-border: #F59E0B;
      --color-success: #10B981;
      --color-danger: #EF4444;
      
      /* Typography */
      --font-display: 'Bebas Neue', sans-serif;
      --font-body: 'Inter', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      
      /* Spacing */
      --section-gap: clamp(3rem, 6vw, 5rem);
      --content-width: 820px;
      --content-padding: clamp(1rem, 4vw, 2rem);
      
      /* Transitions */
      --transition-fast: 150ms ease;
      --transition-base: 250ms ease;
    
    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #111827;
        --color-text: #F9FAFB;
        --color-text-secondary: #9CA3AF;
        --color-accent: #60A5FA;
        --color-border: #374151;
        --color-surface: #1F2937;
        --color-callout-bg: #422006;
        --color-callout-border: #D97706;
}

    

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      font-size: 18px;
      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 {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 8vw, 3.5rem);
      font-weight: 400;
      line-height: 1.1;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    h2 {
      font-family: var(--font-display);
      font-size: clamp(1.75rem, 4vw, 2rem);
      font-weight: 400;
      line-height: 1.2;
      color: var(--color-text);
      margin-bottom: 1.5rem;
      text-align: left;
      scroll-margin-top: 2rem;
    }

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

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

    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 {
      margin-bottom: 1.25rem;
      padding-left: 1.5rem;
      text-align: left;
    }

    li {
      margin-bottom: 0.5rem;
    }

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

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

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

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

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

    /* ========================================
       3. Layout - Sections
    ======================================== */
    header {
      /* Empty header should not create visual gap */
    }

    main {
      width: 100%;
    }

    [data-content] {
      max-width: var(--content-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 {
      margin: 2rem auto;
      max-width: 100%;
    }

    [data-content] img {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      border-radius: 4px;
    }

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

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

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

    /* Odds Example */
    .odds-example {
      background-color: #1F2937;
      color: #FFFFFF;
      padding: 1.5rem 2rem;
      border-radius: 8px;
      margin: 2rem 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    @media (prefers-color-scheme: dark) {
      .odds-example {
        background-color: #0F172A;
        color: #F9FAFB;
      }
    }

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

    @media (prefers-color-scheme: dark) {
      .odds-example p {
        color: #F9FAFB;
      }
    }

    .odds-example p:first-child {
      font-family: var(--font-mono);
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      opacity: 0.8;
    }

    .odds-example table {
      margin: 0;
      background: transparent;
    }

    .odds-example th,
    .odds-example td {
      text-align: center;
      border-bottom-color: rgba(255, 255, 255, 0.2);
      font-family: var(--font-mono);
      color: #FFFFFF;
      background: transparent;
    }

    @media (prefers-color-scheme: dark) {
      .odds-example th,
      .odds-example td {
        color: #F9FAFB;
        border-bottom-color: rgba(255, 255, 255, 0.15);
      }
    }

    .odds-example th {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      opacity: 0.7;
    }

    /* Callout */
    .callout {
      background-color: var(--color-callout-bg);
      border: 1px solid var(--color-callout-border);
      padding: 1.25rem;
      border-radius: 6px;
      margin: 2rem 0;
    }

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

    .callout p:first-child {
      font-weight: 500;
    }

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

    .card-grid > div {
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 1.25rem;
      background-color: var(--color-bg);
      transition: box-shadow var(--transition-base);
    }

    .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 p:first-child {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 1.125rem;
      margin-bottom: 0.5rem;
    }

    .card-grid p:last-child {
      color: var(--color-text-secondary);
      font-size: 0.9375rem;
    }

    /* Comparison */
    .comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin: 2rem 0;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      overflow: hidden;
    }

    .comparison > div {
      padding: 1.25rem;
      background-color: var(--color-surface);
    }

    .comparison > div:first-child {
      border-right: 1px solid var(--color-border);
    }

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

    .comparison p:first-child {
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    @media (max-width: 600px) {
      .comparison {
        grid-template-columns: 1fr;
      }
      .comparison > div:first-child {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
      }
    }

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

    .key-takeaway p {
      font-family: var(--font-body);
      font-size: clamp(1.125rem, 2.5vw, 1.375rem);
      font-weight: 500;
      line-height: 1.5;
      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;
      color: var(--color-accent);
      font-weight: 600;
    }

    .fun-fact p {
      font-style: italic;
      color: var(--color-text-secondary);
      font-size: 1rem;
      text-align: left;
    }

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

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

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

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

    /* Dos and Don'ts */
    .dos-donts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin: 2rem 0;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      overflow: hidden;
    }

    .dos-donts > div {
      padding: 1.25rem;
    }

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

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

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

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

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

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

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

    @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: 2rem 0;
    }

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

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

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

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

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

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

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

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

    .at-a-glance p:first-child {
      font-family: var(--font-display);
      font-size: 1rem;
      margin-bottom: 0.5rem;
    }

    .at-a-glance p:last-child {
      font-size: 0.875rem;
      color: var(--color-text-secondary);
    }

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

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

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

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

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

    .worked-example p:last-child {
      margin-top: 1rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--color-border);
      color: var(--color-accent);
      font-weight: 500;
    }

    /* Section Bridge */
    .section-bridge {
      display: block;
      text-align: center;
      font-style: italic;
      color: var(--color-text-secondary);
      margin: 3rem 0;
      font-size: 1rem;
    }

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

    /* ========================================
       5. Hero Section
    ======================================== */
    [data-content="hero"] {
      max-width: none;
      padding: 0;
      margin-bottom: var(--section-gap);
      width: 100vw;
      margin-left: calc(50% - 50vw);
      background-color: var(--color-bg);
    }

    .hero-inner {
      max-width: var(--content-width);
      margin: 0 auto;
      padding: clamp(3rem, 8vw, 5rem) var(--content-padding) 2rem;
      text-align: center;
    }

    .hero-label {
      display: inline-block;
      font-family: var(--font-body);
      font-size: 0.75rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--color-accent);
      margin-bottom: 1.5rem;
    }

    .hero-inner h1 {
      color: var(--color-text);
      margin-bottom: 1.5rem;
    }

    .hero-subtitle {
      font-size: clamp(1rem, 2.5vw, 1.125rem);
      color: var(--color-text-secondary);
      max-width: 540px;
      margin: 0 auto 2rem;
      line-height: 1.6;
    }

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

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

    .hero-meta time {
      display: inline-block;
    }

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

    .hero-image-container {
      max-width: 960px;
      margin: 0 auto;
      padding: 0 var(--content-padding);
    }

    .hero-image {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .hero-image-container figcaption {
      margin-top: 1rem;
    }

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

    .hero-cta a {
      display: inline-block;
      background-color: var(--color-accent);
      color: #FFFFFF;
      padding: 0.75rem 1.5rem;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 500;
      font-size: 0.9375rem;
      transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }

    .hero-cta a:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
      opacity: 1;
    }

    .hero-cta a:focus {
      outline-offset: 4px;
    }

    /* ========================================
       6. Table of Contents (Horizontal)
    ======================================== */
    [data-content="toc"] {
      max-width: 960px;
      margin-bottom: var(--section-gap);
      padding: 1.5rem var(--content-padding);
      border-top: 1px solid var(--color-border);
      border-bottom: 1px solid var(--color-border);
    }

    .toc-title {
      font-family: var(--font-display);
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-text-secondary);
      margin-bottom: 1rem;
      text-align: center;
    }

    .toc-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem 1.5rem;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .toc-list li {
      margin: 0;
    }

    .toc-list a {
      font-size: 0.9375rem;
      color: var(--color-text);
      text-decoration: none;
      padding: 0.25rem 0;
      border-bottom: 1px solid transparent;
      transition: border-color var(--transition-fast), color var(--transition-fast);
    }

    .toc-list a:hover {
      color: var(--color-accent);
      border-bottom-color: var(--color-accent);
      opacity: 1;
    }

    @media (max-width: 600px) {
      .toc-list {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
      }
    }

    /* ========================================
       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.25rem 0;
      cursor: pointer;
      font-weight: 500;
      font-size: 1.0625rem;
      color: var(--color-text);
      list-style: none;
      transition: color var(--transition-fast);
    }

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

    summary::after {
      content: '+';
      font-size: 1.25rem;
      font-weight: 400;
      color: var(--color-text-secondary);
      transition: transform var(--transition-base);
    }

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

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

    summary:focus {
      outline: none;
    }

    summary:focus-visible {
      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) allow-discrete,
        content-visibility var(--transition-base) allow-discrete;
    }

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

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

    details > div > div {
      /* Schema wrapper - no additional styling needed */
    }

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

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

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



    /* ========================================
       9. Utility - Back to Top
    ======================================== */
    .back-to-top {
      display: inline-block;
      margin-top: 2rem;
      font-size: 0.875rem;
      color: var(--color-text-secondary);
      text-decoration: none;
      transition: color var(--transition-fast);
    }

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

    .back-to-top::before {
      content: '\2191';
      margin-right: 0.5rem;
    }

    /* ========================================
       10. Media Queries
    ======================================== */
    @media (max-width: 768px) {
      body {
        font-size: 17px;
      }

      [data-content] {
        margin-bottom: calc(var(--section-gap) * 0.75);
      }
    }

    @media (max-width: 480px) {
      body {
        font-size: 16px;
      }

      h2 {
        margin-bottom: 1.25rem;
      }

      .hero-inner {
        padding-top: 2rem;
      }
    }

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

.custom-structured-footer {
    background-color: #0f172a; 
    color: #94a3b8;
    padding: 4rem 2rem 1rem;
    font-family: Arial, sans-serif;
    border-top: 1px solid #1e293b;
}

.footer-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1e293b;
}

.footer-title {
    color: #f8fafc; 
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #3b82f6;
}

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

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

.footer-list li::before {
    content: '•';
    color: #3b82f6; 
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

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

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

.footer-bottom-bar {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}
.footer-bottom-bar p {
  text-align: center;
  color: #cccdd2;
}

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

@media (max-width: 576px) {
    .footer-grid-container {
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
}

html, body {
    overflow-x: hidden;
}

footer {
  padding-top: 3rem;      /* было 2rem */
  margin-top: calc(var(--section-gap) + 1rem);
}