/* =================================================================
   1. CSS VARIABLES & RESET
   ================================================================= */
:root {
  --color-bg: #0D1117;
  --color-surface: #161B22;
  --color-accent: #F7931A;
  --color-accent-secondary: #58A6FF;
  --color-text: #E6EDF3;
  --color-text-secondary: #8B949E;
  --color-success: #3FB950;
  --color-warning: #D29922;
  --color-danger: #F85149;
  --color-border: #30363D;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --h1-size: clamp(2rem, 5vw, 3.5rem);
  --h2-size: clamp(1.5rem, 3.5vw, 2.25rem);
  --h3-size: clamp(1.15rem, 2.5vw, 1.5rem);
  --body-size: clamp(0.95rem, 1.8vw, 1.1rem);
  --small-size: 0.85rem;
  --mono-size: 0.9rem;
  --content-width: 850px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --component-radius: 8px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =================================================================
   2. GENERAL TYPOGRAPHY
   ================================================================= */
h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-align: left;
  scroll-margin-top: 2rem;
}

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

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

a {
  color: var(--color-accent-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent-secondary); outline-offset: 2px; border-radius: 2px; }

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

strong { font-weight: 700; }
em { font-style: italic; }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--small-size);
}
thead { position: sticky; top: 0; z-index: 2; }
th {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
tbody tr:nth-child(even) { background: var(--color-surface); }
tbody tr:nth-child(odd) { background: var(--color-bg); }
tbody tr { transition: background-color 0.15s ease; }
tbody tr:hover { background: rgba(88, 166, 255, 0.04); }

/* =================================================================
   3. LAYOUT — SECTIONS
   ================================================================= */
header {
  position: relative;
  z-index: 10;
}

main {
  width: 100%;
}

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

[data-content] + [data-content] {
  padding-top: 0;
}

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

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

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

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

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

/* --- Comparison Table --- */
.comparison-table { overflow-x: auto; margin: 1.5rem 0; }
.comparison-table table { min-width: 700px; }
.comparison-table th {
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
}

/* --- Operator Card --- */
.operator-card {
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.operator-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(247,147,26,0.08);
}
.operator-card h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.operator-card p { text-align: left; color: var(--color-text); }

/* --- Info Box --- */
.info-box {
  border-left: 3px solid var(--color-accent-secondary);
  background: var(--color-surface);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.info-box p { text-align: left; color: var(--color-text); margin-bottom: 0.75rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box ul, .info-box ol { margin-bottom: 0.75rem; }
.info-box li { color: var(--color-text); text-align: left; }

/* --- Callout Warning --- */
.callout-warning {
  border-left: 3px solid var(--color-warning);
  background: rgba(210,153,34,0.08);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.callout-warning p { text-align: left; color: var(--color-text); margin-bottom: 0.75rem; }
.callout-warning p:last-child { margin-bottom: 0; }
.callout-warning strong { color: var(--color-warning); }

/* --- Key Takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1.25rem;
  margin: 2rem 0;
}
.key-takeaway p {
  text-align: left;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

/* --- Fun Fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.75rem 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);
  margin-bottom: 0;
}

/* --- Step Guide --- */
.step-guide {
  margin: 1.75rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--color-border);
  position: relative;
}
.step-guide p { text-align: left; color: var(--color-text); }
.step-guide p strong {
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.25rem;
}

/* --- TL;DR --- */
.tldr {
    background: var(--color-surface);
    border-left: 3px solid var(--color-accent);
    padding: 1.5rem 1.75rem;
    border-radius: var(--component-radius);
    margin: 1rem auto; 
}
.tldr h2 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.tldr ul { margin-bottom: 0; }
.tldr li { text-align: left; color: var(--color-text); margin-bottom: 0.5rem; font-size: var(--small-size); line-height: 1.6; }

/* --- Glossary Term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1rem 0;
}
.glossary-term strong {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--color-accent-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.glossary-term p { text-align: left; color: var(--color-text-secondary); margin-bottom: 0; }
@media (max-width: 600px) { .glossary-term { flex-direction: column; gap: 4px; } }

/* --- Dos & Don'ts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0;
}
.dos-donts > div:first-child { border-left: 3px solid var(--color-success); padding-left: 1rem; }
.dos-donts > div:last-child { border-left: 3px solid var(--color-danger); padding-left: 1rem; }
.dos-donts p { text-align: left; color: var(--color-text); font-weight: 700; margin-bottom: 0.5rem; }
.dos-donts ul { margin-bottom: 0; }
.dos-donts li { text-align: left; color: var(--color-text); }
@media (max-width: 600px) { .dos-donts { grid-template-columns: 1fr; } }

/* --- Pre-Bet Checklist --- */
.pre-bet-checklist {
  margin: 1.75rem 0;
}
.pre-bet-checklist > p:first-child {
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  text-align: left;
}
.pre-bet-checklist ul {
  border-left: 2px solid var(--color-border);
  padding-left: 1.75rem;
  list-style: none;
}
.pre-bet-checklist li {
  position: relative;
  padding: 0.35rem 0;
  text-align: left;
  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: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 1.75rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  overflow: hidden;
}
.at-a-glance > div {
  padding: 1.25rem;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}
.at-a-glance > div:last-child { border-right: none; }
.at-a-glance p:first-child {
  text-align: left;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.at-a-glance p:last-child { text-align: left; font-size: var(--small-size); 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; }
}

/* --- Worked Example --- */
.worked-example {
  background: var(--color-surface);
  padding: 1.5rem;
  margin: 1.75rem 0;
  border-radius: var(--component-radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.worked-example p { text-align: left; color: var(--color-text); }
.worked-example p strong { color: var(--color-accent); }
.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1rem 0;
}
.worked-example code, .worked-example span[data-calc] {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--color-accent-secondary);
}

/* --- Section Bridge --- */
.section-bridge {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  padding: 0.5rem 0;
}
.section-bridge p {
  text-align: center;
  font-style: italic;
  color: var(--color-accent-secondary);
  font-size: var(--body-size);
  display: inline;
}
.section-bridge::before,
.section-bridge::after {
  content: '\2014\2014';
  color: var(--color-border);
  letter-spacing: -0.15em;
  margin: 0 0.75rem;
}

/* --- Odds Example --- */
.odds-example {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.odds-example p { text-align: center; color: var(--color-text); }
.odds-example p:first-child {
  text-align: center;
  font-weight: 700;
  font-size: var(--h3-size);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}
.card-grid > div {
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25rem;
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card-grid > div:hover { border-color: var(--color-accent-secondary); transform: translateY(-2px); }
.card-grid p { text-align: left; color: var(--color-text); }

/* --- Pros/Cons (comparison) --- */
.comparison, .pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0;
}
@media (max-width: 600px) { .comparison, .pros-cons { grid-template-columns: 1fr; } }

/* =================================================================
   5. HERO SECTION
   ================================================================= */
[data-content="hero"] {
  max-width: 100%;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(48,54,61,0.25) 59px, rgba(48,54,61,0.25) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(48,54,61,0.25) 59px, rgba(48,54,61,0.25) 60px);
  opacity: 0.3;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

[data-content="hero"] h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  color: var(--color-text);
  text-align: center;
}

[data-content="hero"] p {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--body-size);
}

.hero-subtitle {
  font-size: var(--small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-start-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 1.75rem;
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-accent);
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}
.hero-start-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247,147,26,0.3);
  color: var(--color-bg);
}

/* =================================================================
   5b. TOC
   ================================================================= */
[data-content="toc"] {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

[data-content="toc"] h2 {
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.toc-list li { margin-bottom: 0.15rem; }
.toc-list > li > a {
  display: block;
  padding: 0.35rem 0;
  font-weight: 600;
  font-size: var(--body-size);
  color: var(--color-text);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc-list > li > a:hover {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}
.toc-list ul {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0;
}
.toc-list ul li a {
  display: block;
  padding: 0.2rem 0;
  font-size: var(--small-size);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.toc-list ul li a:hover { color: var(--color-accent-secondary); }

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

summary {
  padding: 1rem 2rem 1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--body-size);
  color: var(--color-text);
  position: relative;
  list-style: none;
  transition: color 0.2s ease;
}
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; content: ''; }

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 300;
  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); }

::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: clip;
}
details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

@supports not selector(::details-content) {
  details[open] > *:not(summary) {
    animation: fade-in 0.3s ease forwards;
  }
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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


/* =================================================================
   8. MEDIA QUERIES
   ================================================================= */
@media (max-width: 768px) {
  [data-content] { padding-left: 1rem; padding-right: 1rem; }
  [data-content="hero"] { padding: clamp(3rem, 8vw, 5rem) 1rem clamp(2rem, 4vw, 3rem); }
  table { font-size: 0.78rem; }
  th, td { padding: 0.5rem 0.6rem; }
  .comparison-table table { min-width: 500px; }
  .hero-meta { gap: 0.75rem; }
}

@media (max-width: 480px) {
  :root { --section-gap: 2.5rem; }
  .hero-meta { flex-direction: column; gap: 0.5rem; }
}

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

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

/* Mobile defaults for navigation bar */
.top-navigation-bar {
    width: 100%;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO FIXES --- */
.site-logo img {
    max-height: 75px; /* Optimal height for most logos */
    width: auto !important; /* Prevents squishing */
    display: block;
    transition: transform 0.2s ease;
}

.site-logo img:hover {
    transform: scale(1.02);
}

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

/* Desktop Grid Layout: Logo left, Menu center */
@media (min-width: 1024px) {
    .top-navigation-bar {
        max-width: 100%;
        padding: 15px 40px; /* Safe padding from screen edges */
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    
    .site-logo {
        grid-column: 1;
        justify-self: start; /* Locks logo to the left edge */
        margin: 0;
    }

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; /* Locks menu perfectly in the center */
    }

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


/* =========================================
   4-COLUMN FOOTER (Sweden Crypto Betting)
   ========================================= */
.site-footer-4col {
    background-color: #0b1121; /* Deep navy matching the UI background */
    color: #94a3b8;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #3b82f6); /* Blue border */
}

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

/* Legal Disclaimers Block */
.footer-disclaimers {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimers p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.footer-disclaimers a {
    color: var(--color-accent, #3b82f6);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-disclaimers a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Grid Layout */
.footer-4col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-4col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-4col-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Blue Titles (Using div for W3C) */
.widget-title {
    color: var(--color-accent, #3b82f6); 
    font-family: var(--font-display, sans-serif); 
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.widget-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.widget-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-list a:hover {
    color: var(--color-accent, #3b82f6);
}

/* Bullets */
.bullet-list li {
    position: relative;
    padding-left: 16px;
}

.bullet-list li::before {
    content: '•';
    color: var(--color-accent, #3b82f6); 
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    line-height: 1;
}

.clean-list li {
    padding-left: 0;
    padding-bottom: 0.8rem;
}

.clean-list li::before {
    display: none;
}

.footer-4col-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
}

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

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent, #3b82f6);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #2563eb;
    transform: translateY(-5px);
}
