/* ═══════════════════════════════════════════════════════
   Samarthya Foundation — Global Styles
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--color-ink);
  background-color: var(--color-snow);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;               /* overrides inline opacity:0 anti-FOUC rule */
  transition: opacity 0.15s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-graphite);
}

.text-accent { color: var(--color-cerulean); }
.text-navy   { color: var(--color-navy); }
.text-white  { color: var(--color-white); }
.text-muted  { color: var(--color-slate); }
.text-center { text-align: center; }

.label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cerulean);
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: 6rem 0;
}

.section--dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.section--grey {
  background-color: var(--color-cloud);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  align-items: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--center {
  justify-content: center;
}

.flex--col {
  flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255, 0.15);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: #243a6e;
  box-shadow: 0 6px 24px rgba(27, 45, 91, 0.3);
  transform: translateY(-2px);
}

.btn--accent {
  background-color: var(--color-cerulean);
  color: var(--color-white);
}

.btn--accent:hover {
  background-color: #1a6e9e;
  box-shadow: 0 6px 24px rgba(26, 127, 181, 0.3);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
}

.btn--gold:hover {
  background: #e0b83e;
  box-shadow: 0 6px 24px rgba(242, 199, 68, 0.35);
  transform: translateY(-2px);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-mist);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(27, 45, 91, 0.08);
}

.header-top {
  background: var(--color-navy);
  padding: 0.4rem 0;
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.header-top a {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.header-top a:hover {
  color: var(--color-gold);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-gold);
  transform: translateY(-1px);
}

.header-main {
  padding: 0.75rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 100%;
  width: 250px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-cerulean);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--color-cerulean);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown */
.dropdown-arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s ease;
}

.nav-links > li:hover .dropdown-arrow {
  transform: translateY(2px) rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 40px rgba(27, 45, 91, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 0.5rem 0;
}

.nav-links > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-graphite);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--color-cloud);
  color: var(--color-cerulean);
  padding-left: 1.8rem;
}
.dropdown-menu--programs {
  min-width: 620px;
  max-width: calc(100vw - 2rem);
}

.dropdown-menu--programs a {
  white-space: nowrap;
}

.btn-donate {
  margin-left: 0.75rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 45, 91, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
}

/* ─── Hero Slider ─── */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  max-height: 800px;
  overflow: hidden;
  margin-top: 0; /* Will be adjusted by JS based on header height */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 45, 91, 0.82) 0%,
    rgba(26, 127, 181, 0.55) 40%,
    rgba(27, 45, 91, 0.4) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 700px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 550px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.15);
}

/* ─── Page Hero Banner ─── */
.page-hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 45, 91, 0.88) 0%,
    rgba(26, 127, 181, 0.65) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb .separator {
  color: rgba(255,255,255,0.4);
}

/* ─── Impact Stats ─── */
.stats-section {
  padding: 3.75rem 0 4rem;
  background: linear-gradient(180deg, #eef4f6 0%, #f8fafb 100%);
  border-bottom: 1px solid var(--color-mist);
}

.stats-heading {
  margin-bottom: 2.25rem;
}

.stats-heading .label {
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(27, 45, 91, 0.16);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Program Cards ─── */
.program-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27, 45, 91, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(27, 45, 91, 0.12);
}

.program-card__image {
  height: 240px;
  overflow: hidden;
}

.program-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-card:hover .program-card__image img {
  transform: scale(1.06);
}

.program-card__body {
  padding: 1.75rem;
}

.program-card__body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.program-card__body p {
  font-size: 0.95rem;
  color: var(--color-slate);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Keep the three homepage project links on one balanced baseline. */
#programs .grid.grid--3 .program-card {
  display: flex;
  flex-direction: column;
}

#programs .grid.grid--3 .program-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Reserve two title lines so all project descriptions begin on the same row. */
#programs .grid.grid--3 .program-card__body h3 {
  min-height: 3rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

#programs .grid.grid--3 .program-card__body .link-arrow {
  margin-top: auto;
}

/* Keep homepage change-story cards equal in height with aligned story links. */
#news .grid.grid--3 .blog-card {
  display: flex;
  flex-direction: column;
}

#news .grid.grid--3 .blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

#news .grid.grid--3 .blog-card__body .link-arrow {
  margin-top: auto;
}

/* Keep the Jina Rai portrait fully visible within its story-card frame. */
#news .grid.grid--3 .blog-card__image {
  background: #f1f3f5;
}

#news .grid.grid--3 .blog-card__image img {
  object-fit: contain;
  object-position: center;
}

#news .grid.grid--3 .blog-card:nth-child(2) .blog-card__image {
  background: #f1f3f5;
}

#news .grid.grid--3 .blog-card:nth-child(2) .blog-card__image img {
  object-fit: contain;
}

.donor-partner-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ─── Homepage Donor Partners ─── */
#home-donor-partners .donor-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}

#home-donor-partners .donor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(27, 45, 91, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#home-donor-partners .donor-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 34px rgba(27, 45, 91, 0.11);
}

#home-donor-partners .donor-logo img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-cerulean);
  transition: gap 0.3s ease, color 0.3s ease;
}

.link-arrow:hover {
  color: var(--color-navy);
  gap: 0.7rem;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ─── Blog / News Cards ─── */
.blog-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27, 45, 91, 0.06);
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(27, 45, 91, 0.1);
}

.blog-card__image {
  height: 200px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-cerulean);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.blog-card__body h4 {
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card__body h4 {
  color: var(--color-cerulean);
}

.blog-card__body p {
  font-size: 0.9rem;
  color: var(--color-slate);
  line-height: 1.6;
}

/* ─── Homepage How We Work ─── */
#how-we-work {
  background: #f5f9fb;
}

#how-we-work .how-we-work__intro {
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

#how-we-work .how-we-work__intro h2 {
  margin: 0.5rem 0 1rem;
}

#how-we-work .how-we-work__intro p {
  margin: 0;
  color: var(--color-slate);
  font-size: 1.05rem;
  line-height: 1.7;
}

#how-we-work .approach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

#how-we-work .approach-card {
  height: 100%;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-mist);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(27, 45, 91, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#how-we-work .approach-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-sky);
  box-shadow: 0 12px 30px rgba(27, 45, 91, 0.1);
}

#how-we-work .approach-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--color-cerulean);
  background: rgba(58, 174, 216, 0.1);
  border-radius: 50%;
}

#how-we-work .approach-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

#how-we-work .approach-card p {
  margin: 0;
  color: var(--color-slate);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 1000px) {
  #how-we-work .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #how-we-work .approach-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Homepage Stories of Change ─── */
#news .stories-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: stretch;
}

#news .story-featured {
  display: flex;
  flex-direction: column;
}

#news .story-featured__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-mist), var(--color-snow));
}

#news .story-featured__image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center bottom;
}

#news .story-featured__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
}

#news .story-featured__body h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}

#news .story-featured__body p {
  max-width: 60ch;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

#news .story-featured__body .btn {
  margin-top: auto;
}

#news .stories-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

#news .story-compact {
  display: grid;
  grid-template-columns: minmax(125px, 42%) minmax(0, 1fr);
  min-height: 0;
}

#news .story-compact__image {
  height: 100%;
  min-height: 220px;
}

#news .story-compact__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 1.35rem;
}

#news .story-compact__body h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

#news .story-compact__body .link-arrow {
  margin-top: auto;
}

/* ─── Samarthya Stories Image Accordion ─── */
#news .story-accordion {
  display: flex;
  gap: 0.45rem;
  min-height: 455px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-navy);
  box-shadow: 0 18px 45px rgba(27, 45, 91, 0.16);
}

#news .story-accordion__item {
  position: relative;
  flex: 0 0 10%;
  min-width: 0;
  overflow: hidden;
  background: var(--color-navy);
  transition: flex-basis 0.5s ease;
}

#news .story-accordion__item.is-active {
  flex-basis: 68%;
}

#news .story-accordion__item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  transition: filter 0.4s ease;
}

#news .story-accordion__item.is-active > img {
  right: 0;
  left: auto;
  width: min(48%, 340px);
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
}

#news .story-accordion__item:nth-child(2):not(.is-active) > img {
  object-position: center 18%;
}

#news .story-accordion__item:nth-child(3):not(.is-active) > img {
  top: -4%;
  height: 104%;
  object-position: center 18%;
}

#news .story-accordion__item:nth-child(4):not(.is-active) > img {
  top: -10%;
  height: 110%;
  object-position: center 18%;
}

#news .story-accordion__item:not(.is-active) > img {
  filter: saturate(0.82) brightness(0.82);
}

#news .story-accordion__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(27,45,91,0.08) 8%, rgba(27,45,91,0.98) 100%);
}

#news .story-accordion__item.is-active .story-accordion__shade {
  background:
    linear-gradient(180deg, rgba(27,45,91,0.02) 30%, rgba(27,45,91,0.88) 100%),
    linear-gradient(90deg, rgba(27,45,91,0.94) 0%, rgba(27,45,91,0.68) 48%, rgba(27,45,91,0.12) 82%);
}

#news .story-accordion__toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  padding: 0;
  background: rgba(27,45,91,0.62);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#news .story-accordion__toggle::before {
  content: '+';
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

#news .story-accordion__item.is-active .story-accordion__toggle {
  opacity: 0;
  pointer-events: none;
}

#news .story-accordion__toggle:hover,
#news .story-accordion__toggle:focus-visible {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-navy);
}

#news .story-accordion__toggle:focus-visible {
  outline: 3px solid rgba(242,199,68,0.35);
  outline-offset: 3px;
}

#news .story-accordion__summary {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  min-height: 185px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1.25rem 4.5rem 1.25rem 1rem;
  color: var(--color-white);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#news .story-accordion__summary span {
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

#news .story-accordion__summary strong {
  display: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

#news .story-accordion__summary i {
  display: none;
}

#news .story-accordion__item.is-active .story-accordion__summary {
  opacity: 0;
}

#news .story-accordion__content {
  position: absolute;
  bottom: clamp(2rem, 5vw, 4rem);
  left: clamp(1.5rem, 4vw, 3.5rem);
  z-index: 2;
  width: min(520px, calc(100% - 3rem));
  color: var(--color-white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.35s ease 0.12s, transform 0.35s ease 0.12s;
}

#news .story-accordion__item.is-active .story-accordion__content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#news .story-accordion__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#news .story-accordion__content h3 {
  margin: 0 0 0.85rem;
  color: var(--color-white);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.12;
}

#news .story-accordion__content p {
  max-width: 55ch;
  margin: 0 0 1.35rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
}

#news .story-accordion__content .btn {
  position: relative;
  z-index: 4;
}

@media (max-width: 900px) {
  #news .story-accordion {
    display: grid;
    min-height: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  #news .story-accordion__item,
  #news .story-accordion__item.is-active {
    min-height: 150px;
    flex-basis: auto;
    border-radius: 8px;
    transition: min-height 0.4s ease;
  }

  #news .story-accordion__item.is-active {
    min-height: 440px;
  }

  #news .story-accordion__summary {
    min-height: 0;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 4.75rem 1.25rem 1.25rem;
  }

  #news .story-accordion__summary span {
    writing-mode: horizontal-tb;
    transform: none;
  }

  #news .story-accordion__summary strong {
    display: block;
    flex: 1;
  }

  #news .story-accordion__content {
    right: 1.25rem;
    bottom: 1.5rem;
    left: 1.25rem;
    width: auto;
  }

  #news .story-accordion__item.is-active > img {
    width: min(62%, 250px);
  }
}

@media (max-width: 560px) {
  #news .story-accordion__item.is-active {
    min-height: 470px;
  }

  #news .story-accordion__content h3 {
    font-size: 1.7rem;
  }

  #news .story-accordion__content p {
    font-size: 0.94rem;
  }
}

/* ─── Mission / CTA Section ─── */
.cta-section {
  position: relative;
  padding: 7rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  will-change: transform;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 45, 91, 0.9) 0%,
    rgba(27, 45, 91, 0.8) 100%
  );
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  border-top: 0;
}

.footer-main {
  padding: 3.75rem 0 2.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.15fr 1.35fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-col p strong {
  color: var(--color-white);
}

.footer-col ul li {
  margin-bottom: 0.25rem;
}

.footer-col ul a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 0.9rem;
  color: var(--color-white);
  transition: all 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-logo {
  width: min(230px, 100%);
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-brand h4 {
  margin-bottom: 1rem;
}

.footer-contact p + p {
  margin-top: 0.75rem;
}

.footer-contact a,
.footer-bottom a {
  color: var(--color-white);
  transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-bottom a:hover {
  color: var(--color-gold);
}

.footer-registration {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.footer-policy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--color-white);
  transition: color 0.2s ease;
}

.footer-policy-links a:hover {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cloud);
  color: var(--color-navy);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--color-cerulean);
  color: var(--color-white);
  transform: translateY(-2px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-mist);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  background: var(--color-snow);
}

.newsletter-form input:focus {
  border-color: var(--color-cerulean);
  box-shadow: 0 0 0 3px rgba(26, 127, 181, 0.1);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  align-self: flex-start;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.footer-bottom__links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-mist);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--color-ink);
  background: var(--color-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-cerulean);
  box-shadow: 0 0 0 3px rgba(26, 127, 181, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group .error-msg {
  color: var(--color-vermilion);
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--color-vermilion);
}

.form-group.has-error .error-msg {
  display: block;
}

/* ─── Feature Cards (Get Involved) ─── */
.feature-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(27, 45, 91, 0.06);
  transition: all 0.4s ease;
  border: 1px solid var(--color-mist);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(27, 45, 91, 0.1);
  border-color: var(--color-sky);
}

.feature-card__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cerulean), var(--color-bright-blue));
  color: var(--color-white);
  font-size: 1.75rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  margin-bottom: 1.5rem;
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--color-mist);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-cerulean);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-cerulean);
  top: 0.5rem;
  z-index: 1;
}

.timeline-content {
  background: var(--color-white);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(27, 45, 91, 0.06);
  max-width: 450px;
}

.timeline-content .year {
  display: inline-block;
  background: var(--color-cerulean);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

/* ─── Accordion ─── */
.accordion-item {
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
  text-align: left;
  transition: background 0.2s ease;
}

.accordion-trigger:hover {
  background: var(--color-cloud);
}

.accordion-trigger .icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--color-cerulean);
}

.accordion-item.open .accordion-trigger .icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content__inner {
  padding: 0 1.5rem 1.5rem;
}

/* ─── Team Grid ─── */
.team-card {
  text-align: center;
  padding: 1.5rem;
}

.team-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(27, 45, 91, 0.1);
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-sky);
  transition: outline-color 0.3s ease;
}

.team-card:hover .team-card__photo {
  outline-color: var(--color-cerulean);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--color-cerulean);
  font-weight: 500;
}

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(27, 45, 91, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-cerulean);
  transform: translateY(-3px);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* delay utility */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -8px 0 30px rgba(27, 45, 91, 0.1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--color-mist);
  }

  .nav-links > li > a {
    padding: 1rem 0;
    font-size: 1rem;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 0 0 0.5rem 1rem;
    display: none;
  }
  .dropdown-menu--programs {
    min-width: 0;
    max-width: 100%;
  }

  .dropdown-menu--programs a {
    white-space: normal;
  }

  .nav-links > li:hover .dropdown-menu,
  .nav-links > li .dropdown-menu.open {
    display: block;
  }

  .btn-donate {
    margin: 1rem 0 0;
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-overlay {
    display: block;
  }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }

  .stats-section {
    padding: 3.25rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1rem;
  }

  .stat-item,
  .stat-item + .stat-item {
    padding: 0.5rem;
    border-left: 0;
  }

  #news .stories-layout {
    grid-template-columns: 1fr;
  }

  #news .stories-side {
    grid-template-rows: none;
  }

  #news .story-compact {
    grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
  }

  #home-donor-partners .donor-logos {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  #programs .grid.grid--3 .program-card__body h3 {
    min-height: 0;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-main {
    padding: 3rem 0 2.25rem;
  }

  .footer-col ul a,
  .footer-policy-links a {
    min-height: 44px;
  }

  .footer-bottom__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero { height: 70vh; min-height: 450px; }
  .hero-content h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .page-hero { height: 280px; }

  .timeline::before { left: 1rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 3rem;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-item::before { left: 1rem; }
  .timeline-content { max-width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { height: 60vh; min-height: 400px; }

  #news .story-featured__body {
    padding: 1.5rem;
  }

  #news .story-compact {
    grid-template-columns: 1fr;
  }

  #news .story-compact__image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* Homepage video-style hero */
.home-video-hero {
  position: relative;
  min-height: 560px;
  height: calc(100vh - 132px);
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.home-video-hero__media,
.home-video-hero__overlay {
  position: absolute;
  inset: 0;
}

.home-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: homeHeroReel 24s infinite;
}

.home-video-frame--one { animation-delay: 0s; }
.home-video-frame--two { animation-delay: 6s; }
.home-video-frame--three { animation-delay: 12s; }
.home-video-frame--four { animation-delay: 18s; }

.home-video-hero__overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 32, 72, 0.9) 0%, rgba(15, 32, 72, 0.62) 42%, rgba(15, 32, 72, 0.18) 100%),
              linear-gradient(0deg, rgba(15, 32, 72, 0.72) 0%, rgba(15, 32, 72, 0) 44%);
}

.home-video-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
}

.home-video-hero__content .label {
  color: var(--color-gold);
  margin-bottom: 0.8rem;
  display: block;
}

.home-video-hero__content h1 {
  color: var(--color-white);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  max-width: 720px;
  margin-bottom: 1rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.2);
}

.home-video-hero__content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 660px;
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.home-video-hero__actions,
.where-work__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.watch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-white);
  font-weight: 700;
  min-height: 48px;
}

.watch-link__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.9rem;
  padding-left: 3px;
}

.where-work {
  background: var(--color-white);
}

.where-work__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  gap: 4rem;
  align-items: center;
}

.where-work__copy h2 {
  margin: 0.5rem 0 1rem;
}

.where-work__copy p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-slate);
  margin-bottom: 1.8rem;
}

.nepal-map {
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--color-cloud) 0%, var(--color-white) 100%);
  box-shadow: 0 14px 34px rgba(27, 45, 91, 0.08);
}

.nepal-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.nepal-map__shape {
  fill: rgba(26, 127, 181, 0.12);
  stroke: var(--color-navy);
  stroke-width: 5;
  stroke-linejoin: round;
}

.nepal-map__ridge {
  fill: none;
  stroke: rgba(27, 45, 91, 0.24);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
}

.map-marker circle:first-child {
  fill: var(--color-gold);
  stroke: var(--color-navy);
  stroke-width: 4;
}

.map-marker circle:last-child {
  fill: none;
  stroke: rgba(242, 199, 68, 0.55);
  stroke-width: 4;
  animation: mapPulse 2.6s ease-out infinite;
}

.map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.map-list div {
  border-left: 3px solid var(--color-gold);
  padding: 0.15rem 0 0.15rem 0.8rem;
}

.map-list strong,
.map-list span {
  display: block;
}

.map-list strong {
  color: var(--color-navy);
  font-size: 0.95rem;
}

.map-list span {
  color: var(--color-slate);
  font-size: 0.84rem;
  line-height: 1.5;
}

@keyframes homeHeroReel {
  0% { opacity: 0; transform: scale(1.04); }
  5% { opacity: 1; }
  31% { opacity: 1; transform: scale(1.12); }
  38% { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.04); }
}

@keyframes mapPulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  80% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-video-frame,
  .map-marker circle:last-child {
    animation: none;
  }
  .home-video-frame--one {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .home-video-hero {
    min-height: 620px;
    height: auto;
  }
  .home-video-hero__content {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  .where-work__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 620px) {
  .home-video-hero__content h1 {
    font-size: 2.25rem;
  }
  .home-video-hero__actions,
  .where-work__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .home-video-hero__actions .btn,
  .where-work__actions .btn,
  .watch-link {
    width: 100%;
    justify-content: center;
  }
  .map-list {
    grid-template-columns: 1fr;
  }
  .nepal-map {
    padding: 1rem;
  }
}

/* Keep partner logos fully visible on large desktop cards. */
 #stepped-partners .stepped-partner-card img,
 .stepped-partner-card img {
  width: min(100%, 270px) !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
  border-radius: 6px !important;
}

#home-donor-partners .donor-logo img {
  width: 100%;
}

@media (min-width: 1200px) {
  #stepped-partners .stepped-partner-card img,
  .stepped-partner-card img,
  #home-donor-partners .donor-logo img {
    width: 100%;
    height: auto !important;
    max-height: 150px;
    object-fit: contain !important;
    object-position: center;
  }
}





/* Landing concept refinements */
.home-video-hero {
  min-height: 520px;
  height: calc(100vh - 172px);
  max-height: 680px;
  align-items: center;
}

.home-video-frame {
  filter: saturate(0.62) contrast(0.88) brightness(1.08);
}

.home-video-hero__overlay {
  background: linear-gradient(90deg, rgba(52, 92, 145, 0.82) 0%, rgba(52, 92, 145, 0.62) 36%, rgba(52, 92, 145, 0.14) 100%),
              linear-gradient(0deg, rgba(52, 92, 145, 0.18) 0%, rgba(52, 92, 145, 0) 50%);
}

.home-video-hero__content {
  padding-bottom: 2rem;
}

.home-video-hero__content h1 {
  max-width: 680px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

.home-video-hero__content p {
  max-width: 560px;
  font-size: 1.08rem;
}

.where-work {
  position: relative;
  z-index: 3;
  margin-top: 0;
  background: var(--color-white);
  padding: 5rem 0;
}

.where-work__card {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.where-work__intro {
  max-width: 780px;
  margin: 0 auto 2rem;
}

.where-work__intro h2 {
  margin: 0.45rem 0 1rem;
  color: var(--color-navy);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-transform: none;
  letter-spacing: 0;
}

.where-work__intro p {
  color: var(--color-graphite);
  line-height: 1.55;
  margin-bottom: 0;
}

.nepal-map {
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0 0;
  background: transparent;
  box-shadow: none;
}

.nepal-map svg {
  max-width: 720px;
  margin: 0 auto;
}

.nepal-map__shape {
  fill: #b9dce8;
  stroke: rgba(27, 45, 91, 0.46);
  stroke-width: 4;
}

.nepal-map__east {
  fill: rgba(242, 199, 68, 0.26);
  stroke: rgba(27, 45, 91, 0.36);
  stroke-width: 2;
  stroke-linejoin: round;
}

.nepal-map__ridge {
  stroke: rgba(27, 45, 91, 0.2);
  stroke-width: 2;
  stroke-dasharray: 7 9;
}

.map-pin path {
  fill: var(--color-gold);
  stroke: var(--color-white);
  stroke-width: 5;
  filter: drop-shadow(0 8px 10px rgba(27, 45, 91, 0.24));
}

.map-pin circle {
  fill: var(--color-white);
}

.map-pin text {
  fill: var(--color-navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  paint-order: stroke;
  stroke: var(--color-white);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.map-list {
  max-width: 960px;
  margin: 1.75rem auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.map-list div {
  padding: 0.25rem 0 0.25rem 1rem;
}

.map-list strong {
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.map-list span {
  font-size: 0.9rem;
  line-height: 1.55;
}

.where-work__note {
  max-width: 820px;
  margin: 2rem auto 1.5rem;
  text-align: center;
  color: var(--color-navy);
  line-height: 1.55;
}

.where-work__actions {
  justify-content: center;
}

.btn--outline-navy {
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--outline-navy:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

@media (max-width: 900px) {
  .home-video-hero {
    height: auto;
    min-height: 560px;
  }

  .where-work {
    margin-top: 0;
  }

  .where-work__card {
    margin-top: 0;
    padding: 0;
  }

  .map-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .home-video-hero__content h1 {
    font-size: 2.25rem;
  }

  .where-work {
    margin-top: 0;
  }

  .where-work__card {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .map-pin text {
    font-size: 25px;
  }
}



/* Requested landing refinements */
.home-video-frame {
  filter: saturate(0.42) contrast(0.8) brightness(1.18);
}

.home-video-hero__overlay {
  background: linear-gradient(90deg, rgba(64, 107, 158, 0.78) 0%, rgba(64, 107, 158, 0.52) 38%, rgba(64, 107, 158, 0.12) 100%),
              linear-gradient(0deg, rgba(64, 107, 158, 0.12) 0%, rgba(64, 107, 158, 0) 54%);
}

.home-video-hero__content h1 {
  max-width: 610px;
  font-size: clamp(1.85rem, 3.55vw, 3.25rem);
  line-height: 1.12;
}

.nepal-map svg {
  max-width: 840px;
}

.province-regions .province {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
}

.province--sudurpaschim { fill: #c8e4ee; }
.province--karnali { fill: #b8dce8; }
.province--lumbini { fill: #cfe8ef; }
.province--gandaki { fill: #b9dce7; }
.province--bagmati { fill: #c9e3ea; }
.province--madhesh { fill: #d6ebef; }
.province--koshi { fill: #c4e0e9; }

.district-boundaries path {
  fill: none;
  stroke: rgba(27, 45, 91, 0.28);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.working-district {
  fill: rgba(242, 199, 68, 0.62);
  stroke: rgba(27, 45, 91, 0.62);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.province-labels text {
  fill: rgba(27, 45, 91, 0.72);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map-pin path {
  fill: var(--color-gold);
}

.map-pin text {
  font-size: 16px;
}

@media (max-width: 620px) {
  .home-video-hero__content h1 {
    font-size: 1.65rem;
    line-height: 1.16;
    max-width: 330px;
  }

  .province-labels text {
    font-size: 20px;
  }

  .map-pin text {
    font-size: 22px;
  }
}

/* Accurate Nepal district/province map */
.nepal-map--accurate {
  padding-top: 0.4rem;
}

.accurate-nepal-map {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.accurate-nepal-map img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.82) contrast(0.96) brightness(1.03);
}

.district-highlight {
  position: absolute;
  z-index: 2;
  background: rgba(242, 199, 68, 0.5);
  border: 2px solid rgba(27, 45, 91, 0.58);
  box-shadow: 0 0 0 4px rgba(242, 199, 68, 0.16);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.district-highlight--solukhumbu {
  left: 77.8%;
  top: 57.5%;
  width: 7.6%;
  height: 17.8%;
  clip-path: polygon(10% 24%, 48% 0%, 92% 18%, 100% 62%, 62% 100%, 16% 82%, 0% 48%);
}

.district-highlight--khotang {
  left: 78.6%;
  top: 73%;
  width: 6.5%;
  height: 13.1%;
  clip-path: polygon(14% 6%, 72% 0%, 100% 36%, 78% 92%, 30% 100%, 0% 58%);
}

.district-highlight--taplejung {
  left: 90.4%;
  top: 61.3%;
  width: 8.8%;
  height: 15.7%;
  clip-path: polygon(0% 32%, 38% 0%, 88% 12%, 100% 58%, 67% 100%, 20% 82%);
}

.accurate-map-pin {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-navy);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 4px var(--color-white), 0 -1px 4px var(--color-white), 1px 0 4px var(--color-white), -1px 0 4px var(--color-white);
}

.accurate-map-pin span {
  width: 16px;
  height: 16px;
  border-radius: 999px 999px 999px 0;
  transform: rotate(-45deg);
  background: var(--color-gold);
  border: 3px solid var(--color-white);
  box-shadow: 0 4px 12px rgba(27, 45, 91, 0.3);
  flex: 0 0 auto;
}

.accurate-map-pin span::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-white);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.accurate-map-pin--solukhumbu { left: 80.2%; top: 62.5%; }
.accurate-map-pin--khotang { left: 80.8%; top: 78%; }
.accurate-map-pin--taplejung { left: 93.2%; top: 66.7%; }

.province-name-list {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.province-name-list span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(27, 45, 91, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 12px rgba(27, 45, 91, 0.12);
  white-space: nowrap;
}

.province-name--sudurpashchim { left: 7%; top: 18%; }
.province-name--karnali { left: 31%; top: 7%; }
.province-name--lumbini { left: 37%; top: 82%; }
.province-name--gandaki { left: 54%; top: 29%; }
.province-name--bagmati { left: 73%; top: 45%; }
.province-name--madhesh { left: 80%; top: 101%; }
.province-name--koshi { left: 98%; top: 76%; }

.map-attribution {
  max-width: 760px;
  margin: 0.65rem auto 0;
  color: var(--color-slate);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 620px) {
  .accurate-nepal-map {
    max-width: 100%;
  }

  .accurate-map-pin {
    font-size: 0.68rem;
    gap: 0.25rem;
  }

  .accurate-map-pin span {
    width: 13px;
    height: 13px;
    border-width: 2px;
  }

  .district-highlight {
    border-width: 1px;
    box-shadow: 0 0 0 2px rgba(242, 199, 68, 0.16);
  }
}


/* District name overlay */
.district-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.district-labels span {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-block;
  max-width: 46px;
  color: #10264f;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.39rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(255,255,255,0.95), 1px 0 2px rgba(255,255,255,0.95), -1px 0 2px rgba(255,255,255,0.95), 0 -1px 2px rgba(255,255,255,0.95);
}

.district-labels .district-label--work {
  color: var(--color-gold);
  font-size: 0.48rem;
  background: rgba(27, 45, 91, 0.78);
  border-radius: 3px;
  padding: 1px 3px;
}

.accurate-map-pin {
  z-index: 5;
}

@media (min-width: 1000px) {
  .district-labels span { font-size: 0.46rem; max-width: 62px; }
  .district-labels .district-label--work { font-size: 0.56rem; }
}

@media (max-width: 620px) {
  .district-labels span {
    font-size: 0.28rem;
    max-width: 30px;
    line-height: 1;
  }
  .district-labels .district-label--work {
    font-size: 0.36rem;
    padding: 1px 2px;
  }
}

.where-work {
  position: relative;
  z-index: 5;
  margin-top: 0;
  background: var(--color-white);
}

.where-work__card {
  margin-top: 0;
  position: relative;
  z-index: 6;
}

@media (max-width: 900px) {
  .where-work__card {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .where-work__card {
    margin-top: 0;
  }
}

/* Hero image composition: text on blended left, imagery on right */
.home-video-hero__media {
  background: linear-gradient(90deg, #416b9e 0%, #416b9e 46%, #5f91bd 100%);
}

.home-video-frame {
  inset: 0 0 0 auto;
  width: 66%;
  object-position: 74% center;
  filter: saturate(0.56) contrast(0.86) brightness(1.08);
}

.home-video-frame--one {
  object-position: 78% center;
}

.home-video-frame--two,
.home-video-frame--three,
.home-video-frame--four {
  object-position: 72% center;
}

.home-video-hero__overlay {
  background:
    linear-gradient(90deg, rgba(55, 96, 150, 1) 0%, rgba(55, 96, 150, 1) 38%, rgba(55, 96, 150, 0.92) 48%, rgba(55, 96, 150, 0.48) 61%, rgba(55, 96, 150, 0.08) 78%, rgba(55, 96, 150, 0) 100%),
    linear-gradient(180deg, rgba(27, 45, 91, 0.12) 0%, rgba(27, 45, 91, 0) 38%),
    linear-gradient(0deg, rgba(27, 45, 91, 0.08) 0%, rgba(27, 45, 91, 0) 42%);
}

@media (max-width: 900px) {
  .home-video-frame,
  .home-video-frame--one,
  .home-video-frame--two,
  .home-video-frame--three {
    width: 78%;
    object-position: 66% center;
  }

  .home-video-hero__overlay {
    background:
      linear-gradient(90deg, rgba(55, 96, 150, 0.98) 0%, rgba(55, 96, 150, 0.94) 52%, rgba(55, 96, 150, 0.45) 82%, rgba(55, 96, 150, 0.12) 100%),
      linear-gradient(0deg, rgba(27, 45, 91, 0.1) 0%, rgba(27, 45, 91, 0) 45%);
  }
}

/* Map pin refinement */
.district-highlight {
  display: none;
}

.accurate-map-pin span {
  background: var(--color-gold);
  border-color: var(--color-white);
}

/* Working district callouts */
.district-labels .district-label--work {
  color: #10264f;
  font-size: 0.39rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.accurate-map-pin {
  z-index: 7;
  display: block;
  width: 0;
  height: 0;
  gap: 0;
  color: var(--color-navy);
  font-size: 0.78rem;
  line-height: 1;
  text-shadow: none;
}

.accurate-map-pin::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: var(--callout-line-length, 72px);
  height: 2px;
  background: var(--color-gold);
  transform: rotate(var(--callout-line-angle, 0deg));
  transform-origin: left center;
  box-shadow: 0 1px 4px rgba(27, 45, 91, 0.18);
}

.accurate-map-pin::after {
  content: '';
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.88), 0 2px 8px rgba(27, 45, 91, 0.22);
}

.accurate-map-pin span {
  display: none;
}

.accurate-map-pin strong {
  position: absolute;
  left: var(--callout-x, 62px);
  top: var(--callout-y, -32px);
  transform: translate(-50%, -50%);
  min-width: 96px;
  padding: 0.58rem 0.72rem;
  border-radius: 4px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(27, 45, 91, 0.18);
  white-space: nowrap;
}

.accurate-map-pin--solukhumbu {
  --callout-x: -54px;
  --callout-y: -54px;
  --callout-line-length: 78px;
  --callout-line-angle: -138deg;
}

.accurate-map-pin--khotang {
  --callout-x: 70px;
  --callout-y: -112px;
  --callout-line-length: 132px;
  --callout-line-angle: -58deg;
}

.accurate-map-pin--taplejung {
  --callout-x: 52px;
  --callout-y: -42px;
  --callout-line-length: 68px;
  --callout-line-angle: -38deg;
}

@media (min-width: 1000px) {
  .district-labels .district-label--work {
    font-size: 0.46rem;
  }
}

@media (max-width: 620px) {
  .district-labels .district-label--work {
    font-size: 0.28rem;
    padding: 0;
  }

  .accurate-map-pin strong {
    min-width: 76px;
    padding: 0.42rem 0.48rem;
    font-size: 0.6rem;
  }

  .accurate-map-pin::before {
    width: calc(var(--callout-line-length, 72px) * 0.62);
  }

  .accurate-map-pin--solukhumbu {
    --callout-x: -38px;
    --callout-y: -36px;
    --callout-line-length: 56px;
    --callout-line-angle: -138deg;
  }

  .accurate-map-pin--khotang {
    --callout-x: 44px;
    --callout-y: -70px;
    --callout-line-length: 82px;
    --callout-line-angle: -58deg;
  }

  .accurate-map-pin--taplejung {
    --callout-x: 22px;
    --callout-y: -30px;
    --callout-line-length: 44px;
    --callout-line-angle: -38deg;
  }
}

/* Why Our Work Matters */
.context-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: #f1f5f7;
}

.context-section__intro {
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
}

.context-section__intro h2 {
  margin: 0.6rem 0 1rem;
  color: var(--color-navy);
}

.context-section__intro p {
  margin: 0;
  color: var(--color-slate);
  font-size: 1.05rem;
  line-height: 1.75;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.context-card {
  display: grid;
  grid-template-rows: 2.25rem 1.65rem 1fr auto;
  row-gap: 0.8rem;
  min-width: 0;
  padding: clamp(1.4rem, 2vw, 1.75rem);
  background: var(--color-white);
  border: 1px solid rgba(10, 38, 78, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10, 38, 78, 0.06);
  text-align: center;
}

.context-card__stat {
  margin: 0;
  color: var(--color-cerulean);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 1.9vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.context-card h3 {
  margin: 0;
  color: var(--color-navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  line-height: 1.25;
  white-space: nowrap;
}

.context-card > p:not(.context-card__stat) {
  margin: 0;
  color: var(--color-slate);
  font-size: 0.94rem;
  line-height: 1.65;
}

.context-card__source {
  margin-top: 0;
  padding-top: 0.7rem;
  color: var(--color-cerulean);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  justify-self: center;
}

.context-card__source:hover,
.context-card__source:focus-visible {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.context-references {
  max-width: 850px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.context-references summary {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--color-cerulean);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.context-references summary::-webkit-details-marker {
  display: none;
}

.context-references summary:hover,
.context-references summary:focus-visible {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.context-references[open] summary span {
  transform: rotate(90deg);
}

.context-references__panel {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--color-white);
  border: 1px solid rgba(10, 38, 78, 0.1);
  border-radius: 16px;
  text-align: left;
}

.context-references__panel h3 {
  margin: 0 0 1.5rem;
  color: var(--color-navy);
}

.context-references__group + .context-references__group {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 38, 78, 0.1);
}

.context-references__group h4 {
  margin: 0 0 0.9rem;
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.context-references__panel ul {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-references__panel li {
  display: grid;
  gap: 0.15rem;
}

.context-references__panel a {
  color: var(--color-cerulean);
  font-weight: 700;
  text-decoration: none;
}

.context-references__panel a:hover,
.context-references__panel a:focus-visible {
  color: var(--color-navy);
  text-decoration: underline;
}

.context-references__panel li span {
  color: var(--color-slate);
  font-size: 0.85rem;
}

@media (max-width: 1020px) {
  .context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .context-grid {
    grid-template-columns: 1fr;
  }

  .context-card__stat {
    font-size: 1.9rem;
  }
}
