/* ═════════════════════════════════════
   COMPONENTS — page-section building blocks.
   Currently: everything used on the homepage (hero, who-we-are, color-patch,
   numbers, donate CTA). As new pages get designed for real, their section
   styles get added here too, so every page draws from the same style sheet.
═════════════════════════════════════ */

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, #EEF5FC 0%, #ffffff 55%);
  padding: 72px 48px 88px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero { padding: 40px 20px 56px; }
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  margin-bottom: 40px;
  animation: heroFadeUp 0.7s ease both;
}

.hero-logo-wrap img {
  height: clamp(80px, 16vw, 160px);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(34px, 7.5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 24px;
  max-width: 900px;
  animation: heroFadeUp 0.7s 0.12s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  font-size: clamp(16px, 2.6vw, 21px);
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 40px;
  animation: heroFadeUp 0.7s 0.24s ease both;
}

@media (max-width: 768px) {
  .hero-logo-wrap { margin-bottom: 24px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-sub { margin-bottom: 32px; }
}

.hero-sub strong {
  font-weight: 700;
  color: var(--text-dark);
}

.hero-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 28px;
  overflow: hidden;
  background: var(--text-dark);
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 82, 156, 0.22);
  margin-bottom: 52px;
  animation: heroFadeUp 0.8s 0.36s ease both;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-wrap .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,20,60,0.04) 0%, rgba(0,20,60,0.3) 100%);
}

@media (max-width: 900px) {
  .hero-video-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .hero-video-wrap { aspect-ratio: 3 / 4; }
}

@media (max-width: 600px) {
  /* Edge-to-edge on phones only — desktop/tablet keep the normal side
     margins. Corners squared off since a rounded corner flush against the
     screen edge reads oddly; shadow/overlay unaffected. Shorter ratio than
     the non-bleed mobile default (3/4) so the extra width doesn't also
     read as extra height. */
  .hero-video-wrap {
    width: 100vw;
    aspect-ratio: 5 / 6;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: heroFadeUp 0.7s 0.48s ease both;
}

.btn-primary {
  background: var(--blue);
  color: white;
  padding: 18px 48px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-primary:hover { background: var(--gold); color: var(--text-dark); }

.btn-ghost {
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .btn-primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 17px;
  }
  .btn-ghost { font-size: 16px; }
}


/* ─────────────────────────────────────
   WHO WE ARE
───────────────────────────────────── */
.section-who {
  padding: 112px 72px;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.section-who h2 {
  font-size: clamp(30px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 32px;
  max-width: 760px;
}

.who-intro {
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 740px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .section-who { padding: 64px 24px; }
  .who-intro { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .section-who { padding: 48px 20px; }
}

/* "Read more" link — arrow nudges and turns mustard on hover,
   the word itself stays dark rather than the whole link changing color */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.link-more .word { transition: color 0.18s ease; }
.link-more .arrow { display: inline-block; color: var(--blue); transition: transform 0.18s ease, color 0.18s ease; }

.link-more:hover .word { color: var(--text-dark); }
.link-more:hover .arrow { color: var(--gold); transform: translateX(-4px); }


/* ─────────────────────────────────────
   COLOR PATCH — brush-stroke accent behind specific words/lines.
   Shape lives once as a file in media/images/brand/ (color-patch-*.svg)
   and is referenced with <img>, not embedded inline — keeps page files
   readable instead of carrying ~80KB of path data per instance.
───────────────────────────────────── */
.line-wrap {
  position: relative;
  display: inline-block;
}
.line-wrap .txt {
  position: relative;
  z-index: 1;
}
.line-wrap .patch {
  position: absolute;
  right: -8%;
  top: 50%;
  width: 116%;
  height: auto;
  transform: translateY(-46%);
  z-index: 0;
  display: block;
}


/* ─────────────────────────────────────
   NUMBERS
───────────────────────────────────── */
.section-numbers {
  background: var(--blue-light);
  padding: 112px 72px;
  text-align: center;
}

.section-numbers .label { margin-bottom: 16px; }

.section-numbers h2 {
  font-size: clamp(26px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 56px;
}

.numbers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.stat-card {
  background: white;
  border-radius: 24px;
  padding: 56px 28px 48px;
  box-shadow: 0 4px 28px rgba(0, 82, 156, 0.08);
}

.stat-num {
  font-size: clamp(38px, 6.5vw, 84px);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-num { transform: scale(1.05); }

.stat-label {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.5;
}

.numbers-foot {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray);
}

.numbers-foot a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 900px) {
  .section-numbers { padding: 64px 24px; }
  .section-numbers h2 { margin-bottom: 40px; }
  .numbers-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
  }
  .stat-card { padding: 32px 16px 28px; border-radius: 18px; }
}

@media (max-width: 480px) {
  .section-numbers { padding: 48px 16px; }
  .numbers-row { gap: 12px; }
  .stat-card { padding: 24px 12px 22px; border-radius: 16px; }
  .stat-num { margin-bottom: 8px; }
}


/* ─────────────────────────────────────
   DONATE CTA
───────────────────────────────────── */
.section-cta {
  background: var(--blue);
  padding: 128px 72px;
  text-align: center;
  color: white;
}

.section-cta h2 {
  font-size: clamp(28px, 5.6vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin-bottom: 20px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta p {
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 44px;
}

.btn-white {
  display: inline-block;
  background: white;
  color: var(--blue);
  padding: 19px 60px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-white:hover { background: var(--gold); color: var(--text-dark); }

@media (max-width: 768px) {
  .section-cta { padding: 64px 24px; }
  .section-cta p { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .section-cta { padding: 56px 20px; }
  .btn-white { width: 100%; padding: 17px 32px; font-size: 18px; }
}




/* ─────────────────────────────────────
   PAGE INTRO — light header for interior pages that don't have a hero
   video (About, Programs, Impact, People, Donate).
───────────────────────────────────── */
.page-intro {
  background: linear-gradient(180deg, #EEF5FC 0%, #ffffff 100%);
  padding: 64px 72px 56px;
  text-align: center;
}

.page-intro .label {
  text-align: center;
  margin: 0 auto 16px;
}

.page-intro h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-intro { padding: 40px 20px 36px; }
}


/* ─────────────────────────────────────
   CONTENT SECTION — generic body-copy section for interior pages. Visual
   rhythm comes from color-patch accents, video and the map's own color —
   not from alternating background tints (dropped, felt like blocking).
───────────────────────────────────── */
.content-section {
  padding: 88px 72px;
  border-top: 1px solid var(--border);
}

.content-section .section-inner {
  max-width: 880px;
}

.content-section--wide .section-inner {
  max-width: 1160px;
}

.content-section h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 24px;
  max-width: 760px;
}

/* generic utility — not scoped to .content-section, so it also works on
   .section-numbers and any other section wrapper */
h2.text-blue { color: var(--blue); }

.content-section h3 {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  color: var(--blue);
  margin: 40px 0 14px;
}

.content-section h3:first-of-type { margin-top: 0; }

.content-section p {
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 20px;
}

.content-section p:last-child { margin-bottom: 0; }

.content-section .lede {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .content-section { padding: 56px 24px; }
  .content-section h3 { margin: 32px 0 12px; }
}

@media (max-width: 480px) {
  .content-section { padding: 44px 20px; }
}


/* ─────────────────────────────────────
   PULL QUOTE — plain left-border treatment, used for every quote on the
   site. Color defaults to brand blue; --mustard/--green modifiers are
   available (see the quote/color mockup) if we decide a quote's border is
   where the site's color accent should live, instead of the brush-stroke
   patches.
───────────────────────────────────── */
.pull-quote {
  border-right: 5px solid var(--gold);
  padding: 4px 24px 4px 0;
  margin-bottom: 44px;
  max-width: 720px;
}

.pull-quote--blue { border-color: var(--blue); }
.pull-quote--green { border-color: var(--green); }

.pull-quote p {
  font-size: clamp(17px, 2.6vw, 24px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}

.pull-quote .quote-attr {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  /* kept blue (not mustard) — mustard-on-white fails WCAG AA contrast for
     text this size; the accessibility bar is in the project's own brief */
  color: var(--blue);
}

@media (max-width: 768px) {
  .pull-quote { padding: 2px 18px 2px 0; margin-bottom: 32px; }
}


/* ─────────────────────────────────────
   IDEAS LAYOUT — running text with a floated video card. Deliberately a
   CSS float, not a grid/flex column: a float sits in normal document flow
   (so on mobile, `float:none` just leaves it exactly where it is in the
   HTML — after the intro paragraphs, above "מודל דפוסי רחוב", no separate
   mobile ordering needed) and text wraps around it naturally without ever
   forcing a row/track to stretch to the video's height (the previous
   grid-spanning approach did that and left a dead gap on desktop).
───────────────────────────────────── */
.ideas-layout::after { content: ""; display: table; clear: both; }

.video-card {
  position: relative;
  float: left;
  width: 300px;
  margin: 6px 32px 28px 0;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: var(--text-dark);
  box-shadow: 0 24px 64px rgba(0, 82, 156, 0.2);
  animation: heroFadeUp 0.7s ease both;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card .video-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 20px 16px;
  background: linear-gradient(0deg, rgba(0,20,60,0.65) 0%, rgba(0,20,60,0) 100%);
  color: white;
  font-size: 13px;
  font-weight: 300;
}

@media (max-width: 900px) {
  .video-card { float: none; width: 100%; max-width: 320px; margin: 0 auto 32px; }
}

@media (max-width: 600px) {
  /* Edge-to-edge on phones. Shortened from the base 9/16 portrait ratio —
     at full viewport width that read much too tall. */
  .video-card {
    max-width: none;
    width: 100vw;
    aspect-ratio: 3 / 4;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}


/* ─────────────────────────────────────
   ACTIVITY MAP — interactive Israel map (D3 + world-atlas topojson),
   adapted from SAHI_Map_v2.html into the site's design system. Logic in
   js/map.js, loaded only on pages that include the map section.
───────────────────────────────────── */
.map-intro {
  max-width: 640px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 20px;
}

.count-badge .num { font-size: 20px; font-weight: 700; color: var(--green); }
.count-badge .txt { font-size: 14px; font-weight: 300; color: var(--text-body); }

/* List sits beside the map (to its right in RTL reading order) rather than
   stacked below it — keeps the bidirectional hover-highlight feeling like
   one connected element instead of two separate blocks. */
.map-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.map-wrap {
  flex: 0 0 380px;
  width: 380px;
  background: var(--blue-light);
  border-radius: 24px;
  padding: 20px;
  position: sticky;
  top: 100px;
}

#israel-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.unit-grid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.region-group { min-width: 0; }

.region-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gray);
  text-transform: uppercase;
  padding: 6px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.unit-item {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 9px;
}

.unit-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-mid, #C8DCF0);
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.unit-item:hover, .unit-item.active {
  background: var(--green-light);
  color: var(--text-dark);
  font-weight: 700;
}

.unit-item:hover::before, .unit-item.active::before {
  background: var(--green);
  transform: scale(1.4);
}

.unit-item-year {
  margin-inline-start: auto;
  padding-inline-start: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}
.unit-item:hover .unit-item-year, .unit-item.active .unit-item-year { opacity: 1; }



@media (max-width: 900px) {
  /* Side-by-side doesn't fit, and a long name list stacked above/below the
     map breaks the hover connection entirely — so on small screens we drop
     the list and let the map (tap a dot for its name) stand alone. */
  .map-layout { flex-direction: column; }
  .unit-grid { display: none; }
  .map-wrap { position: static; width: 100%; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 520px) {
  .map-wrap { padding: 16px; }
}

.israel-land {
  fill: white;
  stroke: var(--blue);
  stroke-width: 1.2;
}

.unit-dot {
  fill: var(--blue);
  stroke: white;
  stroke-width: 1.5;
  cursor: pointer;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: r 0.15s ease, fill 0.15s ease;
}

.unit-dot.in {
  animation: dotPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dotPop {
  to { opacity: 1; transform: scale(1); }
}

.unit-dot:hover, .unit-dot.active {
  fill: var(--green);
}

.map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
  color: var(--gray);
  font-size: 15px;
  font-weight: 300;
}

#map-tooltip {
  position: fixed;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 82, 156, 0.18);
  padding: 9px 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1000;
  white-space: nowrap;
}

#map-tooltip.visible { opacity: 1; }

.tt-name { font-size: 14px; font-weight: 700; color: var(--blue); }
.tt-year { font-size: 12px; font-weight: 300; color: var(--gray); margin-top: 2px; }


/* ─────────────────────────────────────
   CONTACT — "צרו קשר" section. Blue background + white text, same recipe
   as the homepage's donate CTA (.section-cta), so the form button and the
   phone number read as one matched pair of actions on the same line.
───────────────────────────────────── */
.section-contact {
  background: var(--blue);
  color: white;
  border-top: none;
}

.section-contact h2 { color: white; }
.section-contact p { color: rgba(255, 255, 255, 0.82); }

.contact-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  padding: 17px 40px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
  direction: ltr;
  unicode-bidi: isolate;
}

.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); border-color: white; }

@media (max-width: 480px) {
  .contact-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .btn-outline-white { width: 100%; padding: 17px 32px; font-size: 18px; }
}

/* Subtle secondary donate link for "get involved" contact blocks (About,
   Programs) — deliberately NOT a third button. The form+phone pair above
   is the primary matched pair (see comment on .section-contact); this is
   a lighter-weight escape hatch for someone who just wants to give,
   styled like .link-more but adapted for the blue background. */
.contact-donate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.contact-donate-link .arrow { display: inline-block; transition: transform 0.18s ease; }

.contact-donate-link:hover { color: white; }
.contact-donate-link:hover .arrow { transform: translateX(-4px); }


/* ═════════════════════════════════════════════════════════════════════
   PEOPLE PAGE — "האנשים שלנו"
   Three distinct card treatments by group, one shared photo shape:
     · Staff    — grid, mini zoom-in on hover, click → modal (full bio+quote)
     · Board / Advisory — SAME design as each other (per direction), a
       compact always-expanded card with inline bio + quote, no click.
       Photo is substantially larger than the original 76px version.
     · Partners — logo tiles + a large rotating carousel above them.
   ═════════════════════════════════════════════════════════════════════ */

/* circle photo — the one consistent shape across every real person on this
   page; only the CARD around it changes per group. */
.ppl-circle { border-radius: 50%; overflow: hidden; background: var(--blue-light); position: relative; flex-shrink: 0; }
.ppl-circle img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
/* placeholder for someone whose photo hasn't arrived yet — initials on brand blue */
.ppl-circle--placeholder { display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; }
.ppl-circle--placeholder span { font-size: clamp(28px, 6vw, 46px); font-weight: 700; letter-spacing: .02em; }

/* ── STAFF — richest treatment: full card, mini zoom-in, click → modal ── */
.ppl-staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; margin-top: 40px; }
@media (max-width: 1100px) { .ppl-staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .ppl-staff-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  /* photo reads a bit large filling the whole grid cell on phones — cap it
     and let it center in the cell instead of stretching to fill it */
  .ppl-staff-card .ppl-circle { width: 100%; max-width: 160px; margin: 0 auto; }
}
@media (max-width: 460px) {
  .ppl-staff-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .ppl-staff-card .ppl-circle { max-width: 120px; }
}

.ppl-staff-card { cursor: pointer; text-align: center; background: none; border: none; font-family: inherit; padding: 0; display: block; width: 100%; min-width: 0; }
.ppl-staff-card .ppl-circle { width: 100%; aspect-ratio: 1; box-shadow: 0 14px 34px rgba(0,82,156,.14); transition: box-shadow .25s ease; }
.ppl-staff-card:hover .ppl-circle,
.ppl-staff-card:focus-visible .ppl-circle { box-shadow: 0 18px 44px rgba(0,82,156,.22); }
.ppl-staff-card:hover .ppl-circle img,
.ppl-staff-card:focus-visible .ppl-circle img { transform: scale(1.08); }
.ppl-staff-name { font-size: 18px; font-weight: 700; margin-top: 16px; }
.ppl-staff-role { font-size: 14.5px; font-weight: 400; color: var(--blue); margin-top: 2px; line-height: 1.4; }
.ppl-staff-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 16px; }

/* ── BOARD + ADVISORY — identical card, larger photo than the original,
     bio + quote always visible, no click/modal. Used for both groups. ── */
.ppl-board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 800px) { .ppl-board-grid { grid-template-columns: 1fr; } }

.ppl-board-card {
  background: var(--blue-light);
  border-radius: 22px;
  padding: 32px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0 26px;
  align-items: start;
  min-width: 0;
}
.ppl-board-card > div { min-width: 0; }
.ppl-board-card .ppl-circle { width: 132px; height: 132px; box-shadow: 0 10px 26px rgba(0,82,156,.12); }
.ppl-board-name { font-size: 19px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.ppl-board-role { font-size: 14px; font-weight: 400; color: var(--blue); margin-bottom: 12px; line-height: 1.4; }
.ppl-board-bio { font-size: 14.5px; font-weight: 300; color: var(--text-body); line-height: 1.65; }
.ppl-board-quote { margin-top: 10px; padding-right: 14px; border-right: 2px solid var(--gold); font-size: 14px; font-style: italic; font-weight: 700; color: var(--text-dark); line-height: 1.55; }

@media (max-width: 560px) {
  .ppl-board-card { grid-template-columns: 92px 1fr; padding: 24px; gap: 0 18px; }
  .ppl-board-card .ppl-circle { width: 92px; height: 92px; }
}

/* ── MODAL — staff only ── */
.ppl-modal-overlay { position: fixed; inset: 0; background: rgba(13,30,58,.6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 300; padding: 24px; }
.ppl-modal-overlay.open { display: flex; }
.ppl-modal-card { background: #fff; border-radius: 26px; max-width: 540px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.32); position: relative; }
.ppl-modal-close { position: absolute; top: 16px; left: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; font-size: 18px; cursor: pointer; z-index: 2; }
.ppl-modal-close:hover { background: var(--gold); }
.ppl-modal-photo { width: 100%; aspect-ratio: 16/9; background: var(--blue-light); overflow: hidden; position: relative; }
.ppl-modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; position: relative; display: block; }
/* "fit" mode — for square/portrait photos that turn into a zoomed strip of
   the face when cropped to 16:9 (set `fit:true` on the person in people.js).
   The photo sits as a square in the middle, and a blurred, enlarged copy of
   the same photo fills the frame behind it, so the modal keeps its wide
   look. --photo is set from JS as an absolute URL. */
.ppl-modal-photo.is-fit::before { content: ''; position: absolute; inset: -40px; background: var(--photo) center / cover no-repeat; filter: blur(24px) saturate(1.1); opacity: .85; }
.ppl-modal-photo.is-fit img { width: auto; height: 100%; aspect-ratio: 1 / 1; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%); }
.ppl-modal-body { padding: 28px 32px 32px; }
.ppl-modal-name { font-size: 22px; font-weight: 700; }
.ppl-modal-role { font-size: 14px; color: var(--blue); margin-bottom: 14px; }
.ppl-modal-bio { font-size: 15px; font-weight: 300; color: var(--text-body); line-height: 1.7; }
.ppl-modal-quote { margin-top: 16px; padding: 12px 16px; border-right: 3px solid var(--gold); background: var(--blue-light); border-radius: 0 10px 10px 0; font-size: 14px; font-style: italic; font-weight: 700; color: var(--text-dark); }

/* ── PARTNERS — a single large logo that crossfades through the partner
     list up top ("the place they deserve"), then the full logo grid below,
     made less washed-out than before. (Replaced an earlier scrolling
     marquee version that rendered inconsistently — a single rotating
     stage is simpler and more robust.) ── */
.ppl-partners-rotator {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  margin: 40px auto 8px;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0,82,156,.08);
}

.ppl-rotator-stage { position: relative; height: 72px; }

.ppl-rotator-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .7s ease;
}
.ppl-rotator-item.active { opacity: 1; }
.ppl-rotator-item img { max-height: 64px; max-width: 220px; object-fit: contain; }

@media (max-width: 640px) {
  .ppl-partners-rotator { padding: 28px 20px; }
  .ppl-rotator-stage { height: 58px; }
  .ppl-rotator-item img { max-height: 50px; }
}

.ppl-partners-wrap { background: var(--blue-light); border-radius: 24px; padding: 40px; margin-top: 32px; }
@media (max-width: 640px) { .ppl-partners-wrap { padding: 24px 16px; border-radius: 18px; } }
.ppl-partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 900px) { .ppl-partners-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .ppl-partners-grid { grid-template-columns: repeat(3, 1fr); } }
.ppl-partner-card { background: #fff; border-radius: 14px; padding: 16px 12px; display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2; transition: box-shadow .2s ease, transform .2s ease; min-width: 0; }
.ppl-partner-card:hover, .ppl-partner-card:focus-visible { box-shadow: 0 10px 30px rgba(0,82,156,.14); transform: translateY(-2px); }
.ppl-partner-card img { max-width: 100%; max-height: 52px; object-fit: contain; filter: grayscale(35%); opacity: .88; transition: filter .2s ease, opacity .2s ease; }
.ppl-partner-card:hover img, .ppl-partner-card:focus-visible img { filter: grayscale(0%); opacity: 1; }

/* ── IN MEMORIAM — separate, muted, permanent. Not tucked into board or
     advisory lists. ── */
.memoriam { background: #F3F1EC; border-top: 1px solid #D8C88A; border-bottom: 1px solid #D8C88A; padding: 64px 0 72px; margin-top: 0; }
.mem-inner { max-width: 1160px; margin: 0 auto; padding: 0 72px; }
@media (max-width: 768px) { .mem-inner { padding: 0 24px; } }
.mem-icon { width: 32px; height: 32px; margin-bottom: 16px; color: #D8C88A; }
.memoriam h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.memoriam > .mem-inner > p { font-size: 15.5px; font-weight: 300; color: var(--text-body); max-width: 640px; line-height: 1.65; margin-bottom: 36px; }
.mem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .mem-grid { grid-template-columns: 1fr; } }
.mem-card { background: #fff; border: 1px solid #D8C88A; border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; min-width: 0; }
.mem-card > div { min-width: 0; }
.mem-card .ppl-circle { width: 84px; height: 84px; }
.mem-card .ppl-circle img { filter: grayscale(100%); }
.mem-name { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.mem-name .zl { font-weight: 400; color: var(--gray); font-size: 15px; }
.mem-role { font-size: 13.5px; font-weight: 400; color: #8A793A; margin: 2px 0 10px; }
.mem-bio { font-size: 14px; font-weight: 300; color: var(--text-body); line-height: 1.65; }
.mem-quote { margin-top: 8px; padding-right: 10px; border-right: 2px solid #D8C88A; font-size: 13.5px; font-style: italic; font-weight: 700; color: var(--text-dark); }


/* ═════════════════════════════════════════════════════════════════════
   PROGRAMS PAGE — "התוכניות שלנו"
   Text + playable video rows (real audio, real controls — these are the
   "original format" clips, not the muted background loops used
   elsewhere), a 3-part color-coded breakdown for שנת משמעות, and a
   pull-quote for the מנהיגות section.
   ═════════════════════════════════════════════════════════════════════ */

.prog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* min-width: 0 overrides the grid default of min-width: auto — without it,
   a grid item containing a replaced element (our <video>) can force its
   track to the video's intrinsic width (1280px) regardless of any width:
   100% on the video itself, blowing the row out far past the viewport on
   mobile ("shows only a quarter of the video" was this row being ~3-4x
   the phone's width, clipped by the viewport). Same fix on .prog-text so
   the two columns stay evenly split instead of the text column shrinking
   to make room for the oversized video column. */
.prog-row .prog-video, .prog-row .prog-text { min-width: 0; }
.prog-row .prog-video { order: 1; }
.prog-row .prog-text { order: 2; }
.prog-row.prog-row--flip .prog-video { order: 2; }
.prog-row.prog-row--flip .prog-text { order: 1; }

.prog-video-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--text-dark);
  box-shadow: 0 20px 50px rgba(0, 82, 156, 0.18);
}

.prog-video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }

.prog-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: #FFF9E8;
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .prog-row { grid-template-columns: 1fr; gap: 28px; }
  .prog-row .prog-video, .prog-row.prog-row--flip .prog-video { order: 1; }
  .prog-row .prog-text, .prog-row.prog-row--flip .prog-text { order: 2; }
}

@media (max-width: 600px) {
  /* Edge-to-edge on phones only. */
  .prog-video-card {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}

/* ── 3-part color-coded breakdown — used on Programs (שנת משמעות) and
     Impact (Triple Win). Generic, not page-specific. ── */
.triple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 900px) { .triple-grid { grid-template-columns: 1fr; } }

.triple-card { background: var(--blue-light); border-radius: 20px; padding: 30px 28px; }
.triple-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 16px;
}
.triple-card:nth-child(2) .triple-letter { background: var(--green); }
.triple-card:nth-child(3) .triple-letter { background: var(--blue); }
.triple-title { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.triple-card p { font-size: clamp(16px, 1.5vw, 17.5px); font-weight: 300; color: var(--text-body); line-height: 1.65; margin: 0; }

/* ── inline stat pill, e.g. "+1,000 בוגרים" mid-paragraph — generic ── */
.stat-pill {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--green-light); border-radius: 100px;
  padding: 8px 20px; margin: 8px 0 20px;
}
.stat-pill .num { font-size: 22px; font-weight: 700; color: var(--green); }
.stat-pill .txt { font-size: clamp(16px, 1.5vw, 17.5px); font-weight: 300; color: var(--text-body); }

/* ── recognition / awards list — year badge + description ── */
.awards-list { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.award-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.award-row:last-child { border-bottom: none; }
.award-year { font-size: 17px; font-weight: 700; color: var(--blue); }
.award-desc { font-size: 15px; font-weight: 300; color: var(--text-body); line-height: 1.6; }

@media (max-width: 560px) {
  .award-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}


/* ═════════════════════════════════════════════════════════════════════
   DONATE PAGE — "תרמו עכשיו"
   Three give-methods (credit card embed, bank transfer, documents) live
   as h3 subsections inside one .content-section, same pattern as the
   about-page idea section. New here: .donate-embed-card (JGive iframe
   frame), .bank-card (definition-list style bank details box, echoes
   .triple-card's blue-light treatment), .doc-links/.doc-link (the two
   PDF links).
   ═════════════════════════════════════════════════════════════════════ */

.donate-embed-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0, 82, 156, 0.1);
  border: 1px solid var(--border);
  max-width: 560px;
}

.donate-embed-card iframe {
  display: block;
  width: 100%;
  border: none;
}

.bank-card {
  background: var(--blue-light);
  border-radius: 20px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 24px;
  max-width: 520px;
}

.bank-card dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.bank-card dd {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dark);
}

.doc-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 22px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.doc-link:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(0, 82, 156, 0.12);
  transform: translateY(-1px);
}

.doc-link .doc-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue);
}

.content-section .tax-note {
  display: inline-block;
  margin-top: -4px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--gray);
}

@media (max-width: 600px) {
  .bank-card { grid-template-columns: 1fr; gap: 2px; max-width: none; padding: 26px 24px; }
  .bank-card dt { margin-top: 12px; }
  .bank-card dt:first-child { margin-top: 0; }
  .doc-links { flex-direction: column; }
  .doc-link { width: 100%; }
}


/* ═════════════════════════════════════════════════════════════════════
   ENGLISH / LTR MIRRORING
   The rules above were written for Hebrew (RTL) with some physical
   left/right properties. English pages get dir="ltr" on <html>; these
   overrides mirror only what needs mirroring, so the Hebrew pages are
   untouched. If a new component uses left/right, add its mirror here.
   ═════════════════════════════════════════════════════════════════════ */
[dir="ltr"] .link-more:hover .arrow,
[dir="ltr"] .contact-donate-link:hover .arrow { transform: translateX(4px); }

[dir="ltr"] .line-wrap .patch { right: auto; left: -8%; }

[dir="ltr"] .pull-quote { border-right: none; border-left: 5px solid var(--gold); padding: 4px 0 4px 24px; }
[dir="ltr"] .pull-quote--blue { border-color: var(--blue); }
[dir="ltr"] .pull-quote--green { border-color: var(--green); }
@media (max-width: 768px) {
  [dir="ltr"] .pull-quote { padding: 2px 0 2px 18px; }
}

[dir="ltr"] .video-card { float: right; margin: 6px 0 28px 32px; }
@media (max-width: 900px) {
  [dir="ltr"] .video-card { float: none; margin: 0 auto 32px; }
}
@media (max-width: 600px) {
  [dir="ltr"] .video-card { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}

[dir="ltr"] .ppl-board-quote { padding-right: 0; border-right: none; padding-left: 14px; border-left: 2px solid var(--gold); }
[dir="ltr"] .ppl-modal-close { left: auto; right: 16px; }
[dir="ltr"] .ppl-modal-quote { border-right: none; border-left: 3px solid var(--gold); border-radius: 10px 0 0 10px; }
[dir="ltr"] .mem-quote { padding-right: 0; border-right: none; padding-left: 10px; border-left: 2px solid #D8C88A; }

/* Hebrew headings use tight negative letter-spacing; Latin text in this
   rounded face reads better at normal spacing. */
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: 0; }

/* English headings: let the browser balance line lengths. The hero line
   break that suits the Hebrew slogan leaves one-word lines in English on
   phones, so it's dropped there and balancing takes over. */
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { text-wrap: balance; }
@media (max-width: 600px) {
  [dir="ltr"] .hero h1 br { display: none; }
}

/* English logo (sahi-logo-en.png) is taller and narrower than the Hebrew
   one (wordmark above the wings, ~1.5:1 vs ~2.2:1), so at the same height
   it reads much smaller. Give it more height wherever it appears. */
[dir="ltr"] .nav-logo img { height: 66px; }
[dir="ltr"] .hero-logo-wrap img { height: clamp(130px, 30vw, 210px); }
[dir="ltr"] .footer-logo img { height: 64px; }
@media (max-width: 900px) {
  [dir="ltr"] .nav-logo img { height: 54px; }
}


/* Donate page (English): tax-deductibility callout tied to the credit-card
   section, plus a quieter variant for the "bank transfers aren't
   tax-deductible" note. Logical border so it works in both directions. */
.tax-callout {
  background: var(--green-light);
  border-inline-start: 4px solid var(--green);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 4px 0 22px;
  max-width: 560px;
}
.tax-callout-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.content-section .tax-callout p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}
.tax-callout--note {
  background: var(--blue-light);
  border-inline-start-color: var(--gold);
}
.bank-card dd { overflow-wrap: anywhere; }

/* Deep links (e.g. about.html#map): stop the heading from hiding under the
   sticky nav when the page jumps to a section. */
section[id], div[id="memoriam"], h3[id] { scroll-margin-top: 90px; }
@media (max-width: 900px) { section[id], div[id="memoriam"], h3[id] { scroll-margin-top: 72px; } }

/* Footer social links (YouTube, Facebook, Instagram) — simple outline
   icons in the footer's gray, white on hover. */
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a { display: inline-flex; transition: transform 0.15s, filter 0.15s; }
.footer-social a:hover, .footer-social a:focus-visible { transform: translateY(-2px); filter: brightness(1.15); }
.footer-social svg { width: 34px; height: 34px; display: block; }

/* ═════════════════════════════════════════════════════════════════════
   MOBILE READABILITY (adopted 2026-10-20 after a trial) — phones only,
   both languages. Body text uses Regular (400) instead of the font's
   Light (300), and light-gray small text on light backgrounds is darker
   (#5E6A80 meets WCAG AA; #939598 didn't).
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-sub, .who-intro, .stat-label, .numbers-foot, .section-cta p,
  .content-section p, .video-card .video-caption, .count-badge .txt,
  .map-loading, .tt-year, .ppl-board-bio, .ppl-modal-bio,
  .memoriam > .mem-inner > p, .mem-bio, .triple-card p, .stat-pill .txt,
  .award-desc, .bank-card dd, .content-section .tax-note {
    font-weight: 400;
  }
  .numbers-foot, .region-title, .map-loading, .tt-year,
  .mem-name .zl, .content-section .tax-note {
    color: #5E6A80;
  }
}

/* Impact page: community paragraph under the Triple Win cards */
.content-section .community-para { margin-top: 32px; }

/* Crisis page photo */
.page-photo { margin: 36px 0 0; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 48px rgba(0, 82, 156, 0.14); }
.page-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .page-photo { border-radius: 14px; margin-top: 28px; } }
/* Side photo (portrait), floated beside the text on wide screens: at the
   end of the line (left in Hebrew, right in English). Full width, cropped
   to 4:3, on phones. */
.page-photo--side { float: left; width: 38%; max-width: 400px; margin: 6px 36px 20px 0; }
[dir="ltr"] .page-photo--side { float: right; margin: 6px 0 20px 36px; }
#resilience .section-inner::after { content: ""; display: block; clear: both; }
@media (max-width: 768px) {
  .page-photo--side, [dir="ltr"] .page-photo--side { float: none; width: 100%; max-width: none; margin: 0 0 24px; }
  .page-photo--side img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 50%; }
}

/* Accessibility statement page */
.statement-list { margin: 0 0 24px; padding-inline-start: 22px; font-size: clamp(16px, 2.2vw, 18px); font-weight: 300; color: var(--text-body); line-height: 1.75; }
@media (max-width: 768px) { .statement-list { font-weight: 400; color: #5E6A80; } }
.statement-list li { margin-bottom: 6px; }
.statement-page .bank-card { margin-top: 12px; }
.statement-page .bank-card a { color: inherit; }
.statement-date { margin-top: 32px; font-size: 15px; opacity: 0.8; }

/* Video pause / play icon (see main.js). Hidden until the pointer is over
   the video or keyboard focus is on the icon; always shown while paused. */
.vid-box { cursor: pointer; }
.vid-toggle {
  position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 27, 56, 0.6); color: #fff; cursor: pointer;
  opacity: 0; transition: opacity 0.2s;
}
.vid-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.vid-box:hover .vid-toggle, .vid-toggle:focus-visible, .vid-box.is-paused .vid-toggle { opacity: 1; }
.vid-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (hover: none) { .vid-box.is-paused .vid-toggle { opacity: 1; } }
