/* Helping Bihar Foundation Trust — public site */
:root {
  --saffron: #e8881a;
  --saffron-deep: #9a4e08;
  --saffron-soft: #fff1dc;
  --green: #1b8f38;
  --green-deep: #146b2b;
  --green-soft: #e7f6eb;
  --navy: #10243f;
  --navy-2: #1b3a5c;
  --ink: #1c2430;
  --muted: #3e4c5a;
  --line: #eadfD2;
  --paper: #fbf6ef;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 36, 63, 0.12);
  --radius: 18px;
  --header: 72px;
  --font: "Outfit", "Noto Sans Devanagari", sans-serif;
  --display: "Fraunces", "Noto Sans Devanagari", serif;
  --hindi: "Noto Sans Devanagari", "Outfit", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--green-deep); }

a:hover { color: var(--saffron-deep); }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.hi { font-family: var(--hindi); }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 0.9em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.6rem;
  color: var(--saffron-deep);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-family: var(--font);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
}

.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }

.section-head { max-width: 680px; margin-bottom: 1.8rem; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 36, 63, 0.06);
}

.topbar::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron) 0 46%, var(--white) 46% 54%, var(--green) 54% 100%);
}

.nav {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.brand-text span { font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 560;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-links a:hover { background: var(--saffron-soft); color: var(--navy); }

.nav-cta { display: flex; gap: 8px; align-items: center; }

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-2); color: white; }
.btn-green { background: var(--green-deep); color: white; }
.btn-green:hover { background: #0f5a24; color: white; }
.btn-saffron { background: var(--saffron-deep); color: white; }
.btn-saffron:hover { background: #7c3e06; color: white; }
.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { background: white; color: var(--navy); }
.btn-line {
  background: white;
  color: var(--navy);
  border-color: #d9cfc2;
}
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  color: white;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}

.hero-slider, .slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.is-active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 34, 0.88) 0%, rgba(8, 18, 34, 0.55) 48%, rgba(8, 18, 34, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.25) 0%, rgba(8, 18, 34, 0.15) 40%, rgba(8, 18, 34, 0.72) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(var(--header) + 28px) 0 120px;
  display: grid;
  grid-template-columns: minmax(0, 740px) auto;
  gap: 24px;
  align-items: end;
}

.hero h1 { color: white; max-width: 14ch; }
.hero .dedication {
  font-size: 1.05rem;
  color: #ffd7a3;
  margin-bottom: 0.8rem;
}
.hero .tagline { font-size: clamp(1.15rem, 2vw, 1.45rem); color: white; margin-bottom: 0.35rem; }
.hero .subtag { color: rgba(255, 255, 255, 0.86); max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2rem 0 0.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.hero-founder {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 36, 63, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  max-width: 320px;
}

.hero-founder img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  box-shadow: 0 0 0 3px var(--saffron), 0 0 0 6px var(--green);
}

.hero-founder p { margin: 0; color: white; font-size: 0.92rem; }
.hero-founder strong { display: block; font-family: var(--display); font-size: 1.02rem; }

.hero-ui {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-ui button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(16, 36, 63, 0.35);
  color: white;
  cursor: pointer;
}

.dots { display: flex; gap: 8px; align-items: center; }
.dots button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
}
.dots button[aria-selected="true"]::after { width: 18px; background: white; }

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 64px;
}

/* Press strip */
.press {
  padding: 8px 0 28px;
}

.press-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.press-strip {
  display: flex;
  gap: 8px 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.press-strip a,
.press-strip button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  padding: 6px 4px;
  text-align: center;
  color: inherit;
}

.press-strip a:hover,
.press-strip button:hover,
.press-strip a:focus-visible,
.press-strip button:focus-visible {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

.wm-en { display: block; font-size: 1.35rem; line-height: 1; }
.wm-hi { display: block; font-family: var(--hindi); font-size: 0.78rem; margin-top: 3px; font-weight: 650; }

.wm-hindustan { color: #d71920; font-family: var(--display); font-style: italic; font-weight: 640; }
.wm-prabhat { color: #e25b12; font-family: var(--display); font-weight: 640; letter-spacing: -0.03em; }
.wm-kelanchal { color: #0f4c81; font-family: var(--display); font-weight: 600; }
.wm-kmp { color: #0b7a3b; font-family: var(--font); font-weight: 750; letter-spacing: -0.04em; }
.wm-khas { color: #b45309; font-family: var(--font); font-weight: 750; }
.wm-cnews { color: #1d4e89; font-family: var(--font); font-weight: 750; letter-spacing: -0.03em; }

/* About */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.values-title { margin: 28px 0 12px; }

.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}

.values li {
  background: white;
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid rgba(16, 36, 63, 0.06);
}

.value-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  color: var(--saffron-deep);
}

.panel {
  background: white;
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  border: 1px solid rgba(16, 36, 63, 0.06);
  box-shadow: 0 8px 24px rgba(16, 36, 63, 0.04);
}

.panel h3 { font-size: 1.15rem; }

.about-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.about-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 249, 243, 0.94);
  color: var(--navy);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.92rem;
}

/* Founder */
.founder-band { background: white; }

.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
}

.founder-portrait {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}

.founder-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 12%;
}

.founder-name { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0; }
.founder-role { color: var(--saffron-deep); font-weight: 700; margin-top: 0; }

/* Work cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 63, 0.06);
  box-shadow: 0 10px 28px rgba(16, 36, 63, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.work-card img { width: 100%; height: 210px; object-fit: cover; }

.work-card .body { padding: 16px 16px 18px; }
.work-card h3 { margin-bottom: 0.2rem; }
.work-card .hi-label { color: var(--green-deep); font-weight: 700; font-size: 0.92rem; margin: 0 0 0.35rem; }
.work-card p { color: var(--muted); font-size: 0.98rem; }

.work-card.plain {
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(232, 136, 26, 0.18), transparent 70%),
    radial-gradient(140px 90px at 0% 100%, rgba(27, 143, 56, 0.16), transparent 70%),
    white;
  padding: 20px 18px 8px;
}

.icon-blob {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--saffron-soft);
  color: var(--saffron-deep);
  margin-bottom: 10px;
}

/* Teachers */
.teachers { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.year {
  background: white;
  border-radius: 18px;
  padding: 16px;
  border-top: 4px solid var(--saffron);
  box-shadow: 0 8px 24px rgba(16, 36, 63, 0.05);
}

.year:nth-child(even) { border-top-color: var(--green); }
.year strong { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--navy); }
.year p { color: var(--muted); font-size: 0.95rem; }

.feature-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.feature-photo {
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
  position: relative;
}

.feature-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.note {
  background: var(--navy);
  color: white;
  border-radius: 22px;
  padding: 22px;
}

.note h3, .note p { color: white; }
.note a { color: #ffd7a3; }

/* Impact */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  background: white;
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  border: 1px solid rgba(16, 36, 63, 0.06);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 560;
  color: var(--navy);
  line-height: 1;
}

.stat b span { color: var(--saffron-deep); }
.stat h3 { font-family: var(--font); font-size: 1.05rem; margin: 8px 0; }
.stat p { color: var(--muted); font-size: 0.92rem; }

.sources { margin-top: 16px; color: var(--muted); font-size: 0.88rem; }
.sources a { font-weight: 600; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.filters button {
  border: 1px solid #e3d6c6;
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 650;
  color: var(--navy);
}

.filters button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.shot, .clip {
  margin: 0;
  position: relative;
}

.shot button, .clip button.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ddd;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
}

.shot img, .clip img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.shot button:hover img, .clip button.shot-btn:hover img { transform: scale(1.04); }

.shot figcaption, .clip figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 6px 4px 0;
}

.count { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.clip img { height: 240px; object-position: top; }
.clip figcaption strong { display: block; color: var(--navy); font-size: 0.92rem; }

.yt-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  background: white;
  border-radius: 18px;
  padding: 14px;
  margin: 16px 0 22px;
  border: 1px solid rgba(16, 36, 63, 0.06);
}

.yt-mark {
  width: 88px;
  height: 64px;
  border-radius: 12px;
  background: #10243f;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.team-grid .person { grid-column: span 2; }
.team-grid .person:nth-child(4) { grid-column: 2 / span 2; }
.team-grid .person:nth-child(5) { grid-column: 4 / span 2; }

.person {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 63, 0.06);
}

.person img { width: 100%; height: 260px; object-fit: cover; object-position: center 18%; }
.person img.sheet {
  width: auto;
  max-width: calc(100% - 28px);
  height: auto;
  max-height: 250px;
  object-fit: contain;
  display: block;
  margin: 14px auto 0;
  border-radius: 18px;
}
.patron-photo img { width: auto; max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 24px; }
.person h3 a { color: inherit; text-decoration: none; }
.person h3 a:hover { color: var(--saffron-deep); }
.person .body { padding: 14px 16px 16px; }
.person .role { color: var(--saffron-deep); font-weight: 700; margin: 0; }
.mono {
  height: 160px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80px 50px at 20% 20%, rgba(232, 136, 26, 0.35), transparent 70%),
    linear-gradient(160deg, var(--navy), #1d4e3a);
  color: white;
  font-family: var(--display);
  font-size: 2.4rem;
}

.also {
  margin-top: 16px;
  background: white;
  border-radius: 18px;
  padding: 16px 18px;
}

.also ul { margin: 0; padding-left: 18px; }
.also li { margin: 0.35rem 0; }

/* Donate */
.donate { background: white; }

.donate-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
}

.qr-box, .bank-box {
  background: var(--paper);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid #eadfD2;
}

.qr-box img { width: min(100%, 280px); margin: 8px auto; background: white; border-radius: 12px; }

.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 8px 8px 8px 12px;
  border: 1px solid #eadfD2;
  margin: 8px 0;
}

.copy-row code { font-size: 0.98rem; overflow-wrap: anywhere; }

.copy-row button, .icon-btn {
  margin-left: auto;
  border: 0;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
}

.tax {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--green-soft);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.tax strong { color: var(--green-deep); }

.poster-link { display: block; margin-top: 10px; }
.poster-link img { border-radius: 12px; height: 180px; width: 100%; object-fit: cover; object-position: top; }

/* Join CTA */
.join-cta {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.join-cta h2, .join-cta p { color: white; }
.join-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.arc {
  width: 180px;
  height: 180px;
  justify-self: end;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.contact-card {
  background: white;
  border-radius: 22px;
  padding: 18px;
}

.contact-card a { font-weight: 650; text-decoration: none; }
.contact-card li { margin: 0.55rem 0; }

.map {
  border: 0;
  width: 100%;
  min-height: 380px;
  border-radius: 22px;
  background: #e7e1d8;
}

.faq { display: grid; gap: 10px; }
.faq details {
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 36, 63, 0.06);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq summary h3 { display: inline; font-family: var(--font); font-size: 1.05rem; }
.faq details p { margin: 10px 0 4px; color: var(--muted); }

.patron-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.patron-photo {
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.patron-photo img { width: 100%; height: auto; object-fit: cover; }

.year-badge {
  display: inline-block;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  margin: 8px 0 14px;
}

.career { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.career li {
  background: white;
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
  padding: 10px 14px;
}
.career strong { color: var(--navy); }

.more-patrons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* Footer */
.footer {
  background: #0c1c31;
  color: rgba(255, 255, 255, 0.86);
  padding: 36px 0 20px;
  margin-top: 20px;
}

.footer a { color: white; text-decoration: none; }
.footer h3 { color: white; font-size: 1.1rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.footer .brand-text strong, .footer .brand-text span { color: white; }
.socials { display: flex; gap: 8px; margin-top: 8px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #10243f;
  color: #fff;
}
.footer .socials a { background: rgba(255, 255, 255, 0.14); color: #fff; }
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 18px;
  padding-top: 12px;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(1040px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
}

.lightbox::backdrop { background: rgba(8, 14, 24, 0.86); }

.lightbox figure { margin: 0; }
.lightbox img {
  width: 100%;
  max-height: calc(100svh - 140px);
  object-fit: contain;
  background: #111;
  border-radius: 12px;
}
.lightbox figcaption {
  color: white;
  padding: 10px 48px 0;
  font-size: 0.95rem;
}
.lightbox figcaption a { color: #ffd7a3; }

.lb-btn {
  position: absolute;
  top: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.2rem;
}
.lb-close { right: 8px; }
.lb-prev { left: 8px; top: 45%; }
.lb-next { right: 8px; top: 45%; }

/* Reveal */
.reveal { animation: rise 0.7s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Join page */
.page-hero {
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(232, 136, 26, 0.25), transparent 60%),
    linear-gradient(180deg, #10243f, #1a3d34);
  color: white;
  padding: 36px 0 28px;
}
.page-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { color: rgba(255, 255, 255, 0.9); }

.form-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 22px;
  margin-top: -18px;
  padding-bottom: 50px;
}

.side-card, .form-card {
  background: white;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.side-card { align-self: start; position: sticky; top: 88px; }

.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type {
  border: 2px solid #eadfD2;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  display: block;
}
.type input { margin-right: 6px; }
.type:has(input:checked) {
  border-color: var(--green-deep);
  background: var(--green-soft);
}
.type strong { display: block; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 650; margin-bottom: 4px; }
.field .hint { display: block; color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid #e0d4c6;
  background: #fffdfb;
  border-radius: 12px;
  padding: 12px 12px;
  min-height: 48px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(232, 136, 26, 0.45);
  border-color: var(--saffron-deep);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #b42318; background: #fff6f5; }
.err { color: #9f1239; font-size: 0.86rem; margin: 4px 0 0; min-height: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label, .check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 560;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}
.form-alert {
  background: #fff1f2;
  color: #9f1239;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
[hidden] { display: none !important; }
.form-alert[hidden] { display: none; }
.photo-preview {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  margin-top: 8px;
}
.decl { font-weight: 600; }

/* Membership card */
.success-wrap { padding-bottom: 60px; }
.success-top { text-align: center; margin-bottom: 16px; }
.ids {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.id-pill {
  background: white;
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 200px;
  box-shadow: var(--shadow);
}
.id-pill span { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.id-pill strong { font-family: var(--display); font-size: 1.25rem; color: var(--navy); }

.member-card {
  width: min(680px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #eadfD2;
  min-height: 280px;
}
.card-side {
  background: linear-gradient(180deg, #10243f 0%, #1a4a34 100%);
  color: white;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.card-side img { width: 92px; height: 92px; object-fit: contain; background: white; border-radius: 50%; }
.card-side p { margin: 0; color: white; font-size: 0.82rem; }
.card-side .org { font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.card-type {
  margin-top: auto;
  background: var(--saffron);
  color: var(--navy);
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}
.card-main { padding: 16px 16px 12px; position: relative; }
.card-person { display: flex; gap: 12px; align-items: center; }
.card-photo, .card-initials {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--saffron-soft);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--navy);
  flex: none;
}
.card-main h3 { font-size: 1.45rem; margin: 0; }
.card-main dl { display: grid; gap: 6px; margin: 12px 0 0; }
.card-main dt { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.card-main dd { margin: 0; font-weight: 750; color: var(--navy); }
.card-bar { height: 8px; background: linear-gradient(90deg, var(--saffron), var(--green)); margin-top: 12px; border-radius: 99px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.warn { color: var(--saffron-deep); font-size: 0.92rem; }

@media (max-width: 980px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: relative; }
  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 14px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 36, 63, 0.08);
    z-index: 30;
  }
  .nav.is-open .nav-panel { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { display: flex; }
  .hero-inner, .split, .founder-grid, .cards, .timeline, .feature-row, .stats,
  .gallery, .news-grid, .donate-grid, .join-cta, .contact-grid,
  .footer-grid, .form-layout, .yt-card, .patron-layout, .mission-grid {
    grid-template-columns: 1fr;
  }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid .person,
  .team-grid .person:nth-child(4),
  .team-grid .person:nth-child(5) { grid-column: auto; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery, .news-grid { grid-template-columns: 1fr 1fr; }
  .hero-founder { justify-self: start; }
  .arc { display: none; }
  .side-card { position: static; }
  .about-photo { min-height: 280px; }
  .about-photo img { position: static; height: 320px; }
  .feature-photo { min-height: 220px; }
  .feature-photo img { position: static; height: 240px; }
}

@media (max-width: 640px) {
  .brand-text span { display: none; }
  .cards, .grid-2, .types, .member-card, .team-grid, .mission-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .card-side { flex-direction: row; text-align: left; justify-content: flex-start; }
  .card-type { margin-top: 0; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 24px; padding-bottom: 108px; }
  .hero h1 { max-width: none; }
  .shot img { height: 140px; }
  .legal { flex-direction: column; }
  .wm-en { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .slide, .shot img { animation: none; transition: none; }
  .btn:hover, .press-strip a:hover { transform: none; }
}

@media print {
  body.join-page * { visibility: hidden; }
  body.join-page #member-card,
  body.join-page #member-card * { visibility: visible; }
  body.join-page #member-card {
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: none;
    width: 180mm;
  }
}
