/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */
/* 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+ */
}
 
 /* oswald-700 - 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: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/oswald-v57-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/source-sans-3-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-italic - 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: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/source-sans-3-v19-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-600italic - 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: 'Source Sans 3';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/source-sans-3-v19-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
    /* ===========================================
       1. CSS VARIABLES & RESET
       =========================================== */
    :root {
      /* Colors - Light Theme */
      --color-bg: #FAFAF9;
      --color-text: #1A1A1A;
      --color-text-secondary: #4A4A4A;
      --color-border: #E5E5E5;
      --color-accent: #1E7B4E;
      --color-accent-hover: #166339;
      --color-accent-light: #E8F5EE;
      --color-hero-bg: #F5F7F5;
      --color-surface: #FFFFFF;
      --color-success: #1E7B4E;
      --color-danger: #D64545;
      --color-info-box-bg: #F0F9F4;
      --color-callout-bg: #FFF9E6;
      --color-callout-border: #E6D9A6;
      --color-danger-light: #FEF2F2;

      /* Typography */
      --font-display: 'Oswald', sans-serif;
      --font-text: 'Source Sans 3', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;

      /* Sizing */
      --h1-size: clamp(2.5rem, 5vw, 3rem);
      --h2-size: clamp(1.75rem, 3vw, 2rem);
      --h3-size: clamp(1.25rem, 2vw, 1.5rem);
      --body-size: 18px;
      --caption-size: 14px;
      --mono-size: 16px;

      /* Spacing */
      --section-gap: clamp(3rem, 6vw, 5rem);
      --content-max-width: 1200px;
      --content-padding: clamp(1rem, 4vw, 2rem);

      /* Shadows */
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --color-bg: #1A1A1A;
        --color-text: #F5F5F4;
        --color-text-secondary: #A3A3A3;
        --color-border: #333333;
        --color-accent: #3DA370;
        --color-accent-hover: #4FBA82;
        --color-accent-light: #1F2E26;
        --color-hero-bg: #1F2420;
        --color-surface: #252525;
        --color-info-box-bg: #1F2E26;
        --color-callout-bg: #2A2820;
        --color-callout-border: #4A4530;
        --color-danger-light: #2A2020;
      }
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-text);
      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,
    h2,
    h3,
    h4,
    h5,
    h6 {
      text-align: left;
      line-height: 1.2;
    }

    h1 {
      font-family: var(--font-display);
      font-size: var(--h1-size);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    h2 {
      font-family: var(--font-display);
      font-size: var(--h2-size);
      font-weight: 700;
      margin-bottom: 1.5rem;
      scroll-margin-top: 2rem;
    }

    h3 {
      font-family: var(--font-text);
      font-size: var(--h3-size);
      font-weight: 600;
      margin-bottom: 1rem;
      scroll-margin-top: 2rem;
    }

    p {
      text-align: left;
      margin-bottom: 1.25rem;
    }

    p:last-child {
      margin-bottom: 0;
    }

    a {
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: 2px;
      transition: color 0.2s ease;
    }

    a:hover {
      color: var(--color-accent-hover);
    }

    a:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }

    strong {
      font-weight: 600;
    }

    em {
      font-style: italic;
    }

    ul,
    ol {
      text-align: left;
      margin-bottom: 1.25rem;
      padding-left: 1.5rem;
    }

    li {
      margin-bottom: 0.5rem;
    }

    blockquote {
      text-align: left;
      border-left: 3px solid var(--color-accent);
      padding-left: 1.5rem;
      margin: 1.5rem 0;
      font-style: italic;
      color: var(--color-text-secondary);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 1.5rem;
    }

    th,
    td {
      text-align: left;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--color-border);
    }

    th {
      font-weight: 600;
      background-color: var(--color-surface);
    }

    figcaption {
      text-align: center;
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
      margin-top: 0.75rem;
    }

    /* ===========================================
       3. LAYOUT - SECTIONS
       =========================================== */
 
    main {
      width: 100%;
    }

    .container{
      max-width: var(--content-max-width);
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--content-padding);
      padding-right: var(--content-padding);
      margin-bottom: var(--section-gap);
    }

    [data-content] figure {
      margin: 1.5rem auto;
      max-width: 100%;
    }

    [data-content] img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    /* ===========================================
       4. COMPONENTS
       =========================================== */

    /* --- Info Box --- */
    .info-box {
      background-color: var(--color-info-box-bg);
      border-left: 4px solid var(--color-accent);
      padding: 24px;
      border-radius: 0 8px 8px 0;
      margin: 1.5rem 0;
    }

    .info-box p {
      text-align: left;
      margin-bottom: 0.75rem;
    }

    .info-box p:last-child {
      margin-bottom: 0;
    }

    .info-box strong {
      color: var(--color-text);
    }

    /* --- Odds Example --- */
    .odds-example {
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      box-shadow: var(--shadow-sm);
     
      border-radius: 8px;
      margin: 1.5rem 0;
    }

    .odds-example .odds-header {
      text-align: center;
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 1rem;
    }

    .odds-example .odds-grid {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 1rem;
      align-items: center;
      text-align: center;
    }

    .odds-example .odds-team {
      font-weight: 600;
    }

    .odds-example .odds-value {
      font-family: var(--font-mono);
      font-size: 24px;
      color: var(--color-accent);
      font-weight: 400;
    }

    .odds-example .odds-label {
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
      margin-top: 0.25rem;
    }

    .odds-example p {
      text-align: center;
      margin-top: 1rem;
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
    }

    /* --- Callout --- */
    .callout {
      background-color: var(--color-callout-bg);
      border: 1px solid var(--color-callout-border);
      padding: 20px 24px;
      border-radius: 8px;
      margin: 1.5rem 0;
      position: relative;
      padding-left: 52px;
    }

    .callout::before {
      content: "!";
      position: absolute;
      left: 20px;
      top: 20px;
      width: 20px;
      height: 20px;
      background-color: var(--color-callout-border);
      color: var(--color-text);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 12px;
    }

    .callout p {
      text-align: left;
      margin-bottom: 0;
    }

    .callout strong {
      color: var(--color-text);
    }

    /* --- Card Grid --- */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin: 1.5rem 0;
    }

    @media (max-width: 600px) {
      .card-grid {
        grid-template-columns: 1fr;
      }
    }

    .card-grid .card {
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      padding: 24px;
      border-radius: 8px;
      box-shadow: var(--shadow-sm);
      transition: box-shadow 0.2s ease, transform 0.2s ease;
    }

    .card-grid .card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }

    .card-grid .card h3 {
      font-size: 1.125rem;
      margin-bottom: 12px;
    }

    .card-grid .card p {
      text-align: left;
      font-size: 0.9375rem;
      color: var(--color-text-secondary);
      margin-bottom: 0;
    }

    /* --- Comparison --- */
    .comparison {
      border: 1px solid var(--color-border);
      border-radius: 8px;
      overflow: hidden;
      margin: 1.5rem 0;
    }

    .comparison .comparison-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    @media (max-width: 600px) {
      .comparison .comparison-grid {
        grid-template-columns: 1fr;
      }
    }

    .comparison .comparison-col {
      padding: 24px;
    }

    .comparison .comparison-col:first-child {
      border-right: 1px solid var(--color-border);
    }

    @media (max-width: 600px) {
      .comparison .comparison-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
      }
    }

    .comparison .comparison-header {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 12px 24px;
      background-color: var(--color-text);
      color: var(--color-bg);
    }

    @media (prefers-color-scheme: dark) {
      .comparison .comparison-header {
        background-color: #333333;
        color: #F5F5F4;
      }
    }

    .comparison ul {
      margin: 0;
      padding-left: 1.25rem;
    }

    .comparison li {
      margin-bottom: 0.5rem;
      color: var(--color-text);
    }

    .comparison p {
      text-align: left;
      margin-bottom: 0.75rem;
    }

    /* --- Key Takeaway --- */
    .key-takeaway {
      border-top: 2px solid var(--color-accent);
      padding-top: 1.5rem;
      margin: 2rem 0;
    }

    .key-takeaway p {
      text-align: left;
      font-family: var(--font-display);
      font-size: clamp(1.25rem, 2.5vw, 1.5rem);
      font-weight: 600;
      line-height: 1.4;
      color: var(--color-text);
    }

    /* --- Fun Fact --- */
    .fun-fact {
      position: relative;
      padding-left: 1.5rem;
      margin: 1.5rem 0;
    }

    .fun-fact::before {
      content: "—";
      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;
    }

    /* --- Glossary Term --- */
    .glossary-term {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: 1rem 0;
    }

    @media (max-width: 500px) {
      .glossary-term {
        flex-direction: column;
        gap: 4px;
      }
    }

    .glossary-term p {
      text-align: left;
      margin-bottom: 0;
    }

    .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;
    }

    /* --- Dos and Donts --- */
    .dos-donts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin: 1.5rem 0;
    }

    @media (max-width: 600px) {
      .dos-donts {
        grid-template-columns: 1fr;
      }
    }

    .dos-donts .do-col {
      background-color: var(--color-info-box-bg);
      border-left: 4px solid var(--color-success);
      padding: 24px;
      border-radius: 0 8px 8px 0;
    }

    .dos-donts .dont-col {
      background-color: var(--color-danger-light);
      border-left: 4px solid var(--color-danger);
      padding: 24px;
      border-radius: 0 8px 8px 0;
    }

    .dos-donts h3 {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .dos-donts .do-col h3 {
      color: var(--color-success);
    }

    .dos-donts .dont-col h3 {
      color: var(--color-danger);
    }

    .dos-donts ul {
      margin: 0;
      padding-left: 0;
      list-style: none;
    }

    .dos-donts li {
      position: relative;
      padding-left: 1.5rem;
      margin-bottom: 0.5rem;
      color: var(--color-text);
    }

    .dos-donts .do-col li::before {
      content: "\2713";
      position: absolute;
      left: 0;
      color: var(--color-success);
      font-weight: 700;
    }

    .dos-donts .dont-col li::before {
      content: "\2717";
      position: absolute;
      left: 0;
      color: var(--color-danger);
      font-weight: 700;
    }

    /* --- Pre-Bet Checklist --- */
    .pre-bet-checklist {
      margin: 1.5rem 0;
    }

    .pre-bet-checklist h4 {
      font-family: var(--font-display);
      font-size: 0.875rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-accent);
      margin-bottom: 1rem;
    }

    .pre-bet-checklist ul {
      position: relative;
      margin: 0;
      padding-left: 40px;
      list-style: none;
      border-left: 2px solid var(--color-border);
    }

    .pre-bet-checklist li {
      position: relative;
      padding: 0.5rem 0;
      color: var(--color-text);
    }

    .pre-bet-checklist li::before {
      content: "\2610";
      position: absolute;
      left: -32px;
      color: var(--color-accent);
      font-size: 1.125rem;
      background-color: var(--color-bg);
      padding: 0 4px;
    }

    /* --- At a Glance --- */
    .at-a-glance {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      margin: 1.5rem 0;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      overflow: hidden;
    }

    @media (max-width: 600px) {
      .at-a-glance {
        grid-template-columns: 1fr;
      }
    }

    .at-a-glance .glance-item {
      padding: 24px;
      text-align: center;
      border-right: 1px solid var(--color-border);
    }

    .at-a-glance .glance-item:last-child {
      border-right: none;
    }

    @media (max-width: 600px) {
      .at-a-glance .glance-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
      }

      .at-a-glance .glance-item:last-child {
        border-bottom: none;
      }
    }

    .at-a-glance h4 {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--color-accent);
      margin-bottom: 0.5rem;
    }

    .at-a-glance p {
      text-align: center;
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
      margin-bottom: 0;
    }

    /* --- Worked Example --- */
    .worked-example {
      background-color: var(--color-surface);
      padding: 32px;
      border-radius: 8px;
      box-shadow: var(--shadow-sm);
      margin: 1.5rem 0;
    }

    .worked-example h4 {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-accent);
      margin-bottom: 1.5rem;
    }

    .worked-example .step {
      margin-bottom: 1.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px dashed var(--color-border);
    }

    .worked-example .step:last-of-type {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .worked-example .step-label {
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
    }

    .worked-example .step-content {
      font-family: var(--font-mono);
      font-size: var(--mono-size);
      color: var(--color-text);
    }

    .worked-example .step-result {
      font-family: var(--font-mono);
      font-size: 1.25rem;
      color: var(--color-accent);
      font-weight: 600;
    }

    .worked-example p {
      text-align: left;
    }

    /* --- Section Bridge --- */
    .section-bridge {
      max-width: 480px;
      margin: 2rem auto;
      padding: 2rem 0;
      text-align: center;
      position: relative;
    }

    .section-bridge::before,
    .section-bridge::after {
      content: "";
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 1px;
      background-color: var(--color-border);
    }

    .section-bridge::before {
      top: 0;
    }

    .section-bridge::after {
      bottom: 0;
    }

    .section-bridge p {
      text-align: center;
      font-style: italic;
      color: var(--color-text-secondary);
      margin-bottom: 0;
    }

    /* ===========================================
       5. HERO SECTION
       =========================================== */
    [data-content="hero"] {
      max-width: none;

      background-color: var(--color-hero-bg);
     
      margin-bottom: 2.5rem;
    }

    .hero-inner {
      max-width: var(--content-max-width);
      margin: 0 auto;
    }

    .hero-rubric {
      font-family: var(--font-text);
      font-size: 12px;
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-text-secondary);
      margin-bottom: 16px;
    }

    .hero-inner h1 {
      text-align: center;
      color: var(--color-text);
      margin-bottom: 24px;
    }

    .hero-subtitle {
      text-align: center;
      font-size: clamp(1.125rem, 2vw, 1.25rem);
      font-weight: 400;
      color: var(--color-text-secondary);
      max-width: 600px;
      margin: 0 auto 32px;
      line-height: 1.6;
    }

    .hero-divider {
      width: 80px;
      height: 4px;
      background-color: var(--color-accent);
      margin: 0 auto 24px;
    }

    .hero-meta {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
      margin-bottom: 40px;
    }

    .hero-meta time {
      display: inline-block;
    }

    .hero-badge {
      display: inline-block;
      background-color: var(--color-accent-light);
      color: var(--color-accent);
      padding: 4px 12px;
      border-radius: 4px;
      font-weight: 600;
    }

    .hero-image {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      border-radius: 12px;
    }

    .hero-inner figure {
      margin: 0;
    }

    .hero-inner figcaption {
      text-align: center;
      margin-top: 12px;
    }

    .hero-cta {
      text-align: center;
      margin-top: 32px;
    }

    .btn-start {
      display: inline-block;
      background-color: var(--color-accent);
      color: var(--color-bg);
      padding: 12px 28px;
      border-radius: 6px;
      font-weight: 600;
      text-decoration: none;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .btn-start:hover {
      background-color: var(--color-accent-hover);
      transform: translateY(-1px);
      color: var(--color-bg);
    }

    .btn-start:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }

    /* ===========================================
       6. TABLE OF CONTENTS
       =========================================== */
    [data-content="toc"] {
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      padding: 32px;
      border-radius: 8px;
      margin-bottom: var(--section-gap);
    }

    .toc-title {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 24px;
      color: var(--color-text);
    }

    .toc-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .toc-list>li {
      padding: 8px 0;
      border-bottom: 1px dashed var(--color-border);
    }

    .toc-list>li:last-child {
      border-bottom: none;
    }

    .toc-list a {
      color: var(--color-text);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .toc-list a:hover {
      color: var(--color-accent);
      text-decoration: underline;
    }

    .toc-sublist {
      list-style: none;
      padding-left: 1.25rem;
      margin-top: 8px;
    }

    .toc-sublist li {
      padding: 4px 0;
      font-size: 0.9375rem;
    }

    .toc-sublist a {
      color: var(--color-text-secondary);
    }

    .toc-sublist a:hover {
      color: var(--color-accent);
    }

    /* ===========================================
       7. FAQ ACCORDION
       =========================================== */
    [data-content="faq"] details {
      border-bottom: 1px solid var(--color-border);
      padding: 0;
    }

    [data-content="faq"] details:first-of-type {
      border-top: 1px solid var(--color-border);
    }

    [data-content="faq"] summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25rem 0;
      cursor: pointer;
      font-weight: 600;
      list-style: none;
      transition: color 0.2s ease;
    }

    [data-content="faq"] summary::-webkit-details-marker {
      display: none;
    }

    [data-content="faq"] summary::after {
      content: "+";
      font-size: 1.25rem;
      font-weight: 400;
      color: var(--color-accent);
      transition: transform 0.3s ease;
    }

    [data-content="faq"] details[open] summary::after {
      transform: rotate(45deg);
    }

    [data-content="faq"] summary:hover {
      color: var(--color-accent);
    }

    [data-content="faq"] summary:focus {
      outline: none;
    }

    [data-content="faq"] summary:focus-visible {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }

    /* Modern CSS animation for details content */
    [data-content="faq"] details {
      interpolate-size: allow-keywords;
    }

    [data-content="faq"] details::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;
    }

    [data-content="faq"] details[open]::details-content {
      opacity: 1;
      block-size: auto;
    }

    [data-content="faq"] details>div {
      padding-bottom: 1.25rem;
    }

    [data-content="faq"] details>div>p {
      text-align: left;
      color: var(--color-text-secondary);
    }

    /* Fallback for browsers without ::details-content support */
    @supports not selector(::details-content) {
      [data-content="faq"] details[open]>div {
        animation: fade-in 0.3s ease forwards;
      }

      @keyframes fade-in {
        from {
          opacity: 0;
          transform: translateY(-8px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
    }

    /* ===========================================
       8. FOOTER
       =========================================== */
    footer {
      max-width: var(--content-max-width);
      margin: 0 auto;
      padding: var(--content-padding);
      padding-top: 2rem;
      padding-bottom: 2rem;
      border-top: 1px solid var(--color-border);
      font-size: 13px;
      color: var(--color-text-secondary);
    }

    /* ===========================================
       9. BACK TO TOP
       =========================================== */
    .back-to-top {
      text-align: center;
      margin: 2rem 0;
    }

    .back-to-top a {
      display: inline-block;
      font-size: var(--caption-size);
      color: var(--color-text-secondary);
      text-decoration: none;
      padding: 8px 16px;
      border: 1px solid var(--color-border);
      border-radius: 4px;
      transition: color 0.2s ease, border-color 0.2s ease;
    }

    .back-to-top a:hover {
      color: var(--color-accent);
      border-color: var(--color-accent);
    }

    /* ===========================================
       10. MEDIA QUERIES
       =========================================== */
    @media (max-width: 768px) {
      :root {
        --section-gap: 3rem;
      }

      [data-content="hero"] {
        padding: 60px var(--content-padding) 40px;
      }

      .hero-meta {
        flex-direction: column;
        gap: 8px;
      }

      [data-content="toc"] {
        padding: 24px 10px;
      }
    }

    @media (max-width: 480px) {
      :root {
        --body-size: 16px;
      }

      [data-content="hero"] {
        padding: 48px var(--content-padding) 32px;
      }

      .hero-divider {
        width: 60px;
        height: 3px;
      }
    }
  

  /* ===========================================
   Images Styles for Pillar Article
   Come Vincere alle Scommesse di Calcio
   =========================================== */

/* Hero Image */
.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

/* Article Images */
.article-image {
  margin: 2.5rem auto;
  max-width: 100%;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-image figcaption {
  margin-top: 0.75rem;
  font-size: 14px;
  color: #4A4A4A;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .hero-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  
  .hero-image:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
  
  .article-image img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  
  .article-image img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  
  .article-image figcaption {
    color: #A3A3A3;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-image {
    border-radius: 8px;
  }
  
  .article-image {
    margin: 2rem auto;
  }
  
  .article-image img {
    border-radius: 6px;
  }
  
  .article-image figcaption {
    font-size: 13px;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-image {
    border-radius: 6px;
  }
  
  .article-image {
    margin: 1.5rem auto;
  }
  
  .article-image img {
    border-radius: 4px;
  }
  
  .article-image figcaption {
    font-size: 12px;
  }
}

/* ============================== */

.site-footer {
  margin-top: 3rem;
}


.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  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);
}

/*  */

.wp-block-image img {
  margin-bottom: 2rem;
}

.footer-menu {
  list-style: none;
}

.container-casa {
  text-align: center;
    padding-top: 6rem;
  
}
.container-casa p {
  margin: 2.5rem auto;
  text-align: center;
  max-width: 800px;
}

.main-logo a {
  color: var(--color-text);
  font-size: 1.5rem;
}

/* --- 1. menu --- */
.header-top {
  background: var(--color-accent);

  min-height: var(--space-xl);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;

  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.burger-logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  text-decoration: none;
}

.main-logo-img {
  max-height: 63px;
  width: 52px;
  flex-shrink: 0;

}

.logo-text {
  color: var(--color-text);
  font-size: 1.3rem;
  font-weight: 700;

  white-space: nowrap;
}

.burger-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.burger-btn span,
.burger-btn span::before,
.burger-btn span::after {
  content: "";
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.burger-btn span::before {
  top: -8px;
}
.burger-btn span::after {
  top: 8px;
}

.js-burger.active span {
  background-color: transparent !important;
}
.js-burger.active span::before {
  transform: translateY(8px) rotate(45deg);
}
.js-burger.active span::after {
  transform: translateY(-8px) rotate(-45deg);
}

.main-navigation {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: auto;
  max-height: 100vh;
  background: var(--color-accent);
  z-index: 9999;

  transition:
    visibility 0.6s ease-out,
    transform 0.6s ease-out,
    border-radius 0.6s ease-out;

  padding: 80px 20px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  overflow-y: auto;
  display: block;
  transform-origin: top right;
  transform: scale(0);
  border-radius: 50%;
}

.main-navigation.active {
  visibility: visible;
  transform: scale(1);
  border-radius: 0 0 15px 15px;
}

@keyframes menuItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.main-menu li {
  opacity: 0;
  animation: menuItemFadeIn 0.3s ease-out forwards;
  animation-play-state: paused;
}

.main-navigation.active .main-menu li {
  animation-play-state: running;
}

.main-navigation.active .main-menu li:nth-child(1) {
  animation-delay: 0.2s;
}
.main-navigation.active .main-menu li:nth-child(2) {
  animation-delay: 0.3s;
}
.main-navigation.active .main-menu li:nth-child(3) {
  animation-delay: 0.4s;
}
.main-navigation.active .main-menu li:nth-child(4) {
  animation-delay: 0.5s;
}
.main-navigation.active .main-menu li:nth-child(5) {
  animation-delay: 0.6s;
}
.main-navigation.active .main-menu li:nth-child(6) {
  animation-delay: 0.7s;
}
.main-navigation.active .main-menu li:nth-child(7) {
  animation-delay: 0.8s;
}
.main-navigation.active .main-menu li:nth-child(8) {
  animation-delay: 0.9s;
}
.main-navigation.active .main-menu li:nth-child(9) {
  animation-delay: 1s;
}
.main-navigation.active .main-menu li:nth-child(10) {
  animation-delay: 1.1s;
}

.main-navigation.active .main-menu {
  opacity: 1;
}

.main-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.4rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-menu a:hover {
  color: var(--color-secondary);
}

body.has-overlay {
  overflow: hidden;
}

.btn-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2.5rem;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 1;
  color: var(--c-primary);
}

.menu-item-has-children > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
  color: #3b9eff;
}

.sub-menu {
  list-style: none !important;
  padding-left: 20px !important;
  margin: 0 !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100vh;
}

.sub-menu li {
  padding: 10px 0;
}

.sub-menu a {
  font-size: 1rem !important;

  font-weight: 400 !important;
}

.menu-item-has-children > a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-item-has-children:hover > .sub-menu {
  max-height: 1000px !important;
  visibility: visible;
  opacity: 1;
}

.main-menu li.current-menu-item > a,
.main-menu li.current_page_item > a,
.main-menu li.current-post-ancestor > a,
.main-menu li.current-menu-ancestor > a,
.main-menu li.current-page-ancestor > a {
  color: var(--c-primary);
  font-weight: 700 !important;
}

.main-menu li.menu-item-has-children.is-open > a {
  color: var(--c-primary);
}

.main-menu li.active > a {
  color: var(--color-secondary);
  font-weight: 700 !important;
}

.main-navigation.active .main-menu .current-menu-item > a {
  color: var(--c-primary);
}

/* end menu */

.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: 3rem 0;
  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: 992px) {
  .header-top {
    padding: 0 1rem;
  }
}
@media (max-width: 768px) {
  .sitemap-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  nav[aria-label="Hauptnavigation"] {
    display: none !important;
  }

  .main-navigation {
    width: 100%;
  }
}

.sitemap-list li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.sitemap-list li:before {
  content: "›";
  position: absolute;
  left: 0;
  color: #007cba;
}

.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;
}

@media (max-width: 768px) {
  .sitemap-section {
    padding: 15px;
  }

  .tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .container-casa p {
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 1100px) {
  .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-line-clamp: 2;
  -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-line-clamp: 2;
  -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;
}
