/* =========================================================
   ICCN — International Cancer Care Network
   Mobile-first responsive stylesheet
   Breakpoints: 320 / 768 / 1024 / 1440
   ========================================================= */

:root {
  /* Brand palette (from Figma) */
  --c-primary: #1a59b2;
  --c-primary-2: #1774d0;
  --c-primary-3: #2863b7;
  --c-primary-4: #4681bd;
  --c-link: #45abff;
  --c-mission-bg: #1042a0;
  --c-mission-grad: linear-gradient(110deg, #0050a1 0%, #5a9fe5 100%);
  --c-section-tint: #f1f4f8;

  --c-text: #0f172a;
  --c-text-2: #16293d;
  --c-text-3: #2c2c2c;
  --c-muted: #65758b;
  --c-muted-2: #656565;
  --c-muted-3: #a6a6a6;

  --c-pill: #c4daf8;
  --c-pill-2: rgba(75, 140, 206, 0.39);
  --c-tag: #dbebff;
  --c-tag-bg: #e9eef7;
  --c-soft: #e3f1ff;
  --c-soft-2: #d9e7ff;
  --c-hope: #64ea47;

  --c-prog-blue: #1774d0;
  --c-prog-green: #79c937;
  --c-prog-cyan: #14a1df;
  --c-prog-pink: #f04a9d;

  --c-footer: #022343;
  --c-footer-2: #020e1b;

  --shadow-card: 0 7px 15px rgba(0, 0, 0, 0.05);
  --shadow-card-lg: 0 7px 20px rgba(7, 59, 110, 0.10);
  --shadow-card-xl: 0 0 50px rgba(7, 59, 110, 0.10);
  --shadow-soft: 0 5px 14px rgba(0, 0, 0, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fluid container — capped at 1500px so the design stays close to Figma's 1467-pixel inner band on desktop */
  --container: min(100% - 2rem, 1500px);

  /* Fluid type helpers
     Sizes are tuned so a 1280–1366 px small monitor lands mid-range
     instead of immediately hitting the desktop max.
     Format: clamp(MIN, BASE + RATEvw, MAX) */
  --fs-hero: clamp(1.6rem, .95rem + 2vw, 3.75rem);    /* mobile ~26 → small mon ~38 → desktop ~53 → large mon ~60 */
  --fs-h2:   clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem);  /* mobile ~24 → small mon ~36 → desktop ~40 */
  --fs-h3:   clamp(1.1rem, 0.95rem + 0.55vw, 1.4rem);
  --fs-lead: clamp(1rem, 0.88rem + 0.45vw, 1.25rem);
  --fs-body: clamp(0.95rem, 0.88rem + 0.25vw, 1.1rem);
  --fs-small:clamp(0.85rem, 0.8rem + 0.15vw, 1rem);
}

/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
/* `overflow-x: clip` kills horizontal overflow WITHOUT breaking
   `position: sticky` on descendants (which `overflow-x: hidden` does). */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--c-text-3);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-primary); color: #fff;
  padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .9rem 1.4rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: clamp(.95rem, .85rem + .25vw, 1.15rem);
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn img { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn--white { background: #fff; color: var(--c-primary-3); }
.btn--light { background: var(--c-soft-2); color: var(--c-primary); }
.btn--primary { background: var(--c-primary-2); color: #fff; }
.btn--primary:hover { background: var(--c-primary); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.1rem; }
.btn--donate {
  background: var(--c-primary);
  color: #fff;
  padding: .85rem 1.6rem;
  border-radius: 8px;
  gap: .7rem;
  line-height: 1;
  font-size: clamp(1rem, .9rem + .25vw, 1.18rem);
}
.btn--donate__icon {
  width: 1.5em;
  height: 1.5em;
  filter: brightness(0) invert(1);
  flex: none;
}
.btn--donate:hover { background: #134a99; color: #fff; transform: translateY(-1px); }
/* Override .primary-nav a color inheritance */
.primary-nav .btn--donate,
.primary-nav .btn--donate:hover { color: #fff; }

/* -------- Pills (section badges) -------- */
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-pill);
  color: var(--c-primary);
  font-weight: 700;
  font-size: clamp(.95rem, .85rem + .3vw, 1.25rem);
}
.pill img { width: 1.2em; height: 1.2em; }
.pill--light { background: var(--c-pill-2); }
.pill--soft  { background: var(--c-pill);   }

/* -------- Generic section heading -------- */
.section-heading {
  text-align: center;
  max-width: 940px;
  margin: 0 auto 2.5rem;
}
.section-heading h2 {
  font-size: var(--fs-h2);
  color: var(--c-text);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .8rem;
}
.section-heading p {
  font-size: clamp(1rem, .9rem + .45vw, 1.4rem);
  color: var(--c-muted);
  font-weight: 500;
  line-height: 1.45;
}
.section-heading--with-badge { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.section-heading--with-badge .pill { margin-bottom: .5rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  will-change: background, box-shadow;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand__logo { width: clamp(46px, 4.5vw, 86px); height: auto; flex: none; }
.brand__name {
  color: var(--c-primary);
  font-weight: 900;
  font-size: clamp(1.25rem, .95rem + .85vw, 2.4rem);
  line-height: 1.15;
}

.primary-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.2rem); }
.primary-nav > ul { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2.2rem); }
.primary-nav a {
  font-weight: 500;
  font-size: clamp(.95rem, .82rem + .25vw, 1.18rem);
  color: var(--c-text-2);
  position: relative;
  padding: 0.8rem;
}
.primary-nav a:hover { color: var(--c-primary); }
.primary-nav a.is-active { color: var(--c-link); font-weight: 700; }

.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 42px; height: 42px; padding: 0;
  border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--c-primary);
  margin: 5px auto; transition: transform .25s ease, opacity .25s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: grid;
  /* 50/50 split: people on the left, content on the right.
     Both columns scale proportionally with the viewport. */
  grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
  align-items: end;
  padding: 0;
  background: none;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  grid-column: 1 / -1; grid-row: 1;
}

/* The blue triangle-pattern background fills the entire hero */
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* People cutout fills its 50% column proportionally — width follows the
   column, height follows the image's native aspect ratio. Capped so it
   never overflows the viewport on very wide screens. */
.hero__people {
  position: relative;
  z-index: 1;
  grid-column: 1;
  align-self: end;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
}

/* No overlay tint — the background image shows through cleanly. */

/* Content lives in column 3 (right 50%) of the hero grid */
.hero__content {
  position: relative;
  z-index: 1;
  grid-column: 3;
  align-self: center;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) 0;
}
.hero__inner {
  width: min(100%, 870px);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: clamp(1.4rem, 1rem + 1vw, 2.2rem);
}
.hi-hope { color: var(--c-hope); }
.hero__lead {
  font-size: clamp(.95rem, .8rem + .5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: .8rem;
  max-width: 820px;
}
/* Second lead paragraph gets extra breathing room top + bottom */
.hero__lead + .hero__lead {
  margin-top: clamp(.9rem, .6rem + .5vw, 1.4rem);
  margin-bottom: clamp(1rem, .7rem + .5vw, 1.6rem);
}
.hero__cta {
  display: flex;
  gap: clamp(.8rem, .6rem + .4vw, 1.2rem);
  flex-wrap: wrap;
  margin: clamp(1.6rem, 1.2rem + 1vw, 2.4rem) 0 clamp(1.2rem, .9rem + .6vw, 1.8rem);
}
.hero__cta .btn {
  padding: clamp(.85rem, .7rem + .5vw, 1.2rem) clamp(1.4rem, 1.1rem + .9vw, 2.2rem);
  font-size: clamp(.95rem, .85rem + .35vw, 1.3rem);
  border-radius: 8px;
}
.hero__note {
  font-size: clamp(1rem, .85rem + .55vw, 1.75rem);
  color: rgba(255, 255, 255, .92);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .02em;
}

/* =========================================================
   ABOUT (What is ICCN)
   ========================================================= */
.about { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.about__heading { text-align: left; margin-bottom: 2rem; }
.about__heading h2 {
  font-size: var(--fs-h2);
  color: var(--c-primary);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0;
}
.about__subtitle {
  color: var(--c-muted);
  font-weight: 700;
  font-size: clamp(1rem, .9rem + .35vw, 1.4rem);
  line-height: 1.2;
  margin-top: .15rem;
}
.about__body p {
  color: var(--c-muted);
  font-size: clamp(.95rem, .85rem + .4vw, 1.32rem);
  line-height: 1.55;
  margin-bottom: calc(1rem + 10px);
  text-align: justify;
  font-weight: 500;
}
@media (max-width: 1023px) {
  .about__body p {
    margin-bottom: 1.6rem;
  }
}

/* =========================================================
   MISSION
   ========================================================= */
.mission {
  background: var(--c-mission-bg);
  color: #fff;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.mission__heading {
  text-align: center;
  max-width: 1200px;
  /* Same generous gap before the items as the other sections. */
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}
.mission__heading h2 {
  font-size: var(--fs-h2);
  font-weight: 700;          /* bold, matches other section headings */
  margin-bottom: 0;          /* tighter gap to the description below */
}
.mission__heading p,
.mission__heading p * {
  font-size: clamp(1rem, .9rem + .45vw, 1.4rem);
  line-height: 1.3;
  font-weight: 500;          /* Inter Medium */
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, .96);
}

.mission__grid {
  display: grid;
  gap: clamp(1.5rem, 2vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.m-card {
  background: #fff;
  color: var(--c-text);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 1.4vw, 2rem) clamp(1rem, 1vw, 1.4rem);
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}
.m-card__icon { width: clamp(46px, 4vw, 60px); height: auto; margin: 0 auto 1rem; }
.m-card h3 {
  font-size: clamp(1.05rem, .95rem + .35vw, 1.45rem);
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--c-text);
}
.m-card p {
  font-size: clamp(.9rem, .82rem + .35vw, 1.25rem);
  color: var(--c-muted-2);
  line-height: 1.5;
}

/* =========================================================
   PROGRAMS
   ========================================================= */
.programs {
  background: var(--c-section-tint);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
/* Same heading treatment as Resources / News / Leadership
   (bold heading, tight gap to description, full-width container,
   roomier gap before the card grid) — color left at the default. */
.programs .section-heading h2 {
  font-weight: 700;
  margin-bottom: 0;
}
.programs .section-heading {
  max-width: none;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.programs .section-heading p {
  max-width: none;
}
.programs__grid {
  display: grid;
  gap: clamp(1rem, 1.4vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.p-card {
  background: #fff;
  border-radius: 12px;
  padding: clamp(1.4rem, 1.6vw, 2rem);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.p-card__icon {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.1rem;
}
.p-card h3 {
  font-size: clamp(1.05rem, .95rem + .4vw, 1.55rem);
  font-weight: 600;
  margin-bottom: .75rem;
  line-height: 1.25;
}
.p-card p {
  color: var(--c-muted);
  font-size: clamp(.95rem, .85rem + .35vw, 1.3rem);
  line-height: 1.5;
}
/* Program card CTA paragraph — appears only when the description
   contains "ICCN is looking forward … Become Partner". Split out
   as a separate <p> by the programs.php template; styled 2px
   smaller than the base description with "Become Partner" as a
   blue underlined link. Programs without this phrase render
   unchanged. */
.p-card p.p-card__cta {
  color: var(--c-muted);
  font-size: calc(clamp(.95rem, .85rem + .35vw, 1.3rem) - 2px);
  line-height: 1.5;
  margin-top: .5rem;
}
.p-card__cta-link {
  color: var(--c-primary);
  text-decoration: underline;
  font-weight: 500;
}
.p-card__cta-link:hover {
  color: var(--c-primary-2);
}
.p-card--blue  h3 { color: var(--c-prog-blue);  }
.p-card--green h3 { color: var(--c-prog-green); }
.p-card--cyan  h3 { color: var(--c-prog-cyan);  }
.p-card--pink  h3 { color: var(--c-prog-pink);  }

/* =========================================================
   LEADERSHIP
   ========================================================= */
.leadership { padding: clamp(3.5rem, 6vw, 5.5rem) 0; background: #fff; }
/* Same heading treatment as Resources / News:
   dark navy bold heading, tight pill→heading→description stack,
   roomier gap before the cards. */
.leadership .section-heading h2 {
  color: var(--c-primary);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0;
}
.leadership .section-heading--with-badge {
  gap: clamp(.4rem, .7vw, .8rem);
}
.leadership .section-heading {
  max-width: none;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.leadership .section-heading p {
  max-width: none;
  line-height: 1.1;
}
.leadership__grid {
  display: grid;
  gap: clamp(1rem, 1.4vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}
.member {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(7, 59, 110, .15);
  display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.member:hover { transform: translateY(-4px); }
.member__photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 265 / 257;
  margin-bottom: .8rem;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 {
  color: var(--c-primary);
  /* Tighter scale so even "Dr. Praveen Ramakrishnan" fits on one line */
  font-size: clamp(.88rem, .72rem + .4vw, 1.15rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .15rem;
  padding: 0 .5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member p {
  font-size: clamp(.7rem, .6rem + .25vw, .82rem);
  color: var(--c-text-3);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  padding: 0 .5rem .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   DONATE CTA
   ========================================================= */
.donate {
  background: var(--c-mission-grad);
  color: #fff;
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  text-align: center;
}
.donate__inner { max-width: 1180px; }
.donate__heart { width: clamp(40px, 4vw, 58px); margin: 0 auto 1.2rem; }
.donate h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.donate__lead {
  font-size: clamp(1rem, .92rem + .5vw, 1.5rem);
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  line-height: 1.45;
}
.donate__sub {
  font-size: clamp(1.15rem, 1rem + .6vw, 2.2rem);
  font-weight: 700;
  margin-top: clamp(1rem, .8rem + .6vw, 1.8rem);
  margin-bottom: clamp(1.8rem, 1.4rem + 1vw, 2.8rem);
}
.donate__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(.8rem, 1.2vw, 1.4rem);
  margin-bottom: 2rem;
}
.d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .65rem;
  padding: 1.05rem 1.6rem;
  border-radius: 12px;
  color: var(--c-primary-4);
  font-weight: 700;
  font-size: clamp(1rem, .9rem + .35vw, 1.3rem);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .12);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.d-btn img { width: 1.25em; height: 1.25em; }
.d-btn:hover { transform: translateY(-3px); }
.d-btn--white { background: #fff; }
.d-btn--tint  { background: var(--c-soft); }
.donate__foot {
  font-size: clamp(.95rem, .85rem + .4vw, 1.5rem);
  color: #bbd0e6;
}

/* =========================================================
   NEWS
   ========================================================= */
.news {
  background: var(--c-section-tint);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
/* Match the same heading treatment used for Resources / Leadership:
   brand-blue bold heading, tight pill→heading→description stack,
   roomier gap before the card grid. */
.news .section-heading h2 {
  color: #0F172A;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0;
}
.news .section-heading--with-badge {
  gap: clamp(.4rem, .7vw, .8rem);
}
.news .section-heading {
  max-width: none;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.news .section-heading p {
  max-width: none;
  line-height: 1.1;
}
.news__grid {
  display: grid;
  gap: clamp(1rem, 1.4vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}
.n-card {
  background: #fff;
  border-radius: 10px;
  padding: clamp(1.2rem, 1.4vw, 1.8rem);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .05);
  display: flex; flex-direction: column; gap: .9rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.n-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, .08); }
.n-card[data-href] { cursor: pointer; }
.n-card__row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.tag {
  background: var(--c-tag);
  color: var(--c-primary-2);
  padding: .35rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: clamp(.78rem, .72rem + .2vw, .95rem);
}
.n-card__date {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--c-muted-3);
  font-size: clamp(.8rem, .75rem + .2vw, 1rem);
}
.n-card__date img { width: 1em; height: 1em; opacity: .7; }
.n-card h3 {
  font-size: clamp(1.05rem, .95rem + .35vw, 1.3rem);
  color: var(--c-primary-2);
  font-weight: 600;
  line-height: 1.3;
}
.n-card__byline {
  color: var(--c-muted);
  font-size: clamp(.85rem, .8rem + .2vw, 1rem);
  font-weight: 600;
}
.n-card__excerpt {
  color: var(--c-muted);
  font-size: clamp(.9rem, .85rem + .3vw, 1.15rem);
  line-height: 1.45;
  flex-grow: 1;
}
.link-more {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--c-primary-2);
  font-weight: 500;
  font-size: clamp(.95rem, .88rem + .25vw, 1.15rem);
}
.link-more img { width: 1em; height: 1em; transition: transform .2s ease; }
.link-more:hover img { transform: translateX(3px); }
.news__more {
  text-align: center;
  margin-top: 6rem;
}
.resources__more {
  text-align: center;
  margin-top: 6rem;
}

/* =========================================================
   RESOURCES
   ========================================================= */
.resources { padding: clamp(3.5rem, 6vw, 5.5rem) 0; background: #fff; }
.resources .section-heading h2 {
  color: var(--c-primary);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0;            /* Tighten heading → description gap */
}
/* Tighter pill / heading / description spacing inside the header,
   then more breathing room before the card grid — matches Figma. */
.resources .section-heading--with-badge {
  gap: clamp(.4rem, .7vw, .8rem);
}
.resources .section-heading {
  max-width: none;
  margin-bottom: clamp(3rem, 5vw, 5rem);   /* extra space before cards */
}
.resources .section-heading p {
  max-width: none;
  line-height: 1.1;
}
.resources__grid {
  display: grid;
  gap: clamp(1rem, 1.4vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2rem;
}
.r-card {
  background: #fff;
  border-radius: 8px;
  padding: clamp(1.6rem, 2.2vw, 2.4rem);
  box-shadow: var(--shadow-card-xl);
  border: 1px solid #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.r-card:hover { transform: translateY(-4px); box-shadow: 0 0 60px rgba(7, 59, 110, .16); }
.r-card[data-href] { cursor: pointer; }

/* Top row: icon + (pill + year), vertically centered against each other. */
.r-card__top {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.8rem);
}
.r-card__head {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Body indented so title/desc/link align with the pill's left edge. */
.r-card__body {
  margin-top: clamp(1.1rem, 1.6vw, 1.8rem);
  padding-left: calc(53px + clamp(1rem, 1.6vw, 1.8rem));
}
.r-card__badge {
  width: 53px; height: 53px;
  background: var(--c-primary-2);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.r-card__badge img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.r-card__journal {
  background: var(--c-tag-bg);
  color: var(--c-primary);
  padding: .5rem 1rem;
  border-radius: 4px;
  font-size: clamp(.95rem, .85rem + .3vw, 1.2rem);
  font-weight: 400;
  line-height: 1.2;
}
.r-card__year {
  color: #bcbcbc;
  font-size: clamp(1rem, .9rem + .3vw, 1.25rem);
  font-weight: 400;
  margin-left: 0;
}
.r-card__title,
.r-card h3 {
  font-size: clamp(1.05rem, .95rem + .4vw, 1.55rem);
  color: var(--c-primary);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .4rem;
}
.r-card__desc,
.r-card p {
  color: var(--c-muted);
  font-size: clamp(.92rem, .85rem + .3vw, 1.18rem);
  line-height: 1.32;
  margin: 0 0 clamp(1rem, 1.4vw, 1.5rem);
}
.r-card__link { display: inline-flex; }

/* On narrow screens drop the indent so body uses full card width. */
@media (max-width: 600px) {
  .r-card__body { padding-left: 0; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--c-footer); color: #fff; }
.footer__inner {
  display: grid;
  gap: clamp(2rem, 3vw, 3.5rem);
  grid-template-columns: 1fr;
  padding: clamp(1.4rem, 2vw, 2.2rem) 0;
}
.footer__logo { width: clamp(56px, 5vw, 86px); margin-bottom: 1rem; }
.footer__brand p {
  font-size: clamp(1rem, .9rem + .25vw, 1.2rem);
  max-width: 500px;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.footer__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .2s ease;
}
.footer__social a:hover { opacity: .75; }
.footer__social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__col h4 {
  font-size: clamp(1.1rem, 1rem + .35vw, 1.55rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer__col ul li a, .footer__col ul li {
  font-size: clamp(.95rem, .9rem + .2vw, 1.2rem);
  line-height: 2.1;
}
.footer__col ul li a:hover { color: var(--c-link); }

.footer__contact li {
  display: flex;
  align-items: center;
  gap: .65rem;
  line-height: calc(1.1em + 3px);
  padding: .35rem 0;
}
.footer__contact li span,
.footer__contact li a { line-height: calc(1.1em + 3px); }
.footer__contact img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
  margin-top: 0;
  align-self: center;
  filter: brightness(0) invert(1);
}

.footer__bar { background: var(--c-footer-2); padding: 1.3rem 0; }
.footer__barInner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: clamp(.75rem, .72rem + .1vw, .9rem);
}
.footer__legal { display: flex; gap: clamp(1rem, 1.8vw, 2.4rem); flex-wrap: wrap; }
.footer__legal a:hover { color: var(--c-link); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ----- Tablet (>= 768) ----- */
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1.3fr; }
  .leadership__grid { grid-template-columns: repeat(3, 1fr); }
  .resources__grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Laptop (>= 1024) ----- */
@media (min-width: 1024px) {
  .mission__grid    { grid-template-columns: repeat(5, 1fr); }
  .programs__grid   { grid-template-columns: repeat(2, 1fr); }
  .news__grid       { grid-template-columns: repeat(3, 1fr); }
  .leadership__grid { grid-template-columns: repeat(5, 1fr); }
}

/* ----- Laptop window (1024 – 1399): the hero's right column is
   ~512–700 px wide, so dial the title/leads/note down so they fit
   without wrapping aggressively. Larger desktops (>=1400) keep the
   bigger sizes from the base clamp values. ----- */
@media (min-width: 1024px) and (max-width: 1399px) {
  .hero__title { font-size: clamp(1.5rem, .85rem + 1.5vw, 2.4rem); }
  .hero__lead  { font-size: clamp(.85rem, .75rem + .35vw, 1.1rem); }
  .hero__note  { font-size: clamp(.85rem, .75rem + .4vw, 1.2rem); }
  .hero__content { padding: clamp(1rem, 2vw, 2rem) clamp(.8rem, 2vw, 1.6rem) clamp(1rem, 2vw, 2rem) 0; }
}

/* ----- Desktop (>= 1440) ----- */
@media (min-width: 1440px) {
  :root { --container: min(100% - 4rem, 1500px); }
}

/* ----- Mobile nav (< 980) ----- */
@media (max-width: 979px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    transform: translateY(-15px);
    opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav > ul {
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .primary-nav > ul li { border-bottom: 1px solid rgba(0,0,0,.06); }
  .primary-nav > ul a { display: block; padding: .9rem .5rem; }
  .primary-nav .btn--donate { margin-top: 1rem; align-self: flex-start; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ----- Mobile (< 768) ----- */
/* Mobile + tablet hero: centered, no people image, content-sized height.
   Above 1024 px (laptop/desktop) the original two-column layout takes over. */
@media (max-width: 1023px) {
  .hero {
    text-align: center;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2rem);
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 0;
  }
  .hero__cta { justify-content: center; }
  .hero__cta .btn { width: 100%; max-width: 360px; }
  .hero__content {
    grid-column: 1;
    padding: 0;
    align-self: center;
  }
  .hero__inner { padding-right: 0; margin-inline: auto; max-width: 640px; }
  /* Hide the people cutout on mobile + tablet — was bleeding through the text */
  .hero__people { display: none; }
  /* Override desktop grid placement of the bg layer — only the absolute
     positioning is needed on mobile/tablet. */
  .hero__bg {
    grid-column: auto;
    grid-row: auto;
  }

  /* Section descriptions read better with a looser line on small screens
     where they wrap to multiple lines. */
  .news .section-heading p,
  .resources .section-heading p,
  .leadership .section-heading p { line-height: 1.4; }

  /* Donate CTAs: stacked, full width, with side padding for breathing room. */
  .donate__actions {
    flex-direction: column;
    align-items: stretch;
    padding-left: clamp(1rem, 5vw, 2.5rem);
    padding-right: clamp(1rem, 5vw, 2.5rem);
  }
  .donate__actions .d-btn {
    width: 100%;
    max-width: none;
  }

  .footer__barInner { justify-content: center; text-align: center; }
  .footer__legal { justify-content: center; }
}

/* ----- Small phones ----- */
@media (max-width: 380px) {
  .brand__name { display: none; }
}

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

/* =========================================================
   LEADERSHIP CARD LINK (homepage section)
   When the card is wrapped in <a class="member__link">,
   keep the visual treatment but cue interactivity on hover.
   ========================================================= */
.member__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.member__link:hover { text-decoration: none; }
.member__link:hover .member__photo img { transform: scale(1.03); }
.member__link:hover h3 { color: var(--c-primary-2); }
.member__photo img { transition: transform .35s ease; }
.member__link:focus-visible {
  outline: 3px solid var(--c-link);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================================================
   MEMBER DETAIL PAGE (/member.php?slug=…)
   ========================================================= */
.member-detail {
  background: #f9f9ff;
  border-top: 1px solid #c4c5d7;
  padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(3rem, 5vw, 5rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: clamp(.9rem, .82rem + .25vw, 1.05rem);
  letter-spacing: .03em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.breadcrumb a {
  color: #434655;
  font-weight: 600;
}
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span[aria-hidden="true"] {
  color: #a6a6a6;
  font-weight: 400;
}
.breadcrumb span:last-child {
  color: var(--c-text);
  font-weight: 600;
}

.member-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 768px) {
  .member-detail__hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.5fr);
    align-items: center;
  }
}

.member-detail__photo {
  aspect-ratio: 4 / 5;
  background: #d8e3fb;
  border-radius: clamp(12px, 1.2vw, 18px);
  overflow: hidden;
  box-shadow: 0 1.5px 3px rgba(0, 0, 0, .05);
  max-width: 560px;
}
.member-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.member-detail__info h1 {
  font-size: clamp(1.9rem, 1.3rem + 3.5vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--c-text);
  margin-bottom: clamp(.6rem, 1vw, 1rem);
}
.member-detail__role {
  font-size: clamp(1.1rem, .95rem + .7vw, 1.8rem);
  color: #0037b0;
  font-weight: 600;
  line-height: 1.4;
}

.member-detail__about {
  background: #fff;
  border: 1.5px solid #f1f5f9;
  border-radius: clamp(10px, 1vw, 14px);
  padding: clamp(1.4rem, 3vw, 3.4rem);
  box-shadow: 0 1.5px 1.5px rgba(0, 0, 0, .05);
  max-width: 1200px;
  margin: 0 auto;
}
.member-detail__about h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: clamp(1rem, 1.5vw, 1.6rem);
  color: var(--c-text);
}
.member-detail__bio p {
  font-size: clamp(1rem, .9rem + .55vw, 1.65rem);
  line-height: 1.62;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.member-detail__bio p:last-child { margin-bottom: 0; }
.member-detail__bio--empty {
  color: var(--c-muted-3);
  font-style: italic;
}

/* =========================================================
   GALLERY PAGE (/gallery.php)
   Standalone page — does not affect any homepage styles.
   ========================================================= */
.gallery-page {
  background: #f9f9ff;
  border-top: 1px solid #c4c5d7;
  padding: clamp(4rem, 8vw, 10rem) 0;
}
.gallery-page__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 3vw, 2.6rem);
}

/* ---- Hero text ---- */
.gallery-page__head {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.gallery-page__head h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #111c2d;
  margin: 0 0 .6rem;
}
.gallery-page__head p {
  font-size: clamp(1rem, .85rem + .55vw, 1.45rem);
  line-height: 1.5;
  color: #434655;
  margin: 0;
}

/* ---- Category filter pills ---- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.4rem, .7vw, .65rem);
  margin: 0 auto;
}
.g-pill {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #dee8ff;
  color: #434655;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(.8rem, .72rem + .25vw, 1.05rem);
  letter-spacing: .04em;
  padding: clamp(.55rem, .8vw, .85rem) clamp(1rem, 2vw, 1.9rem);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.g-pill:hover { background: #cbdbff; }
.g-pill.is-active {
  background: #0037b0;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 55, 176, .25);
}

/* ---- Masonry grid (12-col) ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: clamp(1rem, 1.6vw, 1.85rem);
  padding: clamp(1.5rem, 3vw, 3.5rem) 0;
}
.g-card {
  position: relative;
  background: #fff;
  border: 1.3px solid #c4c5d7;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 1.3px 2.6px rgba(0, 0, 0, .05);
  grid-column: span 12;
  grid-row: span 2;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.g-card[data-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
.g-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Span helpers — desktop only. Mobile/tablet collapses to 1 column. */
@media (min-width: 768px) {
  .g-card { grid-column: span 6; grid-row: span 2; }
  .g-card--c4  { grid-column: span 6; }
  .g-card--c6  { grid-column: span 6; }
  .g-card--c8  { grid-column: span 12; }
  .g-card--r2  { grid-row: span 2; }
  .g-card--r3  { grid-row: span 3; }
}
@media (min-width: 1024px) {
  .g-card--c4 { grid-column: span 4; }
  .g-card--c6 { grid-column: span 6; }
  .g-card--c8 { grid-column: span 8; }
}

/* ---- Hover overlay (category + title + optional description) ---- */
.g-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.2rem, 2vw, 2rem);
  background: linear-gradient(to top,
    rgba(0, 55, 176, .85) 0%,
    rgba(0, 55, 176, .55) 50%,
    rgba(0, 55, 176, 0) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  color: #fff;
}
.g-card:hover .g-card__overlay,
.g-card:focus-within .g-card__overlay { opacity: 1; }
.g-card__cat {
  font-size: clamp(.7rem, .65rem + .2vw, .9rem);
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.g-card__title {
  font-size: clamp(1.1rem, .95rem + .5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}
.g-card__desc {
  margin: .4rem 0 0;
  color: #cad3ff;
  font-size: clamp(.85rem, .8rem + .25vw, 1.05rem);
  line-height: 1.45;
}

.gallery-empty {
  text-align: center;
  color: var(--c-muted);
  padding: 3rem 0;
}

/* ---- Bottom CTA banner ---- */
.gallery-cta {
  background: #f0f3ff;
  border: 1.3px solid rgba(29, 78, 216, .3);
  border-radius: 15px;
  padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.2rem, 3vw, 2.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.6rem, 1vw, 1rem);
}
.gallery-cta h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.9rem);
  font-weight: 700;
  color: #111c2d;
  margin: 0;
  line-height: 1.25;
}
.gallery-cta__lead {
  max-width: 880px;
  font-size: clamp(1rem, .85rem + .55vw, 1.45rem);
  color: #434655;
  line-height: 1.5;
  margin: 0;
}
.gallery-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0037b0;
  color: #fff;
  font-weight: 600;
  font-size: clamp(.9rem, .8rem + .35vw, 1.15rem);
  letter-spacing: .04em;
  padding: clamp(.9rem, 1.2vw, 1.3rem) clamp(1.8rem, 2.5vw, 2.6rem);
  border-radius: 10px;
  box-shadow: 0 12px 18px -4px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  margin-top: clamp(.8rem, 1.5vw, 1.5rem);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.gallery-cta__btn:hover {
  background: #002b8a;
  transform: translateY(-2px);
  box-shadow: 0 18px 24px -6px rgba(0, 0, 0, .12), 0 6px 8px -6px rgba(0, 0, 0, .1);
}
.gallery-cta__foot {
  color: #747686;
  font-weight: 600;
  font-size: clamp(.8rem, .72rem + .25vw, 1.05rem);
  letter-spacing: .04em;
  margin: 0;
}

/* =========================================================
   NEWS ARTICLE DETAIL PAGE (/news_article.php)
   Standalone — does not affect any homepage styles.
   ========================================================= */
.news-article {
  background: #f9f9ff;
  border-top: 1px solid #c4c5d7;
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 5vw, 5rem);
}
.news-article__inner {
  max-width: 880px;
  margin: 0 auto;
}

/* Header block */
.news-article__head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.news-article__cat {
  color: #1d4ed8;
  font-size: clamp(.78rem, .7rem + .2vw, .92rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.news-article__title {
  font-size: clamp(1.9rem, 1.2rem + 2.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #111c2d;
  margin: 0 0 clamp(1.5rem, 2.5vw, 2rem);
}
.news-article__rule {
  height: 1px;
  background: #d8dae3;
  border: 0;
  margin: clamp(1rem, 2vw, 1.6rem) 0;
}
.news-article__rule--soft { background: #e6e8ef; }

.news-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.news-article__author {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.news-article__avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: #dee8ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.news-article__byline { display: flex; flex-direction: column; line-height: 1.3; }
.news-article__authorName {
  color: #111c2d;
  font-weight: 600;
  font-size: clamp(.95rem, .85rem + .2vw, 1.1rem);
}
.news-article__metaLine {
  color: #65758b;
  font-size: clamp(.85rem, .8rem + .15vw, .95rem);
}
.news-article__actions { display: flex; gap: 1.5rem; }
.news-article__action {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: #434655;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(.78rem, .7rem + .2vw, .9rem);
  letter-spacing: .1em;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0;
  transition: color .2s ease;
}
.news-article__action img,
.news-article__action svg {
  width: 1em;
  height: 1.05em;
  display: block;
  flex: none;
  transition: color .2s ease;
}
.news-article__action:hover,
.news-article__action:hover svg { color: #1d4ed8; }

/* Featured image + caption */
.news-article__hero {
  margin: 0 0 clamp(1.8rem, 3vw, 2.6rem);
}
.news-article__hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.news-article__hero figcaption {
  margin-top: .8rem;
  color: #747686;
  font-size: clamp(.8rem, .75rem + .2vw, .95rem);
  font-style: italic;
  text-align: left;
}

/* Body */
.news-article__body {
  color: #434655;
  font-size: clamp(.95rem, .85rem + .3vw, 1.1rem);
  line-height: 1.7;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.news-article__body h2,
.news-article__body h3,
.news-article__body blockquote { text-align: left; }
.news-article__body > * + * { margin-top: 1.1em; }

/* Intro paragraph with drop cap */
.news-article__intro {
  margin-top: 0 !important;
}
.news-article__intro::first-letter {
  float: left;
  font-size: 3.2em;
  line-height: .9;
  font-weight: 700;
  color: #111c2d;
  padding: .05em .12em 0 0;
  margin-right: .08em;
}

/* Sub-headings inside body_html */
.news-article__body h2 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem);
  font-weight: 700;
  color: #111c2d;
  line-height: 1.25;
  margin-top: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: .6em;
}
.news-article__body h3 {
  font-size: clamp(1.15rem, .95rem + .6vw, 1.45rem);
  font-weight: 700;
  color: #111c2d;
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: .5em;
}
.news-article__body p { margin: 0; }

/* Pull quote */
.news-article__body blockquote {
  margin: clamp(2rem, 3vw, 2.6rem) 0;
  padding: .2rem 0 .2rem clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid #1d4ed8;
  font-size: clamp(1.05rem, .9rem + .55vw, 1.45rem);
  font-weight: 500;
  color: #111c2d;
  line-height: 1.5;
  font-style: normal;
}
.news-article__body blockquote p { margin: 0; }

/* Inline images within body_html */
.news-article__body figure {
  margin: clamp(2rem, 3vw, 2.6rem) 0;
}
.news-article__body figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.news-article__body figure figcaption {
  margin-top: .8rem;
  color: #747686;
  font-size: clamp(.8rem, .75rem + .2vw, .95rem);
  font-style: italic;
}

/* Stats row */
.news-article__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(.5rem, 1.5vw, 1rem) 0;
}
.news-stat__value {
  font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.6rem);
  font-weight: 700;
  color: #111c2d;
  line-height: 1.1;
  margin: 0 0 .25rem;
}
.news-stat__label {
  color: #65758b;
  font-size: clamp(.72rem, .65rem + .2vw, .82rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}

/* Related articles */
.news-related { margin-top: clamp(2rem, 3.5vw, 3rem); }
.news-related__label {
  color: #65758b;
  font-size: clamp(.72rem, .65rem + .2vw, .82rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
}
.news-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
}
.news-related__card {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .2s ease;
}
.news-related__card:hover { transform: translateY(-2px); }
.news-related__card:hover .news-related__title { color: #1d4ed8; }
.news-related__thumb {
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  overflow: hidden;
  background: #e3e8f0;
}
.news-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.2);
  transition: filter .25s ease;
}
.news-related__card:hover .news-related__thumb img { filter: grayscale(0); }
.news-related__thumb--empty {
  background: linear-gradient(135deg, #d9e1ee 0%, #e8edf6 100%);
}
.news-related__cat {
  color: #1d4ed8;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}
.news-related__title {
  color: #111c2d;
  font-size: clamp(.95rem, .85rem + .3vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  transition: color .2s ease;
}

/* 404 helper */
.news-article__notfound {
  background: #fff;
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 6px 18px rgba(7, 59, 110, .08);
}
.news-article__notfound h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  color: #111c2d;
  margin: 0 0 .8rem;
}
.news-article__notfound p {
  color: #65758b;
  margin: 0 0 1.5rem;
}

/* =========================================================
   VIEW ALL NEWS PAGE (/news_all.php)
   Reuses .news__grid and .n-card from the homepage so the
   card design stays consistent. Only adds page wrapper styles.
   ========================================================= */
.news-all-page {
  background: var(--c-section-tint);
  border-top: 1px solid #c4c5d7;
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 5vw, 5rem);
}
.news-all-page__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}
.news-all-page__head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.news-all-page__head h1 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--c-primary-2);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 .6rem;
}
.news-all-page__head p {
  font-size: clamp(1rem, .85rem + .45vw, 1.3rem);
  line-height: 1.4;
  color: var(--c-muted);
  margin: 0;
}
.news-all-page__grid {
  margin-top: clamp(1rem, 2vw, 1.8rem);
}
.news-all-page__empty {
  text-align: center;
  color: var(--c-muted);
  padding: 3rem 0;
}

/* =========================================================
   NEWS ARTICLE — SAVE button (bookmark) two-state icon
   Outline by default, filled + blue when the article is saved
   (state persisted to localStorage by main.js).
   ========================================================= */
.news-article__action .news-save__icon { width: 1em; height: 1.05em; display: block; flex: none; }
.news-article__action .news-save__icon--filled { display: none; }
.news-article__action.is-saved .news-save__icon--outline { display: none; }
.news-article__action.is-saved .news-save__icon--filled  { display: block; }
.news-article__action.is-saved { color: #1d4ed8; }
.news-article__action.is-saved .news-save__label { font-weight: 700; }

/* =========================================================
   NEWS ARTICLE — SHARE popover menu
   Drops out from under the SHARE button; closes on outside
   click or Escape (JS in main.js handles open/close).
   ========================================================= */
.news-share { position: relative; display: inline-block; }
.news-share__menu {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  z-index: 50;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e6e8ef;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
  padding: .35rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.news-share.is-open .news-share__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.news-share__menu[hidden] { display: none; }
.news-share__item {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: normal;
  color: #434655;
  padding: .55rem .85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.news-share__item:hover,
.news-share__item:focus-visible {
  background: #f0f3ff;
  color: #1d4ed8;
  outline: none;
}
.news-share__item.is-copied {
  background: #e7f7ec;
  color: #1d6f3f;
}

/* MOBILE ONLY (<768px) — anchor the share popover directly under
   the SHARE button (small gap), aligned to the button's LEFT edge
   instead of the right edge. The desktop right-edge anchor is
   preserved on tablet/desktop. */
@media (max-width: 767px) {
  .news-share__menu {
    top: calc(100% + .35rem);
    right: auto;
    left: 0;
    min-width: 180px;
  }
}

/* =========================================================
   RESOURCE ARTICLE DETAIL PAGE (/resource_article.php)
   Two-column editorial layout: main content + sticky sidebar.
   Standalone — does not affect homepage resource cards.
   ========================================================= */
.resource-article {
  background: #f9f9ff;
  border-top: 1px solid #c4c5d7;
  padding: clamp(4.5rem, 9vw, 9rem) 0 clamp(3rem, 5vw, 5rem);
}
.resource-article__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3vw, 3rem);
}
/* MOBILE + TABLET (<1024px) — drop the layout gap so the article
   body sits flush against the stacked sidebar card group. Desktop
   (>=1024px) keeps its original gap. */
@media (max-width: 1023px) {
  .resource-article__layout { gap: 0; }
}
@media (min-width: 1024px) {
  .resource-article__layout {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 3.5vw, 3.5rem);
  }
  .resource-sidebar { position: sticky; top: 100px; max-width: 300px; justify-self: end; }
}

/* ---- Top pill ---- */
.resource-article__cat {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #dee8ff;
  color: #1d4ed8;
  font-size: clamp(.72rem, .65rem + .2vw, .85rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45rem .95rem;
  border-radius: 999px;
  margin: 0 0 1.3rem;
}
.resource-article__catIcon svg { width: 1em; height: 1em; display: block; }

/* ---- Title ---- */
.resource-article__title {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #111c2d;
  margin: 0 0 clamp(1.2rem, 2vw, 1.8rem);
}

/* ---- Blue pull-quote panel ---- */
.resource-quote {
  background: #eef2ff;
  border-left: 3px solid #1d4ed8;
  border-radius: 4px;
  padding: clamp(1rem, 1.6vw, 1.4rem) clamp(1.1rem, 1.8vw, 1.6rem);
  color: #1d4ed8;
  font-size: clamp(.95rem, .85rem + .3vw, 1.1rem);
  line-height: 1.55;
  margin: 0 0 clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
}
.resource-article__body blockquote {
  background: #eef2ff;
  border-left: 3px solid #1d4ed8;
  border-radius: 4px;
  padding: clamp(1rem, 1.6vw, 1.4rem) clamp(1.1rem, 1.8vw, 1.6rem);
  color: #111c2d;
  font-size: clamp(.98rem, .9rem + .3vw, 1.15rem);
  line-height: 1.55;
  font-weight: 600;
  margin: clamp(1.6rem, 2.6vw, 2.2rem) 0;
}
.resource-article__body blockquote p { margin: 0; }

/* ---- Action buttons row ---- */
.resource-article__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0 0 clamp(2rem, 3vw, 2.6rem);
}
.resource-btn {
  appearance: none;
  border: 1px solid #d4d8e3;
  background: #fff;
  color: #111c2d;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(.85rem, .8rem + .15vw, .95rem);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.3rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.resource-btn svg { width: 1em; height: 1em; }
.resource-btn:hover { transform: translateY(-1px); }
.resource-btn--primary {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}
.resource-btn--primary:hover { background: #1e3fb0; }
.resource-btn--ghost:hover  { background: #f0f3ff; }

/* ---- Intro + body text ---- */
.resource-article__intro {
  color: #434655;
  font-size: clamp(.95rem, .85rem + .3vw, 1.1rem);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.resource-article__body {
  color: #434655;
  font-size: clamp(.95rem, .85rem + .3vw, 1.1rem);
  line-height: 1.7;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Headings and quotes stay left-aligned; only running text is justified */
.resource-article__body h2,
.resource-article__body h3,
.resource-article__body blockquote { text-align: left; }
.resource-article__body > * + * { margin-top: 1.1em; }
.resource-article__body p { margin: 0; }
.resource-article__body h2 {
  font-size: clamp(1.2rem, .95rem + 1vw, 1.7rem);
  font-weight: 700;
  color: #111c2d;
  line-height: 1.3;
  margin-top: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: .6em;
}
.resource-article__body h3 {
  font-size: clamp(1.05rem, .9rem + .5vw, 1.3rem);
  font-weight: 700;
  color: #111c2d;
  margin-top: 1.4em;
  margin-bottom: .5em;
}

/* Checkmark bullet list */
.resource-article__body ul {
  list-style: none;
  padding: 0;
  margin: 1.5em 0 1.5em;
}
.resource-article__body ul li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 1.2em;
  line-height: 1.55;
}
.resource-article__body ul li:last-child { margin-bottom: 0; }

/* Inline links inside article bodies (news + resources): make them look clickable */
.resource-article__body a,
.news-article__body a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
.resource-article__body a:hover,
.news-article__body a:hover { color: #0b3b86; }

.resource-article__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .25em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: #dee8ff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M3 6.2 5.1 8.3 9 4.4' stroke='%231d4ed8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center / 75% no-repeat;
}

/* ---- Lead Authors ---- */
.resource-article__rule {
  height: 1px;
  background: #d8dae3;
  border: 0;
  margin: clamp(2rem, 3vw, 2.6rem) 0;
}
.resource-authors__title {
  font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem);
  font-weight: 700;
  color: #111c2d;
  margin: 0 0 1.2rem;
}
.resource-author {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  padding: clamp(1rem, 1.6vw, 1.4rem);
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.resource-author__photo {
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #e3e8f0;
}
.resource-author__photo--empty { display: block; }
.resource-author__body { flex: 1; min-width: 0; }
.resource-author__name {
  font-size: clamp(1rem, .9rem + .3vw, 1.1rem);
  font-weight: 600;
  color: #111c2d;
  margin: 0 0 .3rem;
  line-height: 1.3;
}
.resource-author__role {
  color: #1d4ed8;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 .6rem;
}
.resource-author__bio {
  color: #434655;
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   RESOURCE ARTICLE — SIDEBAR cards
   ========================================================= */
.resource-side-card {
  border-radius: 12px;
  padding: clamp(1rem, 1.6vw, 1.4rem);
  margin-bottom: 1.7rem;
}
.resource-side-card:last-child { margin-bottom: 0; }
.resource-side-card__eyebrow {
  color: #65758b;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  margin: 0 0 .8rem;
}

/* ----- DEFAULT: mobile / tablet — cards are full-width and
   need comfortable padding + larger type so they read well. ----- */
.resource-side-card--partner {
  background: #fff;
  border: 1px solid #e6e8ef;
  text-align: center;
  padding: 1.4rem 1.25rem;
  max-width: 220px;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 17rem;
}
.resource-side-card__logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.resource-side-card__logo img {
  width: 70px;
  height: auto;
  border-radius: 6px;
  display: block;
}
.resource-side-card__label {
  font-size: .95rem;
  color: #65758b;
  margin: 0 0 .35rem;
}
.resource-side-card__partner-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111c2d;
  margin: 0;
  line-height: 1.3;
}

/* MOBILE + TABLET (<1024px) — let the "In Collaboration With" card
   span the full width of the stacked sidebar column instead of
   sitting as a small chip pushed to the right edge, and match
   the padding used by the sibling sidebar cards above/below
   (author bio, journal, etc.) so they all read as one set.
   Desktop (>=1024px) is intentionally untouched. */
@media (max-width: 1023px) {
  /* Tighter vertical rhythm between sidebar cards. */
  .resource-side-card { margin-bottom: .9rem; }
  .resource-side-card:last-child { margin-bottom: 0; }

  .resource-side-card--partner {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: .9rem;
    padding: clamp(1rem, 1.6vw, 1.4rem);
  }
}

.resource-side-card--journal {
  background: #263143;
  color: #fff;
  padding: 1.3rem 1.25rem;
}
.resource-side-card--journal .resource-side-card__eyebrow {
  color: #9aa5cf;
  font-size: .78rem;
  margin: 0 0 .9rem;
}
.resource-side-card__journalTitle {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: .01em;
  line-height: 1.45;
  text-wrap: balance;   /* even line lengths across the title */
}
.resource-side-card__journalImg {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #0a1730;
}
.resource-side-card__journalImg img {
  width: 100%;
  height: auto;
  display: block;
}
.resource-side-card__journalBtn {
  display: block;
  background: #e8edf6;
  color: #1d4ed8;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  padding: .8rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s ease;
}
.resource-side-card__journalBtn:hover { background: #dee8ff; }

/* ----- DESKTOP (>=1024 px): sidebar overrides only when actually
   needed — keep the cards close to the Figma's comfortable look. ----- */
@media (min-width: 1024px) {
  .resource-side-card--partner { padding: 1.1rem 1.1rem; }
  .resource-side-card__logo    { margin-bottom: .8rem; }
  .resource-side-card__logo img { width: 58px; border-radius: 6px; }
  .resource-side-card__label    { font-size: .85rem; margin: 0 0 .3rem; }
  .resource-side-card__partner-name { font-size: 1rem; }

  .resource-side-card--journal { padding: 1.15rem 1.15rem; }
  .resource-side-card--journal .resource-side-card__eyebrow {
    font-size: .72rem; margin: 0 0 .7rem;
  }
  .resource-side-card__journalTitle { font-size: 1.25rem; margin: 0 0 .9rem; }
  .resource-side-card__journalImg   { border-radius: 8px; margin-bottom: .9rem; }
  .resource-side-card__journalBtn   {
    font-size: .88rem; padding: .65rem 1rem; border-radius: 8px;
  }
}

/* Network card (light blue) */
.resource-side-card--network { background: #eef2ff; }
.resource-side-card__networkTitle {
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
  font-weight: 800;
  color: #111c2d;
  margin: 0 0 .6rem;
  line-height: 1.2;
}
.resource-side-card__networkBody {
  font-size: .85rem;
  line-height: 1.5;
  color: #434655;
  margin: 0 0 .9rem;
  text-align: justify;
}
.resource-side-card__links {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(29, 78, 216, .15);
}
.resource-side-card__links li { border-bottom: 1px solid rgba(29, 78, 216, .15); }
.resource-side-card__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 0;
  color: #111c2d;
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  transition: color .2s ease;
}
.resource-side-card__links a:hover { color: #1d4ed8; }
.resource-side-card__links a svg { width: .85em; height: .85em; flex: none; opacity: .6; }

/* Share card */
.resource-side-card--share {
  background: #fff;
  border: 1px solid #e6e8ef;
}
.resource-side-card__shareRow {
  display: flex;
  gap: .6rem;
}
.resource-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dee8ff;
  color: #111C2D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.resource-share-btn:hover { background: #cbdbff; transform: translateY(-1px); }
.resource-share-btn svg { width: 1em; height: 1em; display: block; }

/* =========================================================
   RESOURCE ARTICLE — RELATED grid (4 cards)
   ========================================================= */
.resource-related {
  margin-top: clamp(2.5rem, 4vw, 4rem);
  padding-top: clamp(1.5rem, 2.5vw, 2.5rem);
  border-top: 1px solid #d8dae3;
}
.resource-related__head { margin-bottom: clamp(1.2rem, 2vw, 1.8rem); }
.resource-related__head h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-weight: 700;
  color: #111c2d;
  margin: 0 0 .4rem;
}
.resource-related__head p {
  color: #65758b;
  margin: 0;
}
.resource-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
.resource-related__card {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e8ef;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.resource-related__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}
.resource-related__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #e3e8f0;
  overflow: hidden;
}
.resource-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.resource-related__thumb--empty {
  background: linear-gradient(135deg, #d9e1ee 0%, #e8edf6 100%);
}
.resource-related__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.resource-related__tag {
  display: inline-block;
  background: #dee8ff;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 999px;
  align-self: flex-start;
}
.resource-related__title {
  font-size: .98rem;
  font-weight: 600;
  color: #111c2d;
  line-height: 1.35;
  margin: 0;
}
.resource-related__excerpt {
  color: #65758b;
  font-size: .85rem;
  line-height: 1.45;
  margin: 0;
}
.resource-related__date {
  color: #9ca3af;
  font-size: .8rem;
  margin: .3rem 0 0;
}

/* 404 helper */
.resource-article__notfound {
  background: #fff;
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 6px 18px rgba(7, 59, 110, .08);
}
.resource-article__notfound h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  color: #111c2d;
  margin: 0 0 .8rem;
}
.resource-article__notfound p {
  color: #65758b;
  margin: 0 0 1.5rem;
}

/* =========================================================
   HOMEPAGE NEWS — "View All News" toggle
   Extra cards beyond the first 3 are hidden by default and
   revealed inline when the grid carries .is-expanded.
   ========================================================= */
.n-card--extra { display: none; }
.news__grid.is-expanded .n-card--extra { display: flex; }

/* =========================================================
   CONTACT US PAGE (/contact.php)
   Standalone — two-column card with blue info panel on the
   left and white form on the right. Stacks to one column on
   mobile/tablet. Does not affect homepage layout.
   ========================================================= */
.contact-page {
  background: #f3f4fb;
  border-top: 1px solid #c4c5d7;
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(5rem, 9vw, 10rem);
}
.contact-page__inner { display: flex; flex-direction: column; gap: clamp(3rem, 5vw, 5rem); }

.contact-page__head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.contact-page__head h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #111c2d;
  margin: 0 0 .8rem;
  position: relative;
}
.contact-page__head h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #cbdbff;
  margin: .6rem auto 0;
}
.contact-page__head p {
  font-size: clamp(.95rem, .85rem + .35vw, 1.15rem);
  color: #65758b;
  line-height: 1.55;
  margin: 0;
}

.contact-page__flash {
  max-width: 1000px;
  margin: 0 auto;
  padding: .9rem 1.2rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
}
.contact-page__flash--success { background: #e6f7ec; color: #1d6f3f; border: 1px solid #b9e3c8; }
.contact-page__flash--warning { background: #fff3d6; color: #7a5b00; border: 1px solid #f3d97e; }
.contact-page__flash--error   { background: #fde7e7; color: #9a1f1f; border: 1px solid #f2c0c0; }

/* ---- Two-column card ---- */
.contact-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 900px) {
  .contact-card {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  }
}

/* ---- Left blue info panel ---- */
.contact-info {
  position: relative;
  background: #1042A0;
  color: #fff;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contact-info__title {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 .6rem;
  color: #fff;
}
.contact-info__subtitle {
  color: #cbdbff;
  font-size: .95rem;
  margin: 0 0 clamp(1.6rem, 3vw, 2.5rem);
}
.contact-info__list {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.contact-info__list li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  font-size: .95rem;
  line-height: 1.4;
}
.contact-info__list a {
  color: #fff;
  text-decoration: none;
  transition: color .15s ease;
}
.contact-info__list a:hover { color: #cbdbff; text-decoration: underline; }
.contact-info__icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: #fff;
  margin-top: 1px;
}

.contact-info__socials {
  display: flex;
  gap: .8rem;
  margin-top: clamp(2rem, 3vw, 2.5rem);
  z-index: 1;
  position: relative;
}
.contact-info__socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.contact-info__socials a:hover {
  background: rgba(255, 255, 255, .25);
  transform: translateY(-1px);
}
.contact-info__socials svg { width: 18px; height: 18px; }

/* Decorative overlapping circles in the bottom-right corner.
   Uses the provided contact-info-circles.svg as the source. */
.contact-info__bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 180px;
  height: 180px;
  max-width: 55%;
  max-height: 55%;
  background-image: url('../images/contact-info-circles.svg');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* ---- Right form ---- */
.contact-form {
  padding: clamp(1.8rem, 3vw, 2.8rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2vw, 1.8rem);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.8rem);
}
@media (min-width: 520px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.contact-field label {
  font-size: .82rem;
  font-weight: 500;
  color: #65758b;
}
.contact-field input,
.contact-field textarea {
  appearance: none;
  border: 0;
  border-bottom: 1px solid #d4d8e3;
  background: transparent;
  padding: .5rem 0;
  font-family: inherit;
  font-size: 1rem;
  color: #111c2d;
  outline: none;
  border-radius: 0;
  transition: border-color .2s ease;
  width: 100%;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #aab2c0; }
.contact-field input:focus,
.contact-field textarea:focus { border-bottom-color: #1d4ed8; }
.contact-field textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.55;
}

/* Subject radios */
.contact-form__subject { display: flex; flex-direction: column; gap: .8rem; }
.contact-form__subjectLabel {
  font-size: .95rem;
  font-weight: 700;
  color: #111c2d;
  margin: 0;
}
.contact-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.contact-radio {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  font-size: .95rem;
  color: #434655;
}
.contact-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #1d4ed8;
  margin: 0;
}

/* Submit button */
.contact-form__actions { display: flex; justify-content: flex-end; margin-top: .4rem; }
.contact-form__submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #1A59B2;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.8rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px -4px rgba(26, 89, 178, .35), 0 4px 8px -4px rgba(26, 89, 178, .25);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.contact-form__submit:hover {
  background: #134A93;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -4px rgba(26, 89, 178, .4), 0 6px 12px -4px rgba(26, 89, 178, .25);
}

@media (max-width: 519px) {
  .contact-form__submit { width: 100%; }
  .contact-form__actions { justify-content: stretch; }
}

/* =========================================================
   DONATE PAGE (/donate.php)
   Standalone, frontend-only. Two-column layout: trust /
   testimonial column on the left, amount + method + submit
   panel on the right. Stacks to one column on mobile.
   ========================================================= */
.donate-page {
  background: #f3f4fb;
  border-top: 1px solid #c4c5d7;
  padding: clamp(4rem, 8vw, 10rem) 0;
}
.donate-page__inner { display: flex; flex-direction: column; gap: clamp(4rem, 6vw, 6rem); }

.donate-page__head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.donate-page__head h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #111c2d;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.donate-page__head p {
  font-size: clamp(.95rem, .85rem + .35vw, 1.15rem);
  color: #65758b;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 700px;
}
.donate-page__eyebrow {
  display: inline-block;
  background: #dee8ff;
  color: #1d4ed8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin: 0 auto .9rem !important;
}

/* Monthly donation banner inside the card */
.donate-monthly-banner {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #eef2ff;
  border: 1px solid rgba(29, 78, 216, .15);
  color: #1d4ed8;
  font-size: .85rem;
  line-height: 1.4;
  padding: .7rem .9rem;
  border-radius: 10px;
}
.donate-monthly-banner svg { width: 18px; height: 18px; flex: none; }
.donate-monthly-banner strong { font-weight: 700; }

/* "/mo" suffix on monthly amount buttons + submit */
.donate-amount__per {
  font-size: .7em;
  font-weight: 600;
  opacity: .75;
  margin-left: .15em;
}
.donate-submit__per {
  font-weight: 500;
  opacity: .85;
  margin-left: .15em;
}

/* ---- Grid ---- */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 3vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}
@media (min-width: 900px) {
  .donate-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

/* ---- Left column: trust + testimonial ---- */
.donate-left {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 2.5vw, 2rem);
}
.donate-feature {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.donate-feature__icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-flex;
  margin-top: 2px;
}
.donate-feature__icon svg { width: 100%; height: 100%; }
.donate-feature__body h3 {
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  font-weight: 700;
  color: #111c2d;
  margin: 0 0 .35rem;
}
.donate-feature__body p {
  font-size: .92rem;
  color: #65758b;
  line-height: 1.55;
  margin: 0;
}

.donate-quote {
  background: #f0f3ff;
  border: 1px solid rgba(29, 78, 216, .18);
  border-radius: 12px;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  margin: .5rem 0 0;
}
.donate-quote blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: #111c2d;
  font-size: .95rem;
  line-height: 1.55;
  font-style: italic;
}
.donate-quote figcaption {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.donate-quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #d9e1ee 0%, #e8edf6 100%);
  flex: none;
}
.donate-quote__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.donate-quote figcaption strong {
  display: block;
  font-weight: 700;
  color: #111c2d;
  font-size: .95rem;
}
.donate-quote figcaption small {
  display: block;
  color: #65758b;
  font-size: .82rem;
}

/* ---- Right column: card ---- */
.donate-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 2vw, 1.8rem);
}

.donate-step__label {
  color: #1d4ed8;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 .9rem;
}

/* Amount preset buttons */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: .8rem;
}
@media (min-width: 560px) {
  .donate-amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.donate-amount {
  appearance: none;
  background: #fff;
  color: #111c2d;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid #e1e6f2;
  border-radius: 10px;
  padding: .95rem .8rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.donate-amount:hover { border-color: #cbdbff; }
.donate-amount.is-selected {
  background: #eef2ff;
  border-color: #1d4ed8;
  color: #1d4ed8;
}

/* Custom amount input */
.donate-custom {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e1e6f2;
  border-radius: 10px;
  padding: 0 1rem;
  transition: border-color .15s ease;
}
.donate-custom:focus-within { border-color: #1d4ed8; }
.donate-custom__currency {
  color: #aab2c0;
  font-weight: 600;
  margin-right: .55rem;
}
.donate-custom input {
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  padding: .85rem 0;
  width: 100%;
  color: #111c2d;
}
.donate-custom input::placeholder { color: #aab2c0; }
/* Hide number input spinners */
.donate-custom input::-webkit-outer-spin-button,
.donate-custom input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.donate-custom input { -moz-appearance: textfield; }

/* Payment method buttons */
.donate-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
}
@media (min-width: 560px) {
  .donate-methods { grid-template-columns: 1fr 1fr; }
}
.donate-method {
  appearance: none;
  background: #fff;
  color: #434655;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid #e1e6f2;
  border-radius: 10px;
  padding: .95rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.donate-method svg { width: 20px; height: 20px; flex: none; }
.donate-method:hover { border-color: #cbdbff; }
.donate-method.is-selected {
  background: #eef2ff;
  border-color: #1d4ed8;
  color: #1d4ed8;
}

/* Big submit button */
.donate-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #1042A0;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.1rem 1.6rem;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 12px 24px -6px rgba(16, 66, 160, .35);
  transition: background .15s ease, transform .15s ease, box-shadow .2s ease;
}
.donate-submit:hover {
  background: #0a3380;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -6px rgba(16, 66, 160, .42);
}

.donate-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: #65758b;
  font-size: .85rem;
  margin: .2rem 0 0;
}
.donate-foot svg { width: 14px; height: 14px; }

/* =========================================================
   MONTHLY DONOR PAGE — scoped additions on top of the
   shared .donate-page styles. Adds the green "Monthly"
   pill next to "01. CHOOSE AMOUNT" and an italic note
   line above the encrypted-info row.
   ========================================================= */
.monthly-donor-page .donate-step__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
}
.donate-step__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1;
  text-transform: uppercase;
}
.donate-step__badge--monthly {
  background: #d2f5d8;
  color: #117a36;
}
.donate-foot--note {
  display: block;
  font-style: italic;
  text-align: center;
  line-height: 1.55;
  max-width: 520px;
  margin: .4rem auto 0;
}

/* =========================================================
   HOMEPAGE RESOURCES — "Browse All Resources" toggle
   Same pattern as the news toggle. Cards beyond the first 4
   are hidden until the grid carries .is-expanded.
   ========================================================= */
.r-card--extra { display: none; }
.resources__grid.is-expanded .r-card--extra { display: block; }

/* Images / numbered lists inserted with the admin visual editor */
.news-article__body img,
.resource-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
.resource-article__body figure { margin: clamp(2rem, 3vw, 2.6rem) 0; }
.resource-article__body figure img { width: 100%; display: block; }
.resource-article__body figure figcaption {
  margin-top: .8rem;
  color: #747686;
  font-size: clamp(.8rem, .75rem + .2vw, .95rem);
  font-style: italic;
}
.news-article__body ol,
.resource-article__body ol { padding-left: 1.4em; margin: 1.5em 0; }

/* Contact form honeypot — off-screen for people, still "visible" to bots */
.contact-form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Footer developer credit (views/partials/footer.php) */
.footer__credit::before { content: "|"; margin: 0 .6em; opacity: .5; }
.footer__credit a { text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--c-link); }
@media (max-width: 767px) {
  .footer__credit { display: block; margin-top: .35rem; }
  .footer__credit::before { content: none; }
}
