/* ============================================================
   JIVANAM FOUNDATION — jivanamfoundation.org
   Brand: crimson red + warm maroon + heartbeat (ECG) motif
   Type:  "Baloo 2" (display) + "Nunito Sans" (body)
   ============================================================ */

:root {
  --red:        #D6202A;
  --red-dark:   #A5121B;
  --red-soft:   #FBE9EA;
  --maroon:     #5B3A3A;
  --ink:        #2A1E1E;
  --body:       #57493F;
  --cream:      #FFF9F3;
  --sand:       #F7EDE1;
  --gold:       #E8A33D;
  --gold-soft:  #FDF3E2;
  --white:      #FFFFFF;
  --line:       #EBDDCE;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(91, 58, 58, .12);
  --shadow-lg: 0 20px 50px rgba(91, 58, 58, .18);

  /* ---- Layout scale -------------------------------------------------
     Public pages run edge to edge: .container fills the viewport and only
     the gutter grows with it. Long-form reading (blog body, admin-authored
     pages, case story) keeps a measure so line length stays comfortable.
     ------------------------------------------------------------------ */
  --container:  100%;                       /* full-width pages          */
  --gutter:     clamp(18px, 6vw, 170px);    /* fluid page side padding   */
  --gap:        clamp(20px, 2.2vw, 34px);   /* card grid gap             */
  --section-y:  clamp(58px, 6vw, 110px);    /* vertical section rhythm   */
  --measure:    78ch;                       /* comfortable reading width */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Slim brand scrollbar ---- */
html {
  scrollbar-width: thin;                      /* Firefox */
  scrollbar-color: var(--red) var(--sand);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track {
  background: var(--sand);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  border: 3px solid var(--sand);              /* inset keeps the bar visually slim */
  background-clip: content-box;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--red-dark) 0%, var(--maroon) 100%);
  background-clip: content-box;
}
::-webkit-scrollbar-corner { background: var(--sand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: keeps position:sticky working on the header */
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Opt-in widths for content that reads better boxed in.
   They carry a smaller gutter — the wide page gutter would squeeze them. */
.container.narrow  { max-width: 1240px; }
.container.mid     { max-width: 1040px; }
.container.reading { max-width: 920px; }
.container.narrow,
.container.mid,
.container.reading { padding-inline: clamp(18px, 3vw, 44px); }

/* Anchor jumps must clear the sticky header */
:target { scroll-margin-top: 130px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;          /* tidier line breaks on wide screens */
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }

.section { padding: var(--section-y) 0; }
.section.tight { padding: calc(var(--section-y) * .66) 0; }
.section.alt { background: var(--sand); }
.section-head { max-width: 760px; margin: 0 auto clamp(34px, 3.6vw, 58px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { margin-top: 14px; }

/* Eyebrow with heartbeat tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 14px; flex: none;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 28'%3E%3Cpath d='M0 14h18l6-9 8 18 6-13 4 4h26' fill='none' stroke='%23D6202A' stroke-width='3'/%3E%3C/svg%3E");
}

/* Heartbeat divider — the brand signature */
.heartbeat-divider { color: var(--red); opacity: .85; height: 44px; overflow: hidden; }
.heartbeat-divider svg { width: 100%; height: 100%; display: block; }
.heartbeat-divider path {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: hb-draw 3.2s ease forwards;
}
@keyframes hb-draw { to { stroke-dashoffset: 0; } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 13px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(214, 32, 42, .32); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-light { background: #fff; color: var(--red); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(232, 163, 61, .35); }

/* ---------------- Header ---------------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .25s ease;
}
#site-header.scrolled { box-shadow: 0 6px 24px rgba(42, 30, 30, .1); }

.topbar { background: var(--maroon); color: #F3E4E4; font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #F3E4E4; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right span { color: var(--gold); font-weight: 600; letter-spacing: .04em; }

/* ---------------- Social icons (topbar, footer, Contact page) ----------------
   Links come from the Social group of /admin/sitesettings via _SocialLinks.cshtml.
   Each platform wears its own brand colour; size is set by the container. */
.social-links { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social-links .social-link {
  --social-size: 38px;
  width: var(--social-size); height: var(--social-size); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  color: #fff; background: var(--social-bg, var(--red));
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.social-links .social-link svg { width: 52%; height: 52%; fill: currentColor; margin: 0; flex: none; }
.social-links .social-link:hover,
.social-links .social-link:focus-visible {
  color: #fff; transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28); filter: saturate(1.15) brightness(1.06);
}
.social-links .social-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.social-facebook        { --social-bg: #1877F2; }
.social-instagram       { --social-bg: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.social-youtube         { --social-bg: #FF0000; }
.social-twitter         { --social-bg: #000; }
.social-linkedin        { --social-bg: #0A66C2; }
.social-whatsappchannel { --social-bg: #25D366; }
/* X is black; a hairline ring keeps it from melting into the dark topbar and footer. */
.social-links .social-twitter { border: 1px solid rgba(255, 255, 255, .3); }

.topbar .social-links { gap: 6px; }
.topbar .social-links .social-link { --social-size: 22px; box-shadow: none; }
.topbar .social-links .social-link:hover,
.topbar .social-links .social-link:focus-visible { transform: scale(1.14); box-shadow: none; }

.footer-follow { margin-top: 24px; }
.footer-follow h4 { margin-bottom: 12px; }

.contact-social .social-links { margin-top: 10px; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand img { height: 58px; width: auto; }

.main-nav ul { list-style: none; }
.main-nav > ul { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; }
.main-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  color: var(--ink); padding: 10px 13px; border-radius: 999px;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--red); background: var(--red-soft); }
.main-nav a.active { color: #fff; background: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-donate {
  background: var(--red); color: #fff; padding: 10px 22px;
  box-shadow: 0 6px 18px rgba(214, 32, 42, .3);
}
.btn-donate:hover { background: var(--red-dark); color: #fff; }
.btn-donate svg { animation: pulse-heart 1.8s ease-in-out infinite; }
@keyframes pulse-heart { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(232, 163, 61, .22), transparent 60%),
    radial-gradient(700px 500px at -8% 110%, rgba(214, 32, 42, .1), transparent 60%),
    var(--sand);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 4vw, 76px); align-items: center;
  padding: clamp(56px, 6vw, 104px) var(--gutter) clamp(66px, 7vw, 120px);
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 span { color: var(--red); }
.hero-copy { max-width: 46rem; }
.hero-copy p.lede { margin: 20px 0 32px; font-size: clamp(1.05rem, 1.15vw, 1.2rem); max-width: 40rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust div { font-size: .9rem; }
.hero-trust strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--maroon); line-height: 1.2; }

.hero-visual {
  position: relative; width: 100%;
  /* square poster artwork — cap it rather than letting a wide column blow it up */
  max-width: 640px; justify-self: end;
}
.hero-visual .hero-card {
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.hero-visual .hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; border-radius: var(--radius);
  padding: 14px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
}
.hero-badge .hb-icon {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--red-soft); display: grid; place-items: center;
}
.hero-badge .hb-icon svg { width: 22px; height: 22px; fill: var(--red); }
.hero-badge small { display: block; font-family: var(--font-body); font-weight: 600; color: var(--body); font-size: .8rem; }

/* Hero heartbeat baseline */
.hero-heartbeat {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  color: var(--red); opacity: .35; pointer-events: none;
}
.hero-heartbeat svg { width: 100%; height: 100%; }

/* ---------------- Cards / grids ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 1.8vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 3.4vw, 64px); align-items: center; }
/* a full-width column would otherwise run 110+ characters per line */
.grid-2 > div > p, .grid-2 > div > .about-list { max-width: 64ch; }
/* an image collage nested in a column shouldn't stretch to fill it either */
.grid-2 .grid-2 { max-width: 640px; margin-inline: auto; }

.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid rgba(91, 58, 58, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}
/* Cards with a body stretch it, so read-more links and buttons line up across
   a row. Browsers without :has() simply fall back to normal block flow. */
.card:has(> .card-body) { display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img {
  aspect-ratio: 4 / 3; overflow: hidden; flex: none;
  max-height: clamp(210px, 22vw, 340px);      /* stops huge media on wide screens */
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.05); }
/* "Featured" ribbon on posts and cases an admin pinned from the editor sidebar */
.card-img { position: relative; }
.card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
  padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(42, 30, 30, .18);
}
.card-body {
  padding: clamp(20px, 1.6vw, 28px) clamp(20px, 1.7vw, 30px) clamp(24px, 1.8vw, 30px);
  flex: 1; display: flex; flex-direction: column;
}
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: .97rem; }
/* Excerpts clamp so a row of cards stays visually even */
.blog-card .card-body > p, .case-card .card-body > p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Buttons / read-more sit on the card baseline whatever the text length */
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.card-actions .btn { flex: 1 1 130px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--font-display); font-weight: 700; margin-top: auto; padding-top: 14px;
}
.card-link::after { content: "→"; transition: transform .18s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

/* Icon feature tiles */
.tile {
  background: #fff; border-radius: var(--radius);
  padding: clamp(26px, 2.2vw, 40px) clamp(22px, 2vw, 34px);
  box-shadow: var(--shadow); border: 1px solid rgba(91, 58, 58, .06);
  transition: transform .2s ease;
}
.tile:hover { transform: translateY(-5px); }
.tile-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--red-soft); display: grid; place-items: center;
  margin-bottom: 18px;
}
.tile-icon svg { width: 28px; height: 28px; fill: var(--red); }
.tile.gold .tile-icon { background: var(--gold-soft); }
.tile.gold .tile-icon svg { fill: var(--gold); }
.tile h3 { margin-bottom: 8px; font-size: 1.18rem; }
.tile p { font-size: .95rem; }

/* ---------------- Stats band ---------------- */
.stats-band { background: var(--maroon); color: #F6E9E2; position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background: no-repeat center / 140% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath d='M0 100h300l20-40 30 80 25-60 15 20h250l20-45 30 90 25-70 15 25h270l20-40 30 80 25-60 15 20h110' fill='none' stroke='%23fff' stroke-width='4'/%3E%3C/svg%3E");
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 44px); position: relative; }
.stat { text-align: center; }
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); line-height: 1.1;
}
.stat span { font-size: .95rem; letter-spacing: .03em; }

/* ---------------- Donate / QR block ---------------- */
.donate-panel {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 28px; color: #fff;
  padding: clamp(32px, 4vw, 68px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 440px);
  gap: clamp(30px, 3.4vw, 60px); align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.donate-panel::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.donate-panel h2 { color: #fff; }
.donate-panel p { color: #FBDCDD; margin-top: 14px; max-width: 62ch; }
.donate-panel .amount-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.amount-chip {
  font-family: var(--font-display); font-weight: 700;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 2px solid rgba(255, 255, 255, .4);
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.amount-chip:hover { transform: translateY(-2px); }
.amount-chip.selected { background: #fff; color: var(--red); border-color: #fff; }

.qr-card {
  background: #fff; border-radius: 22px; padding: 26px;
  text-align: center; color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  position: relative; z-index: 1;
}
.qr-card img { width: min(250px, 100%); margin: 12px auto; border-radius: 10px; }
.qr-card h3 { font-size: 1.15rem; }
.qr-card small { color: var(--body); display: block; line-height: 1.55; }
.qr-card .qr-org { font-family: var(--font-display); font-weight: 700; color: var(--red); margin-top: 4px; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  background:
    linear-gradient(120deg, rgba(91, 58, 58, .92), rgba(165, 18, 27, .88)),
    var(--maroon);
  color: #fff; text-align: center;
  padding: clamp(62px, 6.4vw, 108px) 0 clamp(70px, 7.2vw, 120px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% 0%, rgba(232, 163, 61, .20), transparent 62%),
    radial-gradient(680px 420px at 92% 110%, rgba(255, 255, 255, .10), transparent 60%);
}
.page-hero > * { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-hero p { max-width: 68ch; margin: 14px auto 0; color: #F3DBDB; font-size: clamp(1rem, 1.05vw, 1.12rem); }
.page-hero .crumbs { font-size: .88rem; margin-top: 20px; color: #E8B9B9; }
.page-hero .crumbs a { color: var(--gold); }
.page-hero .hero-heartbeat { opacity: .25; color: #fff; }

/* ---------------- About page ---------------- */
.about-media { position: relative; max-width: 640px; margin-inline: auto; }
.about-media img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-media .years {
  position: absolute; right: -14px; bottom: -18px;
  background: var(--gold); color: var(--ink);
  border-radius: 18px; padding: 16px 22px; text-align: center;
  font-family: var(--font-display); box-shadow: var(--shadow);
}
.about-media .years strong { display: block; font-size: 1.9rem; line-height: 1; }
.about-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; }
.about-list li::before {
  content: "✔"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-size: .8rem; margin-top: 3px;
}

.reg-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.reg-table th, .reg-table td { padding: 15px 20px; text-align: left; font-size: .96rem; }
.reg-table th { font-family: var(--font-display); background: var(--maroon); color: #fff; }
.reg-table tr:nth-child(even) td { background: var(--sand); }
.reg-table td:first-child { font-weight: 700; color: var(--ink); width: 42%; }

/* Mission / vision */
.mv-card { border-top: 5px solid var(--red); }
.mv-card.gold-top { border-top-color: var(--gold); }

/* ---------------- Services page ---------------- */
.service-row {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 3.6vw, 72px);
  align-items: center; padding: clamp(40px, 4vw, 72px) 0;
  border-bottom: 1px dashed var(--line);
}
.service-row > div { min-width: 0; }
.service-row .service-copy { max-width: 70ch; }
.service-row:last-child { border-bottom: 0; }
.service-row.flip { direction: rtl; }
.service-row.flip > * { direction: ltr; }
.service-row img {
  border-radius: 22px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; margin-inline: auto;
}
.service-row h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.service-points { list-style: none; margin: 18px 0 26px; display: grid; gap: 10px; }
.service-points li { padding-left: 30px; position: relative; font-size: .98rem; }
.service-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 18px; height: 12px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Cpath d='M0 12h10l4-8 6 16 4-11 3 3h9' fill='none' stroke='%23D6202A' stroke-width='3'/%3E%3C/svg%3E");
}

/* ---------------- Cases page ---------------- */
.case-card .card-img { aspect-ratio: 16 / 10; }
.case-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--red-soft); color: var(--red);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.case-tag.gold { background: var(--gold-soft); color: #B27718; }
.progress { height: 10px; background: var(--sand); border-radius: 999px; margin: 18px 0 8px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold)); }
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; color: var(--maroon); }

/* ---------------- Volunteers ---------------- */
.vol-card { text-align: center; padding: 34px 22px 30px; }
.vol-avatar {
  width: 96px; height: 96px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: #fff;
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px var(--red-soft);
}
/* Same circle, but filled with the person's photo instead of their initials */
.vol-avatar-photo { padding: 0; overflow: hidden; background: var(--red-soft); }
.vol-avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.vol-card h3 { font-size: 1.12rem; }
.vol-role { color: var(--red); font-weight: 700; font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; }
.vol-meta { font-size: .88rem; margin-top: 8px; }
.vol-badge {
  display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 700;
  background: var(--gold-soft); color: #A56F14; padding: 4px 12px; border-radius: 999px;
}

/* ---------------- Forms ---------------- */
.form-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(28px, 4vw, 46px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(16px, 1.6vw, 26px); }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-display); font-weight: 600; font-size: .93rem; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink);
  padding: 13px 16px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--cream);
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-chip span {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--line); font-size: .9rem; font-weight: 700; color: var(--body);
  transition: all .15s ease; cursor: pointer;
}
.check-chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.check-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-success {
  background: #E9F7EC; border: 2px solid #4CAF50; color: #205B27;
  border-radius: 14px; padding: 18px 22px; margin-top: 22px;
  font-weight: 700;
}

/* ---------------- AJAX form feedback (site-wide) ---------------- */
.ajax-banner {
  border-radius: 14px; padding: 16px 20px; margin-bottom: 22px;
  font-weight: 700; font-size: .95rem;
}
.ajax-banner.ajax-success { background: #E9F7EC; border: 2px solid #4CAF50; color: #205B27; }
.ajax-banner.ajax-error { background: #FDECEC; border: 2px solid var(--red); color: var(--red-dark); }
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid { border-color: var(--red); background: #FDECEC; }
.field-error { color: var(--red-dark); font-size: .82rem; font-weight: 600; margin-top: -2px; }

/* ---------------- Image captcha (Contact page) ---------------- */
.captcha-row { display: flex; align-items: center; gap: 10px; max-width: 460px; }
.captcha-row input[type="text"] {
  flex: 1 1 auto; min-width: 0; height: 54px;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
}
.captcha-image-wrap {
  border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #FBF3E9;
  line-height: 0; flex: 0 0 auto;
}
/* the SVG the server renders is 180x60, so keep that 3:1 ratio */
.captcha-image-wrap img { display: block; width: 150px; height: 50px; }
.captcha-refresh {
  width: 54px; height: 54px; border-radius: 10px; border: 2px solid var(--line); background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.captcha-refresh svg { width: 19px; height: 19px; fill: var(--body); transition: transform .3s; }
.captcha-refresh:hover svg { transform: rotate(75deg); fill: var(--red); }

/* ---------------- Contact page ---------------- */
.contact-info-card {
  background: var(--maroon); color: #F6E9E2; border-radius: 24px;
  padding: clamp(28px, 3vw, 48px) clamp(24px, 2.6vw, 44px); height: 100%;
}
.contact-info-card h3 { color: #fff; margin-bottom: 22px; }
.contact-line { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-line svg { width: 22px; height: 22px; fill: var(--gold); flex: none; margin-top: 4px; }
.contact-line a { color: var(--gold); }
.contact-line strong { color: #fff; display: block; font-family: var(--font-display); }
.map-embed { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: clamp(320px, 36vw, 560px); border: 0; display: block; }

/* ---------------- FAQ ---------------- */
.faq-item { background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: 20px 54px 20px 24px; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--red);
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 24px 22px; font-size: .96rem; }

/* ---------------- CTA strip ---------------- */
.cta-strip {
  background: linear-gradient(120deg, var(--gold) 0%, #F2BC63 100%);
  border-radius: 26px; padding: clamp(34px, 5vw, 54px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.cta-strip h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-strip p { color: #5C4310; max-width: 62ch; }
.cta-strip > div { min-width: 0; }
.cta-strip .btn-primary { flex: none; }

/* ---------------- Footer ---------------- */
#site-footer { background: var(--ink); color: #D9C8BC; margin-top: 0; }
.footer-heartbeat { height: 40px; color: var(--red); opacity: .8; background: var(--ink); }
.footer-heartbeat svg { width: 100%; height: 100%; display: block; }
.footer-grid {
  display: grid;
  /* Reach Us gets the widest share: an email address cannot wrap gracefully, the about text can. */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.4fr);
  gap: clamp(30px, 3vw, 64px);
  padding: clamp(46px, 5vw, 76px) var(--gutter) clamp(38px, 4vw, 56px);
}
.footer-about p { max-width: 48ch; }
.footer-logo { height: 62px; width: auto; background: #fff; padding: 8px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer-col p { font-size: .93rem; }
.footer-reg { margin-top: 14px; font-size: .82rem !important; color: #A08D80; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a {
  display: inline-flex; align-items: baseline; gap: 9px;
  color: #D9C8BC; font-size: .94rem; transition: color .15s ease, transform .15s ease;
}
/* Chevron marker before every footer menu item */
.footer-links a::before {
  content: "›"; color: var(--gold); font-size: 1.15rem; line-height: 1;
  opacity: .7; transition: opacity .15s ease;
}
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-links a:hover::before { opacity: 1; }
.footer-contact a { color: var(--gold); }
.footer-contact p { margin-bottom: 12px; }
.footer-contact strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 12px 26px; flex-wrap: wrap;
  padding: 20px var(--gutter); font-size: .82rem; color: #A08D80;
}
.footer-credit a { color: inherit; text-decoration: none; transition: color .15s ease; }
.footer-credit a:hover { color: #fff; text-decoration: underline; }

/* Legal strip above the copyright line — links come from /admin/pages */
.footer-legal { padding: 16px var(--gutter) 0; }
.footer-legal-links {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: center; font-size: .84rem;
}
.footer-legal-links a { color: #C8B6A9; transition: color .15s ease; }
.footer-legal-links a:hover { color: var(--gold); }
.footer-legal + .footer-bottom-inner { padding-top: 14px; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------------- Responsive ---------------- */
/* Grids step down one column at a time so rows always stay balanced. */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding: 9px 9px; font-size: .92rem; }
}

@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1121px) and (max-width: 1300px) {
  .main-nav > ul { gap: 2px; }
  .main-nav a, .sub-toggle { padding: 9px 10px; font-size: .92rem; }
  .header-inner { gap: 12px; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  /* dim backdrop behind the drawer */
  body.nav-open::before {
    content: ""; position: fixed; inset: 0; z-index: 88;
    background: rgba(28, 14, 12, .48); backdrop-filter: blur(2px);
    animation: navFade .3s ease;
  }
  @keyframes navFade { from { opacity: 0; } to { opacity: 1; } }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 90;
    width: min(86%, 360px);
    background: var(--white);
    border-radius: 0;
    transform: translateX(105%);
    transition: transform .34s cubic-bezier(.4, 0, .2, 1);
    padding: 104px 16px 40px;
    overflow-y: auto;
  }
  .main-nav.open { transform: none; box-shadow: -30px 0 80px rgba(28, 14, 12, .28); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  /* show leading icons in the drawer */
  .nav-ico { display: inline-flex; fill: var(--red); }
  /* top-level rows: full width, left aligned, clean list */
  .main-nav > ul > li > a,
  .main-nav .sub-toggle {
    display: flex; align-items: center; gap: 14px; width: 100%;
    text-align: left; font-family: var(--font-display); font-weight: 600;
    font-size: 1.08rem; padding: 15px 12px;
    border-radius: 0; border-bottom: 1px solid rgba(28, 14, 12, .08);
    transition: background .2s ease, color .2s ease;
  }
  .main-nav > ul > li > a { color: var(--ink); }
  .main-nav > ul > li > a:active { background: var(--red-soft); color: var(--red); }
  .main-nav > ul > li > a.active {
    color: #fff; background: var(--red); border-bottom-color: transparent;
  }
  .main-nav > ul > li > a.active .nav-ico { fill: #fff; }
  .main-nav > ul > li:last-child > a,
  .main-nav > ul > .has-sub:last-child .sub-toggle { border-bottom: 0; }
  .header-actions { position: relative; z-index: 95; }
}

/* Side-by-side blocks stack */
@media (max-width: 880px) {
  .hero-inner, .grid-2, .donate-panel, .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row.flip { direction: ltr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: center; margin-inline: auto; }
  .hero-badge { left: 10px; }
  .about-media .years { right: 10px; }
  .topbar-reg { display: none; }
}

/* Card grids go single file */
@media (max-width: 680px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn, .cta-strip .btn { flex: 1 1 210px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .brand img { height: 46px; }
  .btn { padding: 12px 22px; font-size: .95rem; }
  .btn-donate { padding: 9px 16px; font-size: .9rem; }
  .card-actions .btn { flex: 1 1 100%; }
  .topbar-left { gap: 12px; }
  .topbar-mail { display: none !important; }
  .hero-trust { gap: 18px; }
  .page-hero .crumbs { font-size: .82rem; }
}

@media (max-width: 359px) {
  .topbar .social-links { display: none; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-trust { gap: 13px; }
  .hero-trust div { font-size: .83rem; }
  .hero-ctas { display: grid; }
  .amount-chip { padding: 8px 15px; font-size: .92rem; }
}

/* Large desktops: the page is already edge to edge, so just add a little
   more air and a slightly larger base size for comfortable reading. */
@media (min-width: 1700px) {
  body { font-size: 1.09rem; }
  .card-body p, .tile p, .doc-card p { font-size: 1rem; }
}

/* ============================================================
   DONATE PAGE
   A full-bleed giving journey:
     hero → impact picker → how to pay → confirm → trust → other ways
   Every block runs edge to edge on --gutter; only the reading columns
   inside them keep a measure.
   ============================================================ */

/* Both step anchors are jumped to from links AND from script, so give them
   their own scroll margin rather than relying on the :target rule. */
#pay, #confirm { scroll-margin-top: 120px; }

/* ---------------- Hero ---------------- */
.donate-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(820px 460px at 6% -12%, rgba(232, 163, 61, .30), transparent 62%),
    radial-gradient(720px 520px at 102% 112%, rgba(255, 255, 255, .13), transparent 60%),
    linear-gradient(125deg, var(--maroon) 0%, var(--red-dark) 56%, var(--red) 100%);
}
/* faint heartbeat wallpaper — the block should read as ours, not a stock gradient */
.donate-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: no-repeat center / 150% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath d='M0 100h300l20-40 30 80 25-60 15 20h250l20-45 30 90 25-70 15 25h270l20-40 30 80 25-60 15 20h110' fill='none' stroke='%23fff' stroke-width='4'/%3E%3C/svg%3E");
}
.donate-hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(34px, 4vw, 80px); align-items: center;
  padding-block: clamp(46px, 4.6vw, 86px) clamp(78px, 8vw, 132px);
}
.donate-hero .crumbs { font-size: .88rem; color: #E8B9B9; margin-bottom: 16px; }
.donate-hero .crumbs a { color: var(--gold); }
.donate-hero .eyebrow { color: var(--gold); }
.donate-hero .eyebrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 28'%3E%3Cpath d='M0 14h18l6-9 8 18 6-13 4 4h26' fill='none' stroke='%23E8A33D' stroke-width='3'/%3E%3C/svg%3E");
}
.donate-hero .hero-heartbeat { opacity: .28; color: #fff; }
.donate-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.donate-hero h1 span { color: var(--gold); }
.donate-hero .lede {
  color: #F7DFDF; margin-top: 18px; max-width: 52ch;
  font-size: clamp(1.02rem, 1.1vw, 1.18rem);
}

/* Quick-give chips, restyled for the dark hero */
.dh-give { margin-top: clamp(24px, 2.4vw, 34px); }
.dh-give-label {
  font-family: var(--font-display); font-weight: 700; font-size: .84rem;
  letter-spacing: .12em; text-transform: uppercase; color: #FBDCDD; margin-bottom: 12px;
}
.dh-give .amount-chips { display: flex; gap: 10px; flex-wrap: wrap; }

.dh-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--red); border-color: #fff; }

.dh-trust {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: clamp(18px, 2.2vw, 38px);
  margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(22px, 2.2vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.dh-trust li { font-size: .86rem; color: #F3DBDB; }
.dh-trust strong {
  display: block; font-family: var(--font-display);
  font-size: 1.3rem; color: #fff; line-height: 1.2;
}

/* Floating QR card */
.dh-card {
  position: relative; justify-self: end; width: 100%; max-width: 420px;
  background: #fff; color: var(--ink); text-align: center;
  border-radius: 26px;
  padding: clamp(26px, 2.2vw, 34px) clamp(20px, 1.8vw, 28px) clamp(22px, 1.8vw, 28px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .34);
  transform: rotate(-1.3deg);
  transition: transform .3s ease;
}
.dh-card:hover { transform: rotate(0deg) translateY(-4px); }
.dh-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink); white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  padding: 7px 18px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
.dh-card .dh-qr {
  width: min(250px, 100%); margin: 16px auto 12px;
  border-radius: 14px; border: 2px solid var(--line);
}
.dh-org { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: .98rem; }
.dh-mid { display: block; font-size: .78rem; color: var(--body); line-height: 1.6; margin-top: 4px; }
.dh-upi {
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.dh-upi code {
  font-family: ui-monospace, monospace; font-weight: 700; font-size: .88rem;
  color: var(--maroon); overflow-wrap: anywhere;
}

/* ---------------- Impact picker ---------------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.impact-card {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  font: inherit; color: var(--body);
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2vw, 34px) clamp(20px, 1.8vw, 30px) clamp(24px, 2vw, 30px);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.impact-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.impact-card:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: var(--shadow-lg); }
.impact-card:hover::after, .impact-card.is-picked::after { transform: none; }
.impact-card.is-picked { border-color: var(--red); background: var(--red-soft); }
.impact-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px;
  background: var(--red-soft); display: grid; place-items: center;
}
.impact-icon svg { width: 28px; height: 28px; fill: var(--red); }
.impact-card.gold .impact-icon { background: var(--gold-soft); }
.impact-card.gold .impact-icon svg { fill: var(--gold); }
.impact-amt {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem); color: var(--ink); line-height: 1.1;
}
.impact-card h3 { font-size: 1.06rem; margin: 6px 0 8px; }
.impact-card p { font-size: .93rem; }
/* The whole card is clickable for the mouse; this button is the real control
   so keyboard and screen-reader users get there too. */
.impact-pick {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--red);
}
.impact-pick::after { content: "→"; transition: transform .18s ease; }
.impact-card:hover .impact-pick::after { transform: translateX(4px); }
.impact-note {
  text-align: center; margin-top: clamp(22px, 2.2vw, 32px);
  font-size: .93rem; color: var(--body);
}

/* ---------------- Step 1: how to pay ---------------- */
.pay-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: clamp(26px, 2.6vw, 48px); align-items: start;
}
.pay-methods {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px); margin-bottom: clamp(22px, 2.2vw, 32px);
}
.pay-tab {
  display: flex; align-items: center; gap: 15px; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 1.7vw, 24px) clamp(16px, 1.5vw, 22px);
  font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.pay-tab .pt-ico {
  width: 50px; height: 50px; border-radius: 14px; flex: none;
  background: var(--red-soft); display: grid; place-items: center;
  transition: background .18s ease;
}
.pay-tab svg { width: 25px; height: 25px; fill: var(--red); display: block; transition: fill .18s ease; }
.pay-tab small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: .81rem; color: var(--body); margin-top: 3px;
}
.pay-tab:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow-lg); }
.pay-tab.active { border-color: var(--red); background: var(--red); color: #fff; }
.pay-tab.active .pt-ico { background: rgba(255, 255, 255, .2); }
.pay-tab.active svg { fill: #fff; }
.pay-tab.active small { color: #FBDCDD; }

.pay-panel { display: none; }
.pay-panel.active { display: block; animation: fade-up .35s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pay-box {
  position: relative; overflow: hidden;
  background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg);
  padding: clamp(26px, 2.8vw, 46px);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 3vw, 52px); align-items: center;
}
.pay-box::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--red-soft); opacity: .55; pointer-events: none;
}
.pay-box > * { position: relative; min-width: 0; }
.pay-box.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.pay-box.single { grid-template-columns: 1fr; }
.pay-box h3 { font-size: 1.4rem; margin-bottom: 10px; }
.pay-box > div > p { max-width: 56ch; }

.pay-steps { list-style: none; display: grid; gap: 14px; margin-top: 20px; counter-reset: step; }
/* The marker is absolute rather than a flex item: a step's text often contains
   <strong>, and in a flex row that would become its own item and pick up the gap. */
.pay-steps li { position: relative; padding-left: 44px; min-height: 30px; font-size: .97rem; }
.pay-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  font-family: var(--font-display); font-weight: 700;
  display: grid; place-items: center;
}
/* the QR sits on a sand plinth so it never floats on bare white */
.pay-qr-wrap {
  text-align: center; background: var(--sand); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(20px, 1.9vw, 28px);
}
.pay-qr-wrap img {
  width: min(280px, 100%); margin: 0 auto 12px; background: #fff;
  border-radius: 14px; border: 2px solid var(--line);
}

.upi-id-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--sand); border: 2px dashed var(--gold);
  border-radius: 14px; padding: 14px 18px; margin: 18px 0;
}
.upi-id-box code {
  font-family: ui-monospace, monospace; font-weight: 700; font-size: 1.02rem;
  color: var(--maroon); word-break: break-all;
}
.btn-copy {
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  background: var(--maroon); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 18px; cursor: pointer; transition: background .15s ease;
}
.btn-copy:hover { background: var(--ink); }
.btn-copy.copied { background: #2E7D32; }

.upi-apps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.upi-apps span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 700; color: var(--maroon);
  background: var(--sand); border-radius: 999px; padding: 5px 14px 5px 5px;
}

/* ---- Payment-method icons ---- */
.pm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pm-mini { width: 22px; height: 22px; flex: none; border-radius: 50%; }

/* "Donate via" band: one row of big round app icons, like a checkout sheet */
.pay-via {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr);
  row-gap: 14px;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow);
  border: 1px solid rgba(91, 58, 58, .06);
  padding: clamp(22px, 2.2vw, 32px) 0 clamp(24px, 2.4vw, 34px);
  margin-bottom: clamp(26px, 2.6vw, 40px);
}
.pay-via-label {
  grid-column: 1 / -1; padding-inline: clamp(20px, 2.4vw, 40px);
  font-family: var(--font-display); font-weight: 700; font-size: .84rem;
  letter-spacing: .14em; text-transform: uppercase; color: #9A8B80;
}
.pay-via-group { min-width: 0; padding-inline: clamp(20px, 2.4vw, 40px); }
.pay-via-group + .pay-via-group { border-left: 1px dashed var(--line); }
.pay-via-group h3 {
  font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.pay-via-list { list-style: none; display: grid; gap: 18px 8px; }
.pay-via-list.upi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pay-via-list.offline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-btn {
  width: 100%; display: grid; justify-items: center; gap: 9px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  line-height: 1.2; color: var(--ink); text-align: center;
  transition: color .18s ease;
}
.pm-ico {
  width: clamp(54px, 4.6vw, 68px); height: clamp(54px, 4.6vw, 68px);
  border-radius: 50%; box-shadow: 0 5px 14px rgba(91, 58, 58, .13);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pm-btn:hover { color: var(--red); }
.pm-btn:hover .pm-ico { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(91, 58, 58, .22); }
.pm-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 12px; }

/* The hero QR card's "works with" row */
.pm-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin-top: 10px;
}
.pm-strip .pm-mini { width: 26px; height: 26px; box-shadow: 0 2px 6px rgba(0, 0, 0, .14); }
.pm-strip span { font-size: .78rem; font-weight: 700; color: var(--body); margin-left: 4px; }

/* icon clicks scroll a panel into view — keep it clear of the sticky header */
.pay-panel { scroll-margin-top: 130px; }

/* Sticky help rail beside the payment methods */
.pay-rail { position: sticky; top: 118px; display: grid; gap: 18px; }
.rail-card {
  background: #fff; border-radius: 20px; padding: clamp(22px, 1.8vw, 28px);
  box-shadow: var(--shadow); border: 1px solid rgba(91, 58, 58, .06);
}
.rail-card h4 { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); margin-bottom: 10px; }
.rail-card p { font-size: .92rem; }
.rail-card.accent {
  border: 0; color: #FBDCDD;
  background:
    radial-gradient(420px 220px at 100% 0, rgba(232, 163, 61, .3), transparent 62%),
    linear-gradient(140deg, var(--maroon), var(--red-dark));
}
.rail-card.accent h4 { color: #fff; }
.rail-list { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.rail-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; }
.rail-list svg { width: 19px; height: 19px; fill: var(--red); flex: none; margin-top: 3px; }
.rail-card.accent .rail-list svg { fill: var(--gold); }
.rail-contact {
  display: flex; align-items: center; gap: 13px; margin-top: 14px;
  padding: 13px 16px; border-radius: 14px; background: var(--sand);
  font-family: var(--font-display); font-weight: 700; color: var(--maroon);
}
.rail-contact svg { width: 22px; height: 22px; fill: var(--red); flex: none; }
.rail-contact small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--body); }

/* ---------------- Step 2: confirmation ---------------- */
.confirm-layout {
  display: grid; grid-template-columns: minmax(290px, 370px) minmax(0, 1fr);
  gap: clamp(26px, 2.8vw, 52px); align-items: start;
}
.confirm-aside { position: sticky; top: 118px; display: grid; gap: 18px; }

.sum-card {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 24px; padding: clamp(24px, 2vw, 32px);
  box-shadow: var(--shadow-lg);
}
.sum-card::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.sum-card > * { position: relative; }
.sum-label {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: #FBDCDD;
}
.sum-amt {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(2.4rem, 3.6vw, 3.1rem); line-height: 1.05; margin: 4px 0 16px;
}
.sum-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: .9rem; color: #FBDCDD; padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .26);
}
.sum-row:last-of-type { border-bottom: 0; }
.sum-row b { color: #fff; font-family: var(--font-display); text-align: right; overflow-wrap: anywhere; }

/* "what happens next" timeline */
.flow { list-style: none; margin-top: 16px; }
.flow li { position: relative; padding: 0 0 20px 38px; font-size: .92rem; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  content: ""; position: absolute; left: 10px; top: 20px; bottom: 0;
  width: 2px; background: var(--line);
}
.flow li:last-child::before { display: none; }
.flow li::after {
  content: ""; position: absolute; left: 4px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red);
}
.flow strong { display: block; font-family: var(--font-display); color: var(--ink); }

/* Grouped sections inside the long donation form */
.form-legend {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; color: var(--ink);
  margin: clamp(26px, 2.4vw, 34px) 0 18px;
}
.form-legend:first-child { margin-top: 0; }
.form-legend .n {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: .9rem;
}
.form-legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Screenshot upload */
.upload-zone {
  border: 2px dashed var(--line); border-radius: 16px;
  background: var(--cream); padding: clamp(24px, 2.2vw, 34px); text-align: center;
  cursor: pointer; position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--red); background: var(--red-soft); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-zone svg { width: 38px; height: 38px; fill: var(--maroon); margin: 0 auto 10px; display: block; }
.upload-zone p { font-size: .93rem; }
.upload-zone strong { color: var(--red); }
.upload-preview { margin-top: 16px; display: none; align-items: center; gap: 14px; text-align: left; }
.upload-preview.show { display: flex; }
.upload-preview img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.upload-preview .up-name { font-weight: 700; color: var(--ink); font-size: .92rem; word-break: break-all; }
.upload-preview .up-remove { background: none; border: 0; color: var(--red); font-weight: 700; cursor: pointer; font-size: .85rem; padding: 4px; }

.form-foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(24px, 2.2vw, 32px); padding-top: clamp(20px, 2vw, 26px);
  border-top: 1px dashed var(--line);
}
.form-foot p { font-size: .87rem; max-width: 46ch; }

/* ---------------- Trust + FAQ ---------------- */
.trust-layout {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 3.4vw, 66px); align-items: start;
}
.trust-points { list-style: none; display: grid; gap: 18px; margin-top: 24px; }
.trust-points li { display: flex; gap: 15px; align-items: flex-start; }
.trust-points .tp-ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--red-soft); display: grid; place-items: center;
}
.trust-points .tp-ico svg { width: 21px; height: 21px; fill: var(--red); }
.trust-points strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; }
.trust-points span { font-size: .93rem; }

/* ---------------- Responsive ---------------- */
/* Very wide screens get a third form column — the card is edge-to-edge wide. */
@media (min-width: 1500px) {
  .confirm-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .pay-layout, .confirm-layout { grid-template-columns: minmax(0, 1fr); }
  .pay-rail, .confirm-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  /* UPI apps and offline options stack instead of squeezing six labels */
  .pay-via { grid-template-columns: minmax(0, 1fr); }
  .pay-via-group + .pay-via-group { border-left: 0; border-top: 1px dashed var(--line); padding-top: 20px; }
}
@media (max-width: 980px) {
  .donate-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .dh-card { justify-self: center; transform: none; }
  .trust-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .pay-methods { grid-template-columns: minmax(0, 1fr); }
  .pay-box, .pay-box.flip { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .pay-rail, .confirm-aside, .impact-grid { grid-template-columns: minmax(0, 1fr); }
  .dh-trust { gap: 16px 26px; }
  .form-foot .btn { width: 100%; }
}
@media (max-width: 560px) {
  .pay-via-list.upi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-btn { font-size: .84rem; }
}

/* ============================================================
   GALLERY
   ============================================================ */
/* Masonry: the column count follows the viewport, so a wide screen simply
   shows more photos per row instead of stretching four of them. */
.gallery-grid { columns: 260px; column-gap: clamp(10px, 1.1vw, 18px); }
.gallery-item {
  display: block; margin-bottom: clamp(10px, 1.1vw, 18px); border-radius: 14px; overflow: hidden;
  position: relative; box-shadow: var(--shadow); break-inside: avoid; cursor: zoom-in;
}
.gallery-item img { width: 100%; transition: transform .4s ease; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(91,58,58,.45), transparent 45%);
  opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 12, 12, .93);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1200px); max-height: 86vh;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: fade-up .25s ease;
}
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.lb-btn:hover { background: var(--red); transform: scale(1.08); }
.lb-btn svg { width: 26px; height: 26px; fill: #fff; }
.lb-prev { left: max(16px, 3vw); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(16px, 3vw); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-close { top: 20px; right: 20px; }
.lb-counter {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-family: var(--font-display); font-weight: 700;
  background: rgba(255,255,255,.12); padding: 6px 20px; border-radius: 999px; font-size: .95rem;
}

/* Video gallery */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.video-card { cursor: pointer; }
.video-thumb { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(42,30,30,.28); transition: background .2s ease;
}
.video-card:hover .play-btn { background: rgba(214,32,42,.35); }
.play-btn span {
  width: 64px; height: 64px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.video-card:hover .play-btn span { transform: scale(1.12); }
.play-btn svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-card h3 { font-size: 1.08rem; margin-top: 14px; }
.video-card p { font-size: .88rem; }

.video-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 12, 12, .93);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal .vm-frame {
  width: min(960px, 94vw); aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  background: #000; animation: fade-up .25s ease;
}
.video-modal iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   DOCUMENTS
   ============================================================ */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 1.9vw, 30px); }
.doc-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 2vw, 34px) clamp(22px, 1.9vw, 32px);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
  border-top: 4px solid var(--red);
}
.doc-card.gold-top { border-top-color: var(--gold); }
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.doc-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft);
  display: grid; place-items: center; margin-bottom: 12px;
}
.doc-icon svg { width: 26px; height: 26px; fill: var(--red); }
.doc-card h3 { font-size: 1.1rem; }

/* ---- Document viewer modal ----
   "View" opens the certificate in place: an <img> for pictures, an <iframe>
   for PDFs, and a download card for anything a browser can't render. */
.doc-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 12, 12, .93);
  display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 2vw, 34px);
}
.doc-modal.open { display: flex; }
.dm-shell {
  width: min(1100px, 100%); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: fade-up .25s ease;
}
.dm-bar {
  flex: none; display: flex; align-items: center; gap: 16px;
  padding: 13px clamp(14px, 1.6vw, 22px);
  background: var(--maroon); color: #fff;
}
.dm-bar h3 {
  flex: 1; min-width: 0; color: #fff; font-size: 1.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.dm-act {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .14); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  padding: 8px 15px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.dm-act:hover { background: var(--red); color: #fff; }
.dm-act svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.dm-close { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }

.dm-body { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; background: var(--ink); }
.dm-body.is-pdf { background: #3B2B2B; align-items: stretch; }
.dm-body.is-pdf iframe { width: 100%; height: min(78vh, 900px); border: 0; display: block; background: #fff; }
.dm-body.is-image { padding: clamp(14px, 2vw, 26px); }
.dm-body.is-image img {
  max-width: 100%; max-height: 74vh; width: auto;
  border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.dm-body.is-other { background: var(--cream); }
.dm-fallback { text-align: center; padding: clamp(34px, 5vw, 64px) 24px; }
.dm-fallback .dm-ico {
  width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 18px;
  background: var(--red-soft); display: grid; place-items: center;
}
.dm-fallback .dm-ico svg { width: 32px; height: 32px; fill: var(--red); }
.dm-fallback h4 { font-family: var(--font-display); font-size: 1.18rem; color: var(--ink); margin-bottom: 8px; }
.dm-fallback p { font-size: .95rem; max-width: 44ch; margin: 0 auto 22px; }
.dm-fallback .dm-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 680px) {
  .dm-act span { display: none; }
  .dm-act { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .dm-body.is-pdf iframe { height: 70vh; }
}
.doc-card p { font-size: .88rem; flex: 1; }
.doc-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.doc-actions .btn { padding: 9px 20px; font-size: .88rem; }

@media (max-width: 940px) {
  .video-grid, .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (max-width: 680px) {
  .video-grid, .doc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { columns: 150px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
}

/* ---- Long-string overflow safety (emails, CIN, UPI, UTR) ---- */
.reg-table td, .contact-line div, .footer-contact p, .footer-contact a,
.upi-id-box code, .qr-card small, .up-name { overflow-wrap: anywhere; }
.reg-table { display: block; overflow-x: auto; }
.reg-table thead, .reg-table tbody { display: table; width: 100%; }
/* admin-authored tables can be any width — let them scroll, not overflow */
.cms-content table { display: block; overflow-x: auto; }
.cms-content table thead, .cms-content table tbody { display: table; width: 100%; }

/* ============================================================
   NAV DROPDOWNS
   ============================================================ */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  color: var(--ink); padding: 10px 13px; border-radius: 999px;
  background: none; border: 0; cursor: pointer;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.sub-toggle .sub-caret { width: 16px; height: 16px; fill: currentColor; transition: transform .2s ease; }
.sub-toggle:hover { color: var(--red); background: var(--red-soft); }
.sub-toggle.active { color: #fff; background: var(--red); }
/* leading item icons: mobile drawer only */
.nav-ico { display: none; flex: none; width: 22px; height: 22px; }
.sub-menu {
  list-style: none; min-width: 220px; max-width: min(280px, calc(100vw - 32px));
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 10px; z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* invisible bridge so moving the cursor into the menu keeps hover */
.sub-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
}
.sub-menu a { display: block; border-radius: 10px; padding: 10px 14px !important; white-space: nowrap; }
/* keep dropdowns near the right edge from overflowing the viewport */
.main-nav > ul > .has-sub:nth-last-child(-n+2) .sub-menu { left: auto; right: 0; }
@media (min-width: 1121px) {
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu {
    opacity: 1; visibility: visible; transform: none;
  }
  .has-sub:hover .sub-toggle .sub-caret, .has-sub.open .sub-toggle .sub-caret { transform: rotate(180deg); }
}
@media (max-width: 1120px) {
  .has-sub { width: 100%; }
  .sub-toggle { justify-content: flex-start; }
  .sub-toggle.active { color: var(--ink); background: none; }
  /* hide the desktop caret; use a flat +/- indicator instead */
  .sub-toggle .sub-caret { display: none; }
  .sub-toggle::after {
    content: ""; flex: none; width: 16px; height: 16px; margin-left: auto;
    background-image: linear-gradient(var(--red), var(--red)),
                      linear-gradient(var(--red), var(--red));
    background-size: 16px 2.5px, 2.5px 16px;   /* horizontal + vertical bar = plus */
    background-position: center, center;
    background-repeat: no-repeat;
    transition: background-size .25s ease;
  }
  .has-sub.open .sub-toggle::after { background-size: 16px 2.5px, 0 0; }   /* minus */
  /* submenu: smooth accordion expand, indented with a left accent */
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: var(--sand); border-radius: 0;
    border-left: 3px solid var(--red);
    overflow: hidden; max-height: 0; padding: 0 8px 0 14px; margin: 0;
    transition: max-height .32s ease, padding .32s ease;
  }
  .has-sub.open .sub-menu { max-height: 460px; padding: 4px 8px 8px 14px; }
  .sub-menu a {
    display: flex; align-items: center; gap: 12px;
    font-size: 1rem !important; padding: 13px 8px !important;
    border-bottom: 0; color: var(--ink);
  }
  .sub-menu .nav-ico { width: 19px; height: 19px; opacity: .85; }
  .sub-menu a:active { color: var(--red); }
  .sub-menu a:active .nav-ico { opacity: 1; }
}

/* ============================================================
   CASE DETAILS
   ============================================================ */
/* Story pages keep a maximum so the prose never runs the full width of a
   large monitor; everything around them still spans the page. */
.cd-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 400px);
  gap: clamp(32px, 3.2vw, 60px); align-items: start;
  max-width: 1560px; margin-inline: auto;
}
.cd-main { min-width: 0; }
.cd-cover {
  width: 100%; max-width: 780px;          /* never crop poster artwork */
  border-radius: 22px; box-shadow: var(--shadow-lg);
}
.cd-location { font-size: .92rem; font-weight: 700; color: var(--maroon); margin-bottom: 18px; }
.cd-para { margin-bottom: 16px; }
.cd-breakdown { list-style: none; display: grid; gap: 12px; }
.cd-breakdown li {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
}
.cd-breakdown strong {
  font-family: var(--font-display); color: var(--red); font-size: 1.05rem;
  min-width: 90px; flex: none;
}
.cd-breakdown span { font-size: .95rem; }
.cd-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); margin-top: 30px; }
.cd-gallery img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

.cd-side { position: sticky; top: 150px; display: grid; gap: 20px; }
.sidebar-card {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 30px 28px; border-top: 5px solid var(--red);
}
.sidebar-card.mini { border-top-color: var(--gold); padding: 22px 24px; }
.sidebar-card.mini h4 { margin-bottom: 6px; }
.sidebar-card.mini p { font-size: .92rem; }
.cd-raised { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--red); line-height: 1.1; }
.cd-goal { font-size: .92rem; color: var(--body); }
.cd-note { font-size: .84rem; margin-top: 14px; color: var(--body); }

.share-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.share-row > span { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--ink); }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sand); display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.share-btn svg { width: 19px; height: 19px; fill: var(--maroon); transition: fill .15s ease; }
.share-btn:hover { background: var(--red); transform: translateY(-2px); }
.share-btn:hover svg { fill: #fff; }
.share-btn.copied { background: #2E7D32; }
.share-btn.copied svg { fill: #fff; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-card .card-img { aspect-ratio: 16/10; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.blog-date { font-size: .82rem; font-weight: 700; color: var(--body); }

.article { max-width: var(--measure); margin: 34px auto 0; }
.article p { margin-bottom: 18px; font-size: 1.05rem; }
.article h3 {
  margin: 34px 0 14px; font-size: 1.45rem; position: relative; padding-left: 46px;
}
.article h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 16px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 28'%3E%3Cpath d='M0 14h18l6-9 8 18 6-13 4 4h26' fill='none' stroke='%23D6202A' stroke-width='3'/%3E%3C/svg%3E");
}
.article a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-share { max-width: 760px; margin: 34px auto 0; padding-top: 24px; border-top: 1px dashed var(--line); }
.bd-hero-meta { color: #F3DBDB; font-size: .95rem; margin-top: 16px; }

/* ---- Blog details: two-column layout + sidebar ---- */
.bd-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(290px, 24vw, 370px);
  gap: clamp(32px, 3.4vw, 64px); align-items: start;
  max-width: 1480px; margin-inline: auto;
}
.bd-main .cd-cover { margin-bottom: 6px; }
.bd-main { min-width: 0; }
.bd-main .article,
.bd-main .article-share { max-width: var(--measure); margin-left: 0; margin-right: 0; }

.bd-aside { position: sticky; top: 138px; display: grid; gap: 22px; }
.bd-widget {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 24px 22px;
}
.bd-widget-title {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink);
  margin-bottom: 16px; padding-bottom: 12px; position: relative;
  border-bottom: 1px solid var(--line);
}
.bd-widget-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 46px; height: 3px; background: var(--red); border-radius: 3px;
}

/* category list */
.bd-cat-list { list-style: none; display: grid; gap: 8px; }
.bd-cat-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 12px; background: var(--sand);
  color: var(--maroon); font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  transition: background .18s ease, color .18s ease;
}
.bd-cat-list a em {
  font-style: normal; font-size: .78rem; font-weight: 800;
  min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--red);
}
.bd-cat-list a:hover { background: var(--red-soft); color: var(--red); }
.bd-cat-list li.is-active a { background: var(--red); color: #fff; }
.bd-cat-list li.is-active a em { background: rgba(255, 255, 255, .22); color: #fff; }

/* tag chips */
.bd-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.bd-tag {
  font-size: .85rem; font-weight: 700; color: var(--maroon);
  background: var(--sand); padding: 7px 13px; border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.bd-tag:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* recent stories */
.bd-recent { list-style: none; display: grid; gap: 14px; }
.bd-recent a { display: flex; gap: 13px; align-items: center; color: var(--ink); }
.bd-recent img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: var(--shadow); }
.bd-recent span { font-family: var(--font-display); font-weight: 600; font-size: .92rem; line-height: 1.35; }
.bd-recent em { display: block; font-style: normal; font-weight: 600; font-size: .78rem; color: var(--body); margin-top: 4px; }
.bd-recent a:hover span { color: var(--red); }

/* sidebar CTA */
.bd-cta {
  border: 0; text-align: center; color: #fff;
  background:
    radial-gradient(520px 260px at 100% 0, rgba(232, 163, 61, .28), transparent 60%),
    var(--red);
}
.bd-cta h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.bd-cta p { font-size: .92rem; color: #FBE9EA; margin-bottom: 16px; }
.bd-cta .btn-donate { background: #fff; color: var(--red); box-shadow: none; }
.bd-cta .btn-donate:hover { background: var(--gold-soft); color: var(--red-dark); }

.blogs-filter-note {
  text-align: center; margin: -18px auto 30px; padding: 10px 18px;
  background: var(--red-soft); color: var(--maroon); border-radius: 999px;
  width: fit-content; font-weight: 600; font-size: .95rem;
}
.blogs-filter-note strong { color: var(--red); }

@media (max-width: 980px) {
  .bd-layout { grid-template-columns: 1fr; gap: 36px; }
  .bd-aside { position: static; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team-card { text-align: center; padding: 38px 26px 32px; border-top: 4px solid var(--red); }
.team-card .vol-avatar { width: 104px; height: 104px; font-size: 1.9rem; }
.team-bio { font-size: .92rem; margin-top: 12px; }
.team-quote {
  max-width: 700px; margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--maroon); line-height: 1.5;
}
.team-quote::before { content: "\201C"; color: var(--red); font-size: 2.4rem; line-height: 0; vertical-align: -12px; margin-right: 6px; }

@media (max-width: 980px) {
  .cd-layout { grid-template-columns: 1fr; }
  .cd-side { position: static; }
}
@media (max-width: 560px) {
  .cd-gallery { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   FLOATING CONTACT DOCK (WhatsApp + Call)
   ============================================================ */
.float-dock {
  position: fixed;
  right: 20px;
  bottom: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 56px;
  width: 56px;
  padding: 0;
  border-radius: 999px;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(42, 30, 30, .22);
  overflow: hidden;
  transition: width .32s cubic-bezier(.22, 1, .36, 1),
              transform .25s ease,
              box-shadow .25s ease;
  will-change: width;
}
.float-btn--wa   { background: linear-gradient(140deg, #34D26F 0%, #1EA94F 100%); }
.float-btn--call { background: linear-gradient(140deg, var(--red) 0%, var(--red-dark) 100%); }

.float-btn-ico {
  position: absolute;
  right: 0; top: 0;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  flex: none;
}
.float-btn-ico svg { width: 26px; height: 26px; fill: currentColor; }
.float-btn--call .float-btn-ico svg { width: 25px; height: 25px; }

.float-btn-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  padding-left: 22px;
  padding-right: 56px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s ease .06s, transform .28s cubic-bezier(.22, 1, .36, 1);
}

/* Expand into a pill on hover / keyboard focus */
.float-btn:hover,
.float-btn:focus-visible {
  width: var(--float-w, 190px);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(42, 30, 30, .3);
}
.float-btn:hover .float-btn-text,
.float-btn:focus-visible .float-btn-text {
  opacity: 1;
  transform: translateX(0);
}
.float-btn--wa   { --float-w: 186px; }
.float-btn--call { --float-w: 206px; }

.float-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.float-btn:active { transform: translateY(0); }

/* Soft attention pulse on the WhatsApp button */
.float-btn--wa::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 2px solid rgba(52, 210, 111, .55);
  animation: floatPulse 2.6s ease-out infinite;
  pointer-events: none;
}
.float-btn--wa:hover::after { animation-play-state: paused; opacity: 0; }

@keyframes floatPulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Stay out of the way of the mobile nav drawer
   (the lightbox / video modal sit at z-index 300 and cover it already) */
body.nav-open .float-dock { opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  .float-dock { right: 14px; bottom: 16px; gap: 12px; }
  .float-btn { height: 52px; width: 52px; }
  .float-btn-ico { width: 52px; height: 52px; }
  .float-btn--wa::after { width: 52px; height: 52px; }
  .float-btn-text { display: none; }
  .float-btn:hover, .float-btn:focus-visible { width: 52px; }
}

/* ============================================================
   CUSTOM PAGES (admin-authored: Terms, Privacy, Refund, ...)
   Two layouts, chosen per page in /admin/pages:
     .cms-layout.full      -> one centred column
     .cms-layout.with-rail -> sticky heading rail on the LEFT + content
   ============================================================ */
.cms-layout {
  display: grid; align-items: start; gap: clamp(28px, 3.2vw, 60px);
  max-width: 1320px; margin-inline: auto;
}
.cms-layout.full { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.cms-layout.with-rail { grid-template-columns: clamp(250px, 22vw, 330px) minmax(0, 1fr); }

/* ---- left rail ---- */
.cms-rail { position: sticky; top: 138px; display: grid; gap: 20px; }
.cms-rail-box {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 22px 22px 24px;
}
.cms-rail-title {
  font-family: var(--font-display); font-size: 1.08rem; color: var(--ink);
  margin-bottom: 14px; padding-bottom: 11px; position: relative;
  border-bottom: 1px solid var(--line);
}
.cms-rail-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 46px; height: 3px; background: var(--red); border-radius: 3px;
}
.cms-toc, .cms-rail-links { list-style: none; display: grid; gap: 2px; }
.cms-toc a, .cms-rail-links a {
  display: block; padding: 8px 12px 8px 14px; border-radius: 10px;
  font-size: .94rem; line-height: 1.45; color: var(--body); font-weight: 600;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cms-toc a:hover, .cms-rail-links a:hover {
  background: var(--red-soft); color: var(--red); border-left-color: var(--red);
}
.cms-toc a.is-current {
  background: var(--red-soft); color: var(--red); border-left-color: var(--red);
}
.cms-rail-links a::before { content: "\203A"; margin-right: 8px; color: var(--gold); font-weight: 800; }

/* ---- article body ---- */
.cms-article {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: clamp(30px, 3vw, 52px) clamp(26px, 3.2vw, 56px) clamp(28px, 2.6vw, 44px);
}
.cms-content > *:first-child { margin-top: 0; }
.cms-content p { margin-bottom: 18px; font-size: 1.04rem; }
.cms-content .lead {
  font-size: 1.14rem; color: var(--ink); font-weight: 600;
  border-left: 4px solid var(--red); background: var(--red-soft);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin-bottom: 26px;
}
.cms-content h2 {
  /* the sticky header must not cover a heading jumped to from the rail */
  scroll-margin-top: 120px;
  margin: 40px 0 16px; font-size: 1.55rem; position: relative; padding-left: 46px;
}
.cms-content h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 16px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 28'%3E%3Cpath d='M0 14h18l6-9 8 18 6-13 4 4h26' fill='none' stroke='%23D6202A' stroke-width='3'/%3E%3C/svg%3E");
}
.cms-content h3 { margin: 28px 0 10px; font-size: 1.2rem; color: var(--maroon); }
.cms-content ul, .cms-content ol { margin: 0 0 20px 22px; display: grid; gap: 9px; }
.cms-content li { font-size: 1.02rem; }
.cms-content ul { list-style: none; margin-left: 0; }
.cms-content ul > li { position: relative; padding-left: 28px; }
.cms-content ul > li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.cms-content ol { padding-left: 4px; }
.cms-content a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cms-content blockquote {
  margin: 0 0 22px; padding: 16px 22px; background: var(--sand);
  border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0;
}
.cms-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: .98rem; }
.cms-content th, .cms-content td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.cms-content th { background: var(--sand); font-family: var(--font-display); color: var(--ink); }
.cms-content img { border-radius: 14px; margin: 6px 0 22px; }
.cms-content hr { border: 0; border-top: 1px dashed var(--line); margin: 32px 0; }

.cms-updated {
  margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: .88rem; color: var(--body);
}

@media (max-width: 980px) {
  .cms-layout.with-rail { grid-template-columns: 1fr; gap: 28px; }
  .cms-rail { position: static; }
  .cms-article { padding: 32px 26px 28px; }
}
@media (max-width: 560px) {
  .cms-article { padding: 26px 20px 24px; border-radius: 16px; }
  .cms-content h2 { font-size: 1.32rem; padding-left: 0; }
  .cms-content h2::before { display: none; }
}

/* ============================================================
   FAQ PAGE  (/faqs)
   ------------------------------------------------------------
   A sticky left rail (search + topic chips) beside a grouped
   accordion. Distinct from the legacy .faq-item block further
   up, which the Cases page still uses: that one caps answers at
   a fixed max-height, and these answers are admin-authored HTML
   of any length, so the panel animates on grid-template-rows
   instead (0fr -> 1fr) and cannot clip.
   ============================================================ */
.faq-board {
  display: grid; align-items: start;
  grid-template-columns: clamp(260px, 23vw, 340px) minmax(0, 1fr);
  gap: clamp(26px, 3.2vw, 56px);
  max-width: 1320px; margin-inline: auto;
}

/* ---- left rail ---- */
/* Sticky on the grid item itself: its containing block is the whole board, so it can
   travel the full length of the list. On the inner wrapper it had nowhere to go. */
.faq-rail { position: sticky; top: 138px; }
.faq-rail-inner { display: grid; gap: 18px; }

.faq-search { position: relative; }
.faq-search > svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; fill: var(--maroon); opacity: .55; pointer-events: none;
}
.faq-search input {
  width: 100%; font-family: var(--font-body); font-size: .97rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 14px 44px 14px 45px; box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-search input::placeholder { color: #A5948A; }
.faq-search input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.faq-search-clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--sand); display: grid; place-items: center;
  transition: background .15s ease;
}
.faq-search-clear[hidden] { display: none; }
@media (hover: hover) {
  .faq-search-clear:hover { background: var(--red-soft); }
}
.faq-search-clear svg { width: 15px; height: 15px; fill: var(--maroon); }

/* ---- topic chips ---- */
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .89rem;
  color: var(--maroon); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 13px; line-height: 1.2; text-align: left;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.faq-chip span {
  font-size: .76rem; font-weight: 800; min-width: 20px; padding: 1px 6px;
  border-radius: 999px; background: var(--sand); color: var(--maroon);
}
@media (hover: hover) {
  .faq-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
  .faq-chip.is-on:hover { color: #fff; }
}
.faq-chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.faq-chip.is-on span { background: rgba(255, 255, 255, .24); color: #fff; }
/* Hidden rather than disabled: a topic with no match during a search just steps aside. */
.faq-chip[hidden] { display: none; }

/* ---- rail help box ---- */
.faq-rail-help {
  background: var(--sand); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 20px 22px;
}
.faq-rail-help h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.faq-rail-help p { font-size: .92rem; margin: 6px 0 14px; }
.faq-rail-call {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--maroon);
}
.faq-rail-call svg { width: 17px; height: 17px; fill: var(--red); }
.faq-rail-call:hover { color: var(--red); }

.btn-sm { font-size: .92rem; padding: 10px 22px; }

/* ---- the accordion ---- */
.faq-list { display: grid; gap: clamp(26px, 2.6vw, 42px); }
.faq-group { display: grid; gap: 12px; scroll-margin-top: 140px; }
.faq-group[hidden] { display: none; }

.faq-group-title {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  color: var(--ink); margin-bottom: 2px;
}
.faq-group-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--red); box-shadow: 0 0 0 5px var(--red-soft);
}

.faq-row {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 6px 18px rgba(91, 58, 58, .07);
  scroll-margin-top: 140px;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.faq-row[hidden] { display: none; }
@media (hover: hover) {
  .faq-row:hover { border-color: #E3CDBA; box-shadow: var(--shadow); }
  .faq-trigger:hover { color: var(--red); }
}
.faq-row.is-open { border-color: var(--red); box-shadow: 0 12px 30px rgba(214, 32, 42, .13); }

/* Deep-linked answer gets a moment of gold so the reader sees where they landed. */
.faq-row:target { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.faq-row-q { margin: 0; }
.faq-trigger {
  width: 100%; display: flex; align-items: flex-start; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 19px 20px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.1vw, 1.07rem); line-height: 1.45; color: var(--ink);
  transition: color .18s ease;
}
.faq-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-trigger-text { flex: 1; }
.faq-trigger-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red-soft); display: grid; place-items: center; margin-top: 1px;
  transition: background .22s ease, transform .28s ease;
}
.faq-trigger-icon svg { width: 17px; height: 17px; fill: var(--red); }
.faq-row.is-open .faq-trigger-icon { background: var(--red); transform: rotate(135deg); }
.faq-row.is-open .faq-trigger-icon svg { fill: #fff; }
.faq-row.is-open .faq-trigger { color: var(--red); }

/* 0fr -> 1fr animates a panel of any height without measuring it in JS. */
.faq-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-row.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; min-height: 0; }
.faq-panel-inner > :first-child { margin-top: 0; }

.faq-row.is-open .faq-panel-inner { padding: 0 20px 20px; }
.faq-panel-inner p { font-size: .98rem; margin-bottom: 13px; }
.faq-panel-inner p:last-of-type { margin-bottom: 0; }
.faq-panel-inner strong { color: var(--ink); }
.faq-panel-inner a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-panel-inner ul, .faq-panel-inner ol { margin: 0 0 13px; padding-left: 20px; }
.faq-panel-inner li { font-size: .98rem; margin-bottom: 6px; }

.faq-panel-inner .faq-permalink {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 15px;
  font-size: .8rem; font-weight: 700; color: var(--maroon); opacity: .6;
  text-decoration: none; transition: opacity .15s ease, color .15s ease;
}
.faq-panel-inner .faq-permalink svg { width: 14px; height: 14px; fill: currentColor; }
.faq-panel-inner .faq-permalink:hover { opacity: 1; color: var(--red); }

/* ---- empty / no-result states ---- */
.faq-noresults {
  background: #fff; border: 1px dashed var(--line); border-radius: 16px;
  padding: 26px 24px; text-align: center; font-size: .98rem;
}
.faq-noresults strong { color: var(--red); }
.faq-noresults a { color: var(--red); font-weight: 700; text-decoration: underline; }

.faq-empty {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: clamp(36px, 5vw, 58px);
  text-align: center; max-width: 620px; margin-inline: auto;
}
.faq-empty svg { width: 54px; height: 54px; fill: var(--red); opacity: .35; }
.faq-empty h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin: 14px 0 8px; }
.faq-empty a { color: var(--red); font-weight: 700; text-decoration: underline; }

/* Two buttons in the closing strip; the shared rule pins one, this keeps them together. */
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .faq-board { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .faq-rail { position: static; }
  .faq-rail-help { display: none; }   /* the closing CTA strip already carries this */
}
@media (max-width: 680px) {
  /* Chips become a single swipeable row so they never eat half the screen. */
  .faq-chips {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .faq-chips::-webkit-scrollbar { display: none; }
  .faq-chip { flex: none; }
  .faq-trigger { padding: 16px 16px; gap: 12px; }
  .faq-row.is-open .faq-panel-inner { padding: 0 16px 17px; }
  .cta-strip-actions .btn { flex: 1 1 200px; }
}
