/* ============================================================
   Rurallysmile Foundation — Design System
   Brand: teal (#0E7C86) + saffron/orange (#F47C20)
   Mobile-first, lightweight, system fonts (no external requests)
   ============================================================ */

:root {
  /* Brand */
  --teal:        #0E7C86;
  --teal-dark:   #0B4F54;
  --teal-deep:   #073A3E;
  --orange:      #F47C20;
  --orange-dark: #E06712;
  --amber:       #F59E0B;

  /* Neutrals */
  --ink:         #1F2937;
  --ink-soft:    #4B5563;
  --muted:       #6B7280;
  --line:        #E5E7EB;
  --bg:          #FFFFFF;
  --bg-soft:     #F7FAFA;
  --bg-tint:     #EEF6F6;
  --white:       #FFFFFF;

  /* System font stacks (fast, offline, no hotlinks) */
  --font-head: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(11, 79, 84, .10);
  --shadow-lg: 0 20px 50px rgba(11, 79, 84, .18);
  --wrap: 1160px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); text-decoration: none; }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--teal-dark);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* Justify paragraph text only — keep headings, UI elements, centred sections left/centre */
h1, h2, h3, h4,
.btn, .eyebrow, .breadcrumb, .stat__label, .stat__num,
.nav-links a, .nav-emergency, .footer h4, .footer ul,
.trust-strip__list, .trust-item, .trust-bar__head,
.section-head.center, .section-head.center p,
.section-head.center .lead,
.cta-band, .cta-band p,
.enroll-card, .enroll-card .sub,
.ea-hero, .ea-hero p,
.page-hero__inner, .page-hero__inner p,
.hero__inner, .hero__inner p,
.hero__tags, .hero__cta,
.event-banner, .event-banner p,
.ea-emergency-badge, .ea-alert-badge,
.ea-video-tag, .ea-video-title,
.ea-photo__label, .ea-upi__hint, .ea-donate-secure,
.card h3, .card p,
.team-card h3, .team-card .role,
.support-card h3, .support-card p,
.reg .k, .reg .v,
.upi-label, .upi-value,
.countdown, .countdown span,
.timeline .yr, .timeline b,
.compliance-list li,
.focus-card h3,
.cat .big, .cat .hn,
.enroll-badge, .enroll-hint,
.csr-note,
.footer__bottom, .footer__trust,
.form-msg,
input, textarea, select, button,
.amount, .amount small,
code { text-align: unset; hyphens: none; -webkit-hyphens: none; }

/* Centred elements stay centred */
.section-head.center,
.section-head.center h2,
.section-head.center p,
.section-head.center .lead,
.cta-band,
.cta-band h2,
.cta-band p,
.enroll-card,
.enroll-card h2,
.enroll-card .sub,
.enroll-card .enroll-hint,
.stat,
.stat__label,
.team-card__body,
.ea-video-info,
.ea-upi__hint,
.ea-photo-upload-note { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--teal-dark); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { background: var(--bg-soft); }
.section--teal { background: linear-gradient(160deg, var(--teal-dark), var(--teal-deep)); color: #E9F5F5; }
.section--teal h2, .section--teal h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .8rem;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; min-height: 48px;
}
@media (max-width: 560px) {
  .btn { padding: .9rem 1.2rem; font-size: .95rem; white-space: normal; max-width: 100%; text-align: center; }
  .btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(244,124,32,.35); }
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 10px 26px rgba(244,124,32,.45); }
.btn--ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--white { background: #fff; color: var(--teal-dark); }
.btn--white:hover { background: #f1f1f1; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand span { display: none; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .98rem; padding: .3rem 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a:focus::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 46px; height: 46px; border-radius: 10px; min-height: 48px; min-width: 48px;
}
.nav-toggle:focus-visible { outline: 3px solid var(--teal); }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--teal-dark); border-radius: 3px; margin: 5px auto; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mobile Navigation ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 0; gap: 0; z-index: 49; }
  nav[data-open="true"] .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 20px; border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: var(--bg-soft); }
  .nav-cta { display: none; }
  .header { z-index: 51; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(7,58,62,.92) 0%, rgba(11,79,84,.82) 45%, rgba(14,124,134,.55) 100%);
}
.hero__inner { padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 .hl { color: var(--amber); }
.hero p { font-size: 1.2rem; color: #E4F1F1; max-width: 620px; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.2rem; color: #CFE7E7; font-size: .95rem; }
.hero__tags span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__tags svg { width: 18px; height: 18px; fill: var(--amber); }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 16px; }
}
.stat { background: #fff; padding: 30px 18px; text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--teal); line-height: 1; }
.stat__num .plus { color: var(--orange); }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (max-width: 560px) {
  .card { padding: 20px; }
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-tint); margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; fill: var(--teal); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-media .badge {
  position: absolute; bottom: -22px; left: -10px; background: var(--orange); color: #fff;
  padding: 16px 22px; border-radius: 14px; box-shadow: var(--shadow); font-family: var(--font-head);
}
.about-media .badge b { display: block; font-size: 1.5rem; line-height: 1; }
.about-media .badge small { font-size: .8rem; opacity: .95; }
@media (max-width: 860px) {
  .about-media .badge { bottom: auto; left: auto; top: -12px; right: 0; padding: 12px 16px; }
}
.values { list-style: none; display: grid; gap: 14px; margin-top: 1.4rem; }
.values li { display: flex; gap: .8rem; align-items: flex-start; }
.values svg { width: 24px; height: 24px; fill: var(--orange); flex: none; margin-top: 2px; }

/* ---------- Event feature ---------- */
.event { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
@media (max-width: 860px) {
  .event { grid-template-columns: 1fr; }
  .event__media img { min-height: 240px; }
}
.event__media img { height: 100%; width: 100%; object-fit: cover; min-height: 280px; }
.event__body { padding: clamp(28px, 4vw, 48px); }
.event__badge { display: inline-block; background: var(--bg-tint); color: var(--teal-dark); font-weight: 700; font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.event__meta { list-style: none; display: grid; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.event__meta li { display: flex; gap: .6rem; color: var(--ink-soft); }
.event__meta svg { width: 20px; height: 20px; fill: var(--orange); flex: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button { border: 0; padding: 0; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; background: #ddd; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.08); }
.gallery .tall { grid-row: span 2; aspect-ratio: 3/4; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(7,58,62,.92); display: none; place-items: center; z-index: 100; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox button:hover { background: rgba(255,255,255,.3); }

/* ---------- Team ---------- */
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--line); }
.team-card img { aspect-ratio: 1/1; object-fit: cover; object-position: center top; width: 100%; background: var(--bg-tint); }
.team-card__body { padding: 20px 16px; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.team-card .role { color: var(--orange); font-weight: 700; font-size: .88rem; margin-bottom: .5rem; }
.team-card .phone { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.team-card .phone svg { width: 15px; height: 15px; fill: var(--teal); }

/* ---------- Image-loading placeholder (photos to be uploaded later) ---------- */
.team-card__ph {
  aspect-ratio: 1/1; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(100deg, #e9eef0 30%, #f5f8f9 50%, #e9eef0 70%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite linear; color: #9aa8ac;
}
.team-card__ph svg { width: 46px; height: 46px; fill: #c2ced2; }
.team-card__ph small { font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .team-card__ph { animation: none; } }

/* ---------- Support cards ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.support-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.support-card .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); font-weight: 800; margin-bottom: .5rem; }
.support-card h3 { margin-bottom: .5rem; }
.support-card p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
@media (max-width: 860px) {
  .donate-grid { grid-template-columns: 1fr; }
}
.donate-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 40px); color: var(--ink); }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.amount {
  border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 8px; cursor: pointer;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--teal-dark); transition: .15s;
  text-align: center;
}
.amount small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); margin-top: 4px; letter-spacing: .01em; }
.amount:hover { border-color: var(--teal); }
.amount.active { border-color: var(--orange); background: #FFF6EE; color: var(--orange-dark); }
.donate-note { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: #E4F1F1; margin-top: 14px; }
.donate-note svg { width: 20px; height: 20px; fill: var(--amber); flex: none; margin-top: 2px; }
.impact-list { list-style: none; display: grid; gap: 16px; }
.impact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.impact-list .rs { font-family: var(--font-head); font-weight: 800; color: var(--amber); font-size: 1.1rem; flex: none; min-width: 74px; }

/* ---------- Transparency ---------- */
.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.reg .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.reg .v { font-family: var(--font-head); font-weight: 800; color: var(--teal-dark); font-size: 1.15rem; margin-top: 6px; word-break: break-word; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 56px); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 14px; border: 1.5px solid var(--line); border-radius: 10px; min-height: 48px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .15s;
}
.field textarea { min-height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,134,.12); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-msg { padding: 12px 16px; border-radius: 10px; font-size: .95rem; margin-top: 6px; display: none; }
.form-msg.ok { display: block; background: #E7F6EC; color: #1A7A3C; }
.contact-info { display: grid; gap: 20px; }
.info-item { display: flex; gap: .9rem; align-items: flex-start; }
.info-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); display: grid; place-items: center; flex: none; }
.info-item .ic svg { width: 22px; height: 22px; fill: var(--teal); }
.info-item b { color: var(--teal-dark); font-family: var(--font-head); }
.info-item a { color: var(--ink-soft); word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-deep); color: #B9D8D8; padding: 60px 0 24px; }
.footer a { color: #CFE7E7; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 48px 0 20px; }
}
.footer__brand img { height: 54px; background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .6rem; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--orange); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ---------- Active nav (multi-page) ---------- */
.nav-links a[aria-current="page"] { color: var(--teal-dark); }
.nav-links a[aria-current="page"]::after { width: 100%; }

/* ---------- Interior page banner ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(7,58,62,.94), rgba(11,79,84,.78)); }
.page-hero__inner { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #DCEFEF; font-size: 1.12rem; margin: 0; max-width: 600px; }
.breadcrumb { color: #A9D3D3; font-size: .88rem; margin-bottom: .9rem; font-weight: 600; }
.breadcrumb a { color: #CFE7E7; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Timeline ---------- */
.timeline { margin-top: 1.6rem; }
.timeline li { list-style: none; position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline .yr { color: var(--orange); font-weight: 800; font-family: var(--font-head); font-size: .95rem; }
.timeline b { display: block; color: var(--teal-dark); font-family: var(--font-head); margin: 2px 0; }
.timeline p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- Alternating feature rows (programs) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-row__media { order: 2; }
.feature-row__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.feature-row .num { font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Simple CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange), var(--orange-dark)); color: #fff; border-radius: var(--radius); padding: clamp(30px, 5vw, 52px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FFF1E6; max-width: 560px; margin: 0 auto 1.6rem; }

@media (max-width: 860px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-row__media { order: 0; }
}

/* ---------- Event announcement banner (home) ---------- */
.event-banner {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal-deep));
  color: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 38px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 30px);
  align-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.event-banner .date-chip { background: var(--orange); color: #fff; border-radius: 14px; padding: 14px 20px; text-align: center; font-family: var(--font-head); line-height: 1.05; box-shadow: 0 8px 20px rgba(244,124,32,.35); }
.event-banner .date-chip b { font-size: 2rem; display: block; }
.event-banner .date-chip span { font-size: .78rem; letter-spacing: .04em; }
.event-banner .tag { display: inline-block; background: rgba(255,255,255,.16); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; margin-bottom: .55rem; }
.event-banner h3 { color: #fff; margin: 0 0 5px; font-size: 1.4rem; }
.event-banner p { margin: 0; color: #CFE7E7; font-size: .98rem; }
.event-banner .btn { white-space: nowrap; }
@media (max-width: 800px) {
  .event-banner { grid-template-columns: 1fr; text-align: center; }
  .event-banner .date-chip { justify-self: center; }
}

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.6rem 0; }
.countdown > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; min-width: 76px; text-align: center; box-shadow: var(--shadow); }
.countdown b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--teal); line-height: 1; }
.countdown span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Event detail highlight cards ---------- */
.ev-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.ev-card .ic { width: 52px; height: 52px; border-radius: 13px; background: var(--bg-tint); display: grid; place-items: center; flex: none; }
.ev-card .ic svg { width: 28px; height: 28px; fill: var(--teal); }

/* ===== Focus Areas (minimal, follows existing design) ===== */
.focus-grid { display: grid; gap: 22px; }
.focus-card { padding: 20px; border-radius: var(--radius); transition: box-shadow .18s ease, transform .12s ease; }
.focus-card h3 { margin: 0; }
.focus-card .focus-body { max-height: 0; overflow: hidden; transition: max-height .32s ease, padding .25s ease; padding-top: 0; }
.focus-card.open { box-shadow: var(--shadow); transform: translateY(-4px); }
.focus-card.open .focus-body { padding-top: 14px; max-height: 420px; }
.focus-body p { color: var(--ink-soft); margin: 0 0 .6rem; }
.focus-body ul { margin: 0.4rem 0 0 1.1rem; color: var(--ink-soft); }
.focus-body li { margin-bottom: .6rem; }
.status { display: inline-block; margin-left: .6rem; font-weight: 700; color: var(--teal-dark); background: #EAF7F6; padding: 4px 8px; border-radius: 999px; font-size: .78rem; }

@media (min-width: 860px) {
  .focus-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .focus-grid { grid-template-columns: 1fr; }
}
.ev-card .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.ev-card .v { font-family: var(--font-head); font-weight: 800; color: var(--teal-dark); font-size: 1.15rem; margin-top: 3px; }
.ev-card .v small { display: block; font-weight: 600; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

/* Occasion note (Janmashtami) */
.occasion { display: flex; gap: 16px; align-items: center; background: #FFF6EE; border: 1px solid #FFE2C7; border-radius: var(--radius); padding: 22px 26px; }
.occasion svg { width: 34px; height: 34px; fill: var(--orange); flex: none; }
.occasion p { margin: 0; color: var(--ink-soft); }
.occasion b { color: var(--orange-dark); }

/* Class category cards */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat { border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; background: #fff; }
.cat .big { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--teal-dark); }
.cat .hn { color: var(--orange); font-weight: 700; margin-bottom: 4px; }

@media (max-width: 860px) { .ev-highlights { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Enrollment callout (events) ---------- */
.enroll-card { background: linear-gradient(120deg, var(--teal-dark), var(--teal-deep)); color: #fff; border-radius: var(--radius); padding: clamp(30px, 5vw, 54px); text-align: center; box-shadow: var(--shadow-lg); }
.enroll-card h2 { color: #fff; margin: 0 0 .5rem; }
.enroll-card .sub { color: #CFE7E7; max-width: 620px; margin: 0 auto 1.8rem; }
.enroll-badge { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255,255,255,.14); color: #fff; font-weight: 800; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding: .42rem .95rem; border-radius: 999px; margin-bottom: 1.1rem; }
.enroll-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #7CF6A6; animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(124,246,166,.6); } 70% { box-shadow: 0 0 0 10px rgba(124,246,166,0); } 100% { box-shadow: 0 0 0 0 rgba(124,246,166,0); } }
.enroll-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.enroll-hint { color: #A9D3D3; font-size: .85rem; margin: 1.2rem 0 0; }
@media (prefers-reduced-motion: reduce) { .enroll-badge .dot { animation: none; } }

/* Test mode badge on enrollment button */
.test-badge {
  display: inline-block;
  background: #FACC15;
  color: #78350F;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Trust strip (slim bar below hero) ---------- */
.trust-strip {
  background: var(--teal-deep);
  padding: 10px 0;
  overflow: hidden;
}
.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .82rem;
  font-weight: 700;
  color: #CFE7E7;
  letter-spacing: .03em;
}
.trust-strip__list li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.trust-strip__list svg {
  width: 14px;
  height: 14px;
  fill: #7CF6A6;
  flex: none;
}
.trust-strip__pending { color: #FFD97A; }
.trust-strip__pending svg { fill: #FFD97A; }

/* ---------- Trusted & Certified NGO bar ---------- */
.trust-bar-section { padding-top: clamp(36px,5vw,56px); padding-bottom: clamp(36px,5vw,56px); }
.trust-bar {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-bar__head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal-deep));
  color: #fff;
  padding: 16px 28px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.trust-bar__head svg {
  width: 22px;
  height: 22px;
  fill: var(--amber);
  flex: none;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  transition: background .2s;
}
.trust-item:last-child { border-right: 0; }
.trust-item:hover { background: var(--bg-soft); }
.trust-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}
.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: .92rem;
  color: var(--teal-dark);
  line-height: 1.25;
  margin-bottom: 4px;
}
.trust-item small {
  display: block;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.45;
}
.trust-item--pending strong { color: var(--orange-dark); }
.trust-item--pending { background: #FFFBF0; }
.trust-item--pending:hover { background: #FFF6E0; }

/* trust-list responsive handled in consolidated block below */

/* ---------- Compliance block (about page) ---------- */
.compliance-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.compliance-block__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-deep));
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: none;
}
.compliance-block__icon svg {
  width: 36px;
  height: 36px;
  fill: var(--amber);
}
.compliance-list {
  list-style: none;
  margin: 1.2rem 0 1.6rem;
  display: grid;
  gap: 14px;
}
.compliance-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .97rem;
  color: var(--ink-soft);
}
.compliance-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
.compliance-list li.ok svg { fill: #1A7A3C; }
.compliance-list li.pending svg { fill: var(--orange); }
.compliance-list li.ok strong { color: var(--teal-dark); }
.compliance-list li.pending strong { color: var(--orange-dark); }
@media (max-width: 640px) {
  .compliance-block__icon { width: 54px; height: 54px; border-radius: 14px; }
  .compliance-block__icon svg { width: 28px; height: 28px; }
}

/* ---------- CSR note (contact page) ---------- */
.csr-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal-deep));
  color: #CFE7E7;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: .95rem;
  line-height: 1.55;
}
.csr-note svg {
  width: 22px;
  height: 22px;
  fill: var(--amber);
  flex: none;
  margin-top: 2px;
}
.csr-note strong { color: #fff; }

/* ---------- Footer trust line ---------- */
.footer__trust {
  font-size: .75rem;
  color: #8FB8B8;
  letter-spacing: .03em;
  text-align: center;
  flex: 1 1 100%;
  order: -1;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 4px;
}

/* ============================================================
   Emergency Appeal page
   ============================================================ */

/* Nav emergency link */
.nav-emergency {
  color: #DC2626 !important;
  font-weight: 800 !important;
  animation: pulse-red 2s infinite;
}
.nav-emergency::after { background: #DC2626 !important; }
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}

/* Hero */
.ea-hero {
  position: relative;
  background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 40%, #B91C1C 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(72px,12vw,140px) 0 clamp(60px,9vw,110px);
}
.ea-hero__overlay {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}
.ea-hero .wrap { position: relative; z-index: 1; }
.ea-hero__inner { max-width: 760px; }
.ea-hero h1 { color: #fff; margin-bottom: 1rem; }
.ea-hero h1 .hl { color: #FCD34D; }
.ea-hero p { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 620px; margin-bottom: 2rem; }
.ea-hero .hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Alert badge */
.ea-alert-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); color: #FEE2E2;
  font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.2);
}
.ea-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #FCA5A5;
  animation: pulse-dot 1.4s infinite;
  flex: none;
}

/* Emergency section */
.ea-emergency { background: #fff; }
.ea-emergency__head { margin-bottom: 36px; }
.ea-emergency-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FEE2E2; color: #991B1B;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.ea-emergency-badge svg { width: 16px; height: 16px; fill: #DC2626; }
.ea-emergency h2 { margin-bottom: .6rem; }

/* Two-column grid: needs + donate */
.ea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* Needs list */
.ea-needs h3 { margin-bottom: 1rem; }
.ea-needs-list {
  list-style: none; margin: 0 0 1.2rem; padding: 0;
  display: grid; gap: 12px;
}
.ea-needs-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; color: var(--ink-soft);
  background: var(--bg-soft); border-radius: 10px;
  padding: 12px 16px; border: 1px solid var(--line);
}
.ea-needs-icon { font-size: 1.3rem; flex: none; }
.ea-cta-text { color: var(--ink-soft); font-size: .97rem; margin-bottom: .5rem; }
.ea-tagline { font-size: 1.05rem; color: var(--teal-dark); }

/* Donate card */
.ea-donate-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.ea-donate-card__head {
  background: linear-gradient(120deg, #991B1B, #7F1D1D);
  padding: 22px 26px;
  color: #fff;
}
.ea-donate-card__head h3 { color: #fff; margin-bottom: .25rem; font-size: 1.3rem; }
.ea-donate-card__head p { color: rgba(255,255,255,.8); margin: 0; font-size: .9rem; }
.ea-donate-card .amount-grid { padding: 20px 22px 4px; }
.ea-donate-card .btn--primary { margin: 4px 22px 0; width: calc(100% - 44px); }
.ea-donate-secure {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--muted);
  padding: 10px 22px 0;
  margin: 0;
}
.ea-donate-secure svg { width: 14px; height: 14px; fill: var(--teal); flex: none; }

/* UPI block inside donate card */
.ea-upi {
  margin: 14px 22px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.ea-upi__label {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 10px;
}
.ea-upi__qr-wrap {
  text-align: center;
  margin-bottom: 12px;
}
.ea-upi__qr-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid var(--line);
  display: inline-block;
}
.ea-upi__id {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800;
  color: var(--orange-dark); font-size: 1rem; flex-wrap: wrap;
  margin-bottom: 6px;
}
.ea-upi__hint {
  font-size: .73rem; color: var(--muted);
  margin: 0 0 4px; text-align: center;
}

/* ---------- Emergency — Photo grid ---------- */
.ea-photo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  margin-bottom: 16px;
}
.ea-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
  min-height: 200px;
}
.ea-photo--main {
  grid-row: span 2;
}
.ea-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  transition: transform .4s ease;
}
.ea-photo--main img { aspect-ratio: 3/2; }
.ea-photo:hover img { transform: scale(1.04); }
.ea-photo__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 24px 14px 10px;
}
/* Placeholder when image missing */
.ea-photo--missing {
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ea-photo--missing img { display: none; }
.ea-photo--missing::after {
  content: "📸 Photo coming soon";
  font-size: .85rem;
  color: #9ca3af;
  font-weight: 600;
}
.ea-photo-upload-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF9C4;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .85rem;
  color: #92400E;
  margin-top: 4px;
}
.ea-photo-upload-note svg {
  width: 18px; height: 18px; fill: #D97706; flex: none;
}
.ea-photo-upload-note code {
  background: #FEF3C7;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .8rem;
}

@media (max-width: 700px) {
  .ea-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ea-photo--main { grid-row: span 1; }
  .ea-photo img, .ea-photo--main img { aspect-ratio: 16/9; }
}

/* ---------- Emergency — Video grid ---------- */
.ea-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.ea-video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ea-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ea-video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
/* YouTube Shorts are 9:16 portrait */
.ea-video-wrap--short {
  padding-bottom: 177.78%;
}
.ea-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.ea-video-info {
  padding: 14px 16px;
}
.ea-video-tag {
  display: inline-block;
  background: #FEE2E2;
  color: #991B1B;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.ea-video-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--teal-dark);
  margin: 0;
  line-height: 1.3;
}

/* Instructions box */
.ea-video-instructions {
  background: var(--bg-soft);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  font-size: .9rem;
  color: var(--ink-soft);
}
.ea-video-instructions h4 {
  color: var(--teal-dark);
  font-size: 1rem;
  margin: 0 0 10px;
}
.ea-video-instructions ol {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 6px;
}
.ea-video-instructions code {
  background: #e8f4f5;
  color: var(--teal-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .83rem;
}

@media (max-width: 860px) {
  .ea-video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ea-video-grid { grid-template-columns: 1fr; }
}

/* Commitment block */
.ea-commitment {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.ea-commitment__icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #991B1B, #7F1D1D);
  border-radius: 18px;
  display: grid; place-items: center; flex: none;
}
.ea-commitment__icon svg { width: 34px; height: 34px; fill: #FEE2E2; }

@media (max-width: 860px) {
  .ea-grid { grid-template-columns: 1fr; }
  .ea-donate-card { position: static; }
  .ea-commitment { grid-template-columns: 1fr; }
  .ea-commitment__icon { width: 54px; height: 54px; border-radius: 14px; }

  /* feature rows */
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-row__media { order: 0; }

  /* ev-highlights */
  .ev-highlights { grid-template-columns: 1fr; }
}

/* ---- Mobile (≤600px) ---- */
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .support-grid  { grid-template-columns: 1fr; }
  .gallery       { grid-template-columns: repeat(2, 1fr); }
  .reg-grid      { grid-template-columns: 1fr; }
  .footer__top   { grid-template-columns: 1fr; gap: 28px; }
  .amount-grid   { grid-template-columns: repeat(3, 1fr); }
  body           { font-size: 16px; }

  /* Trust list: full-width stacked rows */
  .trust-list { grid-template-columns: 1fr; }
  .trust-item {
    flex-direction: row; text-align: left;
    border-right: 0; border-top: 1px solid var(--line);
    align-items: flex-start;
  }
  .trust-item:first-child  { border-top: 0; }
  .trust-item:nth-child(3),
  .trust-item:nth-child(4) { border-right: 0; }
  .trust-icon { font-size: 1.3rem; margin-top: 2px; }
  .trust-item--pending { background: #FFFBF0; }

  /* ea donate card padding */
  .ea-donate-card .btn--primary { margin-inline: 14px; width: calc(100% - 28px); }
  .ea-donate-card .amount-grid  { padding: 16px 14px 4px; }
  .ea-upi        { margin-inline: 14px; }
  .ea-donate-secure { padding-inline: 14px; }

  /* cat grid */
  .cat-grid { grid-template-columns: 1fr; }

  /* enroll actions stack */
  .enroll-actions { flex-direction: column; align-items: stretch; }
  .enroll-actions .btn { width: 100%; justify-content: center; }
}

/* ---- Very small phones (≤420px) ---- */
@media (max-width: 420px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__tags { gap: .4rem .8rem; font-size: .88rem; }
  .event-banner { padding: 18px; }
  .cta-band { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gallery img, .card, .btn { transition: none !important; }
  .nav-emergency { animation: none !important; }
  .ea-dot, .enroll-badge .dot { animation: none !important; }
}

/* ============================================================
   Justified text — all viewports (Desktop · Tablet · Mobile)
   ============================================================ */

/* Core: every paragraph, list item and descriptive text is justified */
p,
li,
.lead,
.card p,
.support-card p,
.info-item p,
.timeline p,
.compliance-list li,
.ea-needs-list li span,
.ea-commitment p,
.occasion p,
.about-grid p,
.feature-row p,
.donate-note span,
.impact-list li span,
.compliance-block p,
.csr-note p,
.enroll-card .sub,
.hero__inner p,
.ea-hero p,
.page-hero__inner p,
.event__body p,
.section-head p,
.section-head .lead,
.footer__brand p,
.team-card__body p,
.focus-body p,
.reg-grid p,
.ea-video-instructions p,
blockquote {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Laptop / Desktop (≥861px) — full justify, comfortable line lengths */
@media (min-width: 861px) {
  p, li, .lead { text-align: justify; }
}

/* Tablet (560px – 860px) — justify with tighter hyphenation */
@media (min-width: 560px) and (max-width: 860px) {
  p, li, .lead {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Mobile (≤559px) — justify with aggressive hyphenation for narrow columns */
@media (max-width: 559px) {
  p, li, .lead {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
  }
}

/* Always keep these elements non-justified regardless of viewport */
h1, h2, h3, h4,
.btn,
.eyebrow,
.breadcrumb,
nav a,
.nav-emergency,
label,
input,
textarea,
select,
.amount,
.stat__label,
.stat__num,
.reg .k,
.reg .v,
.upi-label,
.upi-value,
.trust-item strong,
.trust-item small,
.trust-strip__list li,
.ea-video-tag,
.ea-video-title,
.ea-photo__label,
.ea-donate-secure,
.ea-upi__hint,
.ea-upi__label,
.copy-btn,
.timeline .yr,
.timeline b,
.enroll-badge,
.enroll-hint,
.test-badge,
.status,
.tag,
.event__badge,
.role,
.phone,
.footer h4,
.footer__bottom,
.footer__trust,
.form-msg,
.hero__inner h1,
.hero__inner p,
.ea-hero__inner h1,
.ea-hero__inner p,
.page-hero__inner h1,
.page-hero__inner p,
.event-banner h3,
.event-banner p,
.hero__tags,
.hero__cta,
code,
pre { text-align: left !important; hyphens: none !important; -webkit-hyphens: none !important; }

/* Centred elements stay centred across all viewports */
.section-head.center,
.section-head.center h2,
.section-head.center p,
.section-head.center .lead,
.cta-band,
.cta-band h2,
.cta-band p,
.enroll-card,
.enroll-card h2,
.enroll-card .sub,
.enroll-card .enroll-hint,
.stat,
.stat__label,
.team-card__body,
.ea-video-info,
.ea-upi__hint,
.ea-photo-upload-note,
.trust-bar__head { text-align: center !important; hyphens: none !important; -webkit-hyphens: none !important; }

/* ---------- Typography ---------- */
.main-heading,
.hero__inner,
.page-hero__inner,
.ea-hero__inner,
.hero__inner h1.main-heading,
.page-hero__inner h1.main-heading,
.ea-hero__inner h1.main-heading {
  text-align: left !important;
  text-align-last: left !important;
  word-spacing: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* ---------- Video showcase ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  justify-items: center;
  gap: 24px;
}
.video-card {
  width: min(100%, 360px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-tint);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card h3 {
  margin: 16px 0 0;
}

@media (max-width: 860px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

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

/* ============================================================
   Missing component styles (classes used in markup but never
   defined) — volunteer photos, UPI card, program media, trust
   states and focus toggles.
   ============================================================ */

/* ---------- Program / focus card media ---------- */
.program-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--bg-tint);
}
.focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.focus-head h3 { margin: 0; }
.focus-toggle {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: .85rem;
  white-space: nowrap;
}
.focus-toggle[aria-expanded="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ---------- Volunteer photos ---------- */
.vol-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-tint);
  display: block;
}

/* ---------- Trust items (verified state) ---------- */
.trust-item--ok strong { color: var(--teal-dark); }
.trust-item--ok { background: #F3FBF9; }
.trust-item--ok:hover { background: var(--bg-tint); }

/* ---------- Compliance block body ---------- */
.compliance-block__body { flex: 1 1 280px; min-width: 0; }
.compliance-block__body h3 { margin: 0 0 6px; }
.compliance-block__body p:last-child { margin-bottom: 0; }

/* ---------- Donate page: UPI card ---------- */
.upi-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 28px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.upi-card__qr { text-align: center; }
.upi-card__qr img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin: 0 auto;
  padding: 12px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
}
.upi-card__hint {
  margin: 10px 0 0;
  font-size: .78rem;
  color: var(--muted);
  text-align: center !important;
}
.upi-card__info { display: grid; gap: 12px; min-width: 0; }
.upi-row {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.upi-row:last-child { border-bottom: 0; padding-bottom: 0; }
.upi-row .upi-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.upi-row .upi-value {
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.upi-id {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--orange-dark);
}

@media (max-width: 700px) {
  .upi-card { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .upi-card__qr img { max-width: 220px; }
}
