/* ============================================
       1. CSS VARIABLES & RESET
       ============================================ */
    :root {
      /* Colors - Light Mode */
      --color-bg: #F8F7F4;
      --color-text: #1A1A1A;
      --color-text-secondary: #4A4A4A;
      --color-accent: #2D7D46;
      --color-accent-hover: #1E5530;
      --color-surface: #EFEEED;
      --color-border: #D4D4D4;
      --color-warning: #D97706;
      --color-success: #2D7D46;
      --color-danger: #DC2626;
      
      /* 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-max-width: 720px;
      --sidebar-width: 260px;
      
      /* Transitions */
      --transition-base: 0.2s ease;
    
    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #1A1A1A;
        --color-text: #F8F7F4;
        --color-text-secondary: #A3A3A3;
        --color-accent: #4ABA6B;
        --color-accent-hover: #6DD88B;
        --color-surface: #2A2A2A;
        --color-border: #404040;
        --color-warning: #F59E0B;
}
    
    
    
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    html {
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    
    body {
      font-family: var(--font-body);
      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-size: clamp(2.5rem, 8vw, 4rem);
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      line-height: 1.1;
    }
    
    h2 {
      font-family: var(--font-display);
      font-size: clamp(1.75rem, 4vw, 2.25rem);
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      line-height: 1.2;
      margin-bottom: 1.5rem;
      text-align: left;
      scroll-margin-top: 2rem;
    }
    
    h3 {
      font-family: var(--font-body);
      font-size: 1.5rem;
      font-weight: 600;
      line-height: 1.3;
      margin-bottom: 1rem;
      text-align: left;
      scroll-margin-top: 2rem;
    }
    
    p {
      margin-bottom: 1.25rem;
      text-align: left;
    }
    
    a {
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color var(--transition-base);
    }
    
    a:hover {
      color: var(--color-accent-hover);
    }
    
    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;
      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);
    }
    
    /* ============================================
       3. LAYOUT - MAIN WITH SIDEBAR
       ============================================ */
    header {
      /* Empty header - no visual gap */
    }
    
    main {
      width: 100%;
      display: grid;
      grid-template-columns: var(--sidebar-width) 1fr;
      gap: 3rem;
      padding: 0 2rem;
    }
    
    @media (max-width: 900px) {
      main {
        display: block;
        padding: 0 1rem;
      }
    }
    
    /* ============================================
       4. DATA-CONTENT SECTIONS
       ============================================ */
    [data-content] {
      max-width: var(--content-max-width);
      margin: 0 auto;
      padding: var(--section-gap) 0;
      grid-column: 2;
    }
    
    [data-content="toc"] {
      grid-column: 1;
      grid-row: 1 / span 50;
      max-width: none;
      padding: 0;
      margin: 0;
    }
    
    [data-content="hero"] {
      grid-column: 1 / -1;
      max-width: none;
      padding: 0;
      margin: 0;
      width: 100vw;
      margin-left: calc(50% - 50vw);
    }
    
    @media (max-width: 900px) {
      [data-content] {
        grid-column: 1;
        padding: var(--section-gap) 0;
      }
      
      [data-content="toc"] {
        grid-row: auto;
      }
      
      [data-content="hero"] {
        width: 100vw;
        margin-left: -1rem;
        padding: 0;
      }
    }
    
    /* ============================================
       5. HERO SECTION
       ============================================ */
    .hero {
      background-color: var(--color-bg);
      background-image: 
        repeating-linear-gradient(
          0deg,
          transparent,
          transparent 40px,
          rgba(45, 125, 70, 0.06) 40px,
          rgba(45, 125, 70, 0.06) 42px
        ),
        repeating-linear-gradient(
          0deg,
          transparent,
          transparent 120px,
          rgba(45, 125, 70, 0.12) 120px,
          rgba(45, 125, 70, 0.12) 124px
        );
      padding: clamp(3rem, 8vw, 6rem) 2rem;
      text-align: center;
    }
    
    @media (prefers-color-scheme: dark) {
      .hero {
        background-image: 
          repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(74, 186, 107, 0.04) 40px,
            rgba(74, 186, 107, 0.04) 42px
          ),
          repeating-linear-gradient(
            0deg,
            transparent,
            transparent 120px,
            rgba(74, 186, 107, 0.08) 120px,
            rgba(74, 186, 107, 0.08) 124px
          );
      }
    }
    
    .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(1rem, 2.5vw, 1.25rem);
      color: var(--color-text-secondary);
      max-width: 700px;
      margin: 0 auto 2rem;
      line-height: 1.6;
      text-align: center;
    }
    
    .hero-divider {
      width: 60px;
      height: 3px;
      background-color: var(--color-accent);
      border: none;
      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: 3rem;
    }
    
    .hero-badge {
      display: inline-block;
      background-color: var(--color-accent);
      color: var(--color-bg);
      padding: 0.25rem 0.75rem;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    
    .hero-image {
      margin: 0 auto;
      max-width: 1000px;
    }
    
    .hero-image img {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }
    
    .hero-image figcaption {
      text-align: center;
      font-size: 0.875rem;
      color: var(--color-text-secondary);
      margin-top: 1rem;
    }
    
    /* ============================================
       6. TABLE OF CONTENTS - STICKY SIDEBAR
       ============================================ */
    .toc {
      position: sticky;
      top: 2rem;
      max-height: calc(100vh - 4rem);
      overflow-y: auto;
      padding: 1.5rem;
      padding-top: 6rem;
      scrollbar-width: thin;
      scrollbar-color: var(--color-border) transparent;
    }
    
    .toc::-webkit-scrollbar {
      width: 4px;
    }
    
    .toc::-webkit-scrollbar-track {
      background: transparent;
    }
    
    .toc::-webkit-scrollbar-thumb {
      background-color: var(--color-border);
      border-radius: 2px;
    }
    
    .toc-title {
      font-family: var(--font-display);
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-text-secondary);
      margin-bottom: 1.5rem;
      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.5rem;
    }
    
    .toc-list a {
      display: block;
      font-size: 0.875rem;
      color: var(--color-text-secondary);
      text-decoration: none;
      padding: 0.375rem 0;
      transition: color var(--transition-base);
    }
    
    .toc-list a:hover {
      color: var(--color-accent);
    }
    
    .toc-list ul {
      list-style: none;
      padding-left: 1rem;
      margin: 0.25rem 0 0.5rem;
    }
    
    .toc-list ul a {
      font-size: 0.8125rem;
      color: var(--color-text-secondary);
      opacity: 0.8;
    }
    
    .toc-list ul a:hover {
      opacity: 1;
      color: var(--color-accent);
    }
    
    @media (max-width: 900px) {
      .toc {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 1.5rem;
        margin-bottom: 2rem;
        background-color: var(--color-surface);
        border-radius: 4px;
      }
    }
    
    /* ============================================
       7. VISUAL COMPONENTS
       ============================================ */
    
    /* Info Box */
    .info-box {
      background: var(--color-surface);
      border-left: 4px solid var(--color-accent);
      padding: 1.5rem;
      margin: 2rem 0;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .info-box p {
      margin-bottom: 0;
      text-align: left;
    }
    
    .info-box p:not(:last-child) {
      margin-bottom: 0.75rem;
    }
    
    .info-box strong {
      color: var(--color-text);
    }
    
    /* Odds Example */
    .odds-example {
      background: var(--color-text);
      color: var(--color-bg);
      padding: 2rem;
      border-radius: 8px;
      font-family: var(--font-mono);
      margin: 2rem 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    @media (prefers-color-scheme: dark) {
      .odds-example {
        background: #0D0D0D;
        color: #F8F7F4;
      }
    }
    
    .odds-example p {
      margin-bottom: 0.5rem;
      text-align: center;
      color: inherit;
    }
    
    .odds-example p:first-child {
      font-size: 1.25rem;
      margin-bottom: 1rem;
      text-align: center;
    }
    
    .odds-example p:last-child {
      font-size: 0.875rem;
      opacity: 0.7;
      margin-top: 1rem;
      margin-bottom: 0;
    }
    
    .odds-example strong {
      color: var(--color-accent);
    }
    
    /* Callout */
    .callout {
      background: rgba(217, 119, 6, 0.1);
      border: 1px solid var(--color-warning);
      border-radius: 4px;
      padding: 1.25rem;
      margin: 2rem 0;
    }
    
    .callout p {
      margin-bottom: 0;
      text-align: left;
      color: var(--color-text);
    }
    
    .callout strong {
      color: var(--color-warning);
    }
    
    /* Key Takeaway */
    .key-takeaway {
      border-top: 3px solid var(--color-accent);
      padding-top: 1.5rem;
      margin: 2.5rem 0;
    }
    
    .key-takeaway p {
      font-family: var(--font-body);
      font-size: 1.375rem;
      font-weight: 500;
      line-height: 1.5;
      color: var(--color-text);
      margin-bottom: 0;
      text-align: left;
    }
    
    /* 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);
      margin-bottom: 0;
      text-align: left;
    }
    
    /* Glossary Term */
    .glossary-term {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: 1rem 0;
    }
    
    .glossary-term-word {
      font-family: var(--font-mono);
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: 3px;
      white-space: nowrap;
    }
    
    .glossary-term-def {
      color: var(--color-text-secondary);
    }
    
    @media (max-width: 600px) {
      .glossary-term {
        flex-direction: column;
        gap: 4px;
      }
    }
    
    /* Dos and Donts */
    .dos-donts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin: 2rem 0;
    }
    
    .dos-donts-do {
      border-left: 4px solid var(--color-success);
      padding-left: 1.25rem;
    }
    
    .dos-donts-dont {
      border-left: 4px solid var(--color-danger);
      padding-left: 1.25rem;
    }
    
    .dos-donts-title {
      font-weight: 600;
      margin-bottom: 0.75rem;
      text-align: left;
    }
    
    .dos-donts-do .dos-donts-title {
      color: var(--color-success);
    }
    
    .dos-donts-dont .dos-donts-title {
      color: var(--color-danger);
    }
    
    .dos-donts ul {
      padding-left: 1rem;
      margin-bottom: 0;
    }
    
    .dos-donts li {
      font-size: 0.9375rem;
      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-title {
      font-family: var(--font-display);
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      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);
      margin: 0;
    }
    
    .pre-bet-checklist li {
      position: relative;
      padding-left: 0.5rem;
      margin-bottom: 0.75rem;
      text-align: left;
    }
    
    .pre-bet-checklist li::before {
      content: '\2610';
      position: absolute;
      left: -1.25rem;
      color: var(--color-accent);
      background: var(--color-bg);
      padding: 0 2px;
    }
    
    /* At a Glance */
    .at-a-glance {
      display: flex;
      gap: 1px;
      background: var(--color-border);
      margin: 2rem 0;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .at-a-glance > div {
      flex: 1;
      background: var(--color-bg);
      padding: 1.25rem;
      text-align: center;
    }
    
    .at-a-glance p:first-child {
      font-size: 0.875rem;
      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;
      color: var(--color-text);
      margin-bottom: 0;
      text-align: center;
    }
    
    @media (max-width: 600px) {
      .at-a-glance {
        flex-direction: column;
      }
    }
    
    /* Worked Example */
    .worked-example {
      background: var(--color-surface);
      padding: 2rem;
      border-radius: 8px;
      margin: 2rem 0;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .worked-example p {
      font-family: var(--font-mono);
      font-size: 0.9375rem;
      margin-bottom: 0.75rem;
      text-align: left;
    }
    
    .worked-example p:first-child {
      font-family: var(--font-body);
      font-weight: 600;
      margin-bottom: 1.25rem;
    }
    
    .worked-example p:last-child {
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--color-border);
      color: var(--color-accent);
      font-weight: 600;
      margin-bottom: 0;
    }
    
    /* Comparison */
    .comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin: 2rem 0;
    }
    
    .comparison > div {
      background: var(--color-surface);
      padding: 1.5rem;
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .comparison p:first-child {
      font-family: var(--font-display);
      font-size: 1.25rem;
      text-transform: uppercase;
      margin-bottom: 1rem;
      text-align: left;
    }
    
    .comparison p {
      font-size: 0.9375rem;
      margin-bottom: 0.5rem;
      text-align: left;
    }
    
    .comparison p:last-child {
      margin-bottom: 0;
    }
    
    @media (max-width: 600px) {
      .comparison {
        grid-template-columns: 1fr;
      }
    }
    
    /* 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-surface);
      padding: 1.5rem;
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .card-grid p {
      text-align: left;
    }
    
    /* 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);
      position: relative;
    }
    
    .section-bridge::before,
    .section-bridge::after {
      content: '\2022 \2022 \2022';
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: var(--color-border);
      letter-spacing: 0.5em;
    }
    
    .section-bridge::before {
      left: 0;
    }
    
    .section-bridge::after {
      right: 0;
    }
    
    .section-bridge p {
      font-style: italic;
      color: var(--color-text-secondary);
      font-size: 1.125rem;
      margin: 0;
      text-align: center;
    }
    
    /* ============================================
       8. IMAGES
       ============================================ */
    figure {
      margin: 2rem auto;
      max-width: 100%;
    }
    
    figure img {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }
    
    figcaption {
      text-align: center;
      font-size: 0.875rem;
      color: var(--color-text-secondary);
      margin-top: 0.75rem;
    }
    
    .article-image {
      margin: 2rem 0;
    }
    
    .article-image img {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 4px;
    }
    
    /* ============================================
       9. 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: 600;
      font-size: 1.0625rem;
      list-style: none;
    }
    
    summary::-webkit-details-marker {
      display: none;
    }
    
    summary::after {
      content: '+';
      font-size: 1.5rem;
      color: var(--color-accent);
      font-weight: 400;
      transition: transform var(--transition-base);
    }
    
    details[open] summary::after {
      transform: rotate(45deg);
    }
    
    summary:hover {
      color: var(--color-accent);
    }
    
    summary:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }
    
    /* Modern accordion animation */
    ::details-content {
      opacity: 0;
      block-size: 0;
      overflow: hidden;
      transition: opacity var(--transition-base), block-size var(--transition-base), content-visibility var(--transition-base) 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-out;
      }
    }
    
    /* ============================================
       10. BACK TO TOP BUTTON
       ============================================ */
    .back-to-top {
      display: inline-block;
      margin-top: 2rem;
      padding: 0.75rem 1.5rem;
      font-size: 0.875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-accent);
      background: transparent;
      border: 2px solid var(--color-accent);
      text-decoration: none;
      transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
    }
    
    .back-to-top:hover {
      background-color: var(--color-accent);
      color: var(--color-bg);
      transform: translateY(-2px);
    }
    
    .back-to-top:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }
    

    
    /* ============================================
       12. UTILITY CLASSES
       ============================================ */
    .mono {
      font-family: var(--font-mono);
    }
    
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

/* =========================================
   UNIVERSAL DESKTOP & MOBILE MENU
   ========================================= */

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border, #333);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-navigation-bar {
    max-width: var(--wide-width, 1100px);
    margin: 0 auto;
    padding: 15px var(--component-padding, 24px);
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep mobile burger on the right */
}

/* --- DESKTOP MENU --- */
.site-nav--desktop {
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 769px) {
    .top-navigation-bar {
        justify-content: center; /* Center the desktop menu */
    }

    .site-nav--desktop {
        display: block;
    }
    .mobile-controls {
        display: none; /* Hide burger on desktop */
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .menu-desktop a:hover {
        color: var(--color-accent);
    }
}

/* --- MOBILE BURGER BUTTON --- */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1000;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Burger Animation to X */
.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MOBILE MENU SLIDER --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding: 60px 30px;
}

.mobile-menu.is-open {
    right: 0; /* Slide in */
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent);
}

.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-mobile a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 20px;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-mobile a:hover {
    color: var(--color-accent);
    padding-left: 10px; /* Nice slide effect on hover */
}

/* --- OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); /* Beautiful blur effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* =========================================
   Footer Structure & Styles (Cricket Theme)
   ========================================= */

.site-footer {
    background-color: #0b0f19; 
    color: #94a3b8; 
    padding: 60px 20px 20px;
    font-family: var(--font-body), sans-serif;
    border-top: 1px solid #1e293b;
    margin-top: 60px;
}

.footer-grid {
    max-width: var(--content-max-width, 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-heading {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: #e11d48; 
    border-radius: 2px;
}

.footer-links-custom,
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-custom li,
.footer-menu-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 18px; 
}

.footer-links-custom li::before,
.footer-menu-list li::before {
    content: "▪"; 
    color: #e11d48; 
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
}

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.footer-bottom {
    max-width: var(--content-max-width, 1100px);
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #d4d7db;
    text-align: center;
}

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

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

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

.article-image, 
.cl-hero img {
    max-width: 100%;
    height: auto !important;
    border-radius: 12px; 
    object-fit: cover;
}

