/* ========================================
       1. CSS Variables and Reset
       ======================================== */
    :root {
      /* Colors - Light Theme */
      --color-bg: #F8F7F4;
      --color-text: #1A1A1A;
      --color-text-secondary: #4A4A4A;
      --color-accent: #1B8F5A;
      --color-accent-hover: #157A4A;
      --color-surface: #EEECEA;
      --color-border: #D4D2CE;
      --color-error: #C94A4A;
      --color-success: #1B8F5A;
      
      /* Typography */
      --font-display: 'Oswald', sans-serif;
      --font-body: 'Source Sans 3', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      
      /* Sizing */
      --content-width: 790px;
      --section-gap: 4rem;
      --component-gap: 2rem;
    
    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #1A1A1A;
        --color-text: #F8F7F4;
        --color-text-secondary: #B0AEA8;
        --color-surface: #2A2A2A;
        --color-border: #3D3D3D;
}

    

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 1.125rem;
      line-height: 1.7;
      color: var(--color-text);
      background-color: var(--color-bg);
    }

    /* ========================================
       2. General Typography
       ======================================== */
    h1 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: clamp(2.5rem, 5vw, 4rem);
      text-transform: uppercase;
      letter-spacing: 0.02em;
      line-height: 1.1;
      color: var(--color-text);
    }

    h2 {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: clamp(1.75rem, 3vw, 2.25rem);
      letter-spacing: 0.01em;
      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-weight: 600;
      font-size: 1.25rem;
      line-height: 1.3;
      color: var(--color-text);
      margin-bottom: 1rem;
      text-align: left;
      scroll-margin-top: 2rem;
    }

    p {
      margin-bottom: 1.5em;
      text-align: left;
    }

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

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

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

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

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

    strong {
      font-weight: 600;
    }

    em {
      font-style: italic;
    }

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

    code {
      font-family: var(--font-mono);
      font-size: 0.95em;
      background: var(--color-surface);
      padding: 0.2em 0.4em;
      border-radius: 3px;
    }

    hr {
      border: none;
      height: 2px;
      background: var(--color-accent);
      width: 40px;
      margin: 2rem 0;
    }

    figure {
      margin: var(--component-gap) auto;
      max-width: 100%;
    }

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

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

    /* ========================================
       3. Layout - Data Content Sections
       ======================================== */
    header {
      /* Empty header - no visual gap before hero */
    }

    main {
      width: 100%;
    }

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

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

    [data-content="toc"] {
      margin-bottom: var(--section-gap);
    }

    /* ========================================
       4. Visual Components
       ======================================== */
    
    /* Info Box */
    .info-box {
      background: var(--color-surface);
      border-left: 4px solid var(--color-accent);
      padding: 1.5rem 1.75rem;
      margin: var(--component-gap) 0;
      font-size: 1rem;
    }

    .info-box strong {
      display: block;
      margin-bottom: 0.5rem;
      font-family: var(--font-display);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-size: 0.85rem;
      color: var(--color-accent);
    }

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

    /* Calc Example */
    .calc-example {
      background: #1A1A1A;
      color: #F8F7F4;
      padding: 2rem;
      margin: var(--component-gap) 0;
      font-family: var(--font-mono);
      border-radius: 4px;
    }

    @media (prefers-color-scheme: dark) {
      .calc-example {
        background: #0D0D0D;
        color: #F8F7F4;
      }
    }

    .calc-example .label {
      color: var(--color-accent);
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 1rem;
      display: block;
    }

    .calc-example p {
      color: #F8F7F4;
      text-align: left;
      margin-bottom: 0.5rem;
    }

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

    .calc-example .formula {
      font-size: 1.25rem;
      margin-bottom: 0.5rem;
    }

    .calc-example .result {
      color: var(--color-accent);
      font-size: 1.5rem;
      font-weight: 700;
    }

    /* Callout */
    .callout {
      background: transparent;
      border: 2px solid var(--color-accent);
      padding: 1.5rem;
      padding-left: 2.5rem;
      margin: var(--component-gap) 0;
      position: relative;
    }

    .callout::before {
      content: '!';
      position: absolute;
      left: -12px;
      top: 50%;
      transform: translateY(-50%);
      background: var(--color-accent);
      color: var(--color-bg);
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.875rem;
    }

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

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

    .card-grid .card {
      background: var(--color-surface);
      padding: 1.5rem;
      border-radius: 4px;
    }

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

    .card-grid .card p {
      font-size: 0.95rem;
      margin-bottom: 0;
      text-align: left;
    }

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

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

    .comparison > div p:first-child strong {
      display: block;
      font-family: var(--font-display);
      font-weight: 600;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--color-accent);
      color: var(--color-text);
    }

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

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

    /* Worked Example */
    .worked-example {
      background: var(--color-surface);
      padding: 2rem;
      margin: var(--component-gap) 0;
    }

    .worked-example p {
      text-align: left;
    }

    .worked-example p strong {
      display: block;
      font-family: var(--font-display);
      font-weight: 600;
      margin-bottom: 1rem;
      color: var(--color-text);
    }

    .worked-example .step {
      display: flex;
      align-items: flex-start;
      margin-bottom: 1rem;
      font-family: var(--font-mono);
    }

    .worked-example .step-number {
      background: var(--color-accent);
      color: var(--color-bg);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.875rem;
      font-weight: 700;
      margin-right: 1rem;
      flex-shrink: 0;
    }

    .worked-example .step-content {
      flex: 1;
    }

    .worked-example .arrow {
      text-align: center;
      color: var(--color-accent);
      font-size: 1.25rem;
      margin: 0.5rem 0;
    }

    /* Section Bridge */
    .section-bridge {
      text-align: center;
      padding: 2rem 0;
      margin: 3rem 0;
      border-top: 1px solid var(--color-border);
      border-bottom: 1px solid var(--color-border);
      font-style: italic;
      color: var(--color-text-secondary);
      font-size: 1.0625rem;
    }

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

    .section-bridge p {
      display: inline;
      margin: 0;
      text-align: center;
    }

    /* Key Takeaway */
    .key-takeaway {
      border-top: 3px solid var(--color-text);
      padding-top: 1.5rem;
      margin: var(--component-gap) 0;
    }

    .key-takeaway p {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1.5rem;
      line-height: 1.3;
      margin: 0;
      text-align: left;
      color: var(--color-text);
    }

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

    .glossary-term p {
      margin: 0;
      text-align: left;
    }

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

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

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

    .dos-donts .do-column,
    .dos-donts .dont-column {
      padding: 1.5rem;
    }

    .dos-donts .do-column {
      border-left: 4px solid var(--color-success);
      background: var(--color-surface);
    }

    .dos-donts .dont-column {
      border-left: 4px solid var(--color-error);
      background: var(--color-surface);
    }

    .dos-donts h4 {
      font-family: var(--font-display);
      font-weight: 600;
      text-transform: uppercase;
      font-size: 0.9rem;
      letter-spacing: 0.05em;
      margin-bottom: 1rem;
    }

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

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

    .dos-donts ul {
      list-style: none;
      padding-left: 0;
      margin: 0;
    }

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

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

    /* Pre-Game Checklist */
    .pre-game-checklist {
      margin: var(--component-gap) 0;
      padding-left: 2rem;
      border-left: 2px solid var(--color-border);
    }

    .pre-game-checklist p strong {
      display: block;
      font-family: var(--font-display);
      font-weight: 600;
      text-transform: uppercase;
      font-size: 0.85rem;
      letter-spacing: 0.05em;
      margin-bottom: 1rem;
      color: var(--color-accent);
    }

    .pre-game-checklist ul {
      list-style: none;
      padding-left: 0;
      margin: 0;
    }

    .pre-game-checklist li {
      position: relative;
      padding-left: 2rem;
      margin-bottom: 0.75rem;
      text-align: left;
    }

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

    /* At A Glance */
    .at-a-glance {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 0;
      margin: var(--component-gap) 0;
      border: 1px solid var(--color-border);
    }

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

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

    .at-a-glance .glance-item h4 {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1.25rem;
      margin-bottom: 0.5rem;
      color: var(--color-text);
    }

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

    @media (max-width: 640px) {
      .at-a-glance {
        grid-template-columns: 1fr;
      }
      .at-a-glance .glance-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
      }
      .at-a-glance .glance-item:last-child {
        border-bottom: none;
      }
    }

    /* Fun Fact */
    .fun-fact {
      position: relative;
      padding-left: 1.5rem;
      margin: 1.5rem 0;
      font-style: italic;
      color: var(--color-text-secondary);
    }

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

    .fun-fact p {
      margin: 0;
      text-align: left;
    }

    /* ========================================
       5. Hero Section
       ======================================== */
    .hero {
      width: 100vw;
      margin-left: calc(50% - 50vw);
      padding: 4rem 1.5rem 3rem;
      background-color: var(--color-bg);
      background-image: 
        radial-gradient(circle at 20% 30%, rgba(27, 143, 90, 0.05) 0%, transparent 8%),
        radial-gradient(circle at 70% 20%, rgba(27, 143, 90, 0.04) 0%, transparent 6%),
        radial-gradient(circle at 40% 70%, rgba(27, 143, 90, 0.05) 0%, transparent 10%),
        radial-gradient(circle at 85% 60%, rgba(27, 143, 90, 0.03) 0%, transparent 5%),
        radial-gradient(circle at 10% 80%, rgba(27, 143, 90, 0.04) 0%, transparent 7%),
        radial-gradient(circle at 60% 50%, rgba(27, 143, 90, 0.02) 0%, transparent 12%);
    }

    .hero-inner {
      max-width: var(--content-width);
      margin: 0 auto;
    }

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

    .hero h1 {
      margin-bottom: 1.5rem;
    }

    .hero .subtitle {
      font-size: 1.25rem;
      color: var(--color-text-secondary);
      margin-bottom: 1.5rem;
      line-height: 1.5;
      max-width: 600px;
    }

    .hero hr {
      margin-bottom: 1.5rem;
    }

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

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

    .hero .meta .badge {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 0.25rem 0.75rem;
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 2px;
      color: var(--color-text-secondary);
    }

    .hero figure {
      margin: 0;
      margin-top: 2rem;
    }

    .hero figure img {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }

    .hero figure figcaption {
      margin-top: 0.75rem;
    }

    .start-reading {
      display: inline-block;
      margin-top: 1.5rem;
      padding: 0.75rem 1.5rem;
      background: var(--color-accent);
      color: var(--color-bg);
      text-decoration: none;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border-radius: 2px;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .start-reading:hover {
      background: var(--color-accent-hover);
      color: var(--color-bg);
      transform: translateY(-1px);
    }

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

    /* ========================================
       6. Table of Contents (Vertical)
       ======================================== */
    .toc {
      background: var(--color-surface);
      padding: 2rem;
      border-radius: 4px;
    }

    .toc h2 {
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--color-accent);
    }

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

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

    .toc-list > li > a {
      font-weight: 600;
      color: var(--color-text);
      text-decoration: none;
      transition: color 0.2s ease;
    }

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

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

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

    .toc-list .toc-sublist a {
      font-size: 0.95rem;
      font-weight: 400;
      color: var(--color-text-secondary);
      text-decoration: none;
      transition: color 0.2s ease;
    }

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

    /* ========================================
       7. FAQ Accordion
       ======================================== */
    details {
      border-bottom: 1px solid var(--color-border);
      margin-bottom: 0;
    }

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

    summary {
      padding: 1.25rem 2.5rem 1.25rem 0;
      cursor: pointer;
      font-weight: 600;
      font-size: 1.1rem;
      color: var(--color-text);
      position: relative;
      list-style: none;
      text-align: left;
    }

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

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

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

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

    /* Modern accordion animation */
    details {
      interpolate-size: allow-keywords;
    }

    details::details-content {
      opacity: 0;
      block-size: 0;
      overflow: hidden;
      transition: 
        opacity 0.3s ease,
        block-size 0.3s ease,
        content-visibility 0.3s ease allow-discrete;
    }

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

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

    details > div p {
      text-align: left;
    }

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


    /* ========================================
       9. Media Queries
       ======================================== */
    @media (max-width: 768px) {
      :root {
        --section-gap: 3rem;
      }

      .hero {
        padding: 3rem 1.5rem 2rem;
      }

      h1 {
        font-size: clamp(2rem, 8vw, 3rem);
      }

      h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
      }

      .toc {
        padding: 1.5rem;
      }

      .comparison,
      .dos-donts {
        grid-template-columns: 1fr;
      }
    }

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

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

      .hero {
        padding: 2rem 1rem;
      }

      .info-box,
      .callout,
      .worked-example,
      .calc-example {
        padding: 1.25rem;
      }
    }

    /* ========================================
       10. Article Image Styles
       ======================================== */
    .hero-image {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }

    .article-image {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }

/* =========================================
   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 STYLES (Dark & Green)
   ========================================= */
.site-footer {
    background-color: #0f1115; /* Темный фон */
    color: #a3a3a3; /* Приглушенный текст */
    padding: 60px 20px 20px;
    font-family: inherit;
    border-top: 1px solid #1f2228;
    margin-top: 60px;
}

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

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

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

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

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 25px;
    margin-top: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

/* Зеленые маркеры */
.footer-list.custom-bullets li {
    padding-left: 15px;
}
.footer-list.custom-bullets li::before {
    content: "•";
    color: #388e3c; /* Зеленый акцент */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.footer-list a {
    color: #388e3c; /* Зеленые ссылки */
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-list a:hover {
    color: #4caf50; /* Светло-зеленый при наведении */
    text-decoration: underline;
}

/* Эффект смещения для ссылок навигации */
.footer-list.links-list a:hover {
    transform: translateX(4px);
    text-decoration: none;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid #1f2228;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
}

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

body {
  overflow-x: clip;
}