/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */
 
 /* inter-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-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: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v20-latin-700.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+ */
}
        /* ========================================
           1. CSS VARIABLES & RESET
           ======================================== */
        :root {
            /* Colors - Light Theme (default) */
            --color-primary: #0A1628;
            --color-secondary: #00D4FF;
            --color-accent: #F7931A;
            --color-neutral-dark: #1E293B;
            --color-neutral-light: #94A3B8;
            --color-text: #F8FAFC;
            --color-text-secondary: #94A3B8;
            --color-success: #10B981;
            --color-warning: #F59E0B;
            --color-danger: #EF4444;
            --color-bg: #0A1628;
            --color-surface: #1E293B;
            --color-border: #334155;

            /* Typography */
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
            --font-size-h1: clamp(2rem, 5vw, 3.5rem);
            --font-size-h2: clamp(1.5rem, 3vw, 2.25rem);
            --font-size-h3: clamp(1.25rem, 2.5vw, 1.75rem);
            --font-size-body: clamp(1rem, 1.5vw, 1.125rem);
            --font-size-caption: clamp(0.75rem, 1vw, 0.875rem);

            /* Spacing */
            --section-gap: clamp(4rem, 8vw, 6rem);
            --content-max-width: 1100px;
            --content-padding: clamp(1rem, 4vw, 2rem);

            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-base: 250ms ease;
            --transition-slow: 400ms ease;
        }

        /* Dark theme adjustments for system preference */
        @media (prefers-color-scheme: light) {
            :root {
                --color-bg: #F8FAFC;
                --color-text: #0A1628;
                --color-text-secondary: #475569;
                --color-surface: #E2E8F0;
                --color-border: #CBD5E1;
                --color-primary: #0A1628;
                --color-neutral-dark: #E2E8F0;
            }
        }

        /* Reset */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            font-family: var(--font-body);
            font-size: var(--font-size-body);
            line-height: 1.6;
            color: var(--color-text);
            background-color: var(--color-bg);
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        a {
            color: var(--color-secondary);
            text-decoration: none;
            transition: color var(--transition-fast);
        }

        a:hover {
            color: var(--color-accent);
        }

        a:focus {
            outline: 2px solid var(--color-secondary);
            outline-offset: 2px;
        }

        /* ========================================
           2. GENERAL TYPOGRAPHY
           ======================================== */
        h1 {
            font-size: var(--font-size-h1);
            font-weight: 700;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        h2 {
            font-size: var(--font-size-h2);
            font-weight: 600;
            line-height: 1.2;
            margin: 1.5rem auto;
            text-align: left;
            scroll-margin-top: 2rem;
        }

        h3 {
            font-size: var(--font-size-h3);
            font-weight: 600;
            line-height: 1.3;
            margin-top: 2rem;
            margin-bottom: 1rem;
            text-align: left;
            scroll-margin-top: 2rem;
        }

        p {
            margin-bottom: 1.25rem;
            text-align: left;
        }

        ul, ol {
            margin-bottom: 1.25rem;
       
            text-align: left;
        }

        li {
            margin-bottom: 0.5rem;
            text-align: left;
        }

        strong {
            font-weight: 600;
        }

        em {
            font-style: italic;
        }

        blockquote {
            border-left: 3px solid var(--color-secondary);
         
            margin: 1.5rem 0;
            font-style: italic;
            color: var(--color-text-secondary);
            text-align: left;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.9375rem;
            text-align: left;
        }

        thead {
            background: var(--color-surface);
        }

        th, td {
            padding: 0.875rem 1rem;
            border: 1px solid var(--color-border);
            text-align: left;
        }

        th {
            font-weight: 600;
            color: var(--color-text);
        }

        td {
            color: var(--color-text-secondary);
        }

        code {
            font-family: var(--font-mono);
            font-size: 0.875rem;
            background: var(--color-surface);
            padding: 0.125rem 0.375rem;
            border-radius: 0.25rem;
        }

        figure {
            margin: 2rem auto;
            max-width: 100%;
        }

        figcaption {
            font-size: var(--font-size-caption);
            color: var(--color-text-secondary);
            text-align: center;
            margin-top: 0.75rem;
        }

        /* ========================================
           3. LAYOUT SECTIONS ([data-content])
           ======================================== */
        header {
            padding: 0;
        }

        main {
            width: 100%;
        }

        .container {
            max-width: var(--content-max-width);
            margin: 0 auto;
            padding: 0 15px;
        }

        

        footer {
         
            margin: 0 auto;
            padding: 3rem var(--content-padding);
            border-top: 1px solid var(--color-border);
            font-size: 0.8125rem;
            color: var(--color-text-secondary);
        }

        /* ========================================
           4. COMPONENTS
           ======================================== */

        /* Info Box */
        .info-box {
            background: var(--color-surface);
            border-left: 4px solid var(--color-secondary);
            padding: 1.5rem;
            border-radius: 0.5rem;
            margin: 1.5rem 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .info-box p {
            margin-bottom: 0.75rem;
            text-align: left;
            color: var(--color-text);
        }

        .info-box p:last-child {
            margin-bottom: 0;
        }

        /* Callout */
        .callout {
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid var(--color-warning);
            padding: 1rem 1.5rem;
            border-radius: 0.5rem;
            margin: 1.5rem 0;
            position: relative;
            padding-left: 3rem;
        }

        .callout::before {
            content: '\26A0';
            position: absolute;
            left: 1rem;
            top: 1rem;
            font-size: 1.25rem;
        }

        .callout p {
            margin-bottom: 0.75rem;
            text-align: left;
            color: var(--color-text);
        }

        .callout p:last-child {
            margin-bottom: 0;
        }

        /* Key Takeaway */
        .key-takeaway {
            border-top: 2px solid var(--color-secondary);
            padding-top: 1.25rem;
            margin: 2rem 0;
        }

        .key-takeaway p {
            font-size: clamp(1.125rem, 2vw, 1.375rem);
            font-weight: 600;
            line-height: 1.4;
            color: var(--color-text);
            margin-bottom: 0;
            text-align: left;
        }

        /* Fun Fact */
        .fun-fact {
            position: relative;
            padding-left: 1.5rem;
            margin: 1.5rem 0;
        }

        .fun-fact::before {
            content: '\2014';
            position: absolute;
            left: 0;
            color: var(--color-accent);
            font-weight: 700;
        }

        .fun-fact p {
            font-style: italic;
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: left;
        }

        /* Glossary Term */
        .glossary-term {
            display: flex;
            align-items: baseline;
            gap: 0.75rem;
            margin: 1rem 0;
        }

        .glossary-term strong {
            font-family: var(--font-mono);
            color: var(--color-secondary);
            text-decoration: underline;
            text-underline-offset: 3px;
            white-space: nowrap;
        }

        .glossary-term span {
            color: var(--color-text-secondary);
        }

        @media (max-width: 480px) {
            .glossary-term {
                flex-direction: column;
                gap: 0.25rem;
            }
        }

        /* Dos and Donts */
        .dos-donts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .dos-donts > div:first-child {
            border-left: 3px solid var(--color-success);
            padding-left: 1.25rem;
        }

        .dos-donts > div:last-child {
            border-left: 3px solid var(--color-danger);
            padding-left: 1.25rem;
        }

        .dos-donts p {
            text-align: left;
            color: var(--color-text);
        }

        .dos-donts p strong {
            display: block;
            margin-bottom: 0.75rem;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .dos-donts > div:first-child p strong {
            color: var(--color-success);
        }

        .dos-donts > div:last-child p strong {
            color: var(--color-danger);
        }

        .dos-donts ul {
            margin-bottom: 0;
        }

        .dos-donts li {
            color: var(--color-text-secondary);
        }

        @media (max-width: 640px) {
            .dos-donts {
                grid-template-columns: 1fr;
            }
        }

        /* Pre-Bet Checklist */
        .pre-bet-checklist {
            margin: 2rem 0;
        }

        .pre-bet-checklist h4 {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-secondary);
            margin-bottom: 1rem;
        }

        .pre-bet-checklist ul {
            border-left: 2px solid var(--color-border);
            padding-left: 1.5rem;
            list-style: none;
        }

        .pre-bet-checklist li {
            position: relative;
            padding-left: 1.5rem;
            color: var(--color-text-secondary);
        }

        .pre-bet-checklist li::before {
            content: '\2610';
            position: absolute;
            left: -0.75rem;
            color: var(--color-secondary);
            background: var(--color-bg);
            padding: 0 0.25rem;
        }

        /* At a Glance */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 0;
            margin: 2rem 0;
            border: 1px solid var(--color-border);
            border-radius: 0.5rem;
            overflow: hidden;
        }

        .at-a-glance > div {
            padding: 1.25rem;
            border-right: 1px solid var(--color-border);
            text-align: center;
        }

        .at-a-glance > div:last-child {
            border-right: none;
        }

        .at-a-glance strong {
            display: block;
            font-size: 1.25rem;
            color: var(--color-text);
            margin-bottom: 0.25rem;
        }

        .at-a-glance span {
            font-size: var(--font-size-caption);
            color: var(--color-text-secondary);
        }

        @media (max-width: 640px) {
            .at-a-glance {
                grid-template-columns: 1fr 1fr;
            }

            .at-a-glance > div {
                border-bottom: 1px solid var(--color-border);
            }

            .at-a-glance > div:nth-child(2n) {
                border-right: none;
            }

            .at-a-glance > div:nth-last-child(-n+2) {
                border-bottom: none;
            }
        }

        /* Worked Example */
        .worked-example {
            background: var(--color-surface);
            padding: 2rem;
            border-radius: 0.75rem;
            margin: 2rem 0;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
        }

        .worked-example h4 {
            font-size: 0.8125rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-text-secondary);
            margin-bottom: 1rem;
        }

        .worked-example p {
            font-family: var(--font-mono);
            font-size: 0.9375rem;
            line-height: 1.7;
            color: var(--color-text);
            text-align: left;
        }

        .worked-example .result {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px dashed var(--color-border);
            color: var(--color-secondary);
            font-weight: 600;
        }

        /* Section Bridge */
        .section-bridge {
            text-align: center;
            font-style: italic;
            color: var(--color-secondary);
            margin: 3rem 0;
            position: relative;
        }

        .section-bridge::before,
        .section-bridge::after {
            content: '\2014\2014';
            margin: 0 1rem;
            color: var(--color-border);
        }

        /* Card Grid */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.25rem;
            margin: 2rem 0;
        }

        .card-grid > div {
            background: var(--color-surface);
            border-radius: 1rem;
            padding: 1.5rem;
            transition: transform var(--transition-base), box-shadow var(--transition-base);
        }

        .card-grid > div:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
        }

        .card-grid h4 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--color-text);
        }

        .card-grid p {
            font-size: 0.9375rem;
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: left;
        }

        /* Comparison */
        .comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 2rem 0;
        }

        .comparison > div {
            background: var(--color-surface);
            border-radius: 0.5rem;
            padding: 1.25rem;
        }

        .comparison h4 {
            font-size: 0.9375rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--color-text);
        }

        .comparison p {
            font-size: 0.9375rem;
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: left;
        }

        @media (max-width: 540px) {
            .comparison {
                grid-template-columns: 1fr;
            }
        }

        /* Odds Example */
        .odds-example {
            background: var(--color-neutral-dark);
            color: var(--color-text);
            padding: 1.5rem;
            border-radius: 0.75rem;
            margin: 2rem 0;
            text-align: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        }

        .odds-example p {
            text-align: center;
            color: var(--color-text);
            margin-bottom: 0.5rem;
        }

        .odds-example p:last-child {
            margin-bottom: 0;
        }

        .odds-example strong {
            color: var(--color-secondary);
        }

        @media (prefers-color-scheme: light) {
            .odds-example {
                background: var(--color-primary);
                color: #F8FAFC;
            }

            .odds-example p {
                color: #F8FAFC;
            }
        }

        /* TL;DR */
        .tldr {
            background: var(--color-surface);
            border-left: 4px solid var(--color-accent);
            padding: 1.5rem 2rem;
            border-radius: 0.5rem;
            margin: 0;
        }

        .tldr h2 {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--color-text);
        }

        .tldr ul {
            margin-bottom: 0;
        }

        .tldr li {
            color: var(--color-text-secondary);
            margin-bottom: 0.625rem;
        }

        .tldr li:last-child {
            margin-bottom: 0;
        }

        /* ========================================
           5. HERO SECTION
           ======================================== */
        [data-content="hero"] {
            max-width: none;
            width: 100vw;
            margin-left: calc(50% - 50vw);
            padding: 0;
            background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-neutral-dark) 100%);
            position: relative;
            overflow: hidden;
        }

        /* Subtle grid pattern overlay */
        [data-content="hero"]::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            pointer-events: none;
            opacity: 0.6;
        }

        .hero-inner {
            max-width: var(--content-max-width);
            margin: 0 auto;
           
            position: relative;
            z-index: 1;
        }

        .hero-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-secondary);
            background: rgba(255, 255, 255, 0.05);
            padding: 0.375rem 0.75rem;
            border-radius: 0.25rem;
        }

        .hero-badge time {
            color: var(--color-text);
        }

        .trust-marker {
            font-size: 0.6875rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--color-secondary);
        }

        [data-content="hero"] h1 {
            color: #F8FAFC;
            margin: 1.5rem auto;
            
        }

        .hero-description {
            font-size: clamp(1rem, 1.5vw, 1.125rem);
            line-height: 1.7;
            color: var(--color-neutral-light);
            max-width: 560px;
            margin-bottom: 2rem;
        }

        .hero-image {
            margin-top: 2rem;
        }

        .hero-image img {
            border-radius: 0.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        @media (prefers-color-scheme: light) {
            [data-content="hero"] {
                background: linear-gradient(to bottom, var(--color-primary) 0%, #1E293B 100%);
            }

            [data-content="hero"] h1,
            .hero-description,
            .hero-badge,
            .hero-badge time {
                color: #F8FAFC;
            }

            .hero-badge {
                background: rgba(255, 255, 255, 0.1);
            }
        }

        /* ========================================
           6. TABLE OF CONTENTS
           ======================================== */
        [data-content="toc"] {
            padding: 2rem 0;
        }

        .toc-title {
            font-size: 0.75rem;
            font-weight: 600;
            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.75rem;
        }

        .toc-list > li > a {
            font-weight: 500;
            color: var(--color-text);
            transition: color var(--transition-fast);
        }

        .toc-list > li > a:hover {
            color: var(--color-secondary);
        }

        .toc-sublist {
            list-style: none;
          
            margin-top: 0.5rem;
            margin-bottom: 0;
        }

        .toc-sublist li {
            margin-bottom: 0.375rem;
        }

        .toc-sublist a {
            font-size: 0.9375rem;
            font-weight: 400;
            color: var(--color-text-secondary);
        }

        .toc-sublist a:hover {
            color: var(--color-secondary);
        }

        /* ========================================
           7. FAQ ACCORDION
           ======================================== */
        [data-content="faq"] details {
            border-bottom: 1px solid var(--color-border);
        }

        [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: 500;
            color: var(--color-text);
            list-style: none;
            transition: color var(--transition-fast);
        }

        [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-text-secondary);
            transition: transform var(--transition-base);
        }

        [data-content="faq"] details[open] summary::after {
            content: '\2212';
        }

        [data-content="faq"] summary:hover {
            color: var(--color-secondary);
        }

        /* Modern CSS accordion animation */
        [data-content="faq"] details {
            interpolate-size: allow-keywords;
        }

        [data-content="faq"] ::details-content {
            opacity: 0;
            block-size: 0;
            overflow: hidden;
            transition: 
                opacity var(--transition-base),
                block-size var(--transition-base),
                content-visibility var(--transition-base) 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 {
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: left;
        }

        /* Fallback for older browsers */
        @supports not selector(::details-content) {
            [data-content="faq"] 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);
                }
            }
        }

        /* ========================================
           8. IMAGES
           ======================================== */
        .hero-image img {
            width: 100%;
            height: auto;
            max-width: 100%;
        }

        .article-image {
            border-radius: 0.5rem;
            margin: 2rem auto;
        }

        .article-image img {
            border-radius: 0.5rem;
        }

        /* ========================================
           9. MEDIA QUERIES
           ======================================== */
        @media (max-width: 768px) {
            :root {
                --section-gap: clamp(3rem, 6vw, 4rem);
            }

            table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
        }

        @media (max-width: 480px) {
            .hero-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }

        /* Focus states for accessibility */
        :focus-visible {
            outline: 2px solid var(--color-secondary);
            outline-offset: 2px;
        }

        /* Reduced motion */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            html {
                scroll-behavior: auto;
            }
        }
    /* ========================================
   IMAGES STYLES - Bitcoin Wedden Nederland
   ======================================== */

/* Hero Image */
.hero-image {
    margin-top: 2rem;
    margin-bottom: 0;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: block;
}

.hero-image figcaption {
    font-size: 0.8125rem;
    color: var(--color-text-secondary, #94A3B8);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Article Images */
.article-image {
    margin: 2rem auto;
    max-width: 100%;
}

.article-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.25s ease;
}

.article-image img:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.article-image figcaption {
    font-size: 0.8125rem;
    color: var(--color-text-secondary, #94A3B8);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-image img {
        border-radius: 0.375rem;
    }
    
    .article-image {
        margin: 1.5rem auto;
    }
    
    .article-image img {
        border-radius: 0.375rem;
    }
    
    .hero-image figcaption,
    .article-image figcaption {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
}

/* Light theme adjustments */
@media (prefers-color-scheme: light) {
    .hero-image img {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
    
    .article-image img {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    
    .article-image img:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    }
    
    .hero-image figcaption,
    .article-image figcaption {
        color: var(--color-text-secondary, #475569);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .article-image img {
        transition: none;
    }
}

img{
  width: 100%;
  object-fit: cover;
  max-height: 600px;
}
.hero-label{
  font-family:var(--ff-body);
  font-size:calc(var(--caption)*.85);
  font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--color-muted);
}

.hero-figure{
  margin: 2.5rem auto;
}
/*  */

.wp-block-image img {
  margin-bottom: 2rem;
}

.footer-menu {
  list-style: none;
}

.container-casa {

  text-align: center;
  padding-top: 2rem;
}
.home .container-casa {
margin-top: 3rem;

}
.container-casa p {
  margin: 0 auto 2.5rem;
  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;
  border-radius: 10px;
}

.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;
}
.post-thumbnail{
  margin-top: 2.5rem;
}
.header-content {
  margin-top: 2rem;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0 2rem;
  gap: 0.5rem;
  padding-top: 3rem;
}
.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;
}
.sitemap-grid{
  margin: 2.5rem 0;
}
.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;
}

.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;
}

.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: 17px;
    text-transform: uppercase;
    margin:0 0 15px;
    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;
}

/* Адаптивность */
@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;
}
section,
h2[id], 
h3[id], 
[data-content] {
    scroll-margin-top: 80px;
}

/* Добавляет маленькую стрелочку после внешних ссылок */
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
}
