/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */

    /* bebas-neue-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/bebas-neue-v16-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* jetbrains-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/jetbrains-mono-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/jetbrains-mono-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

    /* ========================================
       1. CSS Variables & Reset
       ======================================== */
    :root {
      /* Colors - Light Theme */
      --color-bg: #FFFFFF;
      --color-bg-alt: #F8F9FA;
      --color-surface: #F3F4F6;
      --color-text: #1A1A2E;
      --color-text-secondary: #6B7280;
      --color-accent: #16A34A;
      --color-accent-secondary: #EAB308;
      --color-warning: #DC2626;
      --color-border: #E5E7EB;
      --color-success-bg: #DCFCE7;
      --color-danger-bg: #FEE2E2;
      --color-callout-bg: #FEF3C7;
      
      /* Typography */
      --font-display: 'Bebas Neue', sans-serif;
      --font-body: 'Inter', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      
      /* Sizes */
      --h1-size: clamp(48px, 8vw, 64px);
      --h2-size: clamp(32px, 5vw, 40px);
      --h3-size: clamp(24px, 3vw, 28px);
      --body-size: 18px;
      --small-size: 14px;
      --mono-size: 16px;
      
      /* Spacing */
      --section-gap: clamp(64px, 10vw, 96px);
      --content-max-width: 870px;
      --sidebar-width: 330px;
      --container-padding: clamp(20px, 5vw, 40px);
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --color-bg: #0F0F1A;
        --color-bg-alt: #1A1A2E;
        --color-surface: #252538;
        --color-text: #F8F9FA;
        --color-text-secondary: #9CA3AF;
        --color-border: #374151;
        --color-success-bg: #14532D;
        --color-danger-bg: #7F1D1D;
        --color-callout-bg: #422006;
      }
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }
[data-content="hero"] .divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 1rem auto 1em;
    border: none;
}
    body {
      font-family: var(--font-body);
      font-size: var(--body-size);
      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-family: var(--font-display);
      font-size: var(--h1-size);
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      line-height: 1.1;
      color: var(--color-text);
    }

    h2 {
      font-family: var(--font-display);
      font-size: var(--h2-size);
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      line-height: 1.2;
      color: var(--color-text);
      margin-bottom: 24px;
      text-align: left;
      scroll-margin-top: 2rem;
    }

    h3 {
      font-family: var(--font-body);
      font-size: var(--h3-size);
      font-weight: 600;
      line-height: 1.3;
      color: var(--color-text);
      margin-bottom: 16px;
      text-align: left;
      scroll-margin-top: 2rem;
    }

    p {
      margin-bottom: 1.5em;
      text-align: left;
    }

    a {
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: 2px;
      transition: opacity 0.2s ease;
    }

    a:hover {
      opacity: 0.8;
    }

    a:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }

    strong {
      font-weight: 600;
    }

    em {
      font-style: italic;
    }

    ul, ol {
      margin-bottom: 1.5em;
      padding-left: 1.5em;
      text-align: left;
    }

    li {
      margin-bottom: 0.5em;
      text-align: left;
    }

    blockquote {
      border-left: 3px solid var(--color-accent);
      padding-left: 24px;
      margin: 32px 0;
      font-style: italic;
      color: var(--color-text-secondary);
      text-align: left;
    }

    figure {
      margin: 32px 0;
      max-width: 100%;
    }

    figcaption {
      font-size: var(--small-size);
      color: var(--color-text-secondary);
      margin-top: 12px;
      text-align: center;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin: 24px 0;
      font-size: 16px;
    }

    th, td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid var(--color-border);
    }

    th {
      font-weight: 600;
      background-color: var(--color-surface);
    }

    /* ========================================
       3. Layout - Main Grid with Sidebar TOC
       ======================================== */
    header {
      padding: 0;
    }


    .container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 17px;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;   
    padding: 25px 15px;
  
}


    /* Section layout */
    [data-content] {
      max-width: var(--content-max-width);
      margin: 0;
      /* padding-bottom: var(--section-gap); */
      grid-column: 2;
    }

    [data-content="closing"] {
      padding-bottom: 32px;
    }

    /* ========================================
       4. Components
       ======================================== */
    
    /* --- Info Box --- */
    .info-box {
      background: var(--color-surface);
      border-left: 4px solid var(--color-accent);
      padding: 24px 28px;
      margin: 32px 0;
      border-radius: 0 6px 6px 0;
    }

    .info-box p {
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      margin-bottom: 0;
      text-align: left;
      color: var(--color-text);
    }

    .info-box p:not(:last-child) {
      margin-bottom: 12px;
    }

    .info-box strong {
      display: block;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: var(--small-size);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-accent);
      margin-bottom: 8px;
    }

    /* --- Odds Example --- */
    .odds-example {
      background: #1A1A2E;
      color: #FFFFFF;
      padding: 28px 32px;
      border-radius: 8px;
      margin: 32px 0;
      font-family: var(--font-mono);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .odds-example p {
      margin-bottom: 12px;
      text-align: left;
      color: #FFFFFF;
    }

    .odds-example p:last-child {
      margin-bottom: 0;
    }

    .odds-example strong {
      display: block;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: var(--small-size);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-accent-secondary);
      margin-bottom: 16px;
    }

    @media (prefers-color-scheme: dark) {
      .odds-example {
        background: #1A1A2E;
        color: #FFFFFF;
      }
      .odds-example p {
        color: #FFFFFF;
      }
      .odds-example strong {
        color: var(--color-accent-secondary);
      }
    }

    /* --- Callout --- */
    .callout {
      background: var(--color-callout-bg);
      border: 1px solid var(--color-accent-secondary);
      border-radius: 6px;
      padding: 20px 24px;
      margin: 32px 0;
    }

    .callout p {
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      margin-bottom: 0;
      text-align: left;
      color: var(--color-text);
    }

    .callout strong {
      color: #92400E;
      display: block;
      margin-bottom: 8px;
    }

    @media (prefers-color-scheme: dark) {
      .callout strong {
        color: var(--color-accent-secondary);
      }
    }

    .callout--warning {
      background: var(--color-danger-bg);
      border-color: var(--color-warning);
    }

    .callout--warning strong {
      color: var(--color-warning);
    }

    /* --- Card Grid --- */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
      margin: 32px 0;
    }

    .card-grid > div {
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 24px;
      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);
    }

    @media (prefers-color-scheme: dark) {
      .card-grid > div:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      }
    }

    .card-grid p {
      margin-bottom: 12px;
      text-align: left;
      color: var(--color-text);
    }

    .card-grid p:last-child {
      margin-bottom: 0;
      color: var(--color-text-secondary);
    }

    .card-grid strong {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 18px;
      color: var(--color-text);
    }

    /* --- Dos and Donts --- */
    .dos-donts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin: 32px 0;
    }

    .dos-donts > div {
      padding: 24px;
      border-radius: 8px;
    }

    .dos-donts > div:first-child {
      background: var(--color-success-bg);
      border-top: 4px solid var(--color-accent);
    }

    .dos-donts > div:last-child {
      background: var(--color-danger-bg);
      border-top: 4px solid var(--color-warning);
    }

    .dos-donts p {
      text-align: left;
      color: var(--color-text);
    }

    .dos-donts strong {
      font-family: var(--font-body);
      font-weight: 700;
      font-size: var(--small-size);
      text-transform: uppercase;
      display: block;
      margin-bottom: 16px;
    }

    .dos-donts > div:first-child strong {
      color: #15803D;
    }

    .dos-donts > div:last-child strong {
      color: #B91C1C;
    }

    @media (prefers-color-scheme: dark) {
      .dos-donts > div:first-child strong {
        color: #4ADE80;
      }
      .dos-donts > div:last-child strong {
        color: #F87171;
      }
    }

    .dos-donts ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .dos-donts li {
      padding: 8px 0;
      padding-left: 24px;
      position: relative;
      text-align: left;
      color: var(--color-text);
    }

    .dos-donts > div:first-child li::before {
      content: "\2713";
      position: absolute;
      left: 0;
      color: var(--color-accent);
      font-weight: 600;
    }

    .dos-donts > div:last-child li::before {
      content: "\2717";
      position: absolute;
      left: 0;
      color: var(--color-warning);
      font-weight: 600;
    }

    /* --- Pre-bet Checklist --- */
    .pre-bet-checklist {
      margin: 32px 0;
    }

    .pre-bet-checklist strong {
      display: block;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 18px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: var(--color-accent);
      margin-bottom: 16px;
    }

    .pre-bet-checklist ul {
      list-style: none;
      padding: 0;
      padding-left: 24px;
      margin: 0;
      border-left: 2px solid var(--color-border);
    }

    .pre-bet-checklist li {
      padding: 12px 0;
      padding-left: 20px;
      position: relative;
      text-align: left;
      color: var(--color-text);
    }

    .pre-bet-checklist li::before {
      content: "\2610";
      position: absolute;
      left: -13px;
      color: var(--color-accent);
      font-size: 18px;
      background: var(--color-bg);
      padding: 0 4px;
    }

    /* --- Fun Fact --- */
    .fun-fact {
      font-family: var(--font-body);
      font-style: italic;
      padding-left: 20px;
      margin: 24px 0;
      font-size: 15px;
      position: relative;
    }

    .fun-fact p {
      margin-bottom: 0;
      text-align: left;
      color: var(--color-text-secondary);
    }

    .fun-fact::before {
      content: "\2014";
      position: absolute;
      left: 0;
      color: var(--color-accent);
    }

    /* --- Worked Example --- */
    .worked-example {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 28px;
      margin: 32px 0;
    }

    .worked-example strong {
      display: block;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: var(--small-size);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-text-secondary);
      margin-bottom: 20px;
    }

    .worked-example p {
      font-family: var(--font-mono);
      font-size: 15px;
      margin-bottom: 12px;
      padding: 8px 0;
      border-bottom: 1px dashed var(--color-border);
      text-align: left;
      color: var(--color-text);
    }

    .worked-example p:last-child {
      margin-bottom: 0;
      border-bottom: none;
      color: var(--color-accent);
      font-weight: 600;
    }

    /* --- Glossary Term --- */
    .glossary-term {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: 24px 0;
    }

    .glossary-term p {
      margin-bottom: 0;
      text-align: left;
    }

    .glossary-term strong {
      font-family: var(--font-mono);
      color: var(--color-accent);
      text-decoration: underline;
      text-decoration-style: dotted;
      text-underline-offset: 3px;
      white-space: nowrap;
    }

    .glossary-term span {
      color: var(--color-text-secondary);
    }

    /* --- Key Takeaway --- */
    .key-takeaway {
      border-top: 2px solid var(--color-accent);
      padding-top: 20px;
      margin: 32px 0;
    }

    .key-takeaway p {
      font-family: var(--font-display);
      font-size: clamp(20px, 3vw, 24px);
      font-weight: 400;
      line-height: 1.4;
      margin-bottom: 0;
      text-align: left;
      color: var(--color-text);
    }

    /* --- At A Glance --- */
    .at-a-glance {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0;
      margin: 32px 0;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      overflow: hidden;
    }

    .at-a-glance > div {
      padding: 24px;
      border-right: 1px solid var(--color-border);
    }

    .at-a-glance > div:last-child {
      border-right: none;
    }

    .at-a-glance p {
      text-align: center;
      color: var(--color-text);
    }

    .at-a-glance strong {
      display: block;
      font-family: var(--font-display);
      font-size: 28px;
      margin-bottom: 8px;
      color: var(--color-text);
    }

    .at-a-glance span {
      font-size: var(--small-size);
      color: var(--color-text-secondary);
    }

    /* --- Section Bridge --- */
    .section-bridge {
      text-align: center;
      margin: 48px 0;
      font-style: italic;
      color: var(--color-accent);
      position: relative;
      padding: 0 40px;
    }

    .section-bridge::before,
    .section-bridge::after {
      content: "\2014\2014";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: var(--color-border);
    }

    .section-bridge::before {
      left: 0;
    }

    .section-bridge::after {
      right: 0;
    }

    /* --- Comparison --- */
    .comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin: 32px 0;
    }

    .comparison > div {
      background: var(--color-surface);
      padding: 24px;
      border-radius: 8px;
      border-top: 3px solid var(--color-accent);
    }

    .comparison > div:last-child {
      border-top-color: var(--color-accent-secondary);
    }

    .comparison p {
      text-align: left;
      color: var(--color-text);
    }

    .comparison strong {
      display: block;
      font-size: 18px;
      margin-bottom: 12px;
      color: var(--color-text);
    }
.hero-image-container{
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  padding: 0 15px;
}
    /* ========================================
       5. Hero Section
       ======================================== */
    [data-content="hero"] {
      grid-column: 1 / -1;
      width: 100vw;
      margin-left: calc(50% - 50vw);
      max-width: none;
      padding: 0;
      padding-bottom: 0;
      background: var(--color-bg);
      background-image: radial-gradient(ellipse at center bottom, rgba(22, 163, 74, 0.08) 0%, transparent 60%);
      position: relative;
    }

    /* .hero-inner {
      max-width: calc(var(--sidebar-width) + var(--content-max-width) + 48px + var(--container-padding) * 2);
      margin: 0 auto;
      padding: clamp(48px, 10vw, 96px) var(--container-padding);
      padding-bottom: 48px;
    } */

    .hero-label {
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-accent);
      margin-bottom: 16px;
    }

    [data-content="hero"] h1 {
      max-width: 900px;
      margin-bottom: 24px;
    }

    .hero-subtitle {
      font-size: clamp(18px, 2.5vw, 22px);
      color: var(--color-text-secondary);
      max-width: 700px;
      line-height: 1.6;
      margin-bottom: 32px;
    }

    .hero-divider {
      width: 60px;
      height: 2px;
      background: var(--color-accent);
      margin-bottom: 24px;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: center;
      font-size: var(--small-size);
      color: var(--color-text-secondary);
      margin-bottom: 48px;
    }

    .hero-meta time {
      color: var(--color-text-secondary);
    }

    .hero-badge {
      background: var(--color-surface);
      padding: 4px 12px;
      border-radius: 4px;
      font-weight: 500;
      color: var(--color-accent);
    }

    [data-content="hero"] figure {
      max-width: 1200px;
      margin: 0 auto;
    }

    [data-content="hero"] img.hero-image {
      width: 100%;
      max-width: 1200px;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    @media (prefers-color-scheme: dark) {
      [data-content="hero"] img.hero-image {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      }
    }

    [data-content="hero"] figcaption {
      margin-top: 16px;
    }

    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--color-accent);
      color: #FFFFFF;
      padding: 12px 24px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
      font-size: 16px;
      margin-top: 32px;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .hero-cta:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .hero-cta:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }
    .container-page{
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 15px;
    }
    /* ========================================
       6. Table of Contents - Sticky Sidebar
       ======================================== */
    [data-content="toc"] {
      grid-column: 1;
      grid-row: 1 / span 50;
      position: sticky;
      top: 2rem;
      max-height: calc(100vh - 4rem);
      overflow-y: auto;
      padding-bottom: 0;
      align-self: start;
      max-width: var(--sidebar-width);
      scrollbar-width: thin;
      scrollbar-color: var(--color-border) transparent;
    }

    [data-content="toc"]::-webkit-scrollbar {
      width: 4px;
    }

    [data-content="toc"]::-webkit-scrollbar-track {
      background: transparent;
    }

    [data-content="toc"]::-webkit-scrollbar-thumb {
      background-color: var(--color-border);
      border-radius: 2px;
    }

    .toc-title {
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-text-secondary);
      margin-bottom: 20px;
    }

    .toc-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .toc-nav > ul > li {
      margin-bottom: 8px;
    }

    .toc-nav a {
      display: block;
      font-size: 15px;
      color: var(--color-text);
      text-decoration: none;
      padding: 6px 0;
      border-left: 2px solid transparent;
      padding-left: 12px;
      margin-left: -12px;
      transition: color 0.2s ease, border-color 0.2s ease;
    }



    .toc-nav a:hover {
      color: var(--color-accent);
      border-left-color: var(--color-accent);
    }

    .toc-nav a:focus {
      outline: none;
      color: var(--color-accent);
      border-left-color: var(--color-accent);
    }

    /* Nested H3 links */
    .toc-nav ul ul {
      margin-top: 4px;
      margin-left: 16px;
    }

    .toc-nav ul ul li {
      margin-bottom: 4px;
    }

    .toc-nav ul ul a {
      font-size: 13px;
      color: var(--color-text-secondary);
      font-weight: 400;
    }

    .toc-nav ul ul a:hover {
      color: var(--color-accent);
    }

    /* ========================================
       7. FAQ Accordion
       ======================================== */
    details {
      border-bottom: 1px solid var(--color-border);
      interpolate-size: allow-keywords;
    }

    details:first-of-type {
      border-top: 1px solid var(--color-border);
    }

    summary {
      padding: 20px 0;
      cursor: pointer;
      font-weight: 600;
      font-size: 18px;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: color 0.2s ease;
      text-align: left;
      color: var(--color-text);
    }

    summary::-webkit-details-marker {
      display: none;
    }

    summary::after {
      content: "+";
      font-size: 24px;
      font-weight: 400;
      color: var(--color-accent);
      transition: transform 0.3s ease;
      flex-shrink: 0;
      margin-left: 16px;
    }

    details[open] summary::after {
      transform: rotate(45deg);
    }

    summary:hover {
      color: var(--color-accent);
    }

    summary:focus {
      outline: none;
    }

    summary:focus-visible {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }

    ::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: 20px;
    }

    details > div > p {
      color: var(--color-text-secondary);
      line-height: 1.7;
      text-align: left;
    }

    /* Fallback for browsers without ::details-content */
    @supports not selector(::details-content) {
      details > div {
        animation: none;
      }
      
      details[open] > div {
        animation: faq-fade-in 0.3s ease forwards;
      }
      
      @keyframes faq-fade-in {
        from {
          opacity: 0;
          transform: translateY(-8px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
    }


    /* ========================================
       9. Responsive / Media Queries
       ======================================== */
    @media (max-width: 900px) {
      .container {
        display: block;
        padding: 0 var(--container-padding);
      }

      [data-content] {
        max-width: 100%;
        grid-column: auto;
        padding-bottom: 0;
      }

      [data-content="hero"] {
        width: 100vw;
        margin-left: calc(-1 * var(--container-padding));
        margin-right: calc(-1 * var(--container-padding));
      }

      .hero-inner {
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
      }

      [data-content="toc"] {
        position: static;
        max-height: none;
        overflow-y: visible;
        max-width: 100%;
        grid-row: auto;
        padding: 24px;
        background: var(--color-surface);
        border-radius: 8px;
        margin-bottom: 32px;
      }

      .dos-donts {
        grid-template-columns: 1fr;
      }

      .comparison {
        grid-template-columns: 1fr;
      }

      .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;
      }

      .glossary-term {
        flex-direction: column;
        gap: 8px;
      }
    }

    @media (max-width: 600px) {
      :root {
        --section-gap: 48px;
      }

      .hero-inner {
        padding-top: 32px;
        padding-bottom: 32px;
      }

      .card-grid {
        grid-template-columns: 1fr;
      }

      summary {
        font-size: 16px;
      }
    }

    /* ========================================
       10. Article Schema & Utility
       ======================================== */
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* Focus styles for accessibility */
    :focus-visible {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }

    /* Print styles */
    @media print {
      [data-content="toc"] {
        display: none;
      }

      .container {
        display: block;
      }

      [data-content] {
        max-width: 100%;
        page-break-inside: avoid;
      }
    }
  

  /* ========================== */
.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 44px;
	height: 44px;
	background: var(--color-accent);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition), transform var(--transition);
	z-index: 100;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	transform: translateY(-3px);
	background: var(--c-primary);
}

.back-to-top svg {
	width: 20px;
	height: 20px;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: var(--space-md);
	padding: var(--space-xs) var(--space-sm);
	background: var(--color-accent);
	color: white;
	border-radius: var(--radius);
	z-index: 200;
}

.skip-link:focus {
	top: var(--space-md);
}

/*  */

img {
	width: 100%;
	object-fit: cover;
	max-height: 700px;
}

.wp-block-image img {

	margin-bottom: 2rem;
}


.content {
	margin-top: 2.5rem;
}

/* ---. menu --- */
.header-top {
	position: fixed;
min-height: 58px;
	width: 100%;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 11px;
	background: var(--color-accent);
	z-index: 1001;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



.burger-logo {
	margin: 0;
	padding: 0;
}



.logo-wrapper {
	flex-wrap: nowrap !important;
	;
	display: flex !important;
	align-items: center !important;

	text-decoration: none;
}



.main-logo-img {

	max-height: 45px;
	width: auto;
	flex-shrink: 0;
}


.logo-text {
	color: inherit;
	white-space: nowrap;
	font-size: 1.4rem;
	font-weight: 700;
	text-transform: capitalize;

}


.logo-wrapper {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	column-gap: 0.5rem !important;
}


.main-menu {
	gap: 1.2rem;
	display: flex;
}



.main-menu a {
	padding: 0 10px;
	display: inline-block;
	transition: color 0.3s;
}

.main-menu a:hover {
	color: inherit;

}

.menu-item__inner {
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	position: relative
}



.menu-toggle.active .icon-chevron {
	transform: rotate(180deg);
}

.menu-item-has-children>.sub-menu {
	display: none;
}

.menu-item-has-children>.sub-menu.active {
	display: block;
}

.sub-menu {
	display: none;
	min-width: 220px;
	width: 100%;
}

.main-navigation {
	top: 0;
	position: absolute;
	width: 100%;
	left: -100%;
	background-color: inherit;
	z-index: -1;
	overflow: auto;
}

.has-overlay {
	overflow: hidden;
}

.main-navigation.active {
	position: relative;
	color: inherit;
	background-color: inherit;
	left: 0;
	top: 3.5rem;
	height: 100vh;
	z-index: 9;
}

.main-navigation ul {
	margin: 0;
	padding: 0;
}

.menu-link {
	color: inherit;
	font-size: 0.9rem;
}

.menu-item-has-children:last-child .sub-menu,
.menu-item-has-children:nth-last-child(2) .sub-menu {
	right: 0;
	left: auto;
	padding: 0.9rem;
}

.sub-menu--level-2 {
	right: 100% !important;
	top: 0 !important;
	left: auto !important;
}

.sub-menu .sub-menu--level-2 li {
	margin-bottom: 0.9rem;
}


.main-menu li {
	position: relative;
	cursor: pointer;
	list-style-type: none;
	margin: 0;

}

.main-menu li.active {
	font-weight: 600;
	padding: 14px 14px;
	background: rgb(211 162 48);
	border-bottom: 4px solid rgb(255 255 255);

}

.burger-line {
	width: 100%;
	height: 3px;
	background-color: #fff;
	border-radius: 2px;
	transition: all 0.3s ease;
	position: absolute;
	left: 0;

}

.burger-line:nth-child(1) {
	top: 0;
}

.burger-line:nth-child(2) {
	top: 48%;
	transform: translateY(-50%);
}

.burger-line:nth-child(3) {
	bottom: 2px;
}

.js-burger {
	flex-direction: column;
	cursor: pointer;
	width: 30px;
	height: 25px;
	position: absolute;
	z-index: 1003;
	background: none;
	border: none;
	padding: 0.5rem;
	right: 2rem;
	top: 1.5rem;


}

.js-burger.active .burger-line:nth-child(1) {
	transform: rotate(45deg) translate(6px, 7px);
}

.js-burger.active .burger-line:nth-child(2) {
	opacity: 0;
}

.js-burger.active .burger-line:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -8px);
}

.main-navigation::after {
	display: block;
	content: '';
	position: relative;
	width: 100%;
	height: 5rem;
}


.main-navigation::after {
	display: block;
	content: '';
	position: relative;
	width: 100%;
	height: 5rem;
}

.main-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	column-gap: 1.4rem;
	row-gap: 1rem;
	margin: 0;
	padding: 0;
}

.burger-logo {

	white-space: nowrap;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	column-gap: 0.5rem;

}

.burger-logo a {
	font-size: clamp(0.5rem, 1.1rem + 1.1vw, 1.5rem) !important;

	z-index: 2;
	color: var(--color-primary);
	text-decoration: none;
}

.burger-logo a:hover {
	color: #fff !important;
}

.container-casa {
   
    max-width: 80rem;
    margin: 0 auto; 
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

/* Responsive */
@media(min-width: 1100px) {
.container-casa {
    padding: 7rem 0 2rem;

}




	.menu-toggle {
		padding: 3px;

	}

	.main-navigation {
		overflow: visible;
		justify-content: end;
		display: flex;
	}

	.header-nav {
		display: flex;
		align-items: center;
		margin: auto;

		padding: 0 2rem;
		width: 100%;
	}

	.header-nav a {
		display: flex;
		text-transform: capitalize;

		text-decoration: none;
		transition: color var(--transition);
		font-size: 1.1rem;
		flex-wrap: wrap;

		align-items: center;
		column-gap: 1.4rem;
		row-gap: 1rem;
		margin: 0;
		padding: 0 3px;

		z-index: 1000;

		margin-bottom: 0;
	}


	.sub-menu {
		display: none;
		min-width: 280px;
		max-width: 320px;
		width: 100%;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 8;
		
	}

	.sub-menu a {
		color: #fff;
	}

	.header>.container {
		flex-wrap: nowrap;
	}

	.main-navigation::after {
		display: none;
	}

	.menu-item-has-children:hover>.sub-menu {
		display: block;
	}

	.main-navigation {

		top: 0;
		position: absolute;
		left: -100%;
		background-color: var(--color-accent);
		z-index: 9;

	}

	.icon-chevron {
		width: 1.2em;
		height: 1.2em;
		vertical-align: middle;
	}



	.js-burger {
		display: none;
	}

	.main-navigation {
		position: inherit;
	}

	.wp-block-image {
		margin: 2rem 0;
	}
}




@media (max-width: 1100px) {
  .container-casa {
    margin-top: 0;
  }


	.wide-image-container {
		margin-left: calc(-2 * var(--space-xl));
		margin-right: calc(-2 * var(--space-xl));
		border-radius: var(--img-radius);
	}

	.burger-logo {
		display: flex;
		align-items: center;
		text-transform: uppercase;
		top: 0.7rem;
		left: 1.1rem;
		z-index: 2;
		position: absolute;
	}

	.burger-logo a {
		color: #ffffff !important;

	}

	.main-navigation ul {
		display: block;
	}

	.site-branding nav {

		background: none;
		border-radius: var(--radius);

		margin-bottom: calc(var(--gap) * 1.5);
		box-shadow: none;
		border: none;
	}


	.header-nav {
		display: flex;

	}

	.main-menu li {
		text-align: left;
		margin-top: 21px;
	}

	.sub-menu li {
		margin-top: 0 !important;
		padding: 0.2rem 1rem;
	}

	.main-menu li.active {
		border-bottom: none;

	}

	.header-nav a {
		font-size: 1.2rem;
	}

	.menu-item-has-children>.sub-menu.active {
		margin-left: 0.8rem;
	}


	.header-top {
		position: relative;
		min-height: 60px;
		display: flex;
		align-items: center;
		
	}
}

/* end menu */

.container-casa p {
	text-align: center;
	font-size: 1.3rem;
	max-width: 700px;
	margin: 1rem auto 0;
}

.sitemap-content {
	margin: 30px 0;
}

.sitemap-section {
	margin-bottom: 40px;
	padding: 20px;
	border-radius: 8px;
}

.sitemap-section h2 {
	color: inherit;
	padding-bottom: 10px;
	margin-bottom: 15px;
}

.sitemap-section h3 {
	color: #555;
	margin: 15px 0 10px 0;
}

.sitemap-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.breadcrumbs {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 0 3rem;
	gap: 0.8rem;
}

.breadcrumbs-content {
	display: contents;
}

@media (max-width: 1024px) {
	.sitemap-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}
}

@media (max-width: 768px) {
	.sitemap-list {
		grid-template-columns: 1fr;
		gap: 1rem;
	}


}

.sitemap-list li {
	margin-bottom: 8px;
	padding-left: 15px;
	position: relative;
}



.sitemap-list a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s;
}

.sitemap-list a:hover {
	color: #007cba;
}

.category-group {
	margin-bottom: 20px;
}

.tags-cloud {
	line-height: 2;
}

.tag {
	display: inline-block;
	background: #e9e9e9;
	padding: 5px 10px;
	margin: 3px;
	border-radius: 3px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	transition: all 0.3s;
}

.tag:hover {
	background: #007cba;
	color: white;
}

.toc {
	background: rgba(230, 57, 70, 0.1) !important;
	padding: var(--spacing-md) !important;
	border-radius: var(--radius-lg);
	margin-bottom: var(--spacing-sm);
	border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
	.sitemap-section {
		padding: 15px;
	}

	.tag {
		font-size: 12px;
		padding: 3px 8px;
	}
}



@media (max-width: 1100px) {

.breadcrumbs {
 
    margin: 20px 0 3rem;
    gap: 0.5rem;
}
	.wide-image-container {
		margin-left: calc(-2 * var(--space-xl));
		margin-right: calc(-2 * var(--space-xl));
		border-radius: var(--img-radius);
	}


	.site-branding nav {

		background: none;
		border-radius: var(--radius);

		margin-bottom: calc(var(--gap) * 1.5);
		box-shadow: none;
		border: none;
	}



}


header p {
	font-size: var(--font-md);

}

.toc-wrap {
	padding: 1rem;

}



.back-to-top {
	bottom: 1rem;
	right: 1rem;
	width: 45px;
	height: 45px;
}




/* articulos */
.articulos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 32px;
	padding-top: 30px;

	max-width: var(--max-width);
	margin: 0 auto;
}

.articulos-card {
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	border: 1px solid rgba(0, 0, 0, 0.03);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	padding: 0;
}

.articulos-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}


.articulos-card__image-link img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
	transform: scale(1.08);
}

/* Контент */


.articulos-card__content {
	padding: 0 17px 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;

}

.articulos-card__title {
	margin-top: 10px;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 700;

	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.6rem;
}

.articulos-card__title a {
	text-decoration: none;

}

.articulos-card__excerpt {
	margin-top: auto;

	margin-bottom: 0;
	color: #6e6e73;
	font-size: 0.95rem;
	line-height: 1.5;


	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


.articulos-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #1d1d1f;
	font-weight: 600;
	font-size: 0.9rem;
	transition: gap 0.3s;
}

.articulos-card__link svg {
	transition: transform 0.3s;
}

.articulos-card__link:hover {
	color: #0073aa;
	gap: 12px;
}


.articulos-card__image-link {
	display: block;
	overflow: hidden;
	border-radius: 6px 6px 0 0;
	height: 170px;
}


.articulos-card__image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.6s ease;
}


.articulos-card:hover .articulos-card__image-link img {
	transform: scale(1.08);
}


.articulos-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.load-more-wrapper {
	text-align: center;
	margin: 40px 0;
}

.btn-load-more {
	background-color: #0073aa;
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.3s;
}

.btn-load-more:hover {
	background-color: #005177;
}


@media (max-width: 559px) {
	.articulos-grid {
		gap: 17px;

	}

	.articulos-card__image-link {

		height: 17rem;
	}
}

@media (max-width: 768px) {
	.sitemap-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 5px;
		list-style: none;
		padding: 0;
	}
}

#site-navigation a,
.menu-item a {
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}

.sitemap-grid{
  margin: 3rem 0;
}

.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: 'Source Serif 4', serif; 
    margin-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.safety-icons {
    display: flex;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    flex-direction: column-reverse;
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo-container img {
   
    height: auto;
    display: block;
    margin-bottom: 20px;
    max-width: 50px;
    border-radius: 50%;
    
}

.footer-logo-text {

    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #0073aa; 
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Контейнер для скролла */
.table-container {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}



/* ===========================================
   Images Styles - Scommesse Calcio Pillar
   =========================================== */

/* Hero Image */
.hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .hero-image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

/* Article Images */
.article-image {
  margin: 32px 0;
  max-width: 100%;
}

.article-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .article-image img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

.article-image figcaption {
  font-size: 14px;
  color: var(--color-text-secondary, #6B7280);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-image {
    border-radius: 0;
  }
  
  .article-image {
    margin: 24px 0;
  }
  
  .article-image img {
    border-radius: 4px;
  }
}

@media (max-width: 600px) {
  .article-image {
    margin: 20px 0;
  }
  
  .article-image figcaption {
    font-size: 13px;
    padding: 0 16px;
  }
}

[data-content="hero"] figure {
    margin: 0 auto;
    max-width: 1200px;
}

[data-content="hero"] figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center; /* Или left, как тебе больше нравится */
    font-style: italic;
}
