/* ==================================================================
   Peace Foundation — an initiative of Western Krishna Multi Speciality Hospital
   Palette, type and layout taken from the reference design.
   ================================================================== */

:root {
  /* brand */
  --green:       #16A34A;
  --green-dark:  #12833B;
  --green-light: #22C55E;
  --blue:        #0B4DA2;
  --blue-cta:    #1749B8;
  --blue-dark:   #093F87;
  --navy:        #0A2A63;

  /* ink */
  --heading:  #17293F;
  --text:     #64748B;
  --text-mid: #4A5A73;

  /* surfaces */
  --white:    #FFFFFF;
  --bg-soft:  #F5F9FC;
  --bg-mint:  #F1F8F4;
  --bg-stats: #EFF3F8;
  --border:   #E4EBF2;

  /* rhythm */
  --container: 1240px;
  --gutter: max(20px, calc((100vw - var(--container)) / 2));
  --radius:   8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 10px rgba(16, 42, 76, .06);
  --shadow-md: 0 10px 30px rgba(16, 42, 76, .10);

  --header-h: 74px;
}

/* Lands anchor jumps ("/#events", a shared link, browser back/forward)
   below the sticky header instead of underneath it. */
#home, #about, #causes, #volunteer, #programs, #events, #news, #stories, #contact {
  scroll-margin-top: var(--header-h);
}

/* ------------------------------------------------------------------ *
 * Reset
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--heading);
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 78px 0; }

/* Shared section head ---------------------------------------------- */
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }

.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 10px;
}
.eyebrow--light { color: rgba(255, 255, 255, .78); }

.rule {
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  margin: 16px 0 18px;
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: transform .25s ease, background-color .25s ease,
              box-shadow .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; }

.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(22,163,74,.28); }
.btn-green:hover { background: var(--green-dark); box-shadow: 0 10px 24px rgba(22,163,74,.34); }

.btn-blue { background: var(--blue-cta); color: #fff; box-shadow: 0 6px 18px rgba(23,73,184,.24); }
.btn-blue:hover { background: var(--blue-dark); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn-white { background: #fff; color: var(--heading); box-shadow: 0 6px 18px rgba(6,42,24,.18); }
.btn-white:hover { color: var(--green-dark); }

.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-header { padding: 12px 22px; font-size: 13.5px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  transition: gap .25s ease, color .25s ease;
}
.link-more:hover { gap: 12px; color: var(--green); }

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, padding .3s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 22px rgba(16,42,76,.09); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }

/* Peace Foundation emblem — inline SVG so header (navy) and footer (white)
   variants share one markup without separate image assets. */
.brand-mark {
  flex: none;
  display: block;
  width: 40px;
  height: 40px;
  color: var(--blue);
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-mark-heart { fill: var(--green); }
.brand-mark-hands { stroke: currentColor; fill: none; }
.brand-mark--light { color: #fff; }
.brand-mark--light .brand-mark-heart { fill: var(--green-light); }

/* An uploaded logo (admin → Site Settings) carries its own wordmark, so it
   sizes by height instead of the fixed square the inline SVG mark uses. */
.brand-mark.brand-mark--image { width: auto; height: 48px; }
.brand-mark--image img { display: block; height: 100%; width: auto; object-fit: contain; }
.brand-divider {
  flex: none;
  width: 1px;
  height: 30px;
  background: var(--border);
}
.brand--footer .brand-divider { background: rgba(255, 255, 255, .22); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-tag { font-size: 10.5px; color: var(--text); letter-spacing: .01em; white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  position: relative;
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 26px 0;
  transition: color .22s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .28s ease;
}
.main-nav a:hover { color: var(--green); }
.main-nav a.is-active { color: var(--green); font-weight: 600; }
.main-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 38px;
  margin-left: auto;
  background: none; border: 0; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px;
  background: var(--heading); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 44vw, 600px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: -6% 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 34%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,20,38,.94) 0%, rgba(6,20,38,.86) 26%,
                           rgba(6,20,38,.55) 48%, rgba(6,20,38,.12) 72%, rgba(6,20,38,0) 100%),
    linear-gradient(180deg, rgba(6,20,38,.42) 0%, rgba(6,20,38,0) 40%);
}

.hero-inner { position: relative; }
.hero-eyebrow { letter-spacing: .19em; }
.hero-title {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--green-light); }

.hero-copy {
  max-width: 420px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------------ *
 * Mission + stats
 * ------------------------------------------------------------------ */
.mission { background: var(--white); }
.mission-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr .96fr;
  gap: 44px;
  align-items: center;
}

.mission-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1.16;
  box-shadow: var(--shadow-md);
}
.mission-media img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(22,163,74,.55);
  transition: background .25s ease, scale .25s ease;
}
.play-btn:hover { background: var(--green-dark); scale: 1.07; }
.play-btn svg { margin-left: 3px; }

.mission-body h2 { font-size: clamp(23px, 2.4vw, 30px); }
.mission-body .lead { margin: 0 0 22px; font-size: 14.5px; }

.check-list { display: grid; gap: 13px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}
.check-list svg { flex: none; }

.stats-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-stats);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 14px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.9);
}
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n+3) { border-bottom: 0; }
.stat-icon { margin-bottom: 4px; }
.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}
.stat-value.is-green { color: var(--green); }
.stat-value.is-blue  { color: var(--blue); }
.stat-label { font-size: 12px; color: var(--text); }

/* ------------------------------------------------------------------ *
 * Split band — donate / volunteer
 * ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; }

.split-half {
  position: relative;
  overflow: hidden;
  padding: 62px 0;
  display: flex;
  color: #fff;
}
.split-donate {
  background: var(--blue);
  justify-content: flex-end;
  padding-left: var(--gutter);
  padding-right: 52px;
}
.split-volunteer {
  background: linear-gradient(120deg, #15A048 0%, #16A34A 55%, #13913F 100%);
  justify-content: flex-start;
  padding-right: var(--gutter);
  padding-left: 52px;
}
.split-inner { position: relative; width: 100%; max-width: 568px; }

.split-half h2 { color: #fff; font-size: clamp(23px, 2.3vw, 29px); margin-bottom: 12px; }
.split-half > .split-inner > p { color: rgba(255,255,255,.86); font-size: 14px; max-width: 400px; }

.split-watermark {
  position: absolute;
  right: 3%; top: 50%;
  translate: 0 -50%;
  width: 310px;
  max-width: 46%;
  opacity: .085;
  pointer-events: none;
}
.split-watermark svg { width: 100%; height: auto; }

/* donate form */
.donate-form { margin-top: 24px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip {
  min-width: 56px;
  padding: 10px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.34);
  border-radius: 6px;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.chip:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.chip.is-selected {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 6px 16px rgba(22,163,74,.35);
}
.custom-amount { margin-bottom: 18px; max-width: 240px; }
.custom-amount input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
}
.custom-amount input::placeholder { color: rgba(255,255,255,.65); }

/* volunteer form */
.volunteer-form { margin-top: 22px; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.field-grid input,
.field-grid select {
  width: 100%;
  padding: 12px 14px;
  font-size: 13.5px;
  background: #fff;
  color: var(--heading);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 6px;
  transition: box-shadow .22s ease;
}
.field-grid input::placeholder { color: #94A3B8; }
.field-grid select { color: #94A3B8; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px;
  padding-right: 34px;
}
.field-grid select.has-value { color: var(--heading); }
.field-grid input:focus,
.field-grid select:focus,
.custom-amount input:focus,
.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.45);
}

.form-note {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 20px;
  color: #fff;
  font-weight: 500;
}
.form-note.is-error { color: #FFD9D9; }

/* ------------------------------------------------------------------ *
 * Projects
 * ------------------------------------------------------------------ */
.projects { background: var(--white); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.project-thumb { aspect-ratio: 1.85; overflow: hidden; }
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.07); }
.project-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.project-body h3 { font-size: 15.5px; font-weight: 600; }
.project-body p { margin: 0; font-size: 13px; line-height: 1.65; flex: 1; }

/* ------------------------------------------------------------------ *
 * Testimonials
 * ------------------------------------------------------------------ */
.testimonials { background: var(--bg-mint); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  margin: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote-mark { margin-bottom: 12px; }
.testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-mid);
}
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial-card figcaption img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.testimonial-card figcaption span { display: flex; flex-direction: column; line-height: 1.35; }
.testimonial-card figcaption strong {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}
.testimonial-card figcaption em { font-style: normal; font-size: 12px; color: var(--text); }
.story-link {
  display: inline-flex;
  margin-top: 16px;
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ *
 * Events + blog
 * ------------------------------------------------------------------ */
.events-blog { background: #fff; border-top: 1px solid var(--border); }
.eb-grid { display: grid; grid-template-columns: 0.92fr 1.62fr; gap: 54px; align-items: start; }
.events-col h2, .blog-col h2 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 26px; }
.blog-col { border-left: 1px solid var(--border); padding-left: 54px; }

.event-list { display: grid; gap: 14px; margin-bottom: 26px; }
.event-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.event-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(11,77,162,.28);
}
.event-date {
  flex: none;
  width: 50px; height: 52px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  border-radius: 6px;
  background: #E8F0FB;
  color: var(--blue);
  font-family: 'Poppins', sans-serif;
}
.event-date strong { font-size: 18px; font-weight: 700; line-height: 1; }
.event-date em { font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; }
.event-body h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.event-body h3 a { transition: color .2s ease; }
.event-body h3 a:hover { color: var(--green); }
.blog-body h3 a { transition: color .2s ease; }
.blog-body h3 a:hover { color: var(--green); }
.event-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--text); }
.event-meta span { display: inline-flex; align-items: center; gap: 5px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-thumb { display: block; aspect-ratio: 1.75; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.07); }
.blog-body { padding: 16px 16px 18px; display: grid; gap: 8px; }
.blog-date { font-size: 11.5px; color: var(--text); }
.blog-body h3 { font-size: 14.5px; font-weight: 600; line-height: 1.45; }

/* ------------------------------------------------------------------ *
 * Newsletter
 * ------------------------------------------------------------------ */
.newsletter {
  background: linear-gradient(90deg, #0B4DA2 0%, #0F63BE 42%, #16A34A 100%);
  color: #fff;
  padding: 34px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-copy { display: flex; align-items: center; gap: 20px; }
.newsletter-copy h2 { color: #fff; font-size: clamp(20px, 2.1vw, 26px); }
.newsletter-copy .eyebrow { margin-bottom: 4px; }
.newsletter-sub { margin: 5px 0 0; font-size: 13px; color: rgba(255,255,255,.85); }
.plane { flex: none; opacity: .95; }

.newsletter-form { display: flex; gap: 10px; position: relative; flex-wrap: wrap; }
.newsletter-form input {
  width: 300px;
  max-width: 100%;
  padding: 13px 16px;
  font-size: 13.5px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--heading);
}
.newsletter-form input::placeholder { color: #94A3B8; }
.newsletter-form .btn { border-radius: 6px; }
.newsletter-form .form-note { position: absolute; top: 100%; left: 0; margin-top: 6px; }

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: 13px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr .85fr .95fr .85fr 1.5fr;
  gap: 30px;
  padding: 58px 20px 46px;
}
.brand--footer .brand-name { color: #fff; font-size: 17px; }
.brand--footer .brand-tag { color: rgba(255,255,255,.6); }
.brand--footer .brand-mark { width: 36px; height: 36px; }
.brand--footer .brand-mark.brand-mark--image {
  width: auto;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 9px;
}
.footer-brand p { margin: 18px 0 18px; line-height: 1.8; max-width: 260px; }
.footer-contact a { transition: color .22s ease; }
.footer-contact a:hover { color: var(--green-light); }
.footer-contact strong { color: #fff; font-weight: 600; }

.socials { display: flex; gap: 9px; }
.socials a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,.09);
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.socials a:hover { background: var(--green); transform: translateY(-3px); }

.footer-col h4 {
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color .22s ease, padding-left .22s ease; }
.footer-col a:hover { color: var(--green-light); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; line-height: 1.65; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--green-light); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 18px;
}
.footer-bottom p { margin: 0; font-size: 12.5px; }
.footer-bottom .heart { color: #F87171; }

/* ------------------------------------------------------------------ *
 * Animation start states (only applied when JS is running)
 * ------------------------------------------------------------------ */
.js-on .reveal,
.js-on .reveal-card { opacity: 0; }
.js-on .reveal { transform: translateY(26px); }
.js-on .reveal-card { transform: translateY(34px); }
.js-on .hero-eyebrow,
.js-on .hero-title .line,
.js-on .hero-copy,
.js-on .hero-actions { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js-on .reveal,
  .js-on .reveal-card,
  .js-on .hero-eyebrow,
  .js-on .hero-title .line,
  .js-on .hero-copy,
  .js-on .hero-actions { opacity: 1; transform: none; }
  .btn:hover, .project-card:hover, .blog-card:hover, .testimonial-card:hover { transform: none; }
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .main-nav ul { gap: 15px; }
  .main-nav a { font-size: 12.5px; }
  .brand-tag, .brand-divider { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark.brand-mark--image { width: auto; height: 38px; }
}

@media (max-width: 1080px) {
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .stats-card { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .eb-grid { grid-template-columns: 1fr; gap: 48px; }
  .blog-col { border-left: 0; padding-left: 0; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .btn-header { display: none; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 20px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }

  .split { grid-template-columns: 1fr; }
  .split-donate, .split-volunteer {
    padding-inline: var(--gutter);
    justify-content: flex-start;
  }
  .split-inner { max-width: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-inner { justify-content: center; text-align: left; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .mission-grid { grid-template-columns: 1fr; gap: 34px; }
  .project-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { min-height: 520px; }
  .hero-media img { object-position: 66% 30%; }
  .newsletter-copy { flex-direction: column; align-items: flex-start; gap: 14px; }
  .newsletter-form input { width: 100%; }
  .newsletter-form { width: 100%; }
  .newsletter-form .btn { flex: 1; }
}

@media (max-width: 480px) {
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 22px 10px; }
}

/* ==================================================================
   Impact scroll — horizontal auto-scrolling cards (Groww-style)
   ================================================================== */
.impact-section {
  padding: 90px 0 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.impact-header {
  text-align: center;
  padding: 0 24px 50px;
}
.impact-header .eyebrow { justify-content: center; }
.impact-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
}
.impact-title em {
  font-style: italic;
  color: var(--green);
  font-weight: 800;
}
.impact-sub { margin-top: 12px; color: var(--text); font-size: 16px; }

.impact-stage {
  overflow: hidden;
  position: relative;
  padding: 10px 0 72px;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}
.impact-stage:active { cursor: grabbing; }

.impact-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.impact-card {
  width: 230px;
  height: 300px;
  background: var(--bg, #F1F8F4);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 24px 22px 0;
  transition: box-shadow .3s ease;
  transform-style: preserve-3d;
  user-select: none;
}
.impact-card:hover { box-shadow: 0 28px 56px rgba(16, 42, 76, .16); z-index: 2; }

.impact-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--acc, var(--green));
  opacity: .75;
  margin-bottom: 10px;
}
.impact-card-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--txt, var(--heading));
  margin-bottom: 6px;
}
.impact-card-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--acc, var(--green));
  opacity: .8;
}
.impact-card-art {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--acc, var(--green));
  line-height: 0;
}
.impact-card-art svg { width: 100%; height: auto; display: block; }

.impact-brand-card {
  background: var(--navy);
}
.impact-brand-card .impact-card-eyebrow,
.impact-brand-card .impact-card-heading,
.impact-brand-card .impact-card-sub,
.impact-brand-card .impact-card-art {
  color: var(--green-light);
}
.impact-brand-card .impact-card-heading { font-size: 27px; }

@media (max-width: 768px) {
  .impact-section { padding: 64px 0 0; }
  .impact-header { padding-bottom: 36px; }
  .impact-card { width: 196px; height: 264px; }
  .impact-card-heading { font-size: 22px; }
}

/* ==================================================================
   Article detail page
   ================================================================== */
.article-container { max-width: 760px; }

.article-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 26px;
}
.article-crumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  transition: color .2s ease;
}
.article-crumb a:first-child svg { transition: transform .2s ease; }
.article-crumb a:hover { color: var(--green); }
.article-crumb a:first-child:hover svg { transform: translateX(-3px); }
.article-crumb-sep { opacity: .4; }
.article-kicker {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.article-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 14.5px;
  margin-bottom: 28px;
}
.article-meta .dot { opacity: .5; }
.article-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.article-media img { width: 100%; display: block; }
.article-body { font-size: 17px; line-height: 1.85; color: var(--text-mid); }
.article-body p { margin-bottom: 20px; }

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.article-gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.article-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-gallery-item:hover img { transform: scale(1.08); }

.article-video {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.article-video video { width: 100%; display: block; max-height: 520px; }

.article-embed {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.article-back {
  margin-top: 36px;
  background: #fff;
  color: var(--blue);
  border-color: var(--border);
}
.article-back svg { transition: transform .2s ease; }
.article-back:hover {
  background: var(--bg-soft);
  border-color: var(--blue);
  color: var(--blue-dark);
}
.article-back:hover svg { transform: translateX(-3px); }

/* ==================================================================
   Admin portal
   ================================================================== */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }

.admin-view-site {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 9px 14px;
  border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease;
}
.admin-view-site:hover { background: var(--bg-soft); color: var(--blue); }

.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #B42318;
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.admin-logout-btn:hover { background: #FEE2E2; border-color: #F87171; transform: translateY(-1px); }

.admin-shell {
  min-height: 100vh;
  background: var(--bg-soft);
  padding: 36px 20px 80px;
}
.admin-container { max-width: 1080px; margin: 0 auto; }

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 24px;
}
.admin-login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 34px;
}
.admin-login-card .brand { justify-content: center; margin-bottom: 22px; }
.admin-login-card h1 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 6px;
}
.admin-login-card .admin-sub {
  text-align: center;
  color: var(--text);
  font-size: 13.5px;
  margin-bottom: 26px;
}

.admin-field { margin-bottom: 16px; }
.admin-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  font: inherit;
  font-size: 14.5px;
  color: var(--heading);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 77, 162, .12);
}
.admin-field textarea { resize: vertical; min-height: 110px; }
.admin-checkbox { display: flex; align-items: center; gap: 8px; }
.admin-checkbox input { width: auto; }

.admin-error {
  background: #FEF2F2;
  color: #B42318;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.admin-header { margin-bottom: 30px; }
.admin-header h1 { font-size: 24px; }

.admin-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.admin-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 26px 30px;
}
.admin-panel h2 { font-size: 17px; margin-bottom: 18px; }

.admin-type-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.admin-type-tabs button {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .2s ease;
}
.admin-type-tabs button.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.admin-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.admin-list h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin: 18px 0 6px;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.admin-row.is-unpublished { opacity: .55; }
.admin-row-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: var(--bg-soft);
}
.admin-row-body { flex: 1; min-width: 0; }
.admin-row-body strong {
  display: block;
  font-size: 13.5px;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-row-body span { font-size: 12px; color: var(--text); }
.admin-row-actions { display: flex; gap: 6px; flex: none; }
.admin-row-actions a,
.admin-row-actions button {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--blue);
  text-decoration: none;
}
.admin-row-actions .is-danger { color: #B42318; }
.admin-row-actions a:hover,
.admin-row-actions button:hover { background: var(--bg-soft); }

.admin-empty { color: var(--text); font-size: 13.5px; padding: 6px 0; }

.admin-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
}
.admin-link-btn.is-danger { color: #B42318; }

.admin-field input[type="file"] {
  border: 1.5px dashed var(--border);
  background: var(--bg-soft);
  padding: 10px 12px;
  cursor: pointer;
}
.admin-field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  margin-right: 10px;
  cursor: pointer;
}

.admin-current-thumb {
  display: block;
  max-width: 180px;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.admin-logo-preview { background: var(--navy); padding: 10px; max-height: 70px; }

.admin-current-video {
  display: block;
  max-width: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 4px;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.admin-gallery-item {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.admin-gallery-item img { display: block; width: 100%; height: 64px; object-fit: cover; }
.admin-gallery-remove {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(180, 35, 24, .82);
  padding: 3px 0;
  transform: translateY(100%);
  transition: transform .18s ease;
}
.admin-gallery-item:has(input:checked) .admin-gallery-remove,
.admin-gallery-item:hover .admin-gallery-remove { transform: translateY(0); }
.admin-gallery-remove input { width: auto; margin: 0; }

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