:root {
  /* Tell browser we are dark-only (forms, scrollbars, etc.) */
  color-scheme: dark;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-accent: #2D9F3A;
  --color-accent-hover: #24802e;

  /* Dark defaults */
  --color-bg: #121212;
  --color-text: #E8E8E8;
  --color-text-secondary: #9A9A9A;
  --color-border: #333333;
  --color-surface: #1E1E1E;

  --color-danger: #D94040;
  --color-success: #2D9F3A;

  /* If you use this as “surface text”, keep it consistent */
  --color-white: #121212;

  --content-width: 760px;
  --section-gap: clamp(64px, 8vw, 100px);
  --content-padding: clamp(20px, 5vw, 40px);
}



*, *::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: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ========================================
   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.05;
  color: var(--color-text);
}

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

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.2em;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  text-align: left;
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

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

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

th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

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

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  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-left: var(--content-padding);
  padding-right: var(--content-padding);
  margin-bottom: var(--section-gap);
}

[data-content] h2 {
  margin-bottom: 1.2em;
}

[data-content] h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

[data-content] figure {
  margin: 2em auto;
  max-width: 100%;
}

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

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

.info-box p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.6em;
  background: var(--color-surface);
}

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

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

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

.odds-example p {
  text-align: left;
  color: #FFFFFF;
  background: #1A1A1A;
  margin-bottom: 0.8em;
}

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

.odds-example p strong:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  display: block;
  margin-bottom: 12px;
}

.odds-example table {
  width: 100%;
  margin: 16px 0;
}

.odds-example th {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #AAAAAA;
  background: #1A1A1A;
  border-bottom: 1px solid #333333;
  padding: 8px 12px;
}

.odds-example td {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  color: #FFFFFF;
  background: #1A1A1A;
  border-bottom: 1px solid #2A2A2A;
  padding: 10px 12px;
}

.odds-example td:last-child {
  color: var(--color-accent);
  font-size: 1.5rem;
}

.odds-example p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #1A1A1A;
    color: #FFFFFF;
  }
  .odds-example p,
  .odds-example p strong,
  .odds-example td {
    color: #FFFFFF;
    background: #1A1A1A;
  }
  .odds-example th {
    color: #AAAAAA;
    background: #1A1A1A;
  }
  .odds-example td:last-child {
    color: var(--color-accent);
  }
}

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

.callout p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.6em;
}

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

.callout p strong:first-child {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-danger);
  display: block;
  margin-bottom: 8px;
}

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

.key-takeaway p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
}

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

.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1rem;
}

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

/* --- section-bridge --- */
.section-bridge {
  display: block;
  text-align: center;
  max-width: 500px;
  margin: 60px auto;
  position: relative;
  padding: 20px 0;
}

.section-bridge::before,
.section-bridge::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 16px;
}

.section-bridge::after {
  margin: 16px auto 0;
}

.section-bridge p {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 0;
}

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

.comparison > div {
  padding: 24px;
}

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

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

.comparison p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.8em;
}

.comparison p strong {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.comparison ul {
  list-style: disc;
  padding-left: 1.2em;
}

.comparison li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
}

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

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  padding: 32px;
  margin: 2em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.worked-example p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
  color: var(--color-text);
  background: var(--color-surface);
  margin-bottom: 0.6em;
}

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

.worked-example p strong:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 12px;
}

.worked-example p + p {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-text);
  background: var(--color-surface);
}

.worked-example p:last-child strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
  display: block;
  border-top: 2px solid var(--color-accent);
  padding-top: 12px;
  margin-top: 8px;
}

/* Arrow separators inside worked-example */
.worked-example p + p::before {
  content: '\2192';
  display: block;
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 4px;
}

.worked-example p:first-child::before,
.worked-example p:first-child + p::before {
  content: none;
}

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

.pre-bet-checklist p strong {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.pre-bet-checklist p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.8em;
}

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

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

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

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 2em 0;
}

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

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

.at-a-glance p:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 4px;
}

.at-a-glance p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

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

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2em 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 p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.8em;
}

.dos-donts p strong {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.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 {
  list-style: disc;
  padding-left: 1.2em;
}

.dos-donts li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
}

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

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

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

.glossary-term dd {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: left;
  margin: 0;
}

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

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

.card-grid > div {
  padding: 24px;
  border: 1px solid var(--color-border);
  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 p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.card-grid p strong {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  display: block;
  margin-bottom: 8px;
}

/* ========================================
   5. Hero Section
   ======================================== */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-top: clamp(60px, 10vw, 100px);
  padding-bottom: clamp(40px, 6vw, 60px);
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
  background: var(--color-bg);
  text-align: center;
  margin-bottom: var(--section-gap);
}

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

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

[data-content="hero"] .subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  text-align: center;
}

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

[data-content="hero"] .meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

[data-content="hero"] .badge {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] .badge {
    color: #FFFFFF;
  }
}

[data-content="hero"] figure {
  max-width: var(--content-width);
  margin: 0 auto;
}

[data-content="hero"] figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

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

/* Start Reading button */
.start-reading {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 10px 28px;
  margin-top: 24px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.start-reading:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .start-reading:hover {
    color: #FFFFFF;
  }
}

/* ========================================
   6. TOC — Horizontal compact strip
   ======================================== */
[data-content="toc"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 20px var(--content-padding);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--section-gap);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

[data-content="toc"]::-webkit-scrollbar {
  height: 4px;
}

[data-content="toc"]::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

[data-content="toc"] nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 1100px;
  margin: 0 auto;
}

[data-content="toc"] nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

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

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

summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 20px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color 0.2s ease;
}

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

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

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

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

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

/* Modern details animation (Chrome 131+, Firefox 143+, Safari 18.4+) */
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;
  transition-behavior: allow-discrete;
}

details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

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

details div p {
  padding: 0 0 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
}

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

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

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

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 8px 10px;
  }

  .odds-example {
    padding: 24px 20px;
  }

  .worked-example {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  [data-content="hero"] .meta {
    flex-direction: column;
    gap: 8px;
  }

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

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

/* Article image class */
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;

}

/* --- Site Header Styling --- */
.site-header {
    background-color: transparent; 
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-navigation-bar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Branding */
.site-branding .site-title {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Desktop Navigation --- */
/* Hide mobile controls on desktop */
@media (min-width: 992px) {
    .mobile-controls {
        display: none;
    }
}

.site-nav--desktop .menu-desktop {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px; 
}

.site-nav--desktop .menu-desktop li {
    position: relative;
}

.site-nav--desktop .menu-desktop li a {
    color: #cccccc; 
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.site-nav--desktop .menu-desktop li a:hover,
.site-nav--desktop .menu-desktop li.current-menu-item a {
    color: #4CAF50; 
}

.site-nav--desktop .menu-desktop li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.site-nav--desktop .menu-desktop li a:hover::after,
.site-nav--desktop .menu-desktop li.current-menu-item a::after {
    width: 100%;
}

@media (max-width: 991px) {
    .site-nav--desktop {
        display: none;
    }
    .mobile-controls {
        display: block;
    }
}

/* --- Site Footer Styling --- */
.site-footer {
    background-color: #151618; 
    color: #cccccc;
    padding: 60px 0 20px;
    font-family: sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Yellow Serif Titles */
.footer-title {
    color: #f1c40f; 
    font-family: "Georgia", serif;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: bold;
}

/* List Formatting */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

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

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

/* Red Bullets for columns 1, 2, 3 */
.footer-list.red-bullets li {
    padding-left: 15px;
}

.footer-list.red-bullets li::before {
    content: "•";
    color: #e74c3c; 
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Plain Links for column 4 */
.footer-list.plain-links li {
    padding-left: 0;
    margin-bottom: 12px;
}

/* Bottom Section (Disclaimer & Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.anj-disclaimer {
    font-size: 0.8rem;
    color: #999999;
    margin-bottom: 15px;
    line-height: 1.6;
}

.anj-disclaimer a {
    color: #f1c40f;
    text-decoration: none;
}

.copyright {
    font-size: 0.9rem;
    color: #cccccc;
}

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

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

/* ==========================================================================
   Mobile Menu Styles
   ========================================================================== */

/* Hide mobile controls on desktop by default */
.mobile-controls {
    display: none;
}

/* Show mobile controls on screens smaller than 992px */
@media (max-width: 991px) {
    .mobile-controls {
        display: block;
    }

    /* Burger Button */
    .burger {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 45px;
        height: 35px;
    }

    .burger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    /* Burger Animation to 'X' */
    .burger.is-active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .burger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .burger.is-active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* Dark Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 998; /* Below the menu, above the page */
    }

    .mobile-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
        backdrop-filter: blur(3px); /* Optional: adds a nice blur effect */
    }

    /* Mobile Menu Panel */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen to the right */
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background-color: #151618; /* Same dark background as footer */
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); /* Smooth slide */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

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

    /* Close Button Inside Menu */
    .mobile-menu__close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 35px;
        cursor: pointer;
        line-height: 1;
        transition: color 0.3s;
    }

    .mobile-menu__close:hover {
        color: #4CAF50; /* Green accent on hover */
    }

    /* Mobile Menu Inner Container */
    .mobile-menu__inner {
        padding: 60px 20px 30px; /* Space for the close button */
    }

    /* Mobile Menu List Styles */
    .menu-mobile {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-mobile li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .menu-mobile li:last-child {
        border-bottom: none;
    }

    .menu-mobile li a {
        display: block;
        padding: 15px 0;
        color: #cccccc;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: color 0.3s, padding-left 0.3s;
    }

    /* Hover and Active State for Links */
    .menu-mobile li a:hover,
    .menu-mobile li.current-menu-item > a {
        color: #4CAF50; /* Green accent */
        padding-left: 10px; /* Slight indent on hover */
    }
}

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

/* Center everything and add breathing room */
.error-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
    
    /* Force full width to override theme defaults */
    width: 100%;
    max-width: 100%;
}

/* Dark card container for the error content */
.error-content-container {
    max-width: 600px;
    width: 100%;
    background-color: #151618;
    padding: 50px 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Fallback centering */
    margin: 0 auto;
}

/* Big 404 Heading */
.error-404 .page-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Paragraph text */
.error-404 .page-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Green Return Button */
.btn-return-home {
    display: inline-block;
    background-color: transparent;
    color: #4CAF50; /* Green accent color */
    border: 2px solid #4CAF50;
    padding: 12px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

/* Button hover effect */
.btn-return-home:hover {
    background-color: #4CAF50;
    color: #1a1a1a; /* Dark text on green background */
}

/* Helpful Links Section */
.helpful-links {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* Yellow serif font matching the footer titles */
.helpful-links h2 {
    font-family: "Georgia", serif; 
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: normal;
}

.helpful-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helpful-links ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

/* Link hover effect */
.helpful-links ul li a:hover {
    color: #4CAF50;
}

/* Mobile responsiveness for 404 page */
@media (max-width: 576px) {
    .error-content-container {
        padding: 40px 20px;
    }
    .error-404 .page-title {
        font-size: 1.8rem;
    }
}