/* === 1. CSS Variables & Reset === */
:root {
  --color-bg: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B7280;
  --color-accent: #1B8A4E;
  --color-accent-hover: #156B3D;
  --color-surface: #F5F5F5;
  --color-border: #E5E7EB;
  --color-surface-alt: #F8F9FA;
  --color-callout-border: #D97706;
  --color-success: #1B8A4E;
  --color-danger: #DC2626;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width-text: 760px;
  --max-width-wide: 1080px;
  --section-gap: clamp(64px, 8vw, 100px);
  --content-padding: clamp(20px, 5vw, 40px);

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #111111;
    --color-text: #E8E8E8;
    --color-text-secondary: #9CA3AF;
    --color-accent: #34D67A;
    --color-accent-hover: #2AB866;
    --color-surface: #1A1A1A;
    --color-border: #2D2D2D;
    --color-surface-alt: #1E1E1E;
    --color-callout-border: #F59E0B;
    --color-success: #34D67A;
    --color-danger: #EF4444;
}



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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  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;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

strong {
  font-weight: 500;
}

em {
  font-style: italic;
}

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

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

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

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

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

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

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

th {
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
}

td {
  color: var(--color-text);
}

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

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

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

main {
  width: 100%;
}

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

[data-content] + [data-content] {
  /* sections already spaced by margin-bottom */
}

/* Wide components can stretch */
[data-content] .odds-example,
[data-content] .at-a-glance,
[data-content] .card-grid,
[data-content] .comparison,
[data-content] .dos-donts,
[data-content] .worked-example {
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
}

/* Images */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

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

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

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  border-radius: 0;
  margin: 2rem 0;
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 0.75rem;
}

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

.info-box strong {
  font-weight: 500;
  font-family: var(--font-body);
}

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

.odds-example p {
  text-align: left;
  color: #FFFFFF;
  background: transparent;
}

.odds-example strong {
  color: #FFFFFF;
}

.odds-example table {
  width: 100%;
  margin: 1rem 0;
}

.odds-example th {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.odds-example td {
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px;
}

.odds-example td:first-child {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #0A0A0A;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  }
  .odds-example p { color: #FFFFFF; }
  .odds-example strong { color: #FFFFFF; }
  .odds-example th { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.08); }
  .odds-example td { color: #FFFFFF; border-bottom-color: rgba(255,255,255,0.04); }
  .odds-example td:first-child { color: rgba(255,255,255,0.8); }
}

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

.callout p {
  text-align: left;
  color: var(--color-text);
  background: transparent;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.callout strong {
  color: var(--color-text);
}

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

.card-grid > div {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-grid > div:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-grid > div p {
  text-align: left;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 0.5rem;
}

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

.card-grid > div strong {
  font-family: var(--font-body);
  font-weight: 500;
}

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

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 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 {
  text-align: left;
  color: var(--color-text);
  background: transparent;
}

.comparison > div strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.comparison > div ul {
  text-align: left;
  padding-left: 1.25rem;
}

.comparison > div li {
  text-align: left;
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .comparison {
    grid-template-columns: 1fr;
  }
  .comparison > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

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

.key-takeaway p {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 0;
}

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

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

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

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

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

.glossary-term p {
  text-align: left;
  color: var(--color-text-secondary);
  background: transparent;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

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

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

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

.dos-donts > div:first-child {
  border-top: 3px solid var(--color-success);
}

.dos-donts > div:last-child {
  border-top: 3px solid var(--color-danger);
}

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

.dos-donts > div strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

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

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

.dos-donts > div ul {
  text-align: left;
  padding-left: 1.25rem;
}

.dos-donts > div li {
  text-align: left;
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

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

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

.pre-bet-checklist > p {
  text-align: left;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: transparent;
  margin-bottom: 1rem;
}

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

.pre-bet-checklist li {
  position: relative;
  text-align: left;
  color: var(--color-text);
  font-size: 0.9375rem;
  padding-left: 8px;
  margin-bottom: 0.75rem;
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -24px;
  top: 0;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
  font-size: 1rem;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-surface);
  border-radius: 4px;
  margin: 2rem 0;
  overflow: hidden;
}

.at-a-glance > div {
  padding: 20px;
  text-align: center;
}

.at-a-glance > div:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.at-a-glance > div p {
  text-align: center;
  color: var(--color-text);
  background: transparent;
}

.at-a-glance > div p:first-child {
  text-align: center;
}

.at-a-glance > div strong {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.at-a-glance > div p:last-child {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

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

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface-alt);
  padding: 28px;
  border-radius: 4px;
  margin: 2rem 0;
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 1rem;
}

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

.worked-example strong {
  color: var(--color-text);
  font-weight: 500;
}

.worked-example p + p {
  border-left: 2px solid var(--color-border);
  padding-left: 16px;
}

.worked-example p:first-child {
  border-left: none;
  padding-left: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.worked-example p:last-child strong {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

/* --- section-bridge --- */
.section-bridge {
  margin: 48px 0;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.section-bridge p {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-secondary);
  background: transparent;
  margin-bottom: 0;
}

/* === 5. Hero Section === */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  margin-bottom: var(--section-gap);
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500' width='800' height='500'%3E%3Crect x='100' y='50' width='600' height='400' fill='none' stroke='%231B8A4E' stroke-width='1.5' opacity='0.05'/%3E%3Cline x1='400' y1='50' x2='400' y2='450' stroke='%231B8A4E' stroke-width='1.5' opacity='0.05'/%3E%3Ccircle cx='400' cy='250' r='60' fill='none' stroke='%231B8A4E' stroke-width='1.5' opacity='0.05'/%3E%3Crect x='100' y='150' width='120' height='200' fill='none' stroke='%231B8A4E' stroke-width='1.5' opacity='0.04'/%3E%3Crect x='580' y='150' width='120' height='200' fill='none' stroke='%231B8A4E' stroke-width='1.5' opacity='0.04'/%3E%3Ccircle cx='400' cy='250' r='4' fill='%231B8A4E' opacity='0.06'/%3E%3C/svg%3E");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 900px auto;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500' width='800' height='500'%3E%3Crect x='100' y='50' width='600' height='400' fill='none' stroke='%2334D67A' stroke-width='1.5' opacity='0.04'/%3E%3Cline x1='400' y1='50' x2='400' y2='450' stroke='%2334D67A' stroke-width='1.5' opacity='0.04'/%3E%3Ccircle cx='400' cy='250' r='60' fill='none' stroke='%2334D67A' stroke-width='1.5' opacity='0.04'/%3E%3Crect x='100' y='150' width='120' height='200' fill='none' stroke='%2334D67A' stroke-width='1.5' opacity='0.03'/%3E%3Crect x='580' y='150' width='120' height='200' fill='none' stroke='%2334D67A' stroke-width='1.5' opacity='0.03'/%3E%3Ccircle cx='400' cy='250' r='4' fill='%2334D67A' opacity='0.05'/%3E%3C/svg%3E");
  }
}

[data-content="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-inner {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 100px) var(--content-padding) 0;
  text-align: center;
}

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

.hero-inner h1 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  margin: 0 auto 1.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
}

.hero-meta time {
  color: var(--color-text-secondary);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-secondary);
}

.hero-figure {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  position: relative;
  z-index: 1;
}

.hero-figure figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  padding-bottom: 1rem;
}

/* === TOC (grid 2-column variant) === */
[data-content="toc"] {
  max-width: var(--max-width-text);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--content-padding);
  margin-bottom: var(--section-gap);
}

.toc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.toc-list {
  column-count: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list > li {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.toc-list > li > a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.toc-sublist {
  list-style: none;
  padding: 0;
  margin-top: 0.4rem;
}

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

.toc-sublist a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding-left: 1rem;
  display: inline-block;
  transition: color 0.2s ease;
}

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

@media (max-width: 640px) {
  .toc-list {
    column-count: 1;
  }
}

/* === FAQ Accordion === */
details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2rem 1.25rem 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--color-text);
  position: relative;
  transition: color 0.2s ease;
}

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

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

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

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

details[open] summary::after {
  content: '\2212';
  transform: translateY(-50%) rotate(0deg);
}

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

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; }
    to { opacity: 1; }
  }
  details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease forwards;
  }
}

details div p {
  text-align: left;
  color: var(--color-text);
  padding-bottom: 1.25rem;
}

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

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



/* === 6. Media Queries === */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  [data-content="hero"] {
    background-size: 600px auto;
  }

  .hero-inner {
    padding-top: clamp(40px, 8vw, 60px);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-meta {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 48px;
  }

  h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
}

/* =========================================
   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; /* Dark background */
    color: #e0e0e0;
    padding: 60px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Titles */
.footer-title {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.footer-list li,
.footer-menu-list li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #999999;
}

/* Red dots like in the reference image for custom lists */
.footer-list li::before {
    content: "•";
    color: #d32f2f; /* Dark red accent */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}
.footer-list li {
    padding-left: 1em; /* Offset for the custom bullet */
}

/* Remove bullets for WP navigation menu just in case */
.footer-menu-list li::before {
    display: none;
}
.footer-menu-list li {
    padding-left: 0;
}

.footer-list a,
.footer-menu-list a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Bottom Copyright Bar */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666666;
}
.footer-bottom p {
  text-align: center;
}

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

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

/* =========================================
   404 Page Styles
   ========================================= */

/* Main container styling for the 404 page */
.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Takes up a good portion of the screen height */
    text-align: center;
    padding: 60px 20px;
    background-color: #121212; /* Matches your dark theme background */
    color: #ffffff;
}

/* Inner wrapper to limit width */
.container-404 {
    max-width: 600px;
    margin: 0 auto;
}

/* Big 404 numbers */
.error-404 .page-title {
    font-size: 150px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    color: #4CAF50; /* Green accent color - adjust hex code if your green is slightly different */
    text-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

/* Subtitle */
.error-404 .page-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin: 20px 0;
    color: #ffffff;
}

/* Paragraph text */
.error-404 .page-content p {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Return to home button */
.btn-home {
    display: inline-block;
    background-color: #4CAF50; /* Green background */
    color: #ffffff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Button hover effect */
.btn-home:hover {
    background-color: #45a049; /* Slightly darker green on hover */
    transform: translateY(-3px); /* Small lift effect */
    color: #ffffff;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .error-404 .page-title {
        font-size: 100px;
    }
    
    .error-404 .page-subtitle {
        font-size: 24px;
    }
    
    .error-404 .page-content p {
        font-size: 16px;
    }
}