/* ========================================
       1. CSS Variables and Reset
       ======================================== */
    :root {
      /* Colors - Light Theme */
      --color-accent: #2E7D32;
      --color-accent-dark: #1B5E20;
      --color-bg: #FAFAFA;
      --color-surface: #F5F5F5;
      --color-text: #1A1A1A;
      --color-text-secondary: #666666;
      --color-border: #E0E0E0;
      --color-error: #D32F2F;
      --color-success: #2E7D32;
      
      /* Component backgrounds */
      --color-info-bg: #E8F5E9;
      --color-callout-bg: #FFF3E0;
      --color-callout-border: #FFB74D;
      --color-odds-bg: #263238;
      --color-comparison-left: #E8F5E9;
      --color-comparison-right: #FFEBEE;
      
      /* Typography */
      --font-display: 'Oswald', sans-serif;
      --font-body: 'Source Sans 3', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      
      /* Spacing */
      --section-gap: clamp(3rem, 6vw, 5rem);
      --content-max-width: 720px;
      --sidebar-width: 240px;
      
      /* Transitions */
      --transition-fast: 0.15s ease;
      --transition-base: 0.25s ease;
    
    /* --- AUTO-FORCED DARK THEME --- */
    --color-accent: #4CAF50;
        --color-accent-dark: #81C784;
        --color-bg: #121212;
        --color-surface: #1E1E1E;
        --color-text: #E0E0E0;
        --color-text-secondary: #9E9E9E;
        --color-border: #333333;
        
        --color-info-bg: #1B3D1F;
        --color-callout-bg: #3D2E1A;
        --color-callout-border: #8D6E3A;
        --color-odds-bg: #1A1A1A;
        --color-comparison-left: #1B3D1F;
        --color-comparison-right: #3D1F1F;
}
    
    
    
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    html {
      scroll-behavior: smooth;
    }
    
    body {
      font-family: var(--font-body);
      font-size: clamp(1rem, 1.1vw, 1.125rem);
      line-height: 1.65;
      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-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: 700;
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      letter-spacing: 0.01em;
      line-height: 1.2;
      color: var(--color-text);
      margin-bottom: 1.25rem;
      text-align: left;
      scroll-margin-top: 2rem;
    }
    
    h3 {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: clamp(1.25rem, 2vw, 1.5rem);
      line-height: 1.3;
      color: var(--color-text);
      margin-bottom: 1rem;
      text-align: left;
      scroll-margin-top: 2rem;
    }
    
    h4 {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1.125rem;
      line-height: 1.3;
      color: var(--color-text);
      margin-bottom: 0.75rem;
    }
    
    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: 2px;
      transition: color var(--transition-fast);
    }
    
    a:hover {
      color: var(--color-accent-dark);
    }
    
    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;
      text-align: left;
    }
    
    blockquote {
      border-left: 3px solid var(--color-accent);
      padding-left: 1.25rem;
      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: 0.95rem;
      text-align: left;
    }
    
    th, td {
      padding: 0.75rem 1rem;
      border: 1px solid var(--color-border);
      text-align: left;
    }
    
    th {
      background-color: var(--color-surface);
      font-weight: 600;
    }
    
    figure {
      margin: 2rem 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 - Main and Sections
       ======================================== */
    header {
      /* Empty header should not create visual gap */
    }
    
    main {
      width: 100%;
      display: grid;
      grid-template-columns: var(--sidebar-width) 1fr;
      gap: 3rem;
      max-width: calc(var(--content-max-width) + var(--sidebar-width) + 6rem);
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    
    [data-content] {
      max-width: var(--content-max-width);
      padding: var(--section-gap) 0;
      grid-column: 2;
    }
    
    main > [data-content="hero"]{
      grid-column: 1 / -1;   /* на всю ширину грида */
      max-width: none;
      width: 100%;           /* вместо 100vw */
      margin: 0;             /* убираем calc(...) */
      padding: 0;
    }
    
    [data-content="toc"] {
      grid-column: 1;
      grid-row: 2 / span 30;
      position: sticky;
      top: 2rem;
      max-height: calc(100vh - 4rem);
      overflow-y: auto;
      padding-right: 1.5rem;
      scrollbar-width: thin;
      scrollbar-color: var(--color-border) transparent;
    }
    
    [data-content="toc"]::-webkit-scrollbar {
      width: 4px;
    }
    
    [data-content="toc"]::-webkit-scrollbar-track {
      background: transparent;
    }
    
    [data-content="toc"]::-webkit-scrollbar-thumb {
      background: var(--color-border);
      border-radius: 2px;
    }
    
    @media (max-width: 900px) {
      main {
        display: block;
        padding: 0 1rem;
      }
      
      [data-content] {
        max-width: 100%;
        padding: var(--section-gap) 0;
      }
      
      [data-content="hero"] {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
      }
      
      [data-content="toc"] {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
        margin-bottom: 2rem;
      }
    }
    
    /* ========================================
       4. Components
       ======================================== */
    
    /* Info Box */
    .info-box {
      background: var(--color-info-bg);
      border-left: 4px solid var(--color-accent);
      padding: 1.5rem;
      margin: 2rem 0;
      border-radius: 0 4px 4px 0;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .info-box strong {
      display: block;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--color-accent-dark);
    }
    
    .info-box p {
      text-align: left;
      color: var(--color-text);
    }
    
    /* Odds Example */
    .odds-example {
      background: var(--color-odds-bg);
      color: #FFFFFF;
      border-radius: 8px;
      padding: 1.5rem;
      margin: 2rem 0;
      font-family: var(--font-mono);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .odds-example strong {
      display: block;
      font-family: var(--font-body);
      font-weight: 600;
      margin-bottom: 0.75rem;
      color: #FFFFFF;
    }
    
    .odds-example p {
      text-align: left;
      color: #FFFFFF;
      margin-bottom: 0.5rem;
    }
    
    .odds-example .team {
      font-size: 1rem;
      margin-bottom: 0.25rem;
    }
    
    .odds-example .odds {
      font-size: 1.75rem;
      font-weight: 700;
      color: #4CAF50;
    }
    
    @media (prefers-color-scheme: dark) {
      .odds-example {
        background: #1A1A1A;
        border: 1px solid var(--color-border);
      }
    }
    
    /* Callout */
    .callout {
      background: var(--color-callout-bg);
      border: 1px solid var(--color-callout-border);
      border-radius: 4px;
      padding: 1.25rem;
      margin: 2rem 0;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    
    .callout p {
      text-align: left;
      color: var(--color-text);
    }
    
    .callout strong {
      color: var(--color-text);
    }
    
    /* Card Grid */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin: 2rem 0;
    }
    
    .card-grid > div {
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 1.5rem;
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
      transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }
    
    .card-grid > div:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .card-grid h4,
    .card-grid > div > p:first-child strong {
      font-family: var(--font-display);
      font-weight: 600;
      margin-bottom: 0.75rem;
      color: var(--color-text);
    }
    
    .card-grid p {
      text-align: left;
      color: var(--color-text);
    }
    
    /* Comparison */
    .comparison {
      margin: 2rem 0;
    }
    
    .comparison > p:first-child {
      margin-bottom: 1rem;
    }
    
    .comparison table {
      width: 100%;
    }
    
    .comparison th {
      background: var(--color-surface);
      color: var(--color-text);
    }
    
    .comparison td {
      color: var(--color-text);
      background: var(--color-bg);
    }
    
    .comparison .col {
      padding: 1.5rem;
      border-radius: 4px;
    }
    
    .comparison .col--left {
      background: var(--color-comparison-left);
      border-top: 3px solid var(--color-success);
    }
    
    .comparison .col--right {
      background: var(--color-comparison-right);
      border-top: 3px solid var(--color-error);
    }
    
    .comparison .col p {
      text-align: left;
      color: var(--color-text);
    }
    
    /* Key Takeaway */
    .key-takeaway {
      border-top: 3px solid var(--color-accent);
      padding-top: 1rem;
      margin: 2rem 0;
      font-family: var(--font-display);
      font-size: clamp(1.25rem, 2vw, 1.5rem);
      font-weight: 600;
      line-height: 1.3;
      color: var(--color-text);
    }
    
    .key-takeaway p {
      text-align: left;
    }
    
    /* Fun Fact */
    .fun-fact {
      font-style: italic;
      color: var(--color-text-secondary);
      padding-left: 1.5rem;
      margin: 1.5rem 0;
      position: relative;
    }
    
    .fun-fact::before {
      content: "\2014";
      position: absolute;
      left: 0;
      color: var(--color-accent);
    }
    
    .fun-fact p {
      text-align: left;
      color: var(--color-text-secondary);
    }
    
    /* Glossary Term */
    .glossary-term {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: 1.5rem 0;
    }
    
    .glossary-term strong {
      font-family: var(--font-mono);
      color: var(--color-accent);
      text-decoration: underline;
      text-decoration-style: dotted;
      text-underline-offset: 3px;
      flex-shrink: 0;
    }
    
    .glossary-term p {
      color: var(--color-text-secondary);
      font-size: 0.95em;
      margin-bottom: 0;
      text-align: left;
    }
    
    @media (max-width: 600px) {
      .glossary-term {
        flex-direction: column;
        gap: 0.5rem;
      }
    }
    
    /* Dos and Donts */
    .dos-donts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin: 2rem 0;
    }
    
    .dos-donts > div {
      padding: 1.5rem;
      border-radius: 4px;
    }
    
    .dos-donts > div:first-child {
      background: var(--color-comparison-left);
      border-top: 3px solid var(--color-success);
    }
    
    .dos-donts > div:last-child {
      background: var(--color-comparison-right);
      border-top: 3px solid var(--color-error);
    }
    
    .dos-donts h4 {
      color: var(--color-text);
    }
    
    .dos-donts ul {
      padding-left: 1.25rem;
    }
    
    .dos-donts li {
      color: var(--color-text);
      text-align: left;
    }
    
    @media (max-width: 600px) {
      .dos-donts {
        grid-template-columns: 1fr;
      }
    }
    
    /* Pre-Bet Checklist */
    .pre-bet-checklist {
      margin: 2rem 0;
    }
    
    .pre-bet-checklist h4 {
      font-family: var(--font-display);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-size: 0.875rem;
      color: var(--color-accent);
      margin-bottom: 1rem;
    }
    
    .pre-bet-checklist ul {
      list-style: none;
      padding-left: 1.5rem;
      border-left: 2px solid var(--color-border);
    }
    
    .pre-bet-checklist li {
      position: relative;
      padding-left: 1rem;
      margin-bottom: 0.75rem;
      text-align: left;
    }
    
    .pre-bet-checklist li::before {
      content: "\2610";
      position: absolute;
      left: -0.75rem;
      color: var(--color-accent);
      background: var(--color-bg);
      padding: 0 2px;
    }
    
    /* At a Glance */
    .at-a-glance {
      display: flex;
      gap: 0;
      margin: 2rem 0;
      border: 1px solid var(--color-border);
      border-radius: 4px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    
    .at-a-glance > div {
      flex: 1;
      padding: 1rem;
      text-align: center;
      border-right: 1px solid var(--color-border);
      background: var(--color-bg);
    }
    
    .at-a-glance > div:last-child {
      border-right: none;
    }
    
    .at-a-glance p:first-child,
    .at-a-glance p:first-child strong {
      font-size: 0.75rem;
      text-transform: uppercase;
      color: var(--color-text-secondary);
      margin-bottom: 0.5rem;
      text-align: center;
    }
    
    .at-a-glance p:last-child {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--color-text);
      text-align: center;
    }
    
    @media (max-width: 600px) {
      .at-a-glance {
        flex-direction: column;
      }
      
      .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: var(--color-surface);
      padding: 2rem;
      margin: 2rem 0;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .worked-example h4 {
      margin-bottom: 1.25rem;
      color: var(--color-text);
    }
    
    .worked-example p {
      text-align: left;
      color: var(--color-text);
    }
    
    .worked-example code {
      font-family: var(--font-mono);
      background: var(--color-bg);
      padding: 0.125rem 0.375rem;
      border-radius: 3px;
      font-size: 0.9em;
    }
    
    .worked-example .result {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--color-accent);
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px dashed var(--color-border);
    }
    
    /* Section Bridge */
    .section-bridge {
      text-align: center;
      padding: 2rem 0;
      color: var(--color-text-secondary);
      font-style: italic;
      position: relative;
    }
    
    .section-bridge::before,
    .section-bridge::after {
      content: "\2022\2022\2022";
      display: block;
      letter-spacing: 0.5em;
      color: var(--color-border);
    }
    
    .section-bridge p {
      text-align: center;
      color: var(--color-text-secondary);
    }
    
    /* ========================================
       5. Hero Section
       ======================================== */
    .hero {
      background: var(--color-bg);
      padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
      text-align: center;
    }
    
    .hero-inner {
      max-width: 900px;
      margin: 0 auto;
    }
    
    .hero-label {
      display: inline-block;
      font-family: var(--font-body);
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--color-accent);
      margin-bottom: 1.5rem;
    }
    
    .hero h1 {
      margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
      font-size: clamp(1.125rem, 2vw, 1.375rem);
      color: var(--color-text-secondary);
      line-height: 1.5;
      max-width: 700px;
      margin: 0 auto 2rem;
    }
    
    .hero-divider {
      width: 60px;
      height: 3px;
      background: var(--color-accent);
      margin: 0 auto 2rem;
    }
    
    .hero-meta {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      flex-wrap: wrap;
      font-size: 0.875rem;
      color: var(--color-text-secondary);
      margin-bottom: 2.5rem;
    }
    
    .hero-meta time {
      color: var(--color-text-secondary);
    }
    
    .hero-badge {
      display: inline-block;
      background: var(--color-info-bg);
      color: var(--color-accent-dark);
      padding: 0.25rem 0.75rem;
      border-radius: 3px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    
    .hero figure {
      margin: 0;
      max-width: 100%;
    }
    
    .hero .hero-image {
      width: 100%;
      max-width: 1200px;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
      margin: 0 auto;
    }
    
    .hero figcaption {
      margin-top: 1rem;
    }
    
    .hero-cta {
      display: inline-block;
      margin-top: 2rem;
      padding: 0.875rem 2rem;
      background: var(--color-accent);
      color: #FFFFFF;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 1rem;
      text-decoration: none;
      border-radius: 4px;
      transition: background var(--transition-fast), transform var(--transition-fast);
    }
    
    .hero-cta:hover {
      background: var(--color-accent-dark);
      transform: translateY(-2px);
      color: #FFFFFF;
    }
    
    .hero-cta:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }
    
    /* ========================================
       6. Table of Contents (Sidebar)
       ======================================== */
    .toc-nav {
      padding-top: 2rem;
    }
    
    .toc-title {
      font-family: var(--font-display);
      font-size: 0.875rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-text-secondary);
      margin-bottom: 1.25rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--color-border);
    }
    
    .toc-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .toc-list li {
      margin-bottom: 0.125rem;
    }
    
    .toc-list a {
      display: block;
      padding: 0.5rem 0;
      font-size: 0.875rem;
      color: var(--color-text-secondary);
      text-decoration: none;
      border-left: 2px solid transparent;
      padding-left: 0.75rem;
      margin-left: -0.75rem;
      transition: color var(--transition-fast), border-color var(--transition-fast);
    }
    
    .toc-list a:hover {
      color: var(--color-accent);
      border-left-color: var(--color-accent);
    }
    
    .toc-list .toc-h2 > a {
      font-weight: 600;
      color: var(--color-text);
    }
    
    .toc-list .toc-h3-list {
      list-style: none;
      padding-left: 1rem;
      margin: 0;
    }
    
    .toc-list .toc-h3-list a {
      font-size: 0.8125rem;
      font-weight: 400;
    }
    
    /* ========================================
       7. FAQ Section
       ======================================== */
    details {
      margin-bottom: 0.5rem;
      border: 1px solid var(--color-border);
      border-radius: 4px;
      overflow: hidden;
      interpolate-size: allow-keywords;
    }
    
    summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 1.25rem;
      font-weight: 600;
      cursor: pointer;
      background: var(--color-surface);
      transition: background var(--transition-fast);
      list-style: none;
    }
    
    summary::-webkit-details-marker {
      display: none;
    }
    
    summary::after {
      content: "+";
      font-size: 1.25rem;
      font-weight: 400;
      color: var(--color-accent);
      transition: transform var(--transition-base);
    }
    
    details[open] summary::after {
      transform: rotate(45deg);
    }
    
    summary:hover {
      background: var(--color-border);
    }
    
    summary:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: -2px;
    }
    
    details::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: 1rem 1.25rem;
      background: var(--color-bg);
    }
    
    details > div p {
      text-align: left;
    }
    
    /* Fallback for browsers without ::details-content */
    @supports not selector(::details-content) {
      details[open] > div {
        animation: fade-in 0.3s ease forwards;
      }
      
      @keyframes fade-in {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
    }
    
 
    /* ========================================
       9. Utility Classes
       ======================================== */
    .back-to-top {
      display: inline-block;
      margin-top: 2rem;
      padding: 0.75rem 1.5rem;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--color-accent);
      text-decoration: none;
      border: 1px solid var(--color-accent);
      border-radius: 4px;
      transition: background var(--transition-fast), color var(--transition-fast);
    }
    
    .back-to-top:hover {
      background: var(--color-accent);
      color: #FFFFFF;
    }
    
    .article-image {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      border-radius: 4px;
    }
    
    /* ========================================
       10. Media Queries
       ======================================== */
    @media (max-width: 768px) {
      :root {
        --section-gap: 2.5rem;
      }
      
      .hero {
        padding: 2rem 1rem;
      }
      
      .hero-meta {
        flex-direction: column;
        gap: 0.75rem;
      }
      
      .card-grid {
        grid-template-columns: 1fr;
      }
      
      table {
        font-size: 0.875rem;
      }
      
      th, td {
        padding: 0.5rem;
      }
    }
    
    @media (max-width: 480px) {
      .hero h1 {
        font-size: 2rem;
      }
      
      h2 {
        font-size: 1.5rem;
      }
      
      h3 {
        font-size: 1.125rem;
      }
    }

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

html, body {
  overflow-x: hidden;
}

/* Footer Base Container */
.site-footer {
    background-color: #0a0a0a; /* Dark background matching your site */
    color: #cccccc;
    padding: 60px 20px 20px;
    font-family: inherit;
    border-top: 1px solid #1f1f1f;
}

/* Grid Layout for 4 columns */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Column Headings */
.footer-heading {
    color: #4CAF50; /* Green color to match site accents */
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Reset for custom lists and WP menu list */
.footer-links,
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List Items */
.footer-links li,
.footer-menu-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    padding-left: 15px; /* Space for the bullet point */
}

/* Custom Green Bullets */
.footer-links li::before,
.footer-menu-list li::before {
    content: "•";
    color: #4CAF50; /* Green bullets */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Links inside footer */
.footer-links a,
.footer-menu-list a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Footer Bottom Bar (Copyright) */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #1f1f1f;
    text-align: center;
    font-size: 0.85rem;
    color: #777777;
    line-height: 1.5;
}

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

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

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