/* === 1. CSS Variables & Reset === */
:root {
  --color-bg: #FAF8F5;
  --color-text: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-accent: #1B6B4A;
  --color-accent-secondary: #B8860B;
  --color-hero-bg: #F0EDE7;
  --color-surface: #F5F3EF;
  --color-border: #D4D0CB;
  --color-card-bg: #FFFFFF;
  --color-success: #2E7D32;
  --color-danger: #C62828;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --content-width: 820px;
  --section-gap: 64px;
  --base-unit: 8px;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #141210;
    --color-text: #E8E4DF;
    --color-text-secondary: #A8A49E;
    --color-accent: #3DA876;
    --color-accent-secondary: #D4A017;
    --color-hero-bg: #1C1915;
    --color-surface: #1E1C18;
    --color-border: #3A3732;
    --color-card-bg: #22201C;
    --color-success: #4CAF50;
    --color-danger: #EF5350;
}



*, *::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.72;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === 2. General Typography === */
p {
  text-align: left;
  margin-bottom: 1.2em;
  max-width: var(--content-width);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 24px;
  scroll-margin-top: 2rem;
}

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

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

a:hover {
  opacity: 0.8;
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

ul, ol {
  text-align: left;
  padding-left: 24px;
  margin-bottom: 1.2em;
  max-width: var(--content-width);
}

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

table {
  width: 100%;
  max-width: var(--content-width);
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}

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

th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--section-gap) 0;
}

figure {
  margin: 24px 0;
  max-width: 100%;
}

figcaption {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 12px;
}

/* === 3. Layout: Sections === */
header {
  margin: 0;
  padding: 0;
}

main {
  width: 100%;
}

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

/* === 4. Visual Components === */

/* -- info-box -- */
.info-box {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  border-radius: 0;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-box p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.8em;
  max-width: none;
}

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

.info-box p strong:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* -- odds-example -- */
.odds-example {
  background-color: #1A1A1A;
  color: #FAF8F5;
  padding: 32px;
  border-radius: 4px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.odds-example p {
  font-family: var(--font-body);
  font-size: 17px;
  color: #FAF8F5;
  text-align: left;
  margin-bottom: 12px;
  max-width: none;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}

.odds-example p:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.odds-example p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B8860B;
  border-bottom: none;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.odds-example p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #FAF8F5;
}

.odds-example .mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  color: #3DA876;
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background-color: #1A1A1A;
    color: #FAF8F5;
  }
  .odds-example p {
    color: #FAF8F5;
  }
  .odds-example p:first-child {
    color: #D4A017;
  }
  .odds-example p strong {
    color: #FAF8F5;
  }
  .odds-example .mono {
    color: #3DA876;
  }
}

/* -- callout -- */
.callout {
  background-color: transparent;
  border: 2px solid var(--color-accent-secondary);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0;
}

.callout p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 17px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
  max-width: none;
}

/* -- card-grid -- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.card-grid > div {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-grid > div:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-grid > div p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.6em;
  max-width: none;
}

.card-grid > div p:last-child {
  margin-bottom: 0;
}

.card-grid > div p strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
}

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

.comparison > div {
  padding: 24px;
}

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

.comparison > div p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.6em;
  max-width: none;
}

.comparison > div p:last-child {
  margin-bottom: 0;
}

.comparison > div p strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-accent);
}

/* -- key-takeaway -- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 16px;
  margin: 32px 0;
}

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

/* -- fun-fact -- */
.fun-fact {
  display: block;
  padding-left: 20px;
  border-left: 3px solid var(--color-accent-secondary);
  margin: 24px 0;
  position: relative;
}

.fun-fact p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
  max-width: none;
}

/* -- glossary-term -- */
.glossary-term {
  margin: 16px 0;
}

.glossary-term p {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
  max-width: none;
}

.glossary-term p strong {
  font-family: var(--font-mono);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color-text);
  flex-shrink: 0;
}

/* -- dos-donts -- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.dos-donts > div {
  padding: 24px;
}

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

.dos-donts > div p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  margin-bottom: 12px;
  max-width: none;
}

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

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

.dos-donts > div ul {
  list-style: none;
  padding-left: 0;
  max-width: none;
}

.dos-donts > div li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.dos-donts > div:first-child li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.dos-donts > div:last-child li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: 700;
}

/* -- pre-bet-checklist -- */
.pre-bet-checklist {
  margin: 24px 0;
}

.pre-bet-checklist p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-align: left;
  margin-bottom: 16px;
  max-width: none;
}

.pre-bet-checklist ul {
  list-style: none;
  border-left: 2px solid var(--color-border);
  padding-left: 24px;
  margin-left: 12px;
  max-width: none;
}

.pre-bet-checklist li {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 14px;
  position: relative;
  padding-left: 0;
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -33px;
  top: 0;
  font-size: 16px;
  color: var(--color-accent);
  background-color: var(--color-bg);
  width: 20px;
  text-align: center;
  line-height: 1.72;
}

/* -- at-a-glance -- */
.at-a-glance {
  display: flex;
  background-color: var(--color-surface);
  padding: 16px 0;
  margin: 24px 0;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.at-a-glance > div {
  flex: 1;
  padding: 12px 20px;
  border-right: 1px solid var(--color-border);
}

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

.at-a-glance > div p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 6px;
  max-width: none;
}

.at-a-glance > div p:last-child {
  margin-bottom: 0;
}

.at-a-glance > div p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

/* -- worked-example -- */
.worked-example {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 28px;
  border-radius: 4px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.worked-example p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 12px;
  max-width: none;
}

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

.worked-example p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

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

.worked-example .mono,
.worked-example code {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
}

.worked-example hr {
  border: none;
  margin: 16px 0;
  text-align: center;
}

.worked-example hr::after {
  content: "\2192";
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-accent);
}

/* -- section-bridge -- */
.section-bridge {
  text-align: center;
  margin: 32px 0;
  font-style: italic;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-bridge::before,
.section-bridge::after {
  content: "\2014\2002";
  color: var(--color-border);
}

.section-bridge::after {
  content: "\2002\2014";
}

/* === 5. Hero Section === */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: var(--color-hero-bg);
  padding: 80px 24px 48px;
  margin-bottom: var(--section-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-image: linear-gradient(to bottom, var(--color-hero-bg) 80%, var(--color-bg) 100%);
}

[data-content="hero"] .hero-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

[data-content="hero"] h1 {
  max-width: 800px;
  text-align: center;
  margin-bottom: 20px;
}

[data-content="hero"] .hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-text-secondary);
  max-width: 600px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

[data-content="hero"] .hero-divider {
  width: 60px;
  border: none;
  border-top: 3px solid var(--color-accent);
  margin: 0 auto 24px;
}

[data-content="hero"] .hero-meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

[data-content="hero"] figure {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

[data-content="hero"] figure img,
[data-content="hero"] figure .hero-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

[data-content="hero"] figure figcaption {
  text-align: center;
  margin-top: 12px;
}

/* === 5b. TOC — Horizontal Strip === */
[data-content="toc"] {
  max-width: 960px;
  padding: 0 24px;
  margin-bottom: var(--section-gap);
}

[data-content="toc"] nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

[data-content="toc"] nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

[data-content="toc"] nav a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: var(--color-surface);
  opacity: 1;
}

[data-content="toc"] nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* === 6. FAQ Accordion === */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}

[data-content="faq"] summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-text);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

[data-content="faq"] summary::-webkit-details-marker {
  display: none;
}

[data-content="faq"] summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

[data-content="faq"] details[open] summary::after {
  transform: rotate(45deg);
}

[data-content="faq"] summary:hover {
  color: var(--color-accent);
}

[data-content="faq"] summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Modern accordion animation */
[data-content="faq"] 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;
}

[data-content="faq"] details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* Fallback for older browsers */
@supports not selector(::details-content) {
  @keyframes faq-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  [data-content="faq"] details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease forwards;
  }
}

[data-content="faq"] details div {
  padding-bottom: 20px;
}

[data-content="faq"] details div p {
  font-size: 17px;
  color: var(--color-text);
  text-align: left;
  max-width: none;
}


/* === 8. Back to Top === */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--color-text-secondary);
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-top: 16px;
}

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

.back-to-top::before {
  content: "\2191";
  font-size: 15px;
}

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

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

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

  [data-content="hero"] {
    padding: 48px 20px 32px;
  }

  [data-content] {
    padding: 0 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .at-a-glance > div p {
    text-align: left;
  }

  .glossary-term p {
    flex-direction: column;
    gap: 4px;
  }

  [data-content="toc"] nav {
    justify-content: flex-start;
  }

  [data-content="toc"] nav a {
    font-size: 12px;
    padding: 6px 12px;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Footer Base Styles */
.site-footer {
    background-color: #121212;
    color: #e0e0e0;
    padding: 60px 0 20px;
    font-family: sans-serif;
    border-top: 1px solid #2a2a2a;
}

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

/* 4-Column Grid */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

/* Typography & Titles */
.footer-title {
    color: #5ab573; /* Greenish accent color */
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lists styling */
.footer-list,
.custom-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li,
.custom-footer-menu li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a0a0a0;
}

/* Custom styling for the first column bullets */
.warning-list li {
    position: relative;
    padding-left: 15px;
}

.warning-list li::before {
    content: "•";
    color: #e74c3c; /* Red bullet for warnings */
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Links */
.footer-col a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.highlight-link {
    color: #e74c3c !important;
    font-weight: bold;
}

.highlight-link:hover {
    color: #ff6b5a !important;
}

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

.footer-bottom p {
  text-align: right;
  color: #d7d7d7;
}

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

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer {
        padding: 40px 0 20px;
    }
}

footer {
  padding-top: 3rem;     
  margin-top: calc(var(--section-gap) + 1rem);
}