/*
Theme Name: Hartaanval.nl
Theme URI: https://hartaanval.nl
Author: hartaanval.nl
Author URI: https://hartaanval.nl
Description: Medisch informatief thema voor hartaanval.nl — hartaanval, beroerte, herseninfarct, hersenbloeding en TIA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: hartaanval
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:        #cc1a2a;
  --red-dark:   #a81422;
  --red-lt:     #fdf2f3;
  --bg:         #faf8f6;
  --bg-white:   #ffffff;
  --fg:         #1a1a1a;
  --fg-mid:     #4a4a4a;
  --fg-soft:    #777777;
  --line:       #e8e2dc;
  --shadow-nav: 0 2px 16px rgba(0,0,0,.10);
  --shadow-card:0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  --r:          12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #e05060; --red-dark: #c03040; --red-lt: #2a1518;
    --bg: #141414; --bg-white: #1e1e1e;
    --fg: #f0ece8; --fg-mid: #aaaaaa; --fg-soft: #777777; --line: #2e2e2e;
    --shadow-nav: 0 2px 16px rgba(0,0,0,.4);
    --shadow-card: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2);
    color-scheme: dark;
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif 4', Georgia, serif;
  text-wrap: balance;
  letter-spacing: -.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.w {
  max-width: 1060px;
  margin: 0 auto;
  padding-left:  max(24px, env(safe-area-inset-left,  0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ============================================================
   UTILITY BAR
   ============================================================ */
.util-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}
.util-bar .w { display: flex; justify-content: flex-end; gap: 20px; }
.util-bar a { font-size: .78rem; color: var(--fg-soft); text-decoration: none; transition: color .12s; }
.util-bar a:hover { color: var(--fg); }

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav-wrap {
  background: var(--bg);
  padding: 12px 0;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 200;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.main-nav {
  background: var(--bg-white);
  border-radius: 50px;
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 24px;
  gap: 4px;
  max-width: 1060px;
  margin: 0 auto;
  margin-left:  max(24px, env(safe-area-inset-left,  0px));
  margin-right: max(24px, env(safe-area-inset-right, 0px));
  overflow: visible;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: 8px; flex-shrink: 0; }
.nav-logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.nav-logo-text { font-family: 'Source Serif 4', Georgia, serif; font-size: 1rem; font-weight: 700; color: var(--fg); letter-spacing: -.02em; white-space: nowrap; }
.nav-logo-text span { color: var(--red); }

/* Primary menu */
.nav-primary { display: flex; align-items: center; gap: 2px; flex: 1; list-style: none; }
.nav-primary li a {
  font-size: .83rem; font-weight: 500; color: var(--fg-mid);
  text-decoration: none; padding: 6px 13px; border-radius: 50px;
  transition: background .12s, color .12s; white-space: nowrap; display: block;
}
.nav-primary li a:hover,
.nav-primary li.current-menu-item > a,
.nav-primary li.current-page-ancestor > a { background: var(--bg); color: var(--fg); }

/* Dropdown submenu */
.nav-primary li { position: relative; }
.nav-primary .sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--bg-white); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 200px; list-style: none; z-index: 300;
  padding: 6px 0;
}
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu { display: block; }
.nav-primary .sub-menu li a {
  padding: 8px 18px; border-radius: 0;
  font-size: .81rem; white-space: nowrap;
}
.nav-primary .sub-menu li a:hover { background: var(--bg); color: var(--fg); }
/* Dropdown arrow indicator */
.nav-primary li:has(> .sub-menu) > a::after {
  content: ' ▾'; font-size: .65rem; opacity: .6; vertical-align: middle;
}

/* Search icon */
.nav-search {
  margin-left: auto; background: none; border: none;
  color: var(--fg-soft); cursor: pointer; padding: 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .12s;
}
.nav-search:hover { background: var(--bg); }

/* CTA */
.nav-cta {
  background: var(--red) !important; color: #fff !important;
  padding: 8px 20px !important; border-radius: 50px !important;
  font-weight: 600 !important; font-size: .83rem !important;
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Mobile burger */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--fg-mid); padding: 8px; margin-left: auto;
}
.mobile-menu { display: none; }
.mobile-menu.open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-white); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 199;
}
.mobile-menu a {
  padding: 13px 24px; font-size: .9rem; font-weight: 500;
  color: var(--fg-mid); text-decoration: none; border-bottom: 1px solid var(--line);
  display: block;
}
.mobile-menu a:hover { color: var(--red); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb { background: var(--bg-white); border-bottom: 1px solid var(--line); padding: 14px 0; }
.breadcrumb nav { font-size: .78rem; color: var(--fg-soft); }
.breadcrumb a { color: var(--fg-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span.sep { margin: 0 6px; }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.home-hero {
  position: relative; min-height: 420px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.home-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,10,10,.75) 0%, rgba(20,10,10,.3) 50%, rgba(20,10,10,.1) 100%),
    linear-gradient(135deg, #8b1a28 0%, #c94040 30%, #7a9bb5 65%, #b8cdd8 100%);
}
.home-hero-bg.has-image { background: linear-gradient(to top, rgba(20,10,10,.75) 0%, rgba(20,10,10,.3) 50%, rgba(20,10,10,.1) 100%); }
.home-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-content { position: relative; z-index: 1; padding: 0 0 52px; width: 100%; }
.home-hero-content h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 14px; max-width: 560px; }
.home-hero-content p { font-size: .95rem; color: rgba(255,255,255,.8); max-width: 480px; line-height: 1.65; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-red { background: var(--red); color: #fff; padding: 10px 22px; border-radius: 50px; font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .12s; display: inline-flex; align-items: center; gap: 6px; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.18); color: #fff; padding: 10px 22px; border-radius: 50px; font-size: .86rem; font-weight: 500; text-decoration: none; transition: background .12s; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ============================================================
   FAST STRIP
   ============================================================ */
.fast-strip { background: var(--bg-white); border-bottom: 1px solid var(--line); }
.fast-inner { max-width: 1060px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: auto 1fr 1fr 1fr 1fr auto; }
.fast-label { padding: 18px 24px 18px 0; display: flex; align-items: center; border-right: 1px solid var(--line); }
.fast-label p { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-soft); line-height: 1.3; }
.fast-step { padding: 18px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.fast-step:last-of-type { border-right: none; }
.fast-letter { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.4rem; font-weight: 700; color: var(--red); line-height: 1; flex-shrink: 0; min-width: 18px; }
.fast-step-text h4 { font-size: .78rem; font-weight: 600; color: var(--fg); margin-bottom: 2px; font-family: 'Inter', sans-serif; letter-spacing: 0; }
.fast-step-text p { font-size: .73rem; color: var(--fg-soft); line-height: 1.35; }
.fast-cta-cell { padding: 18px 0 18px 18px; display: flex; align-items: center; border-left: 1px solid var(--line); }
.fast-cta-cell a { background: var(--red); color: #fff; font-size: .76rem; font-weight: 600; padding: 7px 16px; border-radius: 50px; text-decoration: none; white-space: nowrap; transition: background .12s; }
.fast-cta-cell a:hover { background: var(--red-dark); color: #fff; }

/* ============================================================
   SECTION HERO (inner landing pages)
   ============================================================ */
.section-hero {
  background: linear-gradient(135deg, #1a0508 0%, #6b1520 40%, #a8323e 70%, #c86070 100%);
  padding: 56px 0 48px; position: relative; overflow: hidden;
}
.section-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(200,160,160,.15) 0%, transparent 70%); pointer-events: none; }
.section-hero .w { position: relative; z-index: 1; }
.section-hero .label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.section-hero h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 14px; max-width: 620px; }
.section-hero .intro { font-size: .95rem; color: rgba(255,255,255,.78); max-width: 560px; line-height: 1.7; margin-bottom: 28px; }
.section-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-wht { background: #fff; color: var(--red); padding: 9px 20px; border-radius: 50px; font-size: .84rem; font-weight: 700; text-decoration: none; transition: background .12s; display: inline-flex; align-items: center; gap: 6px; }
.btn-wht:hover { background: #f5f0f0; color: var(--red); }
.btn-wht-ghost { background: rgba(255,255,255,.15); color: #fff; padding: 9px 20px; border-radius: 50px; font-size: .84rem; font-weight: 500; text-decoration: none; border: 1px solid rgba(255,255,255,.3); transition: background .12s; backdrop-filter: blur(4px); }
.btn-wht-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ============================================================
   PAGE HERO (article pages)
   ============================================================ */
.page-hero { background: var(--bg-white); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.page-hero .label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--fg); line-height: 1.1; margin-bottom: 14px; max-width: 680px; }
.page-hero .intro { font-size: 1rem; color: var(--fg-mid); max-width: 620px; line-height: 1.7; }
.page-hero-meta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.meta-tag { font-size: .73rem; color: var(--fg-soft); border: 1px solid var(--line); border-radius: 50px; padding: 4px 12px; background: var(--bg); }

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.content-wrap { padding: 48px 0; }
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }

/* Article body */
.article-body h2 { font-size: 1.35rem; font-weight: 700; color: var(--fg); margin: 32px 0 12px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--fg); margin: 22px 0 8px; font-family: 'Inter', sans-serif; letter-spacing: 0; }
.article-body p { color: var(--fg-mid); margin-bottom: 14px; line-height: 1.75; font-size: .9rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { padding-left: 18px; margin-bottom: 14px; }
.article-body li { color: var(--fg-mid); font-size: .9rem; line-height: 1.7; margin-bottom: 5px; }
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body a { color: var(--red); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .84rem; }
.article-body th { background: var(--fg); color: #fff; font-weight: 600; padding: 11px 14px; text-align: left; font-family: 'Inter', sans-serif; letter-spacing: 0; font-size: .8rem; }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--fg-mid); vertical-align: top; line-height: 1.55; }
.article-body tr:nth-child(even) td { background: var(--bg); }

/* Callout */
.callout { border-left: 3px solid var(--red); background: var(--red-lt); border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; margin: 22px 0; }
.callout p { color: var(--fg); font-size: .87rem; margin: 0; line-height: 1.65; }
.callout strong { color: var(--red); }
.wp-block-quote { border-left: 3px solid var(--red); padding: 12px 20px; margin: 20px 0; background: var(--red-lt); border-radius: 0 var(--r) var(--r) 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.sidebar-card { background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-card); }
.sidebar-card h4 { font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-soft); margin-bottom: 12px; }
.sidebar-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-links a { font-size: .82rem; color: var(--fg-mid); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); line-height: 1.4; transition: color .12s; }
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--red); }
.sidebar-emerg { background: var(--red); border-radius: var(--r); padding: 16px 18px; text-align: center; }
.sidebar-emerg p { color: rgba(255,255,255,.85); font-size: .78rem; margin-bottom: 10px; }
.sidebar-emerg a { display: block; background: #fff; color: var(--red) !important; font-weight: 700; font-size: .95rem; border-radius: 8px; padding: 10px; text-decoration: none; transition: background .12s; }
.sidebar-emerg a:hover { background: #f5f0f0; }

/* ============================================================
   CARD GRIDS
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.card h3 { font-size: .95rem; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.card p { font-size: .82rem; color: var(--fg-mid); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.card-link { font-size: .8rem; font-weight: 600; color: var(--red); text-decoration: none; border-top: 1px solid var(--line); padding-top: 12px; display: block; }
.card-link:hover { text-decoration: underline; }
a.card { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }

/* Homepage topic cards */
.topic-card { transition: box-shadow .15s, transform .15s; }
.topic-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.topic-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.topic-card h3 .topic-card-main-link { color: var(--fg); text-decoration: none; }
.topic-card h3 .topic-card-main-link:hover { color: var(--red); }
.topic-card p { font-size: .84rem; line-height: 1.55; flex: 1; margin-bottom: 18px; color: var(--fg-mid); }
.topic-card-links { display: flex; flex-direction: column; gap: 5px; padding-top: 14px; border-top: 1px solid var(--line); }
.topic-card-link { font-size: .79rem; color: var(--red); font-weight: 500; text-decoration: none; }
.topic-card-link:hover { text-decoration: underline; }

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.section { padding: 52px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { padding: 52px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.section-head p { font-size: .87rem; color: var(--fg-soft); }

/* Symptom cards */
.sym-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sym-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.sym-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-bottom: 10px; }
.sym-card h4 { font-size: .88rem; font-weight: 600; color: var(--fg); margin-bottom: 5px; font-family: 'Inter', sans-serif; letter-spacing: 0; }
.sym-card p { font-size: .8rem; color: var(--fg-mid); line-height: 1.5; }

/* Difference cards */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.diff-card { background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; text-decoration: none; color: inherit; box-shadow: var(--shadow-card); transition: box-shadow .15s; display: block; }
.diff-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.diff-card h4 { font-family: 'Source Serif 4', Georgia, serif; font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: 7px; letter-spacing: -.01em; }
.diff-card p { font-size: .82rem; color: var(--fg-mid); line-height: 1.55; }
.diff-read { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--red); margin-top: 12px; text-decoration: none; }

/* About / sources block */
.about-inner {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  box-shadow: var(--shadow-card);
}
.about-inner h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.about-inner p { font-size: .84rem; color: var(--fg-mid); line-height: 1.7; }
.source-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.source-tag { font-size: .75rem; color: var(--fg-mid); border: 1px solid var(--line); border-radius: 50px; padding: 4px 12px; background: var(--bg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--fg); padding: 52px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 14px; }
.footer-logo-text { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.footer-logo-text em { color: var(--red); font-style: normal; }
.footer-brand p { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 220px; }
.footer-col h4 { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .83rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .12s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.3); }
.footer-disc { font-size: .72rem; color: rgba(255,255,255,.28); max-width: 540px; line-height: 1.6; }
.footer-disc strong { color: rgba(255,255,255,.4); }

/* WordPress menu styling */
.footer-col .menu { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col .menu li a { font-size: .83rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .12s; }
.footer-col .menu li a:hover { color: #fff; }

/* ============================================================
   WORDPRESS NATIVE BLOCKS & CLASSES
   ============================================================ */
.wp-block-image img { border-radius: var(--r); }
.wp-block-separator { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.alignwide { max-width: 100%; }
.alignfull { margin-left: calc(-1 * max(24px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(24px, env(safe-area-inset-right, 0px))); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .78rem; color: var(--fg-soft); text-align: center; margin-top: 6px; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; padding: 9px 14px; border: 1px solid var(--line); border-radius: 50px; font-size: .87rem; background: var(--bg-white); color: var(--fg); outline: none; }
.search-field:focus { border-color: var(--red); }
.search-submit { background: var(--red); color: #fff; border: none; border-radius: 50px; padding: 9px 18px; font-size: .87rem; font-weight: 600; cursor: pointer; transition: background .12s; }
.search-submit:hover { background: var(--red-dark); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; font-size: .84rem; text-decoration: none; border: 1px solid var(--line); color: var(--fg-mid); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination a:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .sym-grid { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .fast-inner { grid-template-columns: 1fr 1fr; }
  .fast-label { display: none; }
  .fast-cta-cell { grid-column: span 2; border-left: none; padding-left: 0; justify-content: center; padding: 12px 0; border-top: 1px solid var(--line); }
  .fast-step { border-bottom: 1px solid var(--line); }
  .nav-primary { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .sym-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .fast-inner { grid-template-columns: 1fr; }
  .fast-cta-cell { grid-column: auto; border-top: 1px solid var(--line); }
  .about-inner { padding: 22px; }
  .section-hero { padding: 40px 0 36px; }
}
