/* =========================================================
   Arpan Mitra Sangam — landing page
   Design tokens extracted from the reference sample
   ========================================================= */
:root {
  --red: #d63f34;
  --red-dark: #b8322a;
  --red-soft: #fbe9e7;
  --navy: #252c3e;
  --navy-2: #1d2333;
  --ink: #1f2433;
  --text: #5b6170;
  --soft: #f6f6f6;
  --white: #fff;
  --lime: #f8fbf0;
  --lime-btn: #d9f26a;
  --line: #e7e7ea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 36, 51, .08);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.bg-soft { background: var(--soft); }
.lead { margin-top: 16px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
  font-family: inherit;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; padding: 14px; }
.arrow {
  width: 30px; height: 30px; border-radius: 6px; background: #fff;
  display: inline-grid; place-items: center; flex: none;
}
.arrow::before {
  content: ""; width: 9px; height: 9px;
  border-top: 2px solid var(--red); border-right: 2px solid var(--red);
  transform: translate(-1px, 1px);
}
.arrow::after {
  content: ""; position: absolute; width: 12px; height: 2px; background: var(--red);
  transform: rotate(-45deg) translate(-1px, 1px);
}
.arrow { position: relative; }
.arrow.dark { background: transparent; width: 14px; height: 14px; }
.arrow.dark::before { border-color: var(--ink); width: 7px; height: 7px; }
.arrow.dark::after { background: var(--ink); width: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(214,63,52,.7); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px rgba(214,63,52,.55), 0 0 0 0 rgba(214,63,52,.5); }
  50% { opacity: .25; box-shadow: 0 0 0 0 rgba(214,63,52,0), 0 0 0 7px rgba(214,63,52,0); }
}
.chip-glass { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(8px); }
.chip-glass::before { display: none; }
.chip-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }

.avatars { display: inline-flex; }
.avatars b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; background: #fff; border: 2px solid #fff; margin-left: -8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.avatars b:first-child { margin-left: 0; }
.avatars b:nth-child(2) { background: #ffe9c7; }
.avatars b:nth-child(3) { background: #ffd9d5; }
.avatars b:nth-child(4) { background: #d8f0ef; }
.avatars.big b { width: 40px; height: 40px; font-size: 18px; border-color: var(--navy); }
.avatars.sm b { width: 24px; height: 24px; font-size: 11px; }

.icon-circle {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--red); display: grid; place-items: center;
}
.icon-circle svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stars { color: #f5b301; letter-spacing: 2px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 14px; }
.more.light { color: #fff; }
.more.light .arrow { background: transparent; width: 14px; height: 14px; }
.more.light .arrow::before { border-color: #fff; width: 7px; height: 7px; }
.more.light .arrow::after { background: #fff; width: 10px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 16px; text-align: center; flex-wrap: wrap;
}
.topbar-btn { background: var(--lime-btn); padding: 4px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 760px; color: #fff;
  display: flex; flex-direction: column;
  margin: 0 16px; border-radius: 0 0 24px 24px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hero-shade { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(20,22,30,.78) 0%, rgba(20,22,30,.35) 55%, rgba(20,22,30,.15) 100%), linear-gradient(0deg, rgba(20,22,30,.55), transparent 50%); }
/* home hero photo: darker on the left (text) and bottom (heading + Est. block), photo stays visible in the middle */
.hero:not(.page-hero) .hero-shade { background:
  linear-gradient(90deg, rgba(20,22,30,.86) 0%, rgba(20,22,30,.62) 38%, rgba(20,22,30,.22) 68%, rgba(20,22,30,.42) 100%),
  linear-gradient(0deg, rgba(20,22,30,.72) 0%, rgba(20,22,30,.18) 42%, transparent 65%); }
.hero:not(.page-hero) .hero-inner { text-shadow: 0 2px 14px rgba(0,0,0,.45); }

.nav {
  position: relative; z-index: 10; margin-top: 22px;
  background: #fff; border-radius: 12px; padding: 10px 10px 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: var(--shadow); max-width: calc(var(--container) - 48px);
}
/* sticky header (toggled by main.js once the bar scrolls out of view) */
.nav-spacer { display: none; }
.nav-spacer.on { display: block; }
.nav.is-fixed {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 100;
  margin: 0 auto; width: calc(100% - 32px);
  box-shadow: 0 12px 34px rgba(20, 22, 30, .18);
  animation: navDrop .35s ease;
}
@keyframes navDrop { from { transform: translateY(-120%); } to { transform: none; } }
html { scroll-padding-top: 110px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.brand.light { color: #fff; }
.brand-logo { height: 52px; width: auto; flex: none; }
.brand.light .brand-logo { height: 76px; background: #fff; border-radius: 14px; padding: 8px 10px; box-sizing: content-box; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 80px; padding-top: 80px; }
.hero-left { max-width: 600px; }
.hero-sub { max-width: 380px; font-size: 14px; color: rgba(255,255,255,.88); margin-bottom: 120px; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.hl { color: #ffb4ad; }
.hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 60px; }
.hero-stat { text-align: left; max-width: 260px; }
.hero-stat strong { display: block; font-size: 28px; color: #fff; }
.hero-stat span { font-size: 14px; color: rgba(255,255,255,.9); }
.hero-stat small { opacity: .75; font-size: 12px; }

.spin-badge { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.spin-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.spin-text text { fill: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: 2.2px; }
.spin-badge .play { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .25s; }
.spin-badge .play svg { width: 30px; height: auto; display: block; }
.spin-badge:hover .play { transform: scale(1.12); }
.spin-badge.red { background: var(--red); border-radius: 50%; margin: 36px auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.collage { position: relative; height: 560px; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid var(--soft); }
.collage .c1 { right: 0; top: 0; width: 46%; height: 42%; }
.collage .c2 { left: 6%; top: 14%; width: 62%; height: 62%; z-index: 1; }
.collage .c3 { left: 0; bottom: 0; width: 40%; height: 46%; z-index: 2; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 26px; margin: 30px 0; box-shadow: var(--shadow); }
.feature { display: flex; gap: 16px; }
.feature p { font-size: 14px; margin-top: 6px; }
.feature-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.about-foot { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.person { display: flex; align-items: center; gap: 12px; }
.person strong { display: block; color: var(--ink); font-size: 14px; }
.person small { font-size: 12px; }
.person-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 700; }

/* ---------- section heads ---------- */
.section-head { margin-bottom: 56px; }
.section-head.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; }
.section-head.split p { margin-bottom: 18px; }
.section-head.center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.section-head.center p { margin-top: 14px; }

.hands { position: absolute; width: 120px; color: #cfd1d6; top: 0; pointer-events: none; }
.hands-right { right: 24px; }
.hands-left { left: 24px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; }
.service { padding: 28px 30px; }
.service:nth-child(1), .service:nth-child(2) { border-bottom: 1px solid var(--line); }
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service h3 { margin: 18px 0 8px; font-size: 17px; }
.service p { font-size: 14px; }
.trust-card {
  background: var(--navy); border-radius: var(--radius); color: #fff;
  text-align: center; padding: 34px 28px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden;
}
.trust-card h3 { color: #fff; font-size: 20px; max-width: 240px; }
.trust-hands { width: 100%; margin-top: auto; }
.cta-line { text-align: center; margin-top: 50px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--ink); }
.cta-line a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.why-media { position: relative; height: 600px; }
.why-media .w1 { width: 78%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.why-media .w2 { position: absolute; right: 0; bottom: 70px; width: 40%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 5px solid var(--soft); }
.volunteer-chip { position: absolute; left: -20px; top: 40px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); color: var(--ink); font-size: 14px; }
.volunteer-chip strong { font-size: 18px; }
.volunteer-chip .avatars { display: flex; margin-top: 8px; }
.track-card { background: #fff; border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: center; margin: 30px 0; box-shadow: var(--shadow); }
.track-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.checks li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.checks li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; flex: none; }

/* ---------- story banner ---------- */
.story { position: relative; min-height: 680px; display: flex; align-items: flex-start; overflow: hidden; margin: 0 16px; border-radius: 24px; }
.story-bg, .vision-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vision-bg { object-position: center 72%; }
.story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,30,.65), rgba(20,22,30,.25) 60%, rgba(20,22,30,.5)); }
.story-inner { position: relative; text-align: center; color: #fff; padding-top: 90px; padding-bottom: 90px; max-width: 720px; }
.story h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.story p { margin-top: 16px; color: rgba(255,255,255,.88); }

/* ---------- causes / blog cards ---------- */
.cause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cause { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; display: block; color: #fff; }
.cause img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cause::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, transparent 30%, rgba(15,17,25,.85) 100%); }
.cause:hover img { transform: scale(1.06); }
.cause .tag { position: absolute; top: 18px; left: 18px; z-index: 2; font-size: 12px; font-weight: 600; }
.cause-body { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.cause-body h3 { color: #fff; font-size: 19px; }
.blog .cause { aspect-ratio: 4 / 4; }
.blog-date { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.blog-date svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.meta { font-size: 12px; display: inline-block; margin-bottom: 10px; }
.meta.light { color: rgba(255,255,255,.85); }

/* ---------- highlights & stats ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.hl-item { display: flex; gap: 16px; }
.hl-item p { font-size: 14px; margin-top: 6px; }
.stats-panel {
  background: var(--navy) radial-gradient(circle at 80% 0%, rgba(255,255,255,.06), transparent 50%);
  border-radius: 20px; padding: 56px 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; color: rgba(255,255,255,.75);
  position: relative;
}
.stats-panel::before { content: ""; position: absolute; inset: -14px; border-radius: 26px; background: #eceef3; z-index: -1; }
.stat strong { display: block; font-size: clamp(34px, 4vw, 48px); color: #fff; font-weight: 600; margin: 26px 0 10px; letter-spacing: -.03em; }
.stat h4 { color: #fff; margin-bottom: 8px; }
.stat p { font-size: 14px; }

/* ---------- carousel ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carousel::-webkit-scrollbar { display: none; }
.program { background: #fff; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; box-shadow: var(--shadow); }
.program img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.program-body { padding: 22px; }
.program-body .meta { color: var(--text); }
.program-body h3 { font-size: 17px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: #d3d5da; cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.dots button.active { width: 26px; background: var(--red); }
.join-line { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink); }
.join-line small { display: block; margin-top: 6px; color: var(--text); }
.pill-red { background: var(--red); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.stars-sm { color: #f5b301; }

/* ---------- donate ---------- */
.donate { background: var(--navy) radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.07), transparent 60%); color: rgba(255,255,255,.78); padding: 110px 0; }
.donate-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.donate h2 { color: #fff; margin-bottom: 18px; }
.secure { display: flex; gap: 16px; margin: 40px 0 26px; }
.secure h4 { color: #fff; margin-bottom: 4px; }
.secure p { font-size: 14px; }
.donate-points { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: #fff; }
.donate-points span { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(214,63,52,.25); }
.donate-card { background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.donate-card-head { background: var(--soft); text-align: center; color: var(--ink); font-weight: 600; padding: 14px; font-size: 15px; }
.donate-card-body { padding: 26px; }
.muted { font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.amount-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.amount-head label { color: var(--ink); font-weight: 600; font-size: 14px; }
.currency { font-size: 12px; background: var(--soft); padding: 2px 8px; border-radius: 4px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amt { font-family: inherit; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: .2s; }
.amt:hover { border-color: var(--red); }
.amt.active { background: var(--red); color: #fff; border-color: var(--red); }
.custom-amt, .contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; outline: none; transition: border .2s;
}
.custom-amt { margin: 14px 0; text-align: center; }
.freq { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--soft); border-radius: 10px; margin-bottom: 14px; }
.freq-btn { font-family: inherit; border: 0; background: none; padding: 9px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.freq-btn.active { background: var(--red); color: #fff; }
.campaign-label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.campaign { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.custom-amt:focus, .contact-form :is(input, select, textarea):focus { border-color: var(--red); }
.secure-note { text-align: center; font-size: 12px; margin-top: 12px; color: var(--ink); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.faq-media { position: relative; }
.faq-media > img { width: 85%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.seal { position: absolute; top: 40px; right: 4%; width: 100px; height: 100px; border-radius: 50%; background: var(--red); display: grid; place-items: center; border: 4px solid var(--soft); }
.seal .spin-text text { font-size: 9px; letter-spacing: 1.8px; }
.rating-card { position: absolute; right: 0; bottom: -20px; background: var(--navy); color: rgba(255,255,255,.75); border-radius: 14px; padding: 20px 24px; width: 220px; font-size: 13px; border: 4px solid var(--soft); }
.rating-card strong { display: block; color: #fff; font-size: 24px; margin: 6px 0 4px; }
.accordion { margin-top: 30px; display: grid; gap: 12px; }
.accordion details { background: #fff; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; color: var(--ink); font-size: 15px; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 16px; line-height: 1; transition: .3s; }
.accordion details[open] summary::after { content: "−"; }
.accordion details[open] summary { border-bottom: 1px solid var(--line); }
.accordion details p { padding: 16px 20px 20px; font-size: 14px; }

/* ---------- vision ---------- */
.vision { position: relative; min-height: 560px; margin: 0 16px; border-radius: 24px; overflow: hidden; display: flex; align-items: center; }
.vision-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,30,.75), rgba(20,22,30,.3)); }
.vision-inner { position: relative; display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: end; padding-top: 60px; padding-bottom: 60px; }
.vision h2 { color: #fff; max-width: 460px; }
.quote-card { margin: 0; background: #fff; border-radius: var(--radius); padding: 32px; color: var(--ink); }
.quote-top { display: flex; justify-content: space-between; align-items: center; }
.qmark { font-size: 60px; line-height: .6; color: #d8d9de; font-family: Georgia, serif; }
.quote-card p { font-size: 17px; line-height: 1.65; margin: 24px 0 70px; font-weight: 500; }
.quote-card strong { color: var(--red); }
.quote-card footer { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.quote-card footer strong { color: var(--ink); display: block; font-size: 14px; }
.quote-card footer small { color: var(--text); font-size: 12px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list strong { display: block; color: var(--ink); font-size: 14px; }
.contact-list small { font-size: 13px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--red); }
.socials svg { width: 18px; height: 18px; fill: var(--ink); transition: .2s; }
.socials a:hover svg { fill: #fff; }
.contact-form { background: var(--soft); border-radius: 20px; padding: 34px; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--red); min-height: 1em; }
.form-note.ok { color: #1f8a4c; font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.get-in-touch button[disabled] { opacity: .7; cursor: wait; }

/* ---------- footer ---------- */
.footer { background: var(--navy) radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.05), transparent 60%); color: rgba(255,255,255,.7); padding: 70px 0 30px; margin: 0 16px 16px; border-radius: 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 40px; }
.follow { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; font-size: 14px; }
.follow a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; transition: .2s; }
.follow a:hover { background: var(--red); border-color: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer ul a::before { content: "› "; color: var(--red); }
.footer ul a:hover { color: #fff; }
.footer-grid p { font-size: 14px; }
.reg { margin-top: 12px; color: #fff; font-weight: 500; }
.footer-bottom { border-top: 1px dashed rgba(255,255,255,.15); padding-top: 26px; text-align: center; font-size: 13px; color: #fff; }

.float-donate { position: fixed; right: 22px; bottom: 22px; z-index: 50; background: var(--lime-btn); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .2s; }
.float-donate:hover { transform: translateY(-3px); }
.float-wa { position: fixed; right: 22px; bottom: 76px; z-index: 50; display: grid; place-items: center; width: 52px; height: 52px; background: #25d366; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.float-wa svg { width: 30px; height: 30px; }
.float-wa:hover { transform: translateY(-3px); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spin-text, .chip::before { animation: none; }
}

/* ---------- inner page hero ---------- */
.hero.page-hero { min-height: 400px; }
.page-hero .hero-inner { align-items: flex-end; padding-top: 70px; padding-bottom: 56px; }
.page-hero .hero-shade { background: linear-gradient(90deg, rgba(20,22,30,.8) 0%, rgba(20,22,30,.4) 55%, rgba(20,22,30,.1) 100%); }
.page-hero h1 { margin-bottom: 14px; }
.crumbs { color: #fff; font-size: 14px; margin: 0; }
.crumbs a { color: #fff; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .7; margin: 0 6px; }

/* ---------- nav dropdown ---------- */
.nav-links .has-sub { position: relative; }
.sub-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.sub-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.sub-toggle:hover, .sub-toggle.active, .has-sub:focus-within > .sub-toggle { color: var(--red); }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 18px); left: -14px; min-width: 200px; background: var(--red); border-radius: 16px; box-shadow: 0 16px 40px rgba(31,36,51,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 20; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.sub a, .nav-links .sub a { display: block; color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nav-links .sub a:hover, .nav-links .sub a.active { background: rgba(255,255,255,.16); color: #fff; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > .sub-toggle svg, .has-sub.open > .sub-toggle svg { transform: rotate(180deg); }

/* nested flyout + layout options */
.sub .sub-toggle, .sub .layout-opt { width: 100%; color: #fff; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 10px; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sub .sub-toggle:hover, .sub .layout-opt:hover, .sub .has-sub:focus-within > .sub-toggle { background: rgba(255,255,255,.16); color: #fff; }
.sub .layout-opt.on::after { content: "✓"; }
.sub .sub-toggle svg { transform: none !important; }
.sub .sub { top: -10px; left: calc(100% + 8px); background: var(--red-dark); min-width: 170px; }
.sub .sub::before { left: -12px; right: auto; top: 0; bottom: 0; width: 12px; height: auto; }

/* layout variants chosen from the Pages menu */
[data-header="dark"] .nav { background: var(--navy); }
[data-header="dark"] .nav .brand, [data-header="dark"] .nav-links > li > a, [data-header="dark"] .nav-links > li > .sub-toggle { color: #fff; }
[data-header="dark"] .nav-links > li > a:hover, [data-header="dark"] .nav-links > li > a.active, [data-header="dark"] .nav-links > li > .sub-toggle.active { color: #ff8a80; }
[data-header="dark"] .nav-toggle span { background: #fff; }
[data-footer="light"] .footer { background: var(--soft); color: var(--text); }
[data-footer="light"] .footer h5, [data-footer="light"] .footer .brand, [data-footer="light"] .follow, [data-footer="light"] .footer-bottom, [data-footer="light"] .reg { color: var(--ink); }
[data-footer="light"] .footer ul a:hover { color: var(--red); }
[data-footer="light"] .follow a { border-color: var(--line); }
[data-footer="light"] .footer-about, [data-footer="light"] .footer-bottom { border-top-color: var(--line); color: var(--text); }
[data-footer="light"] .newsletter { border-bottom-color: var(--line); }
[data-footer="light"] .newsletter input { color: var(--ink); }
[data-footer="light"] .newsletter input::placeholder { color: var(--text); }
[data-footer="light"] .form-note.light { color: var(--ink); }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.detail-main { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.detail-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.detail-main h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.detail-main h3 { font-size: 20px; color: var(--ink); margin: 28px 0 10px; }
.detail-main p { margin: 0 0 14px; }
.detail-main .checks { margin: 0 0 18px; }
.detail-main blockquote { margin: 22px 0; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 12px 12px 0; color: var(--ink); font-weight: 500; }
.post-meta { font-size: 13px; color: var(--red); font-weight: 600; margin: 0 0 8px; }
.detail-side { display: grid; gap: 20px; position: sticky; top: 20px; }
.side-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.side-card h4 { font-size: 17px; color: var(--ink); margin-bottom: 14px; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: var(--soft); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.side-links a:hover, .side-links a.on { background: var(--red); color: #fff; }
.side-card.dark { background: var(--navy); color: rgba(255,255,255,.8); }
.side-card.dark h4 { color: #fff; }
.side-card.dark p { font-size: 14px; }
.side-line { display: block; color: #fff; font-weight: 600; font-size: 14px; margin: 8px 0; overflow-wrap: anywhere; }
.side-card.dark .btn { margin-top: 14px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quotes .quote-card { margin: 0; }
.quote-card.invite footer { border-top: 0; padding-top: 0; }

/* ---------- gallery / video / 404 ---------- */
.gallery { columns: 3; column-gap: 20px; }
.shot { margin: 0 0 20px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shot img { width: 100%; display: block; transition: transform .5s; }
.shot:hover img { transform: scale(1.04); }
.gallery .shot:nth-child(3n+2) img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .shot:nth-child(3n+1) img, .gallery .shot:nth-child(3n) img { aspect-ratio: 4 / 3.4; object-fit: cover; }
.play-btn { position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .25s; }
.play-btn svg { width: 34px; }
.cause:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); }
.notfound { text-align: center; padding: 40px 0; }
.big404 { display: block; font-size: clamp(90px, 18vw, 180px); line-height: 1; color: var(--red); font-weight: 700; letter-spacing: -.04em; }
.notfound .lead { margin: 10px 0 26px; }

/* ---------- services page ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { background: #fff; border-radius: var(--radius); padding: 28px 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s; }
.svc:hover { transform: translateY(-4px); }
.svc h3 { margin: 20px 0 8px; font-size: 18px; color: var(--ink); }
.svc p { font-size: 14px; flex: 1; margin: 0 0 26px; }
.svc .more { margin-top: 0; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- contact page ---------- */
.contact { grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-photo { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 30px; aspect-ratio: 4 / 2.8; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(31,36,51,.92)); }
.contact-photo-info { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; display: flex; gap: 24px; flex-wrap: wrap; }
.contact-photo-info a { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.contact-photo-info small { display: block; font-size: 12px; opacity: .85; }
.contact-photo-info strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.get-in-touch { background: #fff; padding: 36px; }
.get-in-touch h3 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 4px; }
.get-in-touch > p:not(.form-note) { font-size: 14px; margin: 0 0 6px; }
.get-in-touch input, .get-in-touch textarea { background: var(--soft); border-color: transparent; }
.get-in-touch button { justify-self: start; border: 0; cursor: pointer; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.location { background: #fff; border-radius: var(--radius); padding: 14px 14px 22px; box-shadow: var(--shadow); }
.location iframe { width: 100%; height: 280px; border: 0; border-radius: 12px; display: block; margin-bottom: 18px; }
.location h3 { font-size: 17px; color: var(--ink); margin: 0 8px 6px; }
.location p { font-size: 14px; margin: 0 8px; }

/* ---------- approach (mission / vision / values) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--soft); border-radius: var(--radius); padding: 18px 18px 26px; }
.pillar h3 { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink); margin: 2px 0 16px; }
.pillar img { width: 100%; aspect-ratio: 4 / 2.6; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.pillar p { font-size: 14px; margin: 0 6px; }

/* ---------- footer newsletter ---------- */
.newsletter { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 8px; margin-top: 18px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; padding: 8px 0; }
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.newsletter button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--red); display: grid; place-items: center; cursor: pointer; }
.newsletter button svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-note.light { color: #fff; margin-top: 10px; }
.footer-about { border-top: 1px dashed rgba(255,255,255,.15); padding: 24px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.75); }
.footer-about .reg { display: inline; margin-left: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; }
  .services { grid-template-columns: 1fr; }
  .stats-panel { padding: 44px 32px; }
  .vision-inner { grid-template-columns: 1fr 380px; }
}
@media (max-width: 900px) {
  .section, .donate { padding: 80px 0; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow);
    padding: 8px; display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a, .sub-toggle { display: block; padding: 12px 14px; }
  .sub-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin: 4px 8px 8px; }
  .sub::before { display: none; }
  .has-sub.open > .sub { display: block; }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open:hover > .sub { display: block; }
  .sub .sub { margin: 2px 0 6px 12px; background: rgba(0,0,0,.12); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 680px; margin: 0; border-radius: 0 0 20px 20px; }
  .hero:not(.page-hero) .hero-shade { background: linear-gradient(0deg, rgba(20,22,30,.85) 0%, rgba(20,22,30,.55) 45%, rgba(20,22,30,.62) 100%); }
  .hero:not(.page-hero) .hero-bg { object-position: 58% center; }
  .nav { margin-left: 16px; margin-right: 16px; width: auto; }
  .nav.is-fixed { top: 8px; margin: 0 auto; width: calc(100% - 32px); }
  .nav.is-fixed .nav-links { max-height: calc(100vh - 110px); overflow-y: auto; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-sub { margin-bottom: 40px; }
  .hero-right { flex-direction: row; align-items: center; gap: 24px; }
  .about, .why, .faq, .donate-inner, .contact, .section-head.split { grid-template-columns: 1fr; gap: 40px; }
  .collage { height: 440px; }
  .why-media { height: 480px; }
  .volunteer-chip { left: 10px; }
  .cause-grid, .highlights { grid-template-columns: 1fr 1fr; }
  .carousel { grid-auto-columns: calc((100% - 24px) / 2); }
  .stats-panel { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vision-inner { grid-template-columns: 1fr; }
  .story, .vision, .footer { margin-left: 0; margin-right: 0; border-radius: 0; }
  .footer { margin-bottom: 0; }
  .hands { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar { font-size: 12px; }
  .brand span { font-size: 15px; }
  .brand-logo { height: 44px; }
  .hero-stat strong { font-size: 22px; }
  .spin-badge { width: 92px; height: 92px; flex: none; }
  .gallery { columns: 1; }
  .detail, .quotes { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .locations, .svc-grid, .pillars, .service-grid, .cause-grid, .highlights, .row2, .footer-grid { grid-template-columns: 1fr; }
  .service { padding: 24px 6px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .carousel { grid-auto-columns: 86%; }
  .track-card { grid-template-columns: 1fr; }
  .collage { height: 360px; }
  .why-media { height: 420px; }
  .why-media .w1 { width: 85%; }
  .rating-card { width: 190px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 22px; }
  .quote-card { padding: 24px; }
  .quote-card p { margin-bottom: 40px; }
  .float-donate { right: 14px; bottom: 14px; }
  .float-wa { right: 14px; bottom: 70px; }
}

/* inner-page header photos: favour the upper part of the photo, where faces usually are */
.page-hero .hero-bg { object-position: center 28%; }
