/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Colors - Light Theme */
  --color-bg: #FAFAFA;
  --color-text: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-accent: #00875A;
  --color-accent-hover: #006644;
  --color-surface: #F0F0F0;
  --color-border: #E0E0E0;
  --color-warning: #E67700;
  --color-warning-bg: #FFF8F0;
  --color-danger: #C92A2A;
  --color-success: #2F9E44;
  --color-tip-bg: #F0FFF4;
  
  /* Hero specific */
  --hero-bg: #F7FBF9;
  
  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Sizes */
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-h1: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  --text-h2: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-small: 0.875rem;
  --text-label: 0.75rem;
  
  /* Spacing */
  --section-gap: clamp(3rem, 2.5rem + 2.5vw, 5rem);
  --content-max-width: 720px;
  --sidebar-width: 220px;
  
  /* Effects */
  --shadow-subtle: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-medium: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --transition-base: 0.2s ease;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #141414;
    --color-text: #F0F0F0;
    --color-text-secondary: #A0A0A0;
    --color-surface: #1E1E1E;
    --color-border: #333333;
    --color-warning-bg: #2A2010;
    --color-tip-bg: #102A1A;
    --hero-bg: #0F1A14;
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-medium: 0 4px 6px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.15);
}



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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ============================================
   2. GENERAL TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  color: var(--color-text);
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: 1.5rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: var(--text-h3);
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

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

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  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 {
  text-align: left;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

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

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

figure {
  margin: 2rem auto;
  max-width: 100%;
}

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

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

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 & SECTIONS
   ============================================ */
header {
  /* Empty header should not create visual gap */
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 0 calc(var(--sidebar-width) + 3rem);
  position: relative;
}

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

@media (min-width: 1201px) {
  main {
    padding-right: calc(var(--sidebar-width) + 3rem);
  }
}

[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}

/* ============================================
   4. COMPONENTS
   ============================================ */

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

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

.info-box__title,
.info-box p:first-child strong {
  display: block;
  font-weight: 600;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* Odds Example */
.odds-example {
  background: #1A1A1A;
  color: #FAFAFA;
  padding: 2rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  margin: 2rem 0;
  box-shadow: var(--shadow-medium);
}

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

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

.odds-example p strong {
  color: #FAFAFA;
}

.odds-example__teams {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.odds-example__odds {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.odds-example__odd {
  background: var(--color-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-align: center;
}

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

/* Callout */
.callout {
  border-left: 4px solid var(--color-warning);
  padding: 1.25rem 1.5rem;
  background: var(--color-warning-bg);
  margin: 2rem 0;
  box-shadow: var(--shadow-subtle);
}

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

.callout p:first-child strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.callout--warning {
  border-color: var(--color-warning);
  background: var(--color-warning-bg);
}

.callout--tip {
  border-color: var(--color-accent);
  background: var(--color-tip-bg);
}

/* 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);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card-grid > div:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

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

.card-grid p strong {
  font-family: var(--font-body);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

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

.comparison > div {
  padding: 1.5rem;
  border-top: 3px solid var(--color-border);
}

.comparison > div:first-child {
  border-color: var(--color-accent);
}

.comparison > div:last-child {
  border-color: var(--color-text-secondary);
}

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

.comparison p strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.comparison ul {
  text-align: left;
}

.comparison li {
  color: var(--color-text);
}

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

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

/* Fun Fact */
.fun-fact {
  position: relative;
  padding-left: 2rem;
  margin: 1.5rem 0;
}

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

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

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

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

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

/* Dos and Donts */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.dos-donts > div:first-child {
  border-left: 4px solid var(--color-success);
  background: rgba(47, 158, 68, 0.05);
}

.dos-donts > div:last-child {
  border-left: 4px solid var(--color-danger);
  background: rgba(201, 42, 42, 0.05);
}

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

.dos-donts p strong {
  display: block;
  margin-bottom: 0.75rem;
}

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

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

.dos-donts ul {
  text-align: left;
}

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

/* Pre-bet Checklist */
.pre-bet-checklist {
  margin: 2rem 0;
}

.pre-bet-checklist p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1rem;
}

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

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.5rem;
  color: var(--color-text);
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.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: var(--shadow-subtle);
}

.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 {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

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

.at-a-glance p strong {
  font-size: var(--text-label);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.at-a-glance p:last-child {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

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

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

.worked-example p:first-child strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.worked-example p:last-child {
  margin-bottom: 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
  font-weight: 600;
}

/* Section Bridge */
.section-bridge {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  padding: 0.5rem 2rem;
}

.section-bridge::before,
.section-bridge::after {
  content: "\2014\2014";
  color: var(--color-border);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.section-bridge::before {
  left: 0;
}

.section-bridge::after {
  right: 0;
}

.section-bridge p {
  font-style: italic;
  text-align: center;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.125rem;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
  background-color: var(--hero-bg);
  background-image: 
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 40px,
      rgba(0, 135, 90, 0.03) 40px,
      rgba(0, 135, 90, 0.03) 41px
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(0, 135, 90, 0.05) 0%,
      transparent 15%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(0, 135, 90, 0.04) 0%,
      transparent 12%
    );
  padding: clamp(3rem, 5vw, 6rem) 1.5rem clamp(4rem, 6vw, 8rem);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.hero__container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

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

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.hero__divider {
  width: 60px;
  border: none;
  border-top: 3px solid 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: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
}

.hero__meta time {
  font-family: var(--font-mono);
}

.hero__badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

.hero__figure {
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.hero__figure img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-medium);
  margin: 0 auto;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background-color: var(--hero-bg);
    background-image: 
      repeating-linear-gradient(
        135deg,
        transparent,
        transparent 40px,
        rgba(0, 135, 90, 0.04) 40px,
        rgba(0, 135, 90, 0.04) 41px
      ),
      radial-gradient(
        circle at 85% 20%,
        rgba(0, 135, 90, 0.08) 0%,
        transparent 15%
      ),
      radial-gradient(
        circle at 10% 80%,
        rgba(0, 135, 90, 0.06) 0%,
        transparent 12%
      );
  }
  
  .hero::after {
    background: linear-gradient(to bottom, transparent, var(--color-bg));
  }
}



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

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;
  list-style: none;
  transition: color var(--transition-base);
}

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

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 1rem;
}

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 ::details-content animation */
details {
  interpolate-size: allow-keywords;
}

::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;
  color: var(--color-text);
}

/* 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. ARTICLE IMAGES
   ============================================ */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

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

/* ============================================
   10. MEDIA QUERIES
   ============================================ */
@media (max-width: 900px) {
  main {
    padding: 0 1rem;
  }
  
  [data-content] {
    max-width: 100%;
    padding: calc(var(--section-gap) * 0.75) 0;
  }
  
  [data-content="hero"] {
    width: 100vw;
    margin-left: -1rem;
  }
  
  
  .comparison {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .dos-donts {
    grid-template-columns: 1fr;
  }
  
  .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;
  }
  
  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }
  
  .hero__meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 2.5rem;
  }
  
  .hero {
    padding: 2rem 1rem 3rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .info-box,
  .callout,
  .worked-example {
    padding: 1.25rem;
  }
  
  .odds-example {
    padding: 1.5rem 1rem;
  }
}

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

main {
    padding: 0 1.5rem !important; 
}

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

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #111827; /* Dark slate background */
    color: #D1D5DB; /* Light gray text */
    padding: 4rem 1.5rem 1.5rem;
    border-top: 1px solid #1F2937;
    font-family: inherit;
}

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

.footer-grid {
    display: grid;
    /* Automatically creates responsive columns based on screen width */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-heading {
    color: #4ADE80; /* Soft green accent instead of yellow */
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: none; /* Keep it modern, not fully uppercase */
}

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

.footer-list li {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.footer-list a:hover {
    color: #4ADE80; /* Matches heading color on hover */
}

/* Specific styles for the warnings column */
.footer-list--warnings li {
    position: relative;
    padding-left: 1.2rem;
}

.footer-list--warnings li::before {
    content: "•";
    color: #F87171; /* Soft red dot */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6B7280;
}

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

/* Ensure WordPress menu wrapper doesn't break styling */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}