/* ==========================================================================
   Mumtaz Welfare Organization — Public design system
   Brand palette preserved from the original website:
   green #01923F · deep green #002E14 · mint #F0F5F2 · red #D60C0C
   ========================================================================== */

:root {
  --primary-color: #01923F;
  --primary-color-2: #018C3D;
  --secondary-color: #002E14;
  --secondary-color-2: #003517;
  --accent-color: #D60C0C;
  --accent-dark: #b30a0a;
  --background-color: #FFFFFF;
  --surface-color: #F0F5F2;
  --surface-2: #E4EEE8;
  --text-color: #4A4A4A;
  --ink: #14261C;
  --muted: #5B6B62;
  --brand-text: #007A34;
  --line: #E3EAE5;
  --white: #fff;

  --font-head: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-sm: 13px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 46, 20, .05), 0 6px 18px rgba(0, 46, 20, .06);
  --shadow-md: 0 14px 38px -10px rgba(0, 46, 20, .18);
  --shadow-lg: 0 30px 70px -24px rgba(0, 46, 20, .3);
  --container: 1200px;
  --header-h: 82px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-color);
  background: var(--background-color);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.05em; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 .55em;
  letter-spacing: -.022em;
  font-weight: 800;
}
h1 { font-size: clamp(2.35rem, 4.6vw, 3.65rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.28rem; font-weight: 750; }
h4 { font-size: 1.06rem; font-weight: 750; }
strong { color: var(--ink); }

::selection { background: rgba(1, 146, 63, .18); color: var(--secondary-color); }
:focus-visible { outline: 3px solid rgba(1, 146, 63, .5); outline-offset: 3px; border-radius: 4px; }
.icon { flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 66px 0; }
.section--mint { background: var(--surface-color); }
.section--mint-2 { background: linear-gradient(180deg, var(--surface-color), #fff); }
.section--dark { background: var(--secondary-color); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--flush { padding: 0 0 96px; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 999;
  background: var(--secondary-color); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 10px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 27px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 750; font-size: .96rem; line-height: 1;
  border: 2px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 12px 20px; font-size: .9rem; }
.btn--donate { background: var(--accent-color); color: #fff; box-shadow: 0 12px 26px -10px rgba(214, 12, 12, .6); }
.btn--donate:hover { background: var(--accent-dark); box-shadow: 0 16px 32px -12px rgba(214, 12, 12, .7); }
.btn--primary { background: var(--brand-text); color: #fff; box-shadow: 0 12px 26px -12px rgba(1, 146, 63, .75); }
.btn--primary:hover { background: #00632b; }
.btn--outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--outline:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn--white { background: #fff; color: var(--secondary-color); box-shadow: var(--shadow-sm); }
.btn--white:hover { background: var(--surface-color); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .38); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .65); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 32px; font-size: 1.02rem; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-text); font-family: var(--font-head); font-weight: 750; font-size: .94rem; }
.text-link svg { transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: linear-gradient(100deg, var(--primary-color-2), var(--secondary-color) 92%); color: rgba(255, 255, 255, .86); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar__contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__contact a, .topbar__social a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar__contact a:hover, .topbar__social a:hover { color: #fff; }
.topbar__badge { display: inline-flex; align-items: center; gap: 6px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .72); }
.topbar__social { display: flex; align-items: center; gap: 14px; }
.topbar__social span { color: rgba(255, 255, 255, .55); font-size: .76rem; letter-spacing: .04em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s, background .25s;
  backdrop-filter: blur(12px);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -16px rgba(0, 46, 20, .28); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: #fff; border: 1px solid var(--line); padding: 2px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.13rem; color: var(--ink); letter-spacing: -.02em; }
.brand__text em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--brand-text); letter-spacing: .015em; margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px;
  font-family: var(--font-head); font-weight: 650; font-size: .93rem; color: #2c3a32;
  border: 0; background: none; border-radius: 10px; transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--brand-text); background: rgba(1, 146, 63, .07); }
.nav__chev { transition: transform .2s; }
.nav__item--dropdown { position: relative; }
.nav__item--dropdown.is-open .nav__chev { transform: rotate(180deg); }

.work-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(780px, 88vw); background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 24px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .22s var(--ease), visibility .2s;
}
.work-menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 18px; }
.nav__item--dropdown:hover .work-menu,
.nav__item--dropdown:focus-within .work-menu,
.nav__item--dropdown.is-open .work-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.work-menu__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.work-menu__label { font-family: var(--font-head); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.work-menu__item { display: flex; gap: 11px; padding: 9px; border-radius: 12px; transition: background .2s; }
.work-menu__item:hover { background: var(--surface-color); }
.work-menu__icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(1, 146, 63, .1); color: var(--primary-color); display: grid; place-items: center; flex: none; }
.work-menu__item b { display: block; font-family: var(--font-head); font-size: .89rem; color: var(--ink); font-weight: 750; }
.work-menu__item small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.work-menu__all { display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 0 9px; color: var(--primary-color); font-family: var(--font-head); font-weight: 750; font-size: .85rem; }
.work-menu__col--alt { border-left: 1px solid var(--line); padding-left: 24px; }
.work-menu__link { display: flex; align-items: center; gap: 9px; padding: 8px 6px; font-size: .86rem; font-weight: 600; color: #33443a; border-radius: 8px; }
.work-menu__link svg { color: var(--primary-color); }
.work-menu__link:hover { color: var(--primary-color); background: var(--surface-color); }
.work-menu__card { margin-top: 14px; display: flex; gap: 10px; align-items: center; background: var(--surface-color); border-radius: 12px; padding: 12px; }
.work-menu__card > span { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-color); color: #fff; display: grid; place-items: center; flex: none; }
.work-menu__card b { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.work-menu__card a { font-family: var(--font-head); font-weight: 750; font-size: .9rem; color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: .2s; }
.icon-btn:hover { border-color: var(--primary-color); color: var(--primary-color); background: var(--surface-color); }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(390px, 92vw); z-index: 300;
  background: #fff; box-shadow: -20px 0 60px rgba(0, 30, 14, .25);
  padding: 22px; overflow-y: auto; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mobile-nav__head span { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.mobile-nav__close { width: 40px; height: 40px; border: 0; background: var(--surface-color); border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav > a, .mobile-nav summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 650; color: var(--ink); font-size: .98rem; cursor: pointer;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details a { display: block; padding: 10px 4px 10px 18px; color: var(--muted); font-size: .9rem; border-bottom: 1px solid #f1f5f2; }
.mobile-nav details a:hover { color: var(--primary-color); }
.mobile-nav .btn { margin-top: 18px; }
.mobile-nav__contact { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: .84rem; color: var(--muted); }
.mobile-nav__contact a { display: inline-flex; align-items: center; gap: 8px; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0, 25, 12, .5); z-index: 290; backdrop-filter: blur(2px); }
body.nav-open { overflow: hidden; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(112deg, var(--secondary-color), #014d26 72%, var(--primary-color-2));
  padding: 66px 0 72px;
}
.page-hero::after {
  content: ""; position: absolute; right: -140px; top: -160px; width: 540px; height: 540px;
  border-radius: 50%; background: radial-gradient(circle, rgba(1, 146, 63, .35), transparent 68%);
}
.page-hero--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 30, 14, .96) 8%, rgba(0, 46, 20, .86) 50%, rgba(0, 46, 20, .42)), var(--hero-image) center/cover no-repeat;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 830px; margin-bottom: 12px; }
.page-hero__sub { max-width: 680px; color: rgba(255, 255, 255, .8); font-size: 1.07rem; margin-bottom: 0; }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #8ee0b0; font-family: var(--font-head); font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.page-hero__eyebrow::before { content: ""; width: 24px; height: 2px; background: #8ee0b0; }
.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .8rem; color: rgba(255, 255, 255, .62); }
.breadcrumbs a { color: rgba(255, 255, 255, .8); }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs__sep { opacity: .5; }
.breadcrumbs li:last-child span { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--secondary-color);
  padding: 92px 0 132px; min-height: 620px; display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(94deg, rgba(0, 28, 13, .96) 4%, rgba(0, 40, 19, .9) 34%, rgba(0, 40, 19, .55) 62%, rgba(0, 40, 19, .18));
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 730px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill); font-family: var(--font-head); font-size: .76rem; font-weight: 700;
  color: #d9f5e4; letter-spacing: .04em; backdrop-filter: blur(4px);
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #5fdb94; box-shadow: 0 0 0 4px rgba(95, 219, 148, .18); }
.hero h1 { color: #fff; font-size: clamp(2.55rem, 5vw, 4.05rem); letter-spacing: -.03em; margin-bottom: 20px; max-width: 760px; }
.hero h1 em { font-style: normal; color: #77dda1; }
.hero__lead { font-size: 1.13rem; color: rgba(255, 255, 255, .82); max-width: 620px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: rgba(255, 255, 255, .84); }
.hero__trust .icon { color: #6fe09c; }
.hero__aside {
  position: absolute; right: 24px; bottom: 132px; z-index: 2; width: 280px;
  background: rgba(255, 255, 255, .97); border-radius: 18px; padding: 20px; color: var(--ink);
  box-shadow: var(--shadow-lg); display: none;
}
.hero__aside-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.hero__aside-head span { width: 40px; height: 40px; border-radius: 12px; background: rgba(1, 146, 63, .1); color: var(--primary-color); display: grid; place-items: center; flex: none; }
.hero__aside-head b { display: block; font-family: var(--font-head); font-size: .92rem; }
.hero__aside-head small { color: var(--muted); font-size: .74rem; }
.hero__aside p { font-size: .8rem; color: var(--muted); margin: 0 0 12px; line-height: 1.55; }
.hero__aside a { font-family: var(--font-head); font-weight: 750; color: var(--primary-color); font-size: .84rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Impact strip ---------- */
.impact-strip { position: relative; z-index: 5; margin-top: -68px; }
.impact-strip__card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0;
}
.impact-item { padding: 24px 26px; border-right: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.impact-item:last-child { border-right: 0; }
.impact-item__icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(1, 146, 63, .1); color: var(--primary-color); display: grid; place-items: center; flex: none; }
.impact-item b { display: block; font-family: var(--font-head); font-size: 1.65rem; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.impact-item b span { display: inline; font-size: inherit; color: inherit; margin: 0; letter-spacing: inherit; }
.impact-item span { display: block; font-size: .8rem; color: var(--muted); margin-top: 5px; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 13px;
  font-family: var(--font-head); font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--primary-color); border-radius: 2px; }
.eyebrow--light { color: #8ee0b0; }
.eyebrow--light::before { background: #8ee0b0; }
.section-head { max-width: 730px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head .lead { font-size: 1.05rem; color: var(--muted); margin: 0; max-width: 650px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; max-width: none; }
.section-head--row > div { max-width: 680px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s, border-color .28s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d3e3d9; }

.program-card { display: flex; flex-direction: column; }
.program-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.program-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.program-card:hover .program-card__media img { transform: scale(1.045); }
.program-card__icon {
  position: absolute; left: 18px; bottom: -21px; width: 46px; height: 46px; border-radius: 13px;
  background: var(--primary-color); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 22px -8px rgba(1, 146, 63, .7);
}
.program-card__body { padding: 34px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.program-card__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.program-card__body p { font-size: .9rem; color: var(--muted); margin-bottom: 18px; flex: 1; }
.program-card__body .text-link { margin-top: auto; }

.update-card__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--surface-2); }
.update-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.update-card:hover .update-card__media img { transform: scale(1.045); }
.update-card__cat { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .95); color: var(--secondary-color); font-family: var(--font-head); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.update-card__body { padding: 20px 21px 22px; }
.update-card__date { font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.update-card__body h3 { font-size: 1.06rem; line-height: 1.35; margin-bottom: 7px; }
.update-card__body h3 a:hover { color: var(--primary-color); }
.update-card__body p { font-size: .86rem; color: var(--muted); margin: 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--wide { grid-template-columns: 1.05fr .95fr; }
.split__media { position: relative; }
.split__media img { border-radius: 22px; width: 100%; box-shadow: var(--shadow-md); }
.split__media--framed { padding: 0 0 22px 22px; }
.split__media--framed::before { content: ""; position: absolute; left: 0; bottom: 0; width: 68%; height: 68%; border-radius: 22px; background: var(--surface-2); z-index: 0; }
.split__media--framed img { position: relative; z-index: 1; }
.founder-badge {
  position: absolute; z-index: 2; right: -14px; bottom: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 17px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 11px;
}
.founder-badge span { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-color); color: var(--primary-color); display: grid; place-items: center; }
.founder-badge b { display: block; font-family: var(--font-head); font-size: .88rem; color: var(--ink); line-height: 1.2; }
.founder-badge small { font-size: .72rem; color: var(--muted); }

.check-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: #405046; }
.check-list .icon { color: var(--primary-color); margin-top: 4px; }
.check-list--two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }

/* ---------- Stats / team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; text-align: center; }
.team-stat b { display: block; font-family: var(--font-head); font-size: 2.3rem; color: var(--primary-color); line-height: 1; }
.team-stat span { display: block; font-size: .84rem; color: var(--muted); margin-top: 8px; }

.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .25s; }
.value-card:hover { border-color: #cfe3d7; box-shadow: var(--shadow-sm); }
.value-card__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-color); color: var(--primary-color); display: grid; place-items: center; margin-bottom: 16px; }
.value-card h3 { font-size: 1.04rem; margin-bottom: 6px; }
.value-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Quote ---------- */
.quote-card { background: var(--surface-color); border-radius: var(--radius); padding: 32px; position: relative; }
.quote-card .icon { color: var(--primary-color); opacity: .5; margin-bottom: 12px; }
.quote-card blockquote { margin: 0; font-family: var(--font-head); font-size: 1.18rem; line-height: 1.55; color: var(--ink); font-weight: 600; }
.quote-card footer { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* ---------- Feature / hospital ---------- */
.feature-band { position: relative; overflow: hidden; border-radius: 24px; background: var(--secondary-color); color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; }
.feature-band__body { padding: 52px; }
.feature-band__body h2 { color: #fff; max-width: 480px; }
.feature-band__body p { color: rgba(255, 255, 255, .76); max-width: 520px; }
.feature-band__media { min-height: 330px; }
.feature-band__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-band__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--pill, 999px); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: .76rem; color: #e8f7ee; }
.pill--light { background: var(--surface-color); border-color: var(--line); color: #405046; }
.progress { margin: 18px 0 8px; }
.progress__head { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: 8px; color: rgba(255, 255, 255, .8); }
.progress__bar { height: 8px; background: rgba(255, 255, 255, .16); border-radius: 99px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: linear-gradient(90deg, #2fbf6e, #8ee0b0); border-radius: 99px; }

/* ---------- Community icons ---------- */
.service-mini { display: flex; gap: 15px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: .25s; }
.service-mini:hover { border-color: #cfe3d7; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.service-mini__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(1, 146, 63, .09); color: var(--primary-color); display: grid; place-items: center; flex: none; }
.service-mini h3 { font-size: .98rem; margin-bottom: 3px; }
.service-mini p { font-size: .83rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--surface-2); border: 0; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 30, 14, .44), transparent 55%); opacity: 0; transition: opacity .25s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; color: #fff; font-size: .76rem; text-align: left; opacity: 0; transform: translateY(4px); transition: .25s; }
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gallery-grid--home .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px; }
.partner { display: flex; align-items: center; justify-content: center; flex: 0 1 190px; }
.partner img { max-height: 78px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .68; transition: .25s; }
.partner:hover img { filter: none; opacity: 1; }

/* ---------- Donation ---------- */
.donation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-align: center; box-shadow: var(--shadow-sm); min-width: 0; }
.account-card__logo { height: 46px; display: grid; place-items: center; margin-bottom: 14px; }
.account-card__logo img { max-height: 40px; width: auto; object-fit: contain; }
.account-card small { display: block; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.account-card b { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); margin: 4px 0 2px; }
.account-card .number { display: block; font-family: var(--font-head); font-size: 1.24rem; font-weight: 800; color: var(--secondary-color); letter-spacing: .02em; overflow-wrap: anywhere; }
.copy-btn { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-color); color: var(--secondary-color); font-size: .78rem; font-weight: 700; padding: 8px 13px; border-radius: 99px; transition: .2s; }
.copy-btn:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.copy-btn--sm { margin-top: 7px; padding: 5px 10px; font-size: .72rem; }
.account-card__details { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; text-align: left; }
.account-card__details dt { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.account-card__details dd { margin: 3px 0 0; font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--secondary-color); overflow-wrap: anywhere; }
.account-card__details > div + div { padding-top: 11px; border-top: 1px dashed var(--line); }

/* ---------- Page content ---------- */
.page-body { padding: 78px 0 96px; }
.page-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 54px; align-items: start; }
.page-body--narrow .page-body__grid { grid-template-columns: minmax(0, 840px); justify-content: center; }
.prose { font-size: 1rem; color: #46564c; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.85rem; margin: 1.5em 0 .55em; }
.prose h3 { font-size: 1.26rem; margin: 1.4em 0 .45em; }
.prose ul, .prose ol { margin: .8em 0 1.2em; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); }
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; position: relative; padding-left: 32px; }
.prose ol li::before { content: counter(item); position: absolute; left: 0; top: .05em; width: 21px; height: 21px; border-radius: 50%; background: var(--surface-color); color: var(--primary-color); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.prose img { border-radius: 16px; margin: 1.3em 0; }
.prose blockquote { margin: 1.5em 0; padding: 20px 24px; border-left: 4px solid var(--primary-color); background: var(--surface-color); border-radius: 0 14px 14px 0; font-family: var(--font-head); font-size: 1.06rem; color: var(--ink); }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 104px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); }
.sidebar-card--mint { background: var(--surface-color); border-color: #dbe9e0; }
.sidebar-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.sidebar-card p { font-size: .86rem; color: var(--muted); }
.sidebar-card .btn { margin-top: 6px; }
.sidebar-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.sidebar-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: #3e4f45; }
.sidebar-list a:last-child { border-bottom: 0; }
.sidebar-list a:hover { color: var(--primary-color); }
.sidebar-list .icon { color: var(--primary-color); }
.sidebar-contact { display: flex; flex-direction: column; gap: 10px; font-size: .85rem; }
.sidebar-contact a, .sidebar-contact span { display: flex; align-items: flex-start; gap: 9px; }
.sidebar-contact .icon { color: var(--primary-color); margin-top: 3px; }

/* ---------- Listing / detail ---------- */
.detail-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 0; border-radius: 24px; overflow: hidden; background: var(--surface-color); }
.detail-hero__body { padding: 48px; align-self: center; }
.detail-hero__body h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.detail-hero__media { min-height: 360px; }
.detail-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; color: var(--muted); margin-bottom: 20px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta .icon { color: var(--primary-color); }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .88rem; color: #405046; }
.feature-list .icon { color: var(--primary-color); margin-top: 3px; }

.article { max-width: 780px; margin: 0 auto; }
.article__image { border-radius: 20px; overflow: hidden; margin: 0 0 34px; }
.article__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .icon { color: var(--primary-color); }
.article__lead { font-size: 1.14rem; color: #37473d; font-weight: 500; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 13px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--ink); background: #fff; }
.pagination a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pagination .is-current { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.55rem; }
.form-card .form-note { font-size: .82rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .83rem; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--accent-color); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #d9e3dc; border-radius: 10px; background: #fff;
  padding: 12px 14px; font-family: var(--font-body); font-size: .92rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa8a0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(1, 146, 63, .12); }
.field textarea { min-height: 135px; resize: vertical; }
.field__error { font-size: .78rem; color: var(--accent-color); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--accent-color); }
.inline-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: 12px; padding: 13px 16px; font-size: .86rem; margin-bottom: 18px; display: flex; gap: 9px; align-items: flex-start; }
.form-alert--error { background: #fdf0f0; border: 1px solid #f3cdcd; color: #8d1a1a; }
.form-alert--success { background: #edf9f1; border: 1px solid #c8ecd4; color: #14622f; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 14px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.contact-item__icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(1, 146, 63, .1); color: var(--primary-color); display: grid; place-items: center; flex: none; }
.contact-item h3 { font-size: .94rem; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.5; }
.contact-item a:hover { color: var(--primary-color); }
.map-frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); margin-top: 28px; height: 300px; background: var(--surface-color); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Values / info cards ---------- */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.info-card--accent { border-top: 3px solid var(--primary-color); }
.info-card h3 { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; }
.info-card h3 .icon { color: var(--primary-color); }
.info-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.info-card ul { margin-top: 12px; }

/* ---------- Volunteer ---------- */
.involve-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 38px; align-items: start; }
.involve-options { display: grid; gap: 14px; }
.involve-card { display: flex; gap: 14px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.involve-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-color); color: var(--primary-color); display: grid; place-items: center; flex: none; }
.involve-card h3 { font-size: .98rem; margin-bottom: 3px; }
.involve-card p { font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------- Publications ---------- */
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub-item { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.pub-item__icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(214, 12, 12, .08); color: var(--accent-color); display: grid; place-items: center; flex: none; }
.pub-item__body { flex: 1; }
.pub-item h3 { font-size: .98rem; margin-bottom: 2px; }
.pub-item p { font-size: .82rem; color: var(--muted); margin: 0; }
.pub-item__meta { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.pub-item .btn { flex: none; }
.empty-state { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed #cfe0d5; border-radius: 18px; }
.empty-state .icon { margin: 0 auto 14px; color: var(--primary-color); width: 42px; height: 42px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--secondary-color); color: #fff; padding: 62px 0; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(92deg, rgba(0, 35, 16, .96), rgba(0, 46, 20, .84) 55%, rgba(0, 46, 20, .55)); }
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.cta-band h2 { color: #fff; margin-bottom: 7px; }
.cta-band p { color: rgba(255, 255, 255, .76); margin: 0; max-width: 600px; }
.cta-band__actions { display: flex; gap: 11px; flex-wrap: wrap; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: #001f0e; color: rgba(255, 255, 255, .66); padding: 64px 0 0; font-size: .88rem; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.35fr; gap: 40px; padding-bottom: 44px; }
.brand--footer img { border-color: rgba(255, 255, 255, .18); }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text em { color: #74d99d; }
.footer__brand p { margin: 18px 0 18px; max-width: 330px; line-height: 1.65; font-size: .86rem; color: rgba(255, 255, 255, .6); }
.footer__social { display: flex; gap: 9px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; color: rgba(255, 255, 255, .8); transition: .2s; }
.footer__social a:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.footer__col h3 { color: #fff; font-size: .93rem; margin-bottom: 17px; letter-spacing: .01em; }
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col a { color: rgba(255, 255, 255, .63); font-size: .86rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: flex-start; gap: 9px; color: rgba(255, 255, 255, .63); font-size: .84rem; line-height: 1.55; }
.footer__contact .icon { color: #74d99d; margin-top: 3px; }
.footer__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: #8ee0b0 !important; font-family: var(--font-head); font-weight: 750; font-size: .84rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .78rem; color: rgba(255, 255, 255, .46); }
.footer__bottom p { margin: 0; }
.footer__sep { margin: 0 7px; opacity: .5; }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: #fff; }

/* ---------- Utility components ---------- */
.flash-stack { position: fixed; top: 96px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 9px; width: min(390px, calc(100vw - 40px)); }
.flash { display: flex; align-items: flex-start; gap: 9px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary-color); border-radius: 11px; padding: 12px 14px; box-shadow: var(--shadow-md); font-size: .84rem; color: var(--ink); }
.flash--error { border-left-color: var(--accent-color); }
.flash--info { border-left-color: #2b7bbb; }
.flash .icon { margin-top: 2px; color: var(--primary-color); }
.flash--error .icon { color: var(--accent-color); }
.flash button { margin-left: auto; border: 0; background: transparent; color: var(--muted); padding: 0; display: grid; place-items: center; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary-color); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(1, 146, 63, .7); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top .icon { transform: rotate(-45deg); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0, 20, 9, .93); display: grid; place-items: center; padding: 50px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__caption { color: rgba(255, 255, 255, .75); font-size: .84rem; margin-top: 12px; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--primary-color); }

/* ---------- Search ---------- */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.search-bar input { flex: 1 1 220px; min-width: 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; font-size: .95rem; }
.search-bar input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(1, 146, 63, .12); }
@media (max-width: 520px) { .search-bar .btn { flex: 1 1 100%; justify-content: center; } }
.search-result { display: flex; gap: 20px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.search-result__type { flex: none; width: 90px; font-family: var(--font-head); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-text); }
.search-result h3 { font-size: 1.04rem; margin-bottom: 4px; }
.search-result p { font-size: .86rem; color: var(--muted); margin: 0; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: 110px 0; }
.error-page__code { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--surface-2); letter-spacing: -.06em; }
.error-page h1 { margin-top: -18px; }
.error-page p { color: var(--muted); max-width: 480px; margin: 0 auto 26px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1180px) {
  .hero__aside { display: block; }
}

@media (max-width: 1080px) {
  .nav__link { padding: 10px 9px; font-size: .88rem; }
  .header__inner { gap: 16px; }
  .brand img { width: 48px; height: 48px; }
  .brand__text strong { font-size: 1.03rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .impact-strip__card { grid-template-columns: repeat(2, 1fr); }
  .impact-item:nth-child(2) { border-right: 0; }
  .impact-item:nth-child(1), .impact-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__contact { flex-direction: row; flex-wrap: wrap; gap: 12px 26px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 76px 0; }
  .split, .split--wide { grid-template-columns: 1fr; gap: 42px; }
  .split__media { max-width: 620px; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band__media { min-height: 280px; order: -1; }
  .feature-band__body { padding: 36px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero__media { min-height: 280px; order: -1; }
  .detail-hero__body { padding: 32px; }
  .contact-grid, .involve-grid, .page-body__grid { grid-template-columns: 1fr; gap: 34px; }
  .sidebar { position: static; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .donation-grid { grid-template-columns: repeat(2, 1fr); }
  .search-result__type { display: none; }
}

@media (max-width: 760px) {
  .topbar__contact a:nth-child(2) { display: none; }
  .topbar__badge { display: none; }
  .topbar__social span { display: none; }
  .header__inner { min-height: 70px; }
  .header__actions .btn--donate { display: none; }
  .hero { padding: 64px 0 118px; min-height: 0; }
  .hero__lead { font-size: 1.02rem; }
  .hero__bg img { object-position: 58% center; }
  .hero__bg::after { background: linear-gradient(94deg, rgba(0, 28, 13, .95), rgba(0, 40, 19, .78) 70%, rgba(0, 40, 19, .5)); }
  .hero__trust { gap: 9px 16px; }
  .impact-strip { margin-top: -52px; }
  .impact-item { padding: 18px; }
  .impact-item__icon { width: 40px; height: 40px; }
  .impact-item b { font-size: 1.3rem; }
  .impact-item span { font-size: .74rem; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--home .gallery-item:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .team-grid { grid-template-columns: 1fr; }
  .check-list--two { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 48px 0; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; }
  .page-hero { padding: 48px 0 52px; }
  .page-body { padding: 56px 0 70px; }
  .form-card { padding: 24px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .donation-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 20px; }
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .brand__text em { display: none; }
  .brand img { width: 44px; height: 44px; }
  .brand__text strong { font-size: .96rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 60px 0; }
  .impact-strip__card { grid-template-columns: 1fr; }
  .impact-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .impact-item:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact { flex-direction: column; }
  .flash-stack { top: 78px; right: 10px; width: calc(100vw - 20px); }
  .gallery-grid { gap: 9px; }
  .article__image img { aspect-ratio: 4/3; }
}

/* ==========================================================================
   Extended components
   ========================================================================== */

/* ---------- Video gallery ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { display: block; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: transform .25s var(--ease), border-color .25s; }
.video-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .34); }
.video-card__thumb { display: block; position: relative; aspect-ratio: 16 / 9; background: #02160b center/cover no-repeat; }
.video-card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 20, 9, .55), transparent 60%); }
.video-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(214, 12, 12, .95); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); transition: transform .25s var(--ease); }
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.08); }
.video-card__title { display: block; padding: 15px 17px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: #fff; }

/* ---------- Founder panel ---------- */
.founder-panel { position: sticky; top: 104px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.founder-panel__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.founder-panel__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.founder-panel__body { padding: 24px; }
.founder-panel__body h3 { margin-bottom: 2px; font-size: 1.18rem; }
.founder-panel__role { font-size: .79rem; color: var(--primary-color); font-weight: 700; margin-bottom: 12px; }
.founder-panel__body p:not(.founder-panel__role) { font-size: .87rem; color: var(--muted); line-height: 1.65; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; font-family: var(--font-head); font-size: .84rem; font-weight: 650; color: #3c4d43; transition: .2s; }
.filter-chip span { font-size: .68rem; font-weight: 800; background: var(--surface-color); color: var(--muted); border-radius: 99px; padding: 1px 7px; }
.filter-chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filter-chip.is-active { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.filter-chip.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Gallery note ---------- */
.gallery-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 34px; padding: 17px 20px; background: var(--surface-color); border-radius: 12px; color: var(--muted); }
.gallery-note .icon { color: #1877f2; margin-top: 3px; }
.gallery-note p { margin: 0; font-size: .86rem; }
.gallery-note a { color: var(--brand-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Follow card ---------- */
.follow-card { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 40px; padding: 28px 30px; background: var(--secondary-color); border-radius: 18px; color: #fff; flex-wrap: wrap; }
.follow-card h2 { color: #fff; }
.follow-card p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.follow-card__actions { display: flex; gap: 9px; flex-wrap: wrap; }
.follow-card .eyebrow { color: #8ee0b0; }
.follow-card .eyebrow::before { background: #8ee0b0; }

/* ---------- Hospital plan ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plan-item { display: flex; align-items: flex-start; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.plan-item__num { font-family: var(--font-head); font-size: .86rem; font-weight: 800; color: var(--primary-color); background: rgba(1, 146, 63, .09); border-radius: 8px; padding: 5px 9px; line-height: 1; flex: none; }
.plan-item p { margin: 0; font-size: .9rem; color: #405046; line-height: 1.55; }
.plan-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Project facts ---------- */
.project-facts { background: var(--secondary-color); color: rgba(255, 255, 255, .76); border-radius: 20px; padding: 28px; position: sticky; top: 104px; }
.project-facts__head { margin-bottom: 18px; }
.project-facts__head h2 { color: #fff; }
.project-facts .eyebrow { color: #8ee0b0; }
.project-facts .eyebrow::before { background: #8ee0b0; }
.project-facts .progress__head { color: rgba(255, 255, 255, .8); }
.project-facts__list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 24px; }
.project-facts__list li { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.project-facts__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.project-facts__icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(1, 146, 63, .22); color: #8ee0b0; display: grid; place-items: center; flex: none; }
.project-facts__list b { display: block; color: #fff; font-family: var(--font-head); font-size: .92rem; }
.project-facts__list small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .6); line-height: 1.5; margin-top: 1px; }
.project-facts__note { font-size: .76rem; color: rgba(255, 255, 255, .55); margin: 14px 0 0; line-height: 1.55; }
.project-facts__note a { color: #8ee0b0; text-decoration: underline; text-underline-offset: 2px; }
.progress--light .progress__head { color: rgba(255, 255, 255, .8); }

/* ---------- Article footer ---------- */
.article__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.article__share { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.article__share a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: .2s; }
.article__share a:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* ---------- Search hints ---------- */
.search-hints { margin-top: 30px; }
.search-hints .info-card h3 { margin-bottom: 4px; }

@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-panel, .project-facts { position: static; }
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
  .follow-card { padding: 24px; }
  .follow-card__actions { width: 100%; }
  .follow-card__actions .btn { flex: 1; }
  .article__footer { flex-direction: column; align-items: flex-start; }
}



/* ---------- Accessibility utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
