/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */


/* dm-serif-display-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: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/dm-serif-display-v17-latin-regular.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+ */
}
/* source-sans-3-700italic - 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: 700;
  src: url('fonts/source-sans-3-v19-latin-700italic.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+ */
}
/* ===== 1. CSS VARIABLES & RESET ===== */
:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --color-bg: #FAFAF8;
  --color-surface: #F2F1EE;
  --color-text: #1A1A18;
  --color-text-secondary: #6B6960;
  --color-accent: #B8860B;
  --color-accent-light: rgba(184, 134, 11, 0.08);
  --color-border: #D8D5CE;
  --color-success: #2E7D32;
  --color-danger: #C62828;
  --color-hero-bg: #1A1A18;
  --color-hero-text: #FAFAF8;

  --content-width: 1000px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --content-padding: clamp(1.25rem, 4vw, 2rem);

  --hero-title-size: clamp(2.4rem, 5.5vw, 4.2rem);
  --h2-size: clamp(1.6rem, 3vw, 2.2rem);
  --h3-size: clamp(1.15rem, 2vw, 1.4rem);
  --body-size: clamp(1rem, 1.1vw, 1.125rem);
  --small-size: 0.8125rem;
  --label-size: 0.6875rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #141413;
    --color-surface: #1E1E1C;
    --color-text: #E8E6E1;
    --color-text-secondary: #9A968D;
    --color-accent: #DAA520;
    --color-accent-light: rgba(218, 165, 32, 0.1);
    --color-border: #3A3830;
    --color-hero-bg: #0C0C0B;
    --color-hero-text: #E8E6E1;
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.72;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; text-underline-offset: 2px; transition: opacity 0.2s ease; }
a:hover { opacity: 0.78; }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

/* ===== 2. GENERAL TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-display);
  font-size: var(--hero-title-size);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 400;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  line-height: 1.22;
  font-weight: 400;
  text-align: left;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.15rem;
}

p:last-child { margin-bottom: 0; }




li:last-child { margin-bottom: 0; }

blockquote {
  text-align: left;
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

strong { font-weight: 700; }
em { font-style: italic; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 700;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

figure {
  margin: 1.5rem auto;
  max-width: 100%;
}

figcaption {
  text-align: center;
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

/* ===== 3. LAYOUT — SECTIONS ===== */
.container {
  max-width: var(--content-width);
    margin: 0 auto;
    padding:  0 15px;
}

/* ===== 4. COMPONENTS ===== */

/* -- info-box -- */
.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.info-box p {
  text-align: left;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.info-box p:first-child {
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.info-box p:last-child { margin-bottom: 0; }

/* -- odds-example -- */
.odds-example {
  background: var(--color-hero-bg);
  color: var(--color-hero-text);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  overflow-x: auto;
}
.odds-example p {
  text-align: center;
  color: var(--color-hero-text);
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.odds-example table {
  color: var(--color-hero-text);
}
.odds-example th {
  color: rgba(255,255,255,0.55);
  border-bottom-color: rgba(255,255,255,0.15);
}
.odds-example td {
  color: var(--color-hero-text);
  border-bottom-color: rgba(255,255,255,0.08);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #0C0C0B;
    color: #E8E6E1;
    border: 1px solid var(--color-border);
  }
  .odds-example p { color: #E8E6E1; }
  .odds-example th { color: rgba(232,230,225,0.55); border-bottom-color: rgba(232,230,225,0.15); }
  .odds-example td { color: #E8E6E1; border-bottom-color: rgba(232,230,225,0.08); }
}

/* -- callout -- */
.callout {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: transparent;
}
.callout p {
  text-align: left;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.callout p:first-child {
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}
.callout p:last-child { margin-bottom: 0; }

/* -- card-grid -- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-grid > div:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card-grid p {
  text-align: left;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.card-grid p:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.card-grid p:last-child { margin-bottom: 0; }

/* -- comparison -- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.comparison > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.comparison p {
  text-align: left;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.comparison p:first-child {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.comparison p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .comparison { grid-template-columns: 1fr; }
}

/* -- key-takeaway -- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1rem;
  margin: 2.5rem 0;
}
.key-takeaway p {
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

/* -- fun-fact -- */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: var(--body-size);
  line-height: 1.65;
}

/* -- glossary-term -- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.5rem 0;
}
.glossary-term p {
  text-align: left;
  color: var(--color-text-secondary);
  font-size: var(--body-size);
  line-height: 1.65;
  margin-bottom: 0;
}
.glossary-term p strong {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-accent);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .glossary-term { flex-direction: column; gap: 4px; }
}

/* -- dos-donts -- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dos-donts > div {
  padding: 1.25rem 1.5rem;
}
.dos-donts > div:first-child {
  border-right: 1px solid var(--color-border);
}
.dos-donts p {
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.dos-donts > div:first-child p {
  color: var(--color-success);
}
.dos-donts > div:last-child p {
  color: var(--color-danger);
}
.dos-donts ul {
  text-align: left;
  padding-left: 1.25em;
  margin-bottom: 0;
}
.dos-donts li {
  text-align: left;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.dos-donts li:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .dos-donts { grid-template-columns: 1fr; }
  .dos-donts > div:first-child { border-right: 0; border-bottom: 1px solid var(--color-border); }
}

/* -- pre-bet-checklist -- */
.pre-bet-checklist {
  margin: 2rem 0;
}
.pre-bet-checklist p {
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--label-size);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.pre-bet-checklist ul {
  text-align: left;
  list-style: none;
  padding-left: 1.75rem;
  margin-bottom: 0;
  border-left: 2px solid var(--color-border);
}
.pre-bet-checklist li {
  text-align: left;
  position: relative;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 0.3rem 0;
}
.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.6rem;
  color: var(--color-accent);
  background: var(--color-bg);
  font-size: 0.85em;
}

/* -- at-a-glance -- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.at-a-glance > div {
  padding: 1.25rem;
  border-right: 1px solid var(--color-border);
}
.at-a-glance > div:last-child {
  border-right: 0;
}
.at-a-glance p {
  text-align: center;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0.35rem;
}
.at-a-glance p:first-child {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.at-a-glance p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .at-a-glance > div:last-child { border-bottom: 0; }
}

/* -- worked-example -- */
.worked-example {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.worked-example p {
  text-align: left;
  color: var(--color-text);
  font-size: var(--body-size);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.worked-example p:first-child {
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.worked-example p:last-child { margin-bottom: 0; }
.worked-example strong {
  font-family: var(--font-mono);
  font-size: 0.95em;
}
.worked-example hr {
  border: 0;
  border-top: 1px dashed var(--color-border);
  margin: 1rem 0;
}

/* -- section-bridge -- */
.section-bridge {
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
}
.section-bridge p {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  font-size: 1.05rem;
  line-height: 1.5;
  display: inline;
}
.section-bridge::before,
.section-bridge::after {
  content: '\2014\2014';
  color: var(--color-border);
  font-size: 0.9rem;
  vertical-align: middle;
  margin: 0 0.75rem;
}
.container-casa{

  padding: 0 10px;
}
/* ===== 5. HERO SECTION ===== */
[data-content="hero"] {
  max-width: none;

  background: var(--color-hero-bg);
  color: var(--color-hero-text);
  position: relative;
  overflow: hidden;
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(184,134,11,0.05), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;

  position: relative;
  z-index: 2;
  text-align: center;
}

.home .hero-inner {

  padding-top:3rem ;

}
[data-content="hero"] .hero-label {
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  
}

[data-content="hero"] h1 {
  color: var(--color-hero-text);
 
  margin: 1.5rem 0;
  text-align: center;
}

[data-content="hero"] .hero-description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: rgba(250, 250, 248, 0.7);
 text-align: center;
  max-width: 800px;
  margin-bottom: 2rem;
}

[data-content="hero"] figure {
  margin: 2rem 0 0;
  border-radius: 4px;
  overflow: hidden;
}

[data-content="hero"] img {
  width: 100%;
  height: auto;
  display: block;
}

[data-content="hero"] figcaption {
  text-align: center;
  color: rgba(250, 250, 248, 0.45);
  font-size: var(--small-size);
  margin-top: 0.5rem;
}

/* Hero bottom fade into page bg */
[data-content="hero"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  z-index: 3;
  pointer-events: none;
}

/* ===== 5b. TOC ===== */
[data-content="toc"] {
  margin-bottom: var(--section-gap);
}

.toc-grid {
  column-count: 2;
  column-gap: 2.5rem;
}

.toc-group {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}

.toc-group a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.toc-group a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.toc-group > a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.35rem;
}

.toc-sub {
  list-style: none;

  margin: 0;
}

.toc-sub li {
  margin-bottom: 0.15rem;
}

.toc-sub a {
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  display: block;
  padding: 0.15rem 0;
}
.toc-sub a:hover { color: var(--color-accent); }

@media (max-width: 600px) {
  .toc-grid { column-count: 1; }
}

/* ===== 6. MEDIA QUERIES ===== */
@media (max-width: 768px) {



  h2 { margin-bottom: 1rem; }
  h3 { margin-top: 2rem; }
}

/* ===== FAQ ACCORDION ===== */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
}

[data-content="faq"] summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  list-style: none;
  transition: color 0.2s ease;
}

[data-content="faq"] summary::-webkit-details-marker { display: none; }

[data-content="faq"] summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  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-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

/* Modern ::details-content animation */
[data-content="faq"] ::details-content {
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease;
  transition-behavior: allow-discrete;
  opacity: 0;
  block-size: 0;
  overflow: hidden;
}

[data-content="faq"] details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

[data-content="faq"] details div p {
  text-align: left;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-bottom: 1rem;
}

/* Fallback for older browsers */
@supports not selector(::details-content) {
  @keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  [data-content="faq"] details[open] > *:not(summary) {
    animation: faqFadeIn 0.3s ease forwards;
  }
}

/* ===== ARTICLE IMAGES ===== */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}



/* ===== IMAGE STYLES ===== */

/* Hero image */
.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* Article images within figure */
figure.article-image {
  margin: 2.25rem auto;
  max-width: 100%;
}

figure.article-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

figure.article-image img:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

figure.article-image figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-secondary, #6B6960);
  margin-top: 0.6rem;
  line-height: 1.4;
  font-style: italic;
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  figure.article-image img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  figure.article-image img:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  figure.article-image figcaption {
    color: var(--color-text-secondary, #9A968D);
  }
}

/* Responsive */
@media (max-width: 768px) {
  figure.article-image {
    margin: 1.5rem auto;
  }

  figure.article-image img {
    border-radius: 2px;
  }
}


/*  */

img {
	width: 100%;
	object-fit: cover;
	max-height: 500px;
}

.wp-block-image img {

	margin-bottom: 2rem;
}







.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;
}

/* --- HEADER & LOGO --- */
.header-top {
    position: relative;
  
    padding: 13px 20px;
    min-height: 30px;
 background: #1a1a1a;
    z-index: 1001;
    color: #fff;
}

.logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    text-decoration: none !important;
    color: #fff !important;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
}

/* --- DESKTOP MENU (993px+) --- */
@media (min-width: 993px) {
    .js-burger { display: none !important; }

    .main-navigation { display: block !important; }

    .main-menu {
        display: flex;
        gap: 20px;
        list-style: none;
    }

    .main-menu a {
        color: #fff ;
        font-weight: 600;
        text-decoration: none !important;
        padding: 10px 5px;
    }

    .menu-item-has-children { position: relative; }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 220px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: none;
        padding: 10px 0;
        border-radius: 4px;
    }

    .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    .sub-menu a {
        color: #333 !important;
        display: block;
        padding: 8px 20px;
        font-size: 14px;
    }

    .sub-menu a:hover { background: #f5f5f5; }
}
.main-menu .menu-item.active > .menu-link {
    color: var(--color-accent); /* Яркий цвет для активной ссылки (например, оранжево-красный) */
    font-weight: bold; /* Делает текст жирным */
    border-bottom: 2px solid var(--color-accent); /* Добавляет линию под пунктом */
}


/* --- MOBILE MENU (до 992px) --- */
@media (max-width: 992px) {
    .js-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
    }

    .burger-line {
        width: 30px;
        height: 3px;
        background-color: #fff;
        transition: 0.3s;
    }

    /* Мобильная навигация */
    .main-navigation {
        position: fixed !important;
        top: 0;
        right: -100% !important; /* Скрыто */
        width: 300px;
        height: 100vh;
           background: #1a1a1a;
        padding: 80px 20px 0 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        display: block !important;
        overflow-y: auto;
       
    }

    .main-navigation.active {
        right: 0 !important; /* Показываем */
    }

    .main-menu {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .main-menu a {
        color: #fff !important;
        font-size: 1.2rem;
        font-weight: 600;
        display: block;
    }

    /* Выпадающее меню в мобилке */
    .sub-menu {
        display: none !important; /* Скрыто по умолчанию */
        padding-left: 20px;
        margin-top: 10px;
        border-left: 2px solid var(--color-primary);
    }

    /* Когда открыто через JS класс .is-open */
    .menu-item-has-children.is-open > .sub-menu {
        display: block !important;
    }
}

.header-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Оверлей (затемнение фона) */
body.has-overlay::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.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: 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: 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;
}


@media (max-width: 768px) {
	.sitemap-section {
		padding: 15px;
	}

	.tag {
		font-size: 12px;
		padding: 3px 8px;
	}
}



@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;
	}



}
.post-thumbnail{
    margin: 2.5rem 0;
}

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;
}



footer p{
  color: #ccc;
}
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: 'Source Serif 4', serif; 
    margin-top: 2.5rem;
}
.sitemap-grid{
  padding: 2rem 0;
  margin: 3rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1rem;
    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-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-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: 52px;
    
    
}
.footer-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.footer-about p{
  font-size: 1rem;
}
.footer-logo-text {

    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #0073aa; 
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer-disclaimer p{
  text-align: center;
  margin: 1.5rem 0;
}

/* Контейнер для скролла */
.table-container {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
h2[id], 
h3[id], 
[data-content] {
    scroll-margin-top: 80px;
}

.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;
}


