:root {
  --ink: #14211f;
  --muted: #5d6b67;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --line: #dce5df;
  --green-900: #0f3d37;
  --green-700: #146b5f;
  --green-100: #e4f3ef;
  --saffron: #f49f1c;
  --saffron-dark: #c87500;
  --teal: #0c9ca0;
  --coral: #d55245;
  --shadow: 0 18px 48px rgba(15, 61, 55, 0.16);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--green-900);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - 1120px) / 2));
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 32px rgba(20, 33, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.12;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: currentColor;
  opacity: 0.76;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.nav-active .site-nav a:hover,
.site-header.nav-active .site-nav a:focus-visible,
.site-header.is-scrolled .site-nav a[aria-current="page"],
.site-header.nav-active .site-nav a[aria-current="page"] {
  background: var(--green-100);
}

.site-nav .nav-donate {
  background: var(--saffron);
  color: #1d1608;
}

.site-header.is-scrolled .site-nav .nav-donate,
.site-header.nav-active .site-nav .nav-donate {
  background: var(--saffron);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../images/hero-community.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 29, 26, 0.92) 0%, rgba(7, 29, 26, 0.72) 40%, rgba(7, 29, 26, 0.22) 72%),
    linear-gradient(0deg, rgba(7, 29, 26, 0.8) 0%, rgba(7, 29, 26, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 0 82px;
  max-width: 760px;
  margin-inline: max(20px, calc((100vw - 1120px) / 2)) auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-tagline {
  max-width: 650px;
  margin: 22px 0 0;
  color: #fff5e3;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-actions,
.cta-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--saffron);
  color: #1d1608;
  box-shadow: 0 12px 30px rgba(244, 159, 28, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffb436;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-full {
  width: 100%;
}

.impact-strip {
  background: var(--green-900);
  color: #fff;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.impact-grid div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px;
  background: var(--green-900);
}

.impact-grid strong {
  color: var(--saffron);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.impact-grid span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.two-column,
.donate-layout,
.contact-layout,
.video-layout,
.motto-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.section-copy > p:not(.eyebrow),
.section-heading p,
.motto-layout > p,
.contact-details {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-copy h2 + p,
.section-heading h2 + p {
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--green-700);
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--saffron-dark);
  outline: none;
}

.value-panels {
  display: grid;
  gap: 16px;
}

.info-card,
.focus-card,
.form-panel,
.gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(20, 33, 31, 0.07);
}

.info-card {
  padding: 28px;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-card p,
.focus-card p,
.gallery-card span,
.donation-list,
.form-status {
  color: var(--muted);
}

.focus-section,
.contact-section {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.focus-card {
  min-height: 265px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px;
}

.focus-code {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 900;
}

.focus-card:nth-child(2) .focus-code {
  background: #fff1d8;
  color: var(--saffron-dark);
}

.focus-card:nth-child(3) .focus-code {
  background: #e3f4ff;
  color: #1a6889;
}

.focus-card:nth-child(4) .focus-code {
  background: #fbe8e5;
  color: var(--coral);
}

.motto-section {
  background: var(--green-900);
  color: #fff;
}

.motto-layout {
  align-items: center;
}

blockquote {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.motto-layout > p {
  color: rgba(255, 255, 255, 0.82);
}

.donate-section {
  background:
    linear-gradient(135deg, rgba(228, 243, 239, 0.86), rgba(255, 241, 216, 0.72)),
    #fff;
}

.donation-list {
  margin: 24px 0 0;
  padding-left: 20px;
}

.donation-list li + li {
  margin-top: 8px;
}

.notice-panel {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(20, 107, 95, 0.2);
  border-radius: var(--radius);
  background: rgba(228, 243, 239, 0.72);
}

.notice-panel strong {
  display: block;
  margin-bottom: 6px;
}

.notice-panel p {
  margin: 0;
  color: var(--muted);
}

.payment-choice-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 29, 26, 0.96), rgba(8, 116, 100, 0.86));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.payment-choice-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.payment-choice-panel .button {
  width: fit-content;
}

.form-panel {
  padding: 28px;
}

.form-panel h3 {
  margin-bottom: 20px;
}

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdad4;
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 136px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green-700);
  outline: 3px solid rgba(20, 107, 95, 0.16);
}

.form-grid,
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.amount-grid {
  margin-bottom: 10px;
}

.amount-option {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.amount-option.is-active,
.amount-option:hover,
.amount-option:focus-visible {
  border-color: var(--green-700);
  background: var(--green-100);
  outline: none;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 0.94rem;
}

.form-status.is-success {
  color: var(--green-700);
}

.form-status.is-error {
  color: #9f271f;
}

.upi-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--green-900);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.contact-details {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-details p {
  margin: 8px 0;
}

code {
  border-radius: 5px;
  padding: 2px 5px;
  background: #edf3f0;
  font-size: 0.88em;
}

.site-footer {
  padding: 44px 0;
  background: #101d1a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--saffron);
  outline: none;
}

.footer-motto,
.copyright,
.site-footer p {
  color: rgba(255, 255, 255, 0.74);
}

.copyright {
  margin-top: 18px;
  font-size: 0.88rem;
}

.page-hero {
  min-height: 56vh;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 29, 26, 0.9), rgba(7, 29, 26, 0.42)),
    url("../images/gallery-education.png") center / cover;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(7, 29, 26, 0.9), rgba(7, 29, 26, 0.38)),
    url("../images/hero-community.png") center / cover;
}

.programs-hero {
  background:
    linear-gradient(90deg, rgba(7, 29, 26, 0.92), rgba(7, 29, 26, 0.4)),
    url("../images/gallery-road-safety.png") center / cover;
}

.donate-hero {
  background:
    linear-gradient(90deg, rgba(7, 29, 26, 0.9), rgba(7, 29, 26, 0.34)),
    url("../images/hero-community.png") center / cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(7, 29, 26, 0.92), rgba(7, 29, 26, 0.42)),
    url("../images/gallery-healthcare.png") center / cover;
}

.policy-hero {
  background:
    linear-gradient(135deg, rgba(7, 29, 26, 0.96), rgba(20, 107, 95, 0.82)),
    var(--green-900);
}

.page-hero-content {
  padding: 140px 0 70px;
}

.page-hero h1 {
  max-width: 10ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  overflow: hidden;
  margin: 0;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-card figcaption {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.gallery-card strong {
  font-size: 1.08rem;
}

.program-list {
  display: grid;
  gap: 28px;
}

.program-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 33, 31, 0.07);
}

.program-panel:nth-child(even) {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
}

.program-panel:nth-child(even) img {
  order: 2;
}

.program-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.program-panel p:not(.eyebrow),
.check-list {
  color: var(--muted);
}

.check-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li + li {
  margin-top: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: inset 0 0 0 3px #fff;
  outline: 1px solid rgba(244, 159, 28, 0.5);
}

.policy-content {
  max-width: 860px;
}

.policy-content h2 {
  margin-top: 34px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.policy-content p {
  color: var(--muted);
}

.policy-content a {
  color: var(--green-700);
  font-weight: 800;
}

.video-section {
  background: var(--surface-soft);
}

.video-layout {
  align-items: center;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-900);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame iframe {
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 61, 55, 0.92), rgba(12, 156, 160, 0.68)),
    url("../images/hero-community.png") center / cover;
}

.video-placeholder strong {
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
}

.video-placeholder span {
  color: rgba(255, 255, 255, 0.82);
}

.cta-band {
  background: var(--green-900);
  color: #fff;
}

.cta-layout {
  justify-content: space-between;
  gap: 24px;
}

.cta-layout h2 {
  max-width: 780px;
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .two-column,
  .donate-layout,
  .contact-layout,
  .video-layout,
  .motto-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .focus-grid,
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-panel,
  .program-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .program-panel:nth-child(even) img {
    order: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 84vh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 29, 26, 0.48), rgba(7, 29, 26, 0.92)),
      linear-gradient(90deg, rgba(7, 29, 26, 0.75), rgba(7, 29, 26, 0.36));
  }

  .hero-content {
    padding: 118px 0 58px;
    margin-inline: auto;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .section {
    padding: 68px 0;
  }

  .impact-grid,
  .focus-grid,
  .principle-grid,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid div {
    min-height: 96px;
  }

  .form-panel,
  .info-card,
  .focus-card {
    padding: 22px;
  }

  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    min-height: 52vh;
  }

  .page-hero-content {
    padding: 120px 0 56px;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .hero-actions,
  .cta-layout {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .amount-grid {
    grid-template-columns: 1fr;
  }
}

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

/* Modern rich UI refresh */
:root {
  --ink: #111b18;
  --muted: #63706b;
  --surface: #ffffff;
  --surface-soft: #f4f8f5;
  --line: rgba(18, 45, 39, 0.13);
  --green-950: #071d1a;
  --green-900: #0b332e;
  --green-700: #087464;
  --green-100: #def4ec;
  --saffron: #f5a524;
  --saffron-dark: #a86100;
  --teal: #0096a6;
  --coral: #dc5b4f;
  --blue: #2f73d9;
  --shadow: 0 24px 70px rgba(8, 51, 46, 0.16);
  --shadow-soft: 0 12px 34px rgba(17, 27, 24, 0.08);
  --container: min(1180px, calc(100% - 44px));
}

body {
  background:
    linear-gradient(180deg, #fbfdfb 0%, #f1f7f4 44%, #ffffff 100%);
  color: var(--ink);
}

.eyebrow {
  letter-spacing: 0;
  color: var(--saffron-dark);
}

h1 {
  max-width: 10.5ch;
  font-size: 5.65rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  font-size: 3.15rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  letter-spacing: 0;
}

.site-header {
  inset: 16px max(20px, calc((100vw - 1180px) / 2)) auto;
  width: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(7, 29, 26, 0.42);
  color: #fff;
  box-shadow: 0 18px 50px rgba(7, 29, 26, 0.22);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled,
.site-header.nav-active {
  padding: 10px;
  border-color: rgba(18, 45, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.brand {
  padding: 4px 8px 4px 4px;
}

.brand-mark {
  border: 0;
  background:
    linear-gradient(135deg, var(--saffron), #ffe0a1 45%, var(--teal));
  color: #071d1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.brand small {
  opacity: 0.72;
}

.site-nav {
  gap: 2px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 12px;
  color: inherit;
  font-size: 0.89rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.nav-active .site-nav a:hover,
.site-header.nav-active .site-nav a:focus-visible,
.site-header.is-scrolled .site-nav a[aria-current="page"],
.site-header.nav-active .site-nav a[aria-current="page"] {
  background: rgba(8, 116, 100, 0.1);
}

.site-nav .nav-donate {
  background: var(--saffron);
  color: #151006;
  box-shadow: 0 10px 24px rgba(245, 165, 36, 0.28);
}

.hero {
  min-height: 96svh;
  align-items: center;
  isolation: isolate;
}

.hero-media {
  background-position: 58% center;
  transform: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 29, 26, 0.96) 0%, rgba(7, 29, 26, 0.78) 38%, rgba(7, 29, 26, 0.22) 78%),
    linear-gradient(0deg, rgba(7, 29, 26, 0.88) 0%, rgba(7, 29, 26, 0.02) 48%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 29, 26, 0.64), transparent);
  z-index: 0;
}

.hero-content {
  padding: 138px 0 112px;
}

.hero-tagline {
  max-width: 720px;
  margin-top: 24px;
  color: #fff0d0;
  font-size: 1.55rem;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.14rem;
}

.button {
  min-height: 50px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 900;
}

.button-primary {
  background: linear-gradient(135deg, #ffc260, var(--saffron));
  color: #171007;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 34px;
}

.hero-proof span {
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-proof strong,
.hero-proof small {
  display: block;
  line-height: 1.2;
}

.hero-proof small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.impact-strip {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  background: transparent;
}

.impact-grid {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.impact-grid div {
  min-height: 132px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.96));
  color: var(--ink);
}

.impact-grid strong {
  color: var(--green-700);
}

.impact-grid div:nth-child(2) strong {
  color: var(--saffron-dark);
}

.impact-grid div:nth-child(3) strong {
  color: var(--teal);
}

.impact-grid div:nth-child(4) strong {
  color: var(--coral);
}

.impact-grid span {
  color: var(--muted);
}

.section {
  padding: 108px 0;
}

.about-section,
.focus-section,
.contact-section,
.video-section {
  background: linear-gradient(180deg, #f7fbf8, #eef6f2);
}

.two-column,
.donate-layout,
.contact-layout,
.video-layout,
.motto-layout {
  gap: 64px;
}

.section-copy > p:not(.eyebrow),
.section-heading p,
.motto-layout > p,
.contact-details,
.program-panel p:not(.eyebrow),
.policy-content p {
  color: var(--muted);
}

.info-card,
.focus-card,
.form-panel,
.gallery-card,
.program-panel {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.info-card,
.focus-card,
.form-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.info-card {
  padding: 32px;
}

.focus-grid,
.principle-grid {
  gap: 20px;
}

.focus-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.focus-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green-700), var(--saffron), var(--teal), var(--coral));
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.focus-code {
  width: 52px;
  height: 52px;
  background: #e2f7ef;
  box-shadow: inset 0 0 0 1px rgba(8, 116, 100, 0.12);
}

.story-section {
  background: #fff;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-auto-rows: 218px;
  gap: 16px;
}

.story-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--green-900);
}

.story-card-large {
  grid-row: span 2;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.story-card:hover img {
  transform: scale(1.04);
}

.story-card figcaption {
  position: absolute;
  inset: auto 12px 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(7, 29, 26, 0.78);
  color: #fff;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.motto-section,
.cta-band {
  background:
    linear-gradient(135deg, rgba(7, 29, 26, 0.98), rgba(8, 116, 100, 0.88)),
    var(--green-900);
}

blockquote {
  font-size: 3.6rem;
}

.donate-section {
  background:
    linear-gradient(180deg, #fff 0%, #edf6f2 100%);
}

.form-panel {
  padding: 32px;
}

input,
textarea,
select {
  border-color: rgba(18, 45, 39, 0.16);
  background: #fbfdfb;
}

input:focus,
textarea:focus,
select:focus {
  outline: 4px solid rgba(8, 116, 100, 0.13);
}

.amount-option {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(18, 45, 39, 0.04);
}

.amount-option.is-active,
.amount-option:hover,
.amount-option:focus-visible {
  background: #e4f8f1;
}

.page-hero {
  position: relative;
  min-height: 64svh;
  isolation: isolate;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 150px 0 82px;
}

.page-hero h1 {
  max-width: 11ch;
  font-size: 5rem;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
}

.about-hero,
.programs-hero,
.donate-hero,
.contact-hero,
.gallery-hero {
  background-position: center;
}

.program-list {
  gap: 34px;
}

.program-panel {
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.program-panel > div {
  padding: 34px 34px 34px 0;
}

.program-panel:nth-child(even) > div {
  padding: 34px 0 34px 34px;
}

.program-panel img {
  height: 100%;
  min-height: 420px;
  border-radius: 0;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
}

.gallery-card:first-child,
.gallery-card:nth-child(4) {
  grid-column: span 2;
}

.gallery-card {
  background: #fff;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
}

.gallery-card:first-child img,
.gallery-card:nth-child(4) img {
  aspect-ratio: 16 / 9;
}

.video-frame {
  box-shadow: var(--shadow);
}

.notice-panel {
  background: linear-gradient(135deg, rgba(222, 244, 236, 0.92), rgba(255, 246, 226, 0.86));
}

.policy-content {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  background: #081714;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .site-header {
    inset: 12px 16px auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 8px;
  }

  .nav-toggle {
    display: block;
    margin-right: 4px;
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.is-scrolled .nav-toggle,
  .site-header.nav-active .nav-toggle {
    background: #fff;
  }

  .site-nav {
    inset: 78px 16px auto;
    border-radius: var(--radius);
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .program-panel,
  .program-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .program-panel > div,
  .program-panel:nth-child(even) > div {
    padding: 28px;
  }

  .program-panel img {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  h1,
  .page-hero h1 {
    max-width: 10.5ch;
    font-size: 3.4rem;
    line-height: 0.98;
  }

  h2 {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .site-header {
    inset: 10px 12px auto;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-media {
    background-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 29, 26, 0.3), rgba(7, 29, 26, 0.95)),
      linear-gradient(90deg, rgba(7, 29, 26, 0.82), rgba(7, 29, 26, 0.25));
  }

  .hero-content {
    padding: 124px 0 72px;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-proof span {
    min-width: 0;
  }

  .impact-strip {
    margin-top: 0;
  }

  .impact-grid {
    border-radius: 0;
    width: 100%;
  }

  .section {
    padding: 74px 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .story-card-large {
    grid-row: span 1;
  }

  blockquote {
    font-size: 2.35rem;
  }

  .page-hero {
    min-height: 56svh;
  }

  .page-hero-content {
    padding: 122px 0 62px;
  }

  .gallery-grid,
  .gallery-card:first-child,
  .gallery-card:nth-child(4) {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .program-panel img {
    min-height: 240px;
  }

  .policy-content {
    padding: 26px;
  }
}

@media (max-width: 420px) {
  h1,
  .page-hero h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .form-panel,
  .info-card,
  .focus-card,
  .program-panel > div,
  .program-panel:nth-child(even) > div {
    padding: 20px;
  }
}

.impact-grid strong {
  font-size: 3rem;
  line-height: 1;
}

.policy-content h2 {
  font-size: 2rem;
}

.video-placeholder strong {
  font-size: 2.7rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .impact-grid strong {
    font-size: 2.3rem;
  }

  .policy-content h2 {
    font-size: 1.55rem;
  }

  .video-placeholder strong {
    font-size: 2rem;
  }
}

.upi-hero {
  background:
    linear-gradient(90deg, rgba(7, 29, 26, 0.92), rgba(7, 29, 26, 0.34)),
    url("../images/gallery-education.png") center / cover;
}

.upi-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #edf6f2 100%);
}

.upi-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
  gap: 34px;
  align-items: start;
}

.upi-form h2,
.upi-card h2 {
  font-size: 2.35rem;
}

.upi-lead {
  margin: -6px 0 24px;
  color: var(--muted);
}

.upi-card {
  position: sticky;
  top: 116px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 245, 0.95));
  box-shadow: var(--shadow);
}

.upi-card-top {
  padding: 30px 30px 18px;
}

.upi-card-top p:not(.eyebrow) {
  color: var(--muted);
}

.upi-qr-wrap {
  display: grid;
  place-items: center;
  min-height: 336px;
  margin: 0 30px 22px;
  border: 1px dashed rgba(8, 116, 100, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(222, 244, 236, 0.86), rgba(255, 246, 226, 0.76));
}

.upi-qr-wrap img {
  width: min(320px, 86%);
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.upi-qr-placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px;
  text-align: center;
  color: var(--green-900);
}

.upi-qr-placeholder strong {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 1.2rem;
}

.upi-qr-placeholder span {
  max-width: 260px;
  color: var(--muted);
}

.upi-details {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0 30px;
}

.upi-details div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.upi-details dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.upi-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.upi-actions {
  display: grid;
  gap: 10px;
  padding: 24px 30px 30px;
}

.upi-actions .button-secondary {
  border-color: rgba(8, 116, 100, 0.2);
  background: #fff;
  color: var(--green-900);
}

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.54;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 980px) {
  .upi-layout {
    grid-template-columns: 1fr;
  }

  .upi-card {
    position: static;
  }
}

@media (max-width: 520px) {
  .upi-card-top,
  .upi-actions {
    padding-inline: 22px;
  }

  .upi-qr-wrap {
    min-height: 284px;
    margin-inline: 22px;
  }

  .upi-details {
    padding-inline: 22px;
  }

  .upi-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.brand-logo {
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.footer-grid-four {
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(160px, 0.8fr));
  gap: 34px;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.footer-about {
  display: grid;
  gap: 14px;
}

.footer-about p {
  margin: 0;
}

.footer-grid-four .footer-links {
  align-content: start;
}

.footer-grid-four .copyright {
  margin: 14px 0 0;
  font-size: 0.82rem;
}

.gallery-modern-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f1f8f4 100%);
}

.gallery-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.gallery-feature-copy {
  display: grid;
  align-content: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 29, 26, 0.95), rgba(8, 116, 100, 0.86));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.gallery-feature-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-feature-copy h3 {
  font-size: 2rem;
}

.gallery-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  outline: none;
}

.gallery-card::after {
  content: "View details";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(7, 29, 26, 0.78);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(10px);
}

.gallery-card:hover::after,
.gallery-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-feature img {
  aspect-ratio: 16 / 9;
}

.gallery-logo-card img {
  object-fit: contain;
  background: #fff8e8;
  padding: 20px;
}

.gallery-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: rgba(245, 165, 36, 0.14);
  color: var(--saffron-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(4, 18, 16, 0.86);
  backdrop-filter: blur(14px);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  width: min(1120px, 100%);
  max-height: min(780px, calc(100svh - 52px));
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #f5f5f5;
}

.gallery-lightbox-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
}

.gallery-lightbox-copy h2 {
  font-size: 2.25rem;
}

.gallery-lightbox-copy p {
  color: var(--muted);
}

.gallery-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 201;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.edit-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(18, 45, 39, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.edit-toolbar button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 11px;
  background: var(--green-900);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.edit-toolbar button:nth-child(2) {
  background: var(--saffron);
  color: #1b1204;
}

.edit-toolbar button:nth-child(3) {
  background: #edf3f0;
  color: var(--green-900);
}

body.edit-mode [data-editable-section] {
  position: relative;
  outline: 2px dashed rgba(245, 165, 36, 0.62);
  outline-offset: -8px;
}

body.edit-mode [contenteditable="true"] {
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(8, 116, 100, 0.18);
  cursor: text;
}

body.edit-mode [contenteditable="true"]:focus {
  outline: 3px solid rgba(245, 165, 36, 0.3);
  background: rgba(255, 255, 255, 0.72);
}

body.edit-mode [data-editable-section]::before {
  content: "Editable section";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: var(--saffron);
  color: #1b1204;
  font-size: 0.75rem;
  font-weight: 950;
}

@media (max-width: 980px) {
  .footer-grid-four,
  .gallery-feature,
  .gallery-lightbox-panel {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-panel {
    overflow: auto;
  }

  .gallery-lightbox-panel img {
    min-height: 300px;
    max-height: 52svh;
  }
}

@media (max-width: 720px) {
  .footer-grid-four,
  .gallery-detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery-feature-copy,
  .gallery-lightbox-copy {
    padding: 24px;
  }

  .edit-toolbar {
    right: 14px;
    left: 14px;
    justify-content: center;
  }
}
