/* ================================================
   PRAYAS FOUNDATION — GLOBAL STYLESHEET
   Palette: Saffron · Forest · Ivory · Terracotta
   ================================================ */

:root {
  --saffron:        #E8710A;
  --saffron-light:  #F5A442;
  --saffron-pale:   #FEF3E2;
  --forest:         #1D4731;
  --forest-mid:     #2E6649;
  --forest-light:   #EDF5EE;
  --ivory:          #FDFAF4;
  --ivory-dark:     #F0EBE0;
  --terracotta:     #C0513A;
  --charcoal:       #1A1A18;
  --mid-gray:       #5A5A52;
  --light-gray:     #E8E5DE;
  --white:          #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 80px rgba(0,0,0,0.14);

  --nav-h: 72px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
p { color: var(--mid-gray); }
em { font-style: italic; color: var(--saffron); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 0.75rem;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { color: var(--charcoal); margin-top: 0.5rem; }

/* ─── NAVIGATION ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(253,250,244,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light-gray);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; gap: 2.5rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; line-height: 1.2; color: var(--forest);
}
.logo-symbol {
  font-size: 1.8rem; color: var(--saffron); line-height: 1;
  font-family: 'Noto Serif Devanagari', serif;
}
.logo small { font-size: 0.7rem; font-weight: 400; opacity: 0.7; letter-spacing: 0.05em; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; margin-left: auto;
  flex-wrap: wrap;
}
.nav-links > li { position: relative; }
.nav-links a {
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 400; color: var(--charcoal);
  transition: background 0.2s, color 0.2s;
  display: block;
}
.nav-links a:hover { background: var(--saffron-pale); color: var(--saffron); }
.nav-cta {
  background: var(--saffron) !important;
  color: white !important; border-radius: var(--radius-sm) !important;
  font-weight: 500 !important; padding: 0.5rem 1.2rem !important;
}
.nav-cta:hover { background: var(--terracotta) !important; }

.has-dropdown:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); min-width: 200px;
  padding: 0.5rem;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all 0.2s;
}
.dropdown li a { font-size: 0.88rem; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: 0.3s; }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm); font-weight: 500; font-size: 0.95rem;
  transition: all 0.2s; cursor: pointer; border: none; font-family: var(--font-body);
}
.btn-primary { background: var(--saffron); color: white; }
.btn-primary:hover { background: var(--terracotta); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,113,10,0.35); }
.btn-ghost { color: var(--charcoal); }
.btn-ghost:hover { color: var(--saffron); }
.btn-outline {
  border: 1.5px solid var(--saffron); color: var(--saffron); background: transparent;
}
.btn-outline:hover { background: var(--saffron); color: white; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ─── ANIMATE IN ─────────────────────────────── */
.animate-in {
  opacity: 0; transform: translateY(28px);
  animation: fadeUp 0.7s cubic-bezier(.22,.68,0,1.2) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  max-width: 1160px; margin: 0 auto; position: relative;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: var(--ivory);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px; opacity: 0.6;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,113,10,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(29,71,49,0.10) 0%, transparent 70%);
  bottom: 0; left: -50px;
  animation: float2 10s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-15px)} }

.hero-eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--saffron); font-weight: 500; margin-bottom: 1rem; }
.hero-title { color: var(--charcoal); max-width: 800px; margin-bottom: 1.5rem; }
.hero-desc { max-width: 560px; font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 5rem; }
.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  border-top: 1px solid var(--light-gray); padding-top: 2.5rem;
}
.stat-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--forest); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid-gray); }

/* ─── MARQUEE ────────────────────────────────── */
.marquee-bar { background: var(--forest); padding: 0.9rem 0; overflow: hidden; }
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 28s linear infinite;
  color: rgba(255,255,255,0.7); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.marquee-track span { padding-right: 0; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ─── PILLARS ────────────────────────────────── */
.section-white { padding: 6rem 2rem; background: white; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 2rem; }
.pillar-card {
  display: block; padding: 2.5rem 2rem; border-radius: var(--radius-lg);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid transparent;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-edu   { background: var(--saffron-pale); border-color: rgba(232,113,10,0.12); }
.pillar-health{ background: var(--forest-light); border-color: rgba(29,71,49,0.12); }
.pillar-women { background: #FEF0EF; border-color: rgba(192,81,58,0.12); }
.pillar-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.pillar-card h3 { margin-bottom: 0.75rem; color: var(--charcoal); }
.pillar-card p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.pillar-link { font-weight: 500; color: var(--saffron); font-size: 0.9rem; }

/* ─── FEATURE STORY ──────────────────────────── */
.feature-story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 7rem 2rem;
}
.feature-text h2 { margin: 0.5rem 0 1.5rem; }
.feature-text p { margin-bottom: 2rem; font-size: 1.05rem; }
.image-placeholder {
  background: var(--ivory-dark); border-radius: var(--radius-lg);
  aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.image-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--saffron-pale) 0%, var(--ivory-dark) 100%);
}
.img-ph-inner { position: relative; text-align: center; }
.img-ph-inner span { font-size: 4rem; display: block; margin-bottom: 0.5rem; }
.img-ph-inner p { color: var(--mid-gray); font-size: 0.9rem; }
.feature-tag {
  position: absolute; top: -12px; right: 2rem;
  background: var(--saffron); color: white;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 999px;
}
.feature-image { position: relative; }

/* ─── NUMBERS ────────────────────────────────── */
.numbers-section { background: var(--forest); padding: 7rem 2rem; }
.numbers-section .container > p { margin-bottom: 0.5rem; }
.numbers-section h2 { color: white; margin-bottom: 4rem; }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 2rem; }
.number-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 2rem;
}
.num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--saffron-light); margin-bottom: 0.5rem; }
.num-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.4; }

/* ─── NEWS ───────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.news-card-large { grid-row: span 2; }
.news-card { padding: 1.5rem; background: var(--ivory); border-radius: var(--radius-md); border: 1px solid var(--light-gray); transition: box-shadow 0.2s, transform 0.2s; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-img-ph {
  background: var(--ivory-dark); border-radius: var(--radius-sm);
  height: 220px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; margin-bottom: 1.2rem;
}
.news-img-ph.sm { height: 100px; font-size: 2rem; }
.news-meta { font-size: 0.78rem; color: var(--saffron); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.news-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; line-height: 1.4; color: var(--charcoal); }
.read-more { font-size: 0.85rem; color: var(--saffron); font-weight: 500; }

/* ─── DONATE BANNER ──────────────────────────── */
.donate-banner { background: var(--saffron-pale); padding: 5rem 2rem; border-top: 1px solid rgba(232,113,10,0.15); }
.donate-banner-inner {
  max-width: 900px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.donate-banner h2 { color: var(--charcoal); margin-bottom: 0.5rem; }
.donate-banner p { font-size: 1rem; }

/* ─── FOOTER ─────────────────────────────────── */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 5rem 2rem 2rem; }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-symbol { font-size: 2rem; color: var(--saffron); }
.footer-brand > span:last-of-type { display: block; font-family: var(--font-display); font-size: 1.2rem; color: white; margin: 0.3rem 0 1rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.8; }
.footer-links h4, .footer-contact h4 { color: white; margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--saffron-light); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 0.5rem; }
.footer-contact a { color: var(--saffron-light); }
.footer-bottom { max-width: 1160px; margin: 2rem auto 0; text-align: center; font-size: 0.82rem; }

/* ─── INNER PAGE HERO ────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--saffron-pale) 100%);
  text-align: center;
}
.page-hero .eyebrow { display: block; margin-bottom: 0.5rem; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ─── SECTION ALTERNATING ────────────────────── */
.section-ivory { padding: 6rem 2rem; background: var(--ivory); }
.section-green  { padding: 6rem 2rem; background: var(--forest-light); }

/* ─── TEAM GRID ──────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--ivory-dark); display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; border: 3px solid var(--saffron-pale);
}
.team-card h3 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--charcoal); }
.team-card p { font-size: 0.82rem; color: var(--saffron); }

/* ─── TIMELINE ───────────────────────────────── */
.timeline { position: relative; max-width: 700px; margin: 0 auto; padding: 2rem 0; }
.timeline::before { content:''; position:absolute; left:20px; top:0; bottom:0; width:2px; background:var(--light-gray); }
.tl-item { padding-left: 56px; margin-bottom: 3rem; position: relative; }
.tl-dot {
  position:absolute; left:12px; top:4px; width:18px; height:18px; border-radius:50%;
  background:var(--saffron); border:3px solid white; box-shadow:0 0 0 2px var(--saffron);
}
.tl-year { font-size:0.78rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--saffron); font-weight:500; margin-bottom:0.3rem; }
.tl-item h3 { font-size:1.05rem; margin-bottom:0.4rem; color:var(--charcoal); }
.tl-item p { font-size:0.9rem; }

/* ─── ACCORDION ──────────────────────────────── */
.accordion { border: 1px solid var(--light-gray); border-radius: var(--radius-md); overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--light-gray); }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.4rem 1.8rem; font-family: var(--font-body); font-size: 1rem;
  font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--charcoal); transition: background 0.2s;
}
.acc-trigger:hover { background: var(--ivory); }
.acc-trigger.open { color: var(--saffron); }
.acc-icon { transition: transform 0.3s; font-size: 1.2rem; }
.acc-trigger.open .acc-icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.acc-body.open { max-height: 400px; }
.acc-body-inner { padding: 0 1.8rem 1.4rem; color: var(--mid-gray); font-size: 0.95rem; }

/* ─── FORM ───────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 500; color: var(--charcoal); }
input, textarea, select {
  padding: 0.8rem 1rem; border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem;
  background: white; color: var(--charcoal); transition: border 0.2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--saffron); }
textarea { resize: vertical; min-height: 120px; }

/* ─── GALLERY GRID ───────────────────────────── */
.gallery-grid { columns: 3; gap: 1rem; }
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  background: var(--ivory-dark); border-radius: var(--radius-md);
  overflow: hidden; transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-ph {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem; color: var(--mid-gray);
  font-size: 0.82rem;
}
.gallery-ph span { font-size: 2.5rem; }

/* ─── PROGRAM CARDS ──────────────────────────── */
.program-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  margin-bottom: 6rem;
}
.program-detail:nth-child(even) .program-text { order: 2; }
.program-detail:nth-child(even) .program-visual { order: 1; }
.program-visual {
  background: var(--ivory-dark); border-radius: var(--radius-lg);
  padding: 3rem; text-align: center; min-height: 300px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.program-visual span { font-size: 5rem; display: block; margin-bottom: 1rem; }
.program-text h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.program-text p { margin-bottom: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  background: var(--saffron-pale); color: var(--saffron);
  font-size: 0.78rem; padding: 0.3rem 0.9rem; border-radius: 999px; font-weight: 500;
}

/* ─── DONATE PAGE ────────────────────────────── */
.donate-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.amount-btn {
  padding: 1rem; border: 2px solid var(--light-gray); border-radius: var(--radius-sm);
  background: white; cursor: pointer; font-family: var(--font-body); font-size: 1rem;
  font-weight: 600; color: var(--charcoal); transition: all 0.2s; text-align: center;
}
.amount-btn:hover, .amount-btn.active { border-color: var(--saffron); background: var(--saffron-pale); color: var(--saffron); }
.donate-sidebar { background: var(--forest); border-radius: var(--radius-lg); padding: 2.5rem; color: white; }
.donate-sidebar h3 { color: white; margin-bottom: 1.5rem; }
.trust-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.trust-icon { font-size: 1.5rem; flex-shrink: 0; }
.trust-item h4 { font-size: 0.9rem; color: white; margin-bottom: 0.2rem; }
.trust-item p { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* ─── VOLUNTEER ──────────────────────────────── */
.volunteer-roles { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.5rem; }
.role-card {
  border: 1.5px solid var(--light-gray); border-radius: var(--radius-md); padding: 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}
.role-card:hover { border-color: var(--saffron); transform: translateY(-3px); }
.role-card span { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.role-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.role-card p { font-size: 0.88rem; }

/* ─── MAP PLACEHOLDER ────────────────────────── */
.map-ph {
  background: var(--ivory-dark); border-radius: var(--radius-lg);
  height: 340px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem; color: var(--mid-gray); font-size: 1rem;
  border: 1px solid var(--light-gray);
}
.map-ph span { font-size: 3rem; }

/* ─── BREADCRUMB ─────────────────────────────── */
.breadcrumb {
  padding: calc(var(--nav-h) + 1.5rem) 2rem 0;
  font-size: 0.82rem; color: var(--mid-gray); max-width: 1160px; margin: 0 auto;
}
.breadcrumb a { color: var(--saffron); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── Named grid components ── */
  .feature-story,
  .donate-grid,
  .program-detail { grid-template-columns: 1fr; gap: 2.5rem; }

  .program-detail:nth-child(even) .program-text,
  .program-detail:nth-child(even) .program-visual { order: unset; }

  .news-grid { grid-template-columns: 1fr; }
  .news-card-large { grid-row: span 1; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Gallery */
  .gallery-grid { columns: 2; }

  /* ── Inline two-column grids used throughout HTML ──
     Target every [style*="grid-template-columns"] that
     has fixed ratios — we override via attribute selectors
     on their wrapper classes or add a utility class.
     Since the grids are inline-styled, we use a targeted
     rule set on their PARENT section contexts.           */

  /* About page: founder grid */
  .section-white > .container > div[style*="grid-template-columns:1fr 1.4fr"],
  .section-white > .container > div[style*="grid-template-columns:1.4fr 1fr"],
  /* Mission page: mission/vision cards */
  .section-white > .container > div[style*="grid-template-columns:1fr 1fr"],
  /* News featured */
  .section-white > .container > div[style*="grid-template-columns:1.2fr 1fr"],
  /* Volunteer form */
  .section-ivory > .container > div[style*="grid-template-columns:1fr 1.6fr"],
  /* Contact */
  .section-white > .container > div[style*="grid-template-columns:1.4fr 1fr"],
  /* Healthcare story */
  .section-ivory > .container > div[style*="grid-template-columns:1.2fr 1fr"],
  /* Women story (charcoal bg) */
  section[style*="background:var(--charcoal)"] > .container > div[style*="grid-template-columns"],
  /* Education story (forest bg) */
  section[style*="background:var(--forest)"] > .container > div[style*="grid-template-columns"],
  /* Values grid (section-white inner) */
  .section-white > .container > div[style*="grid-template-columns:repeat"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Stat bars — tighten gap */
  div[style*="display:flex"][style*="gap:4rem"] {
    gap: 2rem !important;
    padding: 1.5rem !important;
  }

  /* SDG pills — already flex-wrap, just tighten */
  div[style*="display:flex"][style*="gap:1.5rem"][style*="justify-content:center"] {
    gap: 1rem !important;
  }

  /* Numbers grid */
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 680px
   ══════════════════════════════════════════════ */
@media (max-width: 680px) {

  /* ── NAV ── */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  /* Keep dropdown open-able on mobile too */
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    background: var(--ivory);
    border-radius: var(--radius-sm);
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }

  /* ── HERO ── */
  .hero {
    padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3.5rem;
    min-height: auto;
  }
  .hero-title { font-size: 2.6rem; }
  .hero-desc  { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; padding-top: 1.5rem; margin-bottom: 0; }
  .stat-num   { font-size: 1.5rem; }

  /* ── SECTIONS ── */
  .section-white,
  .section-ivory,
  .section-green { padding: 3.5rem 1.25rem; }

  .numbers-section { padding: 3.5rem 1.25rem; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .num { font-size: 1.8rem; }

  /* ── PAGE HERO ── */
  .page-hero { padding: calc(var(--nav-h) + 2rem) 1.25rem 2.5rem; }
  .page-hero h1 { font-size: 2.2rem; }

  /* ── CONTAINER PADDING ── */
  .container { padding: 0 1.25rem; }

  /* ── MARQUEE BAR ── */
  .marquee-bar { padding: 0.7rem 0; }

  /* ── PILLARS ── */
  .pillars-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* ── FEATURE STORY ── */
  .feature-story {
    padding: 3.5rem 1.25rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .image-placeholder { aspect-ratio: 3/2; }

  /* ── ALL INLINE 2-COL GRIDS → stack ── */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:1fr 1.4fr"],
  div[style*="grid-template-columns:1.4fr 1fr"],
  div[style*="grid-template-columns:1fr 1.2fr"],
  div[style*="grid-template-columns:1.2fr 1fr"],
  div[style*="grid-template-columns:1fr 1.6fr"],
  div[style*="grid-template-columns:1.6fr 1fr"],
  div[style*="grid-template-columns:1.4fr 1fr"],
  div[style*="grid-template-columns:2fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  /* Reset order overrides from tablet */
  div[style*="grid-template-columns"] > * { order: unset !important; }

  /* ── STAT BARS (coloured flex strips) ── */
  div[style*="display:flex"][style*="gap:4rem"],
  div[style*="display:flex"][style*="gap:3rem"] {
    flex-wrap: wrap !important;
    gap: 1rem 2rem !important;
    padding: 1.25rem !important;
    justify-content: center !important;
  }

  /* ── TRUST BAR (donate page) ── */
  div[style*="display:flex"][style*="gap:3rem"][style*="background:var(--forest)"] {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }

  /* ── NEWS ── */
  .news-grid { grid-template-columns: 1fr; }
  .news-card-large { grid-row: span 1; }
  .news-img-ph { height: 160px; }

  /* ── FORMS ── */
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  /* ── DONATE PAGE ── */
  .donate-grid { grid-template-columns: 1fr; gap: 2rem; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .amount-btn  { font-size: 0.9rem; padding: 0.75rem 0.5rem; }
  .donate-tabs .dtab { font-size: 0.82rem; padding: 0.6rem 0.5rem; }

  /* ── DONATE BANNER ── */
  .donate-banner { padding: 3rem 1.25rem; }
  .donate-banner-inner { flex-direction: column; text-align: center; gap: 1.25rem; }
  .donate-banner h2 { font-size: 1.5rem; }

  /* ── GALLERY ── */
  .gallery-grid,
  .gallery-masonry { columns: 1 !important; }

  /* ── TEAM GRID ── */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  /* ── VOLUNTEER ROLES ── */
  .volunteer-roles { grid-template-columns: 1fr; }

  /* ── TIMELINE ── */
  .timeline::before { left: 14px; }
  .tl-dot { left: 7px; }
  .tl-item { padding-left: 44px; }

  /* ── FOOTER ── */
  .footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { font-size: 0.78rem; padding-top: 1rem; }

  /* ── BREADCRUMB ── */
  .breadcrumb { padding: calc(var(--nav-h) + 1rem) 1.25rem 0; }

  /* ── PROGRAM CARDS ── */
  .program-detail { margin-bottom: 3rem; }
  .program-visual { min-height: 200px; padding: 2rem; }
  .program-visual span { font-size: 3.5rem; }

  /* ── PARTNER BADGES ── */
  div[style*="flex-wrap:wrap"][style*="gap:1.5rem"][style*="justify-content:center"] {
    gap: 0.75rem !important;
  }

  /* ── GENERAL HEADING SCALE ── */
  h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  h3 { font-size: 1.15rem; }

  /* ── SDG STRIP ── */
  section[style*="background:var(--charcoal)"] > .container > div[style*="display:flex"] {
    gap: 0.75rem !important;
  }

  /* ── CONTACT PAGE inline grids ── */
  .section-white > .container > div[style*="grid-template-columns:1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* ── MAP ── */
  .map-ph { height: 220px; }

  /* ── NEWS PRESS ITEMS ── */
  div[style*="display:flex"][style*="gap:2rem"][style*="align-items:flex-start"] {
    gap: 1rem !important;
  }
}
