/* ============================================================
   SassaPortal — Frontend (v2: pro layout)
   Pure CSS, no framework.
   ============================================================ */

:root {
  --c-primary:      #0b3155;
  --c-primary-dark: #082341;
  --c-accent:       #f4a261;
  --c-accent-dark:  #e76f51;
  --c-text:         #0f172a;
  --c-muted:        #64748b;
  --c-line:         #e5e7eb;
  --c-bg:           #ffffff;
  --c-soft:         #f8fafc;
  --c-soft-2:       #f1f5f9;
  --radius:         14px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  --shadow-xs:      0 1px 3px rgba(11,49,85,0.06);
  --shadow-sm:      0 4px 14px rgba(11,49,85,0.06);
  --shadow-md:      0 10px 30px rgba(11,49,85,0.10);
  --shadow-lg:      0 20px 40px rgba(11,49,85,0.12);
  --font:           'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent); }
img, svg { max-width: 100%; display: block; }
h1,h2,h3,h4 { letter-spacing: -0.02em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-primary); color: #fff;
  padding: 0.5rem 0.75rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: #fff; color: var(--c-primary);
  font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  font-family: inherit;
}
.btn.lg { padding: 0.95rem 1.7rem; font-size: 1rem; letter-spacing: 0.3px; }
.btn.primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(244,162,97,0.40);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(231,111,81,0.50); }
.btn.ghost { background: transparent; color: var(--c-primary); border-color: var(--c-line); }
.btn.ghost:hover { border-color: var(--c-primary); background: var(--c-soft); }
.btn.danger { background: #fee2e2; color: #991b1b; }

/* ============================================================
   TOP STRIP (above main header)
   ============================================================ */
.topstrip {
  background: var(--c-primary-dark);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0;
}
.topstrip a { color: inherit; }
.topstrip a:hover { color: var(--c-accent); }
.topstrip-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ts-spacer { flex: 1; }

/* ============================================================
   HEADER
   - Top row: brand (left) + search (right)
   - Bottom row: nav centered
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-xs);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo { height: 42px; width: auto; }
.brand-mark { display: inline-flex; align-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.35rem; font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.5px;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--c-muted);
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Search pushed to right */
.header-search {
  margin-left: auto;
  display: flex;
  width: 100%;
  max-width: 360px;
  background: var(--c-soft);
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.header-search:focus-within {
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11,49,85,0.08);
}
.header-search input {
  flex: 1; border: 0; background: transparent;
  padding: 0.65rem 1.1rem;
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
}
.header-search button {
  background: var(--c-primary); color: #fff; border: 0;
  padding: 0 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.header-search button:hover { background: var(--c-accent); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--c-primary); }

/* Bottom nav row — centered */
.primary-nav {
  background: var(--c-primary);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-container {
  display: flex;
  justify-content: center;
}
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.primary-nav a {
  display: inline-block;
  padding: 0.85rem 1.3rem;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  position: relative;
  transition: color .15s;
}
.primary-nav a::after {
  content: ""; position: absolute;
  left: 50%; bottom: 0; height: 3px; width: 0;
  background: var(--c-accent);
  transition: width .25s, left .25s;
}
.primary-nav a:hover, .primary-nav a.is-active {
  color: var(--c-accent);
}
.primary-nav a:hover::after, .primary-nav a.is-active::after {
  width: 60%; left: 20%;
}

/* Sub-menu (drop-down) support */
.primary-nav li { position: relative; }
.primary-nav li.has-sub > a .caret {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  transition: transform .2s;
}
.primary-nav li.has-sub:hover > a .caret,
.primary-nav li.has-sub:focus-within > a .caret { transform: rotate(180deg); }

.primary-nav .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  min-width: 220px;
  padding: 0.4rem 0;
  margin: 0;
  box-shadow: var(--shadow-md);
  list-style: none;
  z-index: 60;
  display: none;
}
.primary-nav li.has-sub:hover > .sub-menu,
.primary-nav li.has-sub:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu li { display: block; }
.primary-nav .sub-menu a {
  display: block;
  padding: 0.6rem 1.1rem;
  color: var(--c-text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-bottom: 0;
}
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a.is-active {
  background: var(--c-soft);
  color: var(--c-primary);
}

/* Reading progress bar (shown only on post pages where #readingProgress exists & has content) */
.reading-progress {
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-dark));
  transition: width .1s linear;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(244,162,97,0.10) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff7ed;
  color: #c2410c;
  border: 1.5px solid var(--c-accent);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.7px;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: "•"; color: var(--c-accent); font-size: 1.2rem; line-height: 0; }

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-primary);
  letter-spacing: -1.2px;
  margin: 0 0 1.1rem;
}
.hero-text h1 .accent { color: var(--c-accent); }
.hero-text p {
  font-size: 1.1rem;
  color: var(--c-muted);
  margin: 0 0 1.75rem;
  max-width: 56ch;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.75rem; }
.hero-trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  color: var(--c-muted); font-size: 0.88rem; font-weight: 600;
}
.hero-trust li { display: flex; align-items: center; gap: 0.45rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
/* Live-indicator: solid green core + pulsing ring */
.dot.ok {
  position: relative;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: live-core 1.6s ease-in-out infinite;
}
.dot.ok::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  z-index: -1;
  animation: live-ping 1.6s ease-out infinite;
}
@keyframes live-core {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(16,185,129,0.0); }
}
@keyframes live-ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .dot.ok, .dot.ok::after { animation: none; }
}

.hero-card {
  background: linear-gradient(135deg, var(--c-primary), #1a5b99);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -60%; right: -30%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(244,162,97,0.30) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.hero-card .hc-title {
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--c-accent);
  margin: 0 0 1rem;
}
.hc-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: relative;
}
.hc-row:last-of-type { border-bottom: 0; }
.hc-row strong { display: block; font-size: 1.05rem; font-weight: 700; }
.hc-row span    { font-size: 0.85rem; color: #cbd5e1; }
.hc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; flex-shrink: 0;
}
.hc-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem;
  color: var(--c-accent); font-weight: 700; font-size: 0.92rem;
}
.hc-cta:hover { color: #fff; gap: 0.7rem; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--c-primary);
  color: #fff;
  padding: 0.75rem 0;
  overflow: hidden;
  margin: 0 0 4rem;
  border-radius: var(--radius);
  position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px;
  z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--c-primary), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--c-primary), transparent); }
.ticker-track {
  display: inline-flex; gap: 2.5rem;
  animation: ticker 38s linear infinite;
  white-space: nowrap;
  padding-left: 1rem;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span { font-size: 0.88rem; font-weight: 600; color: #cbd5e1; }
.ticker-track strong { color: var(--c-accent); margin-right: 0.4rem; font-weight: 800; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section-head.center {
  text-align: center; flex-direction: column; align-items: center; margin-bottom: 2.75rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: var(--c-primary); font-weight: 800;
  letter-spacing: -0.5px; margin: 0;
}
.section-head .h-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800; color: var(--c-accent-dark);
  text-transform: uppercase; letter-spacing: 1px;
  margin: 0 0 0.4rem;
}
.section-head p {
  color: var(--c-muted); margin: 0.5rem 0 0;
  max-width: 600px; font-size: 1.02rem;
}
.link-arrow {
  color: var(--c-primary); font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color .15s, gap .15s;
}
.link-arrow:hover { color: var(--c-accent); gap: 0.55rem; }

/* ============================================================
   FEATURE BAR — "Why us"
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 0 4rem;
  padding: 1.75rem;
  background: var(--c-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
}
.feature {
  display: flex; gap: 0.85rem; align-items: flex-start;
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: var(--c-accent);
}
.feature h4 { margin: 0 0 0.2rem; font-size: 0.95rem; color: var(--c-text); font-weight: 700; }
.feature p  { margin: 0; font-size: 0.82rem; color: var(--c-muted); line-height: 1.5; }

/* ============================================================
   POST GRID
   ============================================================ */
.latest, .categories { margin-bottom: 4.5rem; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
}

/* ============================================================
   ARTICLE CARD — unified design used on home, category & related
   ============================================================ */
.post-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow .25s ease;
}
.post-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(11,49,85,0.14);
  border-color: rgba(244,162,97,0.55);
}
.post-card:hover::before {
  box-shadow: inset 0 0 0 1px rgba(244,162,97,0.25);
}

.pc-image {
  display: block;
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-primary);
  overflow: hidden;
  transition: transform .55s ease;
}
.post-card:hover .pc-image { transform: scale(1.05); }
.pc-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55));
  z-index: 1;
}

/* Pills layered over the image */
.pc-badge, .pc-flag, .pc-time {
  position: absolute;
  z-index: 2;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1;
}
.pc-badge {
  top: 0.9rem; left: 0.9rem;
  background: rgba(255,255,255,0.96);
  color: var(--c-primary);
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}
.pc-flag {
  top: 0.9rem; right: 0.9rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(239,68,68,0.5);
}
.pc-time {
  bottom: 0.9rem; right: 0.9rem;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2px;
  text-transform: none;
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.pc-time::before { content: "⏱"; font-size: 0.85em; }

.pc-body {
  padding: 1.45rem 1.5rem 1.3rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.pc-body h3 {
  font-size: 1.13rem;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.3px;
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-body h3 a { color: var(--c-text); }
.pc-body h3 a:hover { color: var(--c-accent-dark); }
.pc-body p {
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--c-line);
  margin-top: auto;
}
.pc-date {
  font-size: 0.8rem;
  color: var(--c-muted);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.pc-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.pc-cta::after {
  content: "→";
  display: inline-block;
  transition: transform .2s ease;
  font-weight: 700;
}
.post-card:hover .pc-cta { color: var(--c-accent-dark); }
.post-card:hover .pc-cta::after { transform: translateX(4px); }

/* Editor's pick (slider — supports 1..N items, side-by-side image + content) */
.editors-pick {
  position: relative;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-md);
}
.ep-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,.0,.2,1);
  will-change: transform;
}
.ep-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ep-image {
  background: linear-gradient(135deg, #1a5b99, #0b3155);
  background-size: cover; background-position: center;
  min-height: 320px;
  position: relative;
}
.ep-image::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(244,162,97,0.3), transparent 60%);
}
.ep-badge {
  position: absolute; top: 1.25rem; left: 1.25rem;
  background: rgba(255,255,255,0.92);
  color: var(--c-primary);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 2;
}
.ep-badge-page { background: var(--c-accent); color: #fff; }
.ep-content {
  padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.ep-content .h-eyebrow { color: var(--c-accent); }
.ep-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0.5rem 0 0.85rem;
}
.ep-content h2 a { color: #fff; }
.ep-content h2 a:hover { color: var(--c-accent); }
.ep-content p { color: #cbd5e1; margin: 0 0 1.5rem; line-height: 1.7; }

/* Slider controls (only when .is-slider is present) */
.ep-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: var(--c-primary);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .15s, transform .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ep-arrow:hover { background: var(--c-accent); color: #fff; transform: translateY(-50%) scale(1.06); }
.ep-prev { left: 1rem; }
.ep-next { right: 1rem; }
.ep-dots {
  position: absolute;
  bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
  z-index: 3;
}
.ep-dot {
  width: 10px; height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background .15s, transform .15s;
}
.ep-dot:hover { background: rgba(255,255,255,0.7); }
.ep-dot.is-active { background: var(--c-accent); transform: scale(1.25); }

/* ============================================================
   CATEGORIES (themed cards w/ count + watermark + tag)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem 1.5rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative;
  overflow: hidden;
  --theme-c1: #0b3155;
  --theme-c2: #1a5b99;
  --theme-soft: #eef2f7;
}
.cat-card::before {
  content: ""; position: absolute;
  inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--theme-c1), var(--theme-c2));
  opacity: 0.85;
}
.cat-card::after {
  content: ""; position: absolute;
  top: -90px; right: -90px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--theme-soft) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cat-card:hover::after { transform: scale(1.15); }

.cat-num {
  position: absolute;
  bottom: -22px; right: -8px;
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--theme-soft);
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
  font-family: var(--font);
}
.cat-tag {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--theme-c1);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
}
.cat-icon {
  position: relative; z-index: 1;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--theme-c1), var(--theme-c2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 8px 22px rgba(11,49,85,0.25);
}
.cat-card h3 {
  font-size: 1.25rem;
  color: var(--c-primary);
  margin: 0 0 0.55rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  position: relative; z-index: 1;
}
.cat-card p {
  color: var(--c-muted);
  font-size: 0.9rem;
  flex: 1;
  margin: 0 0 1.25rem;
  line-height: 1.6;
  position: relative; z-index: 1;
}
.cat-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--c-line);
  position: relative; z-index: 1;
  gap: 0.5rem;
}
.cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.cat-card .link-arrow {
  font-size: 0.78rem;
  color: var(--theme-c1);
}
.cat-card .link-arrow:hover { color: var(--c-accent); }

/* Theme palettes */
.cat-card.theme-blue    { --theme-c1:#0b3155; --theme-c2:#1a5b99; --theme-soft:#dbeafe; }
.cat-card.theme-amber   { --theme-c1:#b45309; --theme-c2:#f59e0b; --theme-soft:#fef3c7; }
.cat-card.theme-violet  { --theme-c1:#5b21b6; --theme-c2:#8b5cf6; --theme-soft:#ede9fe; }
.cat-card.theme-emerald { --theme-c1:#065f46; --theme-c2:#10b981; --theme-soft:#d1fae5; }
.cat-card.theme-rose    { --theme-c1:#9d174d; --theme-c2:#ec4899; --theme-soft:#fce7f3; }
.cat-card.theme-teal    { --theme-c1:#115e59; --theme-c2:#14b8a6; --theme-soft:#ccfbf1; }

/* ============================================================
   STEPS — How to apply (with connecting line + SVG icons + tip)
   ============================================================ */
.steps-section { margin-bottom: 4.5rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.step-line {
  position: absolute;
  top: 56px; left: 16%; right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(244,162,97,0.5); }
.step-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--c-muted);
  background: var(--c-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--c-line);
}
.step-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(244,162,97,0.4);
}
.step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  color: var(--c-primary);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.step p  { margin: 0; color: var(--c-muted); font-size: 0.92rem; line-height: 1.65; }

.step-tip {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
}
.step-tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs);
}
.step-tip strong { color: #92400e; font-size: 0.92rem; }
.step-tip p { color: #78350f; margin: 0.2rem 0 0; font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   FAQ — unified accordion (used on home, contact, single posts/pages)
   ============================================================ */
.faq-section { margin-bottom: 4.5rem; max-width: 820px; margin-left: auto; margin-right: auto; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(11,49,85,0.05);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-list .faq-item { margin-bottom: 0; }

/* Amber accent strip on the left when open */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.faq-item[open]::before { transform: scaleY(1); }

.faq-item:hover {
  border-color: rgba(244,162,97,0.4);
  box-shadow: 0 4px 14px rgba(11,49,85,0.08);
}
.faq-item[open] {
  border-color: rgba(244,162,97,0.6);
  box-shadow: 0 8px 22px rgba(11,49,85,0.10);
}

.faq-item summary {
  padding: 1.15rem 1.4rem 1.15rem 1.6rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: background-color .15s ease;
}
.faq-item summary:hover { background: var(--c-soft); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

/* Chevron icon — rotates 180° on open */
.faq-item summary::after {
  content: "";
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-soft);
  flex-shrink: 0;
  position: relative;
  background-image:
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--c-primary) calc(50% - 1px), var(--c-primary) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom left,  transparent calc(50% - 1px), var(--c-primary) calc(50% - 1px), var(--c-primary) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 9px 6px, 9px 6px;
  background-position: calc(50% - 4px) center, calc(50% + 4px) center;
  background-repeat: no-repeat;
  transition: transform .3s ease, background-color .2s ease;
}
.faq-item[open] summary::after {
  background-color: var(--c-accent);
  transform: rotate(180deg);
  background-image:
    linear-gradient(to bottom right, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom left,  transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px));
}
.faq-item summary:hover::after { background-color: #e2e8f0; }
.faq-item[open] summary:hover::after { background-color: var(--c-accent-dark); }

.faq-body {
  padding: 0.25rem 1.6rem 1.4rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.75;
}
.faq-body p:first-child { margin-top: 0; }
.faq-body p:last-child  { margin-bottom: 0; }
.faq-body a { color: var(--c-accent-dark); font-weight: 600; }
.faq-body a:hover { color: var(--c-primary); text-decoration: underline; }
.faq-body ul, .faq-body ol { margin: 0.5rem 0 0.5rem 1.2rem; }
.faq-body li { margin-bottom: 0.35rem; }
.faq-body strong { color: var(--c-text); }

/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--c-primary), #1a5b99);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 0 0 4rem;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute; top: -50%; right: -10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(244,162,97,0.20) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.newsletter h2 { margin: 0 0 0.5rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.3px; }
.newsletter p  { margin: 0; color: #cbd5e1; line-height: 1.6; }
.newsletter form {
  display: flex; gap: 0.6rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.4rem;
  position: relative;
  z-index: 1;
}
.newsletter input {
  flex: 1; min-width: 0;
  padding: 0.7rem 1rem;
  background: transparent;
  border: 0; color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter button {
  background: var(--c-accent);
  color: #082341;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background .15s;
}
.newsletter button:hover { background: #fff; }
.news-flash {
  display: inline-block;
  margin-top: 0.5rem !important;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem !important;
  font-weight: 600;
  color: #fff !important;
}
.news-flash.ok    { background: rgba(16,185,129,0.25); border: 1px solid rgba(16,185,129,0.45); }
.news-flash.error { background: rgba(239,68,68,0.25);  border: 1px solid rgba(239,68,68,0.45); }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner { margin: 0 0 4rem; }
.cta-inner {
  background: linear-gradient(135deg, #082341, #1a5b99);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute; bottom: -100px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(244,162,97,0.20) 0%, rgba(255,255,255,0) 70%);
}
.cta-inner h2 { margin: 0 0 0.4rem; font-size: 1.6rem; font-weight: 800; }
.cta-inner p { margin: 0; color: #cbd5e1; max-width: 560px; }

/* ============================================================
   BREADCRUMB — pill links, chevron separators, current-page highlight
   Used on post.php, page.php (with --on-dark), contact.php
   ============================================================ */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin: 0.85rem 0 0.6rem;
}
.breadcrumb ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
}
.breadcrumb li:not(:first-child)::before {
  content: "";
  width: 6px; height: 10px;
  background-color: var(--c-line);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'><path d='M1 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'><path d='M1 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  margin: 0 0.2rem;
  flex-shrink: 0;
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  color: var(--c-muted);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.breadcrumb a:hover {
  background: var(--c-soft);
  color: var(--c-primary);
}
.breadcrumb a svg { width: 14px; height: 14px; flex-shrink: 0; }
.breadcrumb [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  background: linear-gradient(135deg, var(--c-primary), #1a5b99);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.35;
  box-shadow: 0 3px 10px rgba(11,49,85,0.18);
}

/* Dark-background variant — used inside .page-hero */
.breadcrumb--on-dark {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.2rem;
  position: relative; z-index: 1;
}
.breadcrumb--on-dark a { color: rgba(255,255,255,0.88); }
.breadcrumb--on-dark a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.breadcrumb--on-dark li:not(:first-child)::before {
  background-color: rgba(255,255,255,0.45);
}
.breadcrumb--on-dark [aria-current="page"] {
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
}

/* Mobile: tighter spacing, allow wrapping (full title stays visible) */
@media (max-width: 600px) {
  .breadcrumb { font-size: 0.78rem; margin: 0.6rem 0 0.5rem; }
  .breadcrumb a { padding: 0.22rem 0.5rem; }
  .breadcrumb [aria-current="page"] { padding: 0.22rem 0.55rem; }
  .breadcrumb li:not(:first-child)::before { margin: 0 0.1rem; }
}

/* ============================================================
   POST PAGE
   ============================================================ */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  margin: 0 auto 3rem;
  max-width: 1200px;
  align-items: start;
}
.article-layout .toc-side { position: sticky; top: 130px; }

.article {
  max-width: 100%;
  min-width: 0;
}

/* Inline article meta row (under title) */
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.article-meta-row .byline {
  display: flex; align-items: center; gap: 0.7rem;
}
.article-meta-row .byline .author-avatar {
  width: 42px; height: 42px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.article-meta-row .byline .byline-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 2px;
}
.article-meta-row .byline .byline-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
}
.article-meta-row .meta-divider {
  width: 1px;
  height: 32px;
  background: var(--c-line);
  flex-shrink: 0;
}
.article-meta-row .meta-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.article-meta-row .meta-stat .ms-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.article-meta-row .meta-stat .ms-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
}
.article-meta-row .meta-stat .ms-value a { color: var(--c-primary); }
.article-meta-row .meta-stat .ms-value a:hover { color: var(--c-accent); }
.article-hero {
  height: 380px;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  background-color: var(--c-primary);
  position: relative;
  overflow: hidden;
}
.article-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}
.article-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 0.95rem;
}
.article-cat {
  display: inline-block;
  background: var(--c-primary); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.article-updated {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.72rem; font-weight: 800;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid #a7f3d0;
}
.article-updated::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.20);
}

/* Drop cap on first paragraph */
.article-body.has-dropcap > p:first-of-type::first-letter,
.article-body.has-dropcap > p.dropcap::first-letter {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--c-primary);
  float: left;
  line-height: 0.85;
  padding: 0.35rem 0.55rem 0 0;
  margin-top: 0.35rem;
  font-family: var(--font);
}
.article-head h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  color: var(--c-primary);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 0.85rem;
  line-height: 1.2;
}
.article-excerpt { font-size: 1.12rem; color: var(--c-muted); margin: 0 0 1.25rem; line-height: 1.6; }
.author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), #1a5b99);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem;
}
.article-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #1f2937;
}
.article-body h2 {
  margin: 2.25rem 0 1rem;
  font-size: 1.55rem;
  color: var(--c-primary);
  font-weight: 800;
  scroll-margin-top: 130px;
}
.article-body h3 { margin-top: 1.75rem; color: var(--c-primary); scroll-margin-top: 130px; }
.article-body p { margin: 1rem 0; }
.article-body a { color: var(--c-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--c-primary); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin: 1rem 0; }
.article-body li { margin: 0.4rem 0; }
.article-body blockquote {
  border-left: 4px solid var(--c-accent);
  margin: 1.5rem 0; padding: 0.5rem 1.25rem;
  color: var(--c-muted); font-style: italic;
  background: var(--c-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* End-of-article FAQ section — wrapper only; item styles inherit from .faq-item */
.article-faqs {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--c-line);
}
.article-faqs h2 {
  font-size: 1.55rem;
  color: var(--c-primary);
  font-weight: 800;
  margin: 0 0 1.1rem;
  letter-spacing: -0.3px;
}

/* ============================================================
   IN-ARTICLE PRO COMPONENTS
   ============================================================ */

/* Lead paragraph */
.article-body p.lead {
  font-size: 1.12rem;
  color: #1f2937;
  line-height: 1.75;
  font-weight: 500;
}

/* Polished table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--c-line);
}
.article-body table th {
  background: var(--c-primary);
  color: #fff;
  padding: 0.8rem 0.95rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.article-body table td {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.article-body table tr:nth-child(even) td { background: var(--c-soft); }
.article-body table tr:last-child td { border-bottom: 0; }

/* Update timeline (Latest Updates section) */
.article-body .update-timeline {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0 0 2rem;
}
.article-body .ut-head { padding-bottom: 0.85rem; margin-bottom: 1rem; border-bottom: 1px solid #fde68a; }
.article-body .ut-head h2 { margin: 0 0 0.3rem; color: #b45309; font-size: 1.45rem; padding-left: 0; }
.article-body .ut-head h2::before { display: none; }
.article-body .ut-head p { margin: 0; color: #92400e; font-size: 0.92rem; }
.article-body .ut-card {
  display: flex; gap: 1rem;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.article-body .ut-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.article-body .ut-date {
  flex-shrink: 0; width: 56px; text-align: center;
  background: #fef3c7; color: #b45309;
  border-radius: 8px;
  padding: 0.5rem 0;
}
.article-body .ut-date .d { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1; }
.article-body .ut-date .m { display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.15rem; }
.article-body .ut-body { flex: 1; min-width: 0; }
.article-body .ut-body h3 { margin: 0.25rem 0 0.4rem; font-size: 1.05rem; color: var(--c-primary); padding-left: 0; }
.article-body .ut-body h3::before { display: none; }
.article-body .ut-body p { margin: 0; font-size: 0.9rem; color: #475569; line-height: 1.55; }
.article-body .ut-body p a { color: var(--c-accent-dark); }
.article-body .ut-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 4px; color: #fff;
  margin-bottom: 0.3rem;
}
.article-body .tag-new    { background: #ef4444; }
.article-body .tag-guide  { background: #2563eb; }
.article-body .tag-alert  { background: #f59e0b; }
.article-body .tag-policy { background: #7c3aed; }

/* Callout boxes */
.article-body .callout {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  border-radius: 0 12px 12px 0;
  padding: 1.15rem 1.4rem;
  margin: 1.5rem 0;
}
.article-body .callout strong:first-child {
  display: block;
  color: #0c4a6e;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}
.article-body .callout p { margin: 0.4rem 0 0; color: #075985; font-size: 0.95rem; }
.article-body .callout p:first-of-type { margin-top: 0; }
.article-body .callout.warn    { background: #fef2f2; border-color: #ef4444; }
.article-body .callout.warn strong:first-child { color: #991b1b; }
.article-body .callout.warn p  { color: #7f1d1d; }
.article-body .callout.success { background: #ecfdf5; border-color: #10b981; }
.article-body .callout.success strong:first-child { color: #065f46; }
.article-body .callout.success p { color: #064e3b; }
.article-body .callout.feature { background: #eff6ff; border-color: #2563eb; }
.article-body .callout.feature strong:first-child { color: #1e40af; }
.article-body .callout.feature p { color: #1e3a8a; }

/* Method / troubleshoot cards grid */
.article-body .method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.article-body .mc-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.article-body .mc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(244,162,97,0.5);
}
.article-body .mc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), #1a5b99);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.article-body .mc-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  color: var(--c-primary);
  padding-left: 0;
  font-weight: 700;
}
.article-body .mc-card h3::before { display: none; }
.article-body .mc-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--c-muted);
  line-height: 1.55;
}

/* Static grant calculator (visual comparison) */
.article-body .grant-calc-static {
  background: linear-gradient(135deg, var(--c-primary), #1a5b99);
  color: #fff;
  border-radius: 16px;
  padding: 1.85rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.article-body .grant-calc-static::before {
  content: "";
  position: absolute; top: -60%; right: -10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(244,162,97,0.20) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.article-body .gcs-display { position: relative; z-index: 1; }
.article-body .gcs-title  { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.25rem; color: #fff; }
.article-body .gcs-sub    { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0 0 1.25rem; }
.article-body .gcs-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.article-body .gcs-bar {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.article-body .gcs-bar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.article-body .gcs-bar-value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.article-body .gcs-bar.curr {
  background: rgba(244,162,97,0.22);
  border-color: rgba(244,162,97,0.45);
}
.article-body .gcs-bar.curr .gcs-bar-value { color: #fbbf63; }
.article-body .gcs-inc {
  text-align: center;
  background: rgba(244,162,97,0.18);
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fbbf63;
  letter-spacing: 0.3px;
}

/* Numbered steps (Appeal Process) */
.article-body .numbered-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
  position: relative;
}
.article-body .numbered-steps::before {
  content: "";
  position: absolute;
  left: 21px; top: 22px; bottom: 22px;
  width: 2px;
  background: var(--c-line);
}
.article-body .ns-item {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  position: relative;
  z-index: 1;
}
.article-body .ns-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(244,162,97,0.4);
}
.article-body .ns-body h3 {
  margin: 0.25rem 0 0.3rem;
  font-size: 1rem;
  color: var(--c-primary);
  padding-left: 0;
  font-weight: 700;
}
.article-body .ns-body h3::before { display: none; }
.article-body .ns-body p { margin: 0; color: var(--c-text); font-size: 0.92rem; line-height: 1.6; }

/* Payout grid (icons of where to collect) */
.article-body .payout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0;
}
.article-body .payout-grid > div {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-text);
  transition: background .15s, border-color .15s;
}
.article-body .payout-grid > div:hover {
  background: #fff;
  border-color: var(--c-primary);
}

/* In-article app CTA */
.article-body .app-cta {
  background: linear-gradient(135deg, #082341, #0b3155);
  color: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.article-body .app-cta .ac-text { flex: 1; min-width: 220px; }
.article-body .app-cta .ac-text strong:first-child {
  color: var(--c-accent); display: block;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 0.3rem; font-weight: 800;
}
.article-body .app-cta h3 { margin: 0 0 0.3rem; font-size: 1.2rem; color: #fff; padding-left: 0; }
.article-body .app-cta h3::before { display: none; }
.article-body .app-cta p { margin: 0; color: #cbd5e1; font-size: 0.92rem; }
.article-body .app-cta a {
  background: var(--c-accent); color: #082341 !important;
  font-weight: 800; padding: 0.7rem 1.3rem;
  border-radius: 8px; text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.article-body .app-cta a:hover { background: #fff; transform: translateY(-2px); }

@media (max-width: 700px) {
  .article-body .gcs-bars { grid-template-columns: 1fr; }
  .article-body table { font-size: 0.82rem; }
  .article-body table th, .article-body table td { padding: 0.6rem 0.5rem; }
}

/* TOC */
.toc {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.86rem;
}
.toc h4 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem; font-weight: 800;
  color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.7px;
}
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.toc li {
  counter-increment: toc;
  margin: 0.2rem 0;
  padding: 0.45rem 0.6rem 0.45rem 1.85rem;
  position: relative;
  line-height: 1.4;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.toc li::before {
  content: counter(toc);
  position: absolute; left: 0.5rem; top: 0.55rem;
  font-size: 0.7rem; font-weight: 800; color: var(--c-muted);
  transition: color .15s;
}
.toc a { color: var(--c-text); display: block; transition: color .15s; }
.toc a:hover { color: var(--c-accent); }

/* Active TOC item — scroll-spy */
.toc li:has(a.is-active),
.toc li.is-active {
  background: #fff7ed;
  border-left-color: var(--c-accent);
}
.toc li:has(a.is-active)::before { color: var(--c-accent-dark); }
.toc a.is-active {
  color: var(--c-accent-dark) !important;
  font-weight: 700;
}

/* Inline share row at end of article */
.inline-share {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.inline-share .lbl {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-muted);
  margin-right: 0.35rem;
}

/* Share buttons (proper brand icons) — used in inline-share */
.share-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-primary);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.share-btn svg {
  width: 18px; height: 18px;
  display: block;
  transition: transform .2s;
}
.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(11,49,85,0.15);
  color: #fff;
}
.share-btn:hover svg { transform: scale(1.1); }

/* Brand-tinted hover backgrounds */
.share-btn.brand-fb:hover    { background: #1877f2; border-color: #1877f2; }
.share-btn.brand-x:hover     { background: #000000; border-color: #000000; }
.share-btn.brand-li:hover    { background: #0a66c2; border-color: #0a66c2; }
.share-btn.brand-wa:hover    { background: #25d366; border-color: #25d366; }
.share-btn.brand-copy:hover  { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* Copy → check icon swap on success */
.share-btn .ic-check { display: none; }
.share-btn.copied { background: #10b981; border-color: #10b981; color: #fff; }
.share-btn.copied .ic-copy  { display: none; }
.share-btn.copied .ic-check { display: block; }

/* Author box */
.author-box {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  margin: 2rem 0;
}
.author-box .author-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.author-box h4 { margin: 0 0 0.3rem; color: var(--c-primary); }
.author-box p  { margin: 0; color: var(--c-muted); font-size: 0.92rem; line-height: 1.6; }

/* Related */
.related { max-width: 1200px; margin: 0 auto 4rem; }
.related h2 { font-size: 1.55rem; margin-bottom: 1.25rem; color: var(--c-primary); font-weight: 800; }

/* ============================================================
   PAGE BANNER, SEARCH, CONTACT
   ============================================================ */
.page-banner {
  padding: 3rem 0 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, var(--c-soft), #fff);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}
.page-banner h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--c-primary);
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.page-banner p { color: var(--c-muted); margin: 0; }

.search-form {
  max-width: 600px; margin: 1.5rem auto 0;
  display: flex; gap: 0.5rem;
}
.search-form input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
}
.search-form input:focus { outline: none; border-color: var(--c-primary); }
.search-results { list-style: none; padding: 0; margin: 1.5rem 0; }
.search-results li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
}
.search-results h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.search-results small { color: var(--c-muted); font-family: ui-monospace, monospace; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.contact-form {
  background: var(--c-soft);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}
.contact-form label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--c-text);
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  margin-top: 0.4rem;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(11,49,85,0.08);
}

/* ============================================================
   PAGINATION & MISC
   ============================================================ */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 1.5rem; margin: 2rem 0 4rem;
  font-weight: 600;
}
.pagination a {
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-primary);
}
.pagination a:hover { border-color: var(--c-primary); background: var(--c-soft); }

.empty-state { color: var(--c-muted); padding: 3rem 0; text-align: center; }

.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
}
.flash.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.flash.error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.muted { color: var(--c-muted); }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--c-primary); margin: 0 0 1rem;
  font-weight: 900; letter-spacing: -2px;
}
.error-page p { color: var(--c-muted); font-size: 1.1rem; margin: 0 0 1.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, #082341, #0b3155);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1.5rem;
}
.brand-footer .brand-name { color: #fff; }
.f-col h4 {
  color: #fff; font-size: 0.85rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 800;
}
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li { padding: 0.32rem 0; font-size: 0.9rem; }
.f-col a { color: #cbd5e1; }
.f-col a:hover { color: var(--c-accent); }
.f-about p { font-size: 0.9rem; line-height: 1.6; margin: 0 0 1rem; }
.f-social { display: flex; gap: 0.55rem; margin-top: 1rem; }
.f-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #fff;
  transition: background .15s, transform .15s;
}
.f-social a:hover { background: var(--c-accent); transform: translateY(-2px); }
.footer-disclaimer {
  font-size: 0.82rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 1rem; margin-bottom: 1rem;
  line-height: 1.65;
  border-left: 3px solid var(--c-accent);
}
.footer-disclaimer strong { color: #fff; }
.footer-copy { font-size: 0.85rem; color: #94a3b8; text-align: center; }

/* ============================================================
   BACK-TO-TOP
   ============================================================ */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-primary); color: #fff;
  border: 0; font-size: 1.4rem; font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(15px);
  transition: opacity .25s, transform .25s, visibility .25s, background .15s;
  z-index: 60;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-accent); }

/* ============================================================
   STATIC PAGES — banner hero + layout
   ============================================================ */
.page-hero {
  margin: 1rem 0 2rem;
  padding: 3rem 2.25rem 3rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(244,162,97,0.20) 0%, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(26,91,153,0.45) 0%, transparent 55%),
    linear-gradient(135deg, var(--c-primary) 0%, #143d6e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
/* Subtle dot grid pattern */
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  opacity: 0.7;
  pointer-events: none;
  mask-image: linear-gradient(135deg, transparent 0%, #000 30%, #000 60%, transparent 90%);
  -webkit-mask-image: linear-gradient(135deg, transparent 0%, #000 30%, #000 60%, transparent 90%);
}
/* Soft amber glow blob */
.page-hero::after {
  content: "";
  position: absolute; top: -55%; right: -12%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(244,162,97,0.22) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
/* Legacy .breadcrumb-light removed — page hero now uses
   .breadcrumb.breadcrumb--on-dark (see Breadcrumb section above). */

.page-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.page-hero-icon {
  width: 70px; height: 70px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(244,162,97,0.24), rgba(244,162,97,0.10)),
    rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.15);
}
.page-hero-icon::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.10) 100%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.15;
}
.page-hero p {
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
}
.page-hero-meta {
  display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.page-hero-meta .dot { background: rgba(255,255,255,0.4); }
.badge-soft {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  transition: background .2s, transform .2s;
}
.badge-soft:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* Page two-column layout (article + sidebar) */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: start;
}
.static-page { max-width: 100%; }
.static-page .article-body { font-size: 1.04rem; line-height: 1.85; color: #1f2937; }
/* Subtle drop cap on first paragraph */
.static-page .article-body > p:first-of-type::first-letter {
  font-size: 3rem;
  font-weight: 800;
  color: var(--c-primary);
  float: left;
  line-height: 0.9;
  padding: 0.3rem 0.55rem 0 0;
  margin-top: 0.25rem;
  font-family: var(--font);
}
.static-page .article-body h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
  scroll-margin-top: 130px;
  position: relative;
  padding-left: 1.1rem;
}
.static-page .article-body h2::before {
  content: ""; position: absolute;
  left: 0; top: 0.4rem; bottom: 0.4rem;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--c-accent), var(--c-accent-dark));
  box-shadow: 0 4px 10px rgba(244,162,97,0.30);
}
.static-page .article-body h3 { margin-top: 1.75rem; color: var(--c-primary); font-weight: 700; }
.static-page .article-body p { margin: 1rem 0; }
.static-page .article-body a {
  color: var(--c-accent-dark);
  text-decoration: none;
  background-image: linear-gradient(transparent calc(100% - 2px), var(--c-accent) 2px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: color .15s, background-size .25s;
}
.static-page .article-body a:hover {
  color: var(--c-primary);
  background-size: 100% 200%;
}
.static-page .article-body ul { list-style: none; padding-left: 0.5rem; }
.static-page .article-body ul > li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.55rem 0;
}
.static-page .article-body ul > li::before {
  content: "";
  position: absolute; left: 0; top: 0.65rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
}
.static-page .article-body ol { padding-left: 1.5rem; }
.static-page .article-body ol > li::marker { color: var(--c-accent-dark); font-weight: 700; }
.static-page .article-body blockquote {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  background: var(--c-soft);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #475569;
  font-style: italic;
}
.static-page .article-body blockquote::before {
  content: """;
  position: absolute;
  left: 0.6rem; top: -0.25rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--c-accent);
  line-height: 1;
  font-style: normal;
  opacity: 0.7;
}

/* Need-help CTA at bottom of static pages */
.page-help-cta {
  margin-top: 3rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.page-help-cta::before {
  content: "💬";
  position: absolute;
  top: -10px; right: -10px;
  font-size: 7rem;
  opacity: 0.10;
  pointer-events: none;
  transform: rotate(15deg);
}
.page-help-cta > div { position: relative; z-index: 1; flex: 1; min-width: 220px; }
.page-help-cta strong {
  color: var(--c-primary);
  font-size: 1.1rem;
  display: block;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.page-help-cta p {
  margin: 0.3rem 0 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}
.page-help-cta .btn { position: relative; z-index: 1; }

/* Sidebar cards */
.page-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 130px;
}
.side-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.side-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--c-accent), var(--c-accent-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.side-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(244,162,97,0.4);
}
.side-card:hover::before { transform: scaleY(1); }
.side-card h4 {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--c-line);
}
.side-card h4::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card ul li {
  font-size: 0.88rem;
  color: var(--c-text);
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--c-line);
  line-height: 1.45;
}
.side-card ul li:last-child { border-bottom: 0; }
.side-card ul li strong {
  color: var(--c-muted);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.15rem;
}

.side-card-cta {
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 50%, #fff 100%);
  border-color: #fde68a;
}
.side-card-cta::before { background: linear-gradient(180deg, #f59e0b, var(--c-accent-dark)); }
.side-card-cta h4 { color: #b45309; }
.side-card-cta h4::before { background: #f59e0b; }
.side-card-cta p {
  color: #78350f;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 0.95rem;
}
.btn.block { display: flex; width: 100%; padding: 0.7rem; margin-top: 0.5rem; justify-content: center; }

/* ============================================================
   CONTACT — method cards + pro form
   ============================================================ */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 3rem;
}
.cm-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
/* Top accent gradient */
.cm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), #1a5b99);
  opacity: 0; transition: opacity .25s;
}
.cm-card:hover::before { opacity: 1; }
/* Decorative arrow that slides in from right on hover */
.cm-card::after {
  content: "→";
  position: absolute;
  top: 1.85rem; right: 1.85rem;
  font-size: 1.4rem; font-weight: 700;
  color: var(--c-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s, transform .25s;
}
.cm-card:hover::after { opacity: 1; transform: translateX(0); }
.cm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(11,49,85,0.10);
  border-color: rgba(244,162,97,0.5);
}
.cm-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  color: #fff;
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 22px rgba(11,49,85,0.15);
  transition: transform .3s, box-shadow .3s;
}
.cm-card:hover .cm-icon { transform: scale(1.06) rotate(-3deg); }
.cm-icon-blue   { background: linear-gradient(135deg, #0b3155, #1a5b99); }
.cm-icon-amber  { background: linear-gradient(135deg, #b45309, #f59e0b); }
.cm-icon-violet { background: linear-gradient(135deg, #5b21b6, #8b5cf6); }
.cm-card h3 { margin: 0 0 0.4rem; color: var(--c-primary); font-size: 1.15rem; font-weight: 800; }
.cm-card p  { margin: 0 0 0.85rem; color: var(--c-muted); font-size: 0.9rem; line-height: 1.55; }
.cm-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-primary);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.cm-link:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.cm-link.muted { color: var(--c-muted); pointer-events: none; }

/* Pro contact grid (two-col w/ form + side) */
.contact-grid.pro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.form-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-line);
}
.form-head h2 {
  margin: 0.4rem 0 0.4rem;
  font-size: 1.45rem;
  color: var(--c-primary);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.form-head p { margin: 0; color: var(--c-muted); font-size: 0.92rem; }
.req { color: var(--c-accent-dark); font-weight: 800; }

.contact-form-pro .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.contact-form-pro label { display: block; margin-bottom: 1rem; }
.contact-form-pro label.floating {
  position: relative;
}
.contact-form-pro .floating input,
.contact-form-pro .floating textarea {
  width: 100%;
  padding: 1.1rem 0.95rem 0.55rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form-pro .floating textarea { padding-top: 1.4rem; resize: vertical; min-height: 130px; }
.contact-form-pro .floating input:focus,
.contact-form-pro .floating textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(11,49,85,0.10), 0 4px 12px rgba(11,49,85,0.05);
  background: #fff;
}
.contact-form-pro .floating input:focus + span,
.contact-form-pro .floating textarea:focus + span { color: var(--c-accent-dark) !important; }
.contact-form-pro .form-actions .btn { gap: 0.5rem; }
.contact-form-pro .form-actions .btn:hover { letter-spacing: 0.4px; }
.contact-form-wrap { position: relative; overflow: hidden; }
.contact-form-wrap::before {
  content: ""; position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(244,162,97,0.10) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.contact-form-wrap > * { position: relative; z-index: 1; }
.contact-form-wrap .form-head h2 {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.contact-form-pro .floating > span {
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  color: var(--c-muted);
  font-size: 0.92rem;
  font-weight: 500;
  pointer-events: none;
  transition: top .15s, font-size .15s, color .15s;
  background: linear-gradient(180deg, transparent 50%, #fff 50%);
  padding: 0 0.3rem;
}
.contact-form-pro .floating input:focus + span,
.contact-form-pro .floating input:not(:placeholder-shown) + span,
.contact-form-pro .floating textarea:focus + span,
.contact-form-pro .floating textarea:not(:placeholder-shown) + span {
  top: -0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.form-hint { color: var(--c-muted); font-size: 0.82rem; }

/* Contact side */
.contact-side { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-side .side-card.warn {
  background: #fffbeb;
  border-color: #fde68a;
}
.contact-side .side-card.warn h4 { color: #92400e; }
.contact-side .check-list { padding: 0; margin: 0; list-style: none; }
.contact-side .check-list li {
  font-size: 0.9rem;
  color: var(--c-text);
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--c-line);
}
.contact-side .check-list li:last-child { border-bottom: 0; }
.contact-side .check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.5rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(16,185,129,0.3);
}
.dot-list { padding: 0 0 0 1rem; margin: 0.4rem 0; list-style: disc; color: #78350f; }
.dot-list li { padding: 0.2rem 0; font-size: 0.9rem; }
.small { font-size: 0.82rem; }
.social-row { display: flex; gap: 0.5rem; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  transition: background .15s, color .15s, transform .15s;
}
.social-row a:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(11,49,85,0.20);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .ep-slide { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .page-side { position: relative; top: 0; flex-direction: row; flex-wrap: wrap; }
  .page-side > .side-card, .page-side > .toc { flex: 1 1 260px; }
  .contact-grid.pro { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
}
/* Keep article 2-col (article + TOC) until smaller screens */
@media (max-width: 880px) {
  .article-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-layout .toc-side { position: relative; top: 0; }
  .article-meta-row { gap: 0.85rem 1.25rem; }
  .article-meta-row .meta-divider { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .newsletter, .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .step-line { display: none; }
  .contact-form-pro .row { grid-template-columns: 1fr; }
  .page-help-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .header-search { display: none; }
  .nav-toggle    { display: flex; }
  .primary-nav { display: none; }
  .primary-nav.show { display: block; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a  { padding: 0.85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .primary-nav a:hover::after, .primary-nav a.is-active::after { width: 0; }
  .primary-nav .sub-menu {
    position: static; border: 0; box-shadow: none;
    background: rgba(255,255,255,0.06);
    margin: 0; padding: 0;
    display: block;
  }
  .primary-nav .sub-menu a {
    color: rgba(255,255,255,0.85);
    padding: 0.7rem 2.25rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .primary-nav .sub-menu a:hover,
  .primary-nav .sub-menu a.is-active { background: rgba(255,255,255,0.08); color: var(--c-accent); }
  .post-grid, .cat-grid, .footer-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cta-inner { padding: 2rem; flex-direction: column; align-items: flex-start; }
  .topstrip-inner span:nth-child(2), .topstrip-inner span:last-child { display: none; }
}
