:root {
  --navy: #12356e;
  --navy-deep: #0c2f66;
  --blue: #0a57c2;
  --blue-dark: #084aa8;
  --red: #e03131;
  --red-dark: #c62828;
  --green: #0e9a46;
  --green-dark: #0b823b;
  --footer: #083060;
  --ink: #243246;
  --muted: #667588;
  --line: #e5eef5;
  --card: #e7f3fb;
  --mint: #e7f7ee;
  --blush: #fff1f1;
  --lilac: #f3f1fb;
  --shadow: 0 8px 22px rgba(16, 52, 96, 0.06);
  --radius: 18px;
  --wrap: 1160px;
  --header: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}

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

button,
input,
select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: #fff;
  border-bottom: 1px solid rgba(18, 53, 110, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand-name span {
  display: block;
  font-size: 14.5px;
}

.brand-tag {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #8b97a6;
  font-weight: 500;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav .btn-donate {
  display: none;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: #2a3548;
  padding: 6px 0 4px;
  border-bottom: 2px solid transparent;
}

.nav a.active,
.nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(224, 49, 49, 0.22);
}

.btn-donate:hover {
  background: var(--red-dark);
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero — short full-bleed banner: text on the left wash, student right of center */
.hero {
  position: relative;
  height: 372px;
  background: #fff;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #ffffff 0,
      rgba(255, 255, 255, 0.94) calc(50% - var(--wrap) / 2),
      rgba(255, 255, 255, 0.86) calc(50% - var(--wrap) / 2 + 300px),
      rgba(255, 255, 255, 0.38) calc(50% - var(--wrap) / 2 + 490px),
      rgba(255, 255, 255, 0.06) calc(50% - var(--wrap) / 2 + 640px),
      rgba(255, 255, 255, 0) calc(50% - var(--wrap) / 2 + 760px)),
    url("../img/hero.jpg") 34% 20% / 112% auto no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 0;
  max-width: 70%;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 800;
  color: #16356e;
  letter-spacing: -0.03em;
}

.hero .btn-blue {
  margin-top: 14px;
  padding: 8px 16px;
  font-size: 13.5px;
}

.hero-sub {
  margin-top: 10px;
  font-family: "Noto Sans Gujarati", "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #5a6a7c;
  line-height: 1.55;
}

.btn-blue,
.btn-green,
.btn-outline,
.btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  border-radius: 999px;
}

.btn-blue {
  margin-top: 22px;
  background: var(--blue);
  color: #fff;
  padding: 11px 20px;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(10, 87, 194, 0.22);
}

.btn-blue:hover {
  background: var(--blue-dark);
}

.btn-green {
  background: var(--green);
  color: #fff;
  padding: 11px 22px;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(14, 154, 70, 0.2);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 8px 16px;
  font-size: 13px;
  width: 100%;
}

.btn-outline:hover {
  background: #f3f8ff;
}

.btn-view {
  background: var(--blue);
  color: #fff;
  padding: 4px 12px;
  font-size: 11.5px;
  flex: 0 0 auto;
}

.btn-view:hover {
  background: var(--blue-dark);
}

.hero-script {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 1.6vw, 28px);
  top: 12px;
  color: #fff;
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  line-height: 0.88;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.hero-script span {
  display: block;
}

.hero-script .lg {
  font-size: 34px;
}

.script-heart {
  width: 52px;
  height: 28px;
  margin: 4px auto 0;
  display: block;
}

/* Shared */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.page-main {
  padding-bottom: 28px;
}

.top-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.12fr 0.98fr 1.38fr;
  gap: 20px;
  align-items: stretch;
}

.about-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.about-card h3 {
  margin: 6px 0 10px;
  font-size: 16px;
  color: var(--navy-deep);
  font-weight: 700;
}

.about-card p {
  color: #526274;
  font-size: 13px;
  line-height: 1.65;
}

.facts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.fact {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: flex-start;
}

.fact-ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
}

.fact-ic svg {
  width: 18px;
  height: 18px;
}

.fact strong {
  display: block;
  color: var(--navy);
  font-size: 13.5px;
  line-height: 1.3;
}

.fact p,
.fact span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ic-green {
  background: #1ea85a;
}

.ic-orange {
  background: #f0a03a;
}

.ic-blue {
  background: #2f74e6;
}

.act-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.act {
  border-radius: 14px;
  min-height: 108px;
  padding: 12px 6px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.act i,
.act .ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
}

.act .ic svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.act span {
  font-size: 11.5px;
  font-weight: 600;
  color: #243246;
  line-height: 1.25;
}

.act-edu {
  background: #e7f0ff;
}

.act-edu .ic {
  background: #2f6fe8;
}

.act-sch {
  background: #fff1e4;
}

.act-sch .ic {
  background: #f0a03a;
}

.act-dig {
  background: #e6f8ee;
}

.act-dig .ic {
  background: #22a36a;
}

.act-child {
  background: #fdecef;
}

.act-child .ic {
  background: #f06292;
}

.act-com {
  background: #f3e9ff;
}

.act-com .ic {
  background: #8b5cf6;
}

.act-env {
  background: #e7f8ec;
}

.act-env .ic {
  background: #22a35a;
}

.act-health {
  background: #fdecee;
}

.act-health .ic {
  background: #ef4b5b;
}

.act-social {
  background: #e6f7f5;
}

.act-social .ic {
  background: #14a89a;
}

/* Impact */
.impact {
  margin-top: 22px;
  background: #e7f4fc;
  border-radius: 20px;
  padding: 18px 18px 16px;
}

.impact-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.15fr;
  gap: 12px;
  align-items: center;
}

.stat {
  background: #fff;
  border-radius: 14px;
  min-height: 86px;
  padding: 14px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  box-shadow: var(--shadow);
}

.stat-ic {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.stat-ic svg {
  width: 32px;
  height: 32px;
}

.stat-copy {
  min-width: 0;
}

.stat-copy strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.1;
}

.stat-copy span {
  display: block;
  color: #5d6d80;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.quote {
  padding: 6px 8px 6px 4px;
}

.quote-mark {
  font-family: Georgia, serif;
  color: var(--blue);
  font-size: 42px;
  line-height: 0.6;
  font-weight: 700;
}

.quote p {
  color: #3c4d63;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 6px;
}

.quote small {
  display: block;
  margin-top: 8px;
  color: #7b8796;
  font-size: 12px;
}

/* Projects */
.block-head {
  margin: 26px 0 12px;
}

.projects-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.project {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(16, 52, 96, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project img {
  height: 78px;
  width: 100%;
  object-fit: cover;
}

.project-body {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.project h3 {
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}

.project p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  flex: 1;
}

.project .btn-view {
  align-self: flex-start;
  margin-top: 4px;
}

/* Trio */
.trio,
.lower {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.12fr;
  gap: 16px;
  align-items: stretch;
}

.panel {
  border-radius: 18px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel-blue {
  background: #f3f8fc;
}

.panel-blush {
  background: var(--blush);
}

.panel-mint {
  background: var(--mint);
}

.panel-lilac {
  background: var(--lilac);
}

.panel .section-sub {
  margin-bottom: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery-grid button {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-grid img {
  height: 92px;
  width: 100%;
  object-fit: cover;
}

.panel .btn-blue.slim,
.panel .btn-green {
  margin-top: auto;
  align-self: flex-start;
}

.panel .btn-blue.slim {
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 13px;
}

.team-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: center;
}

.person img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 6px;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(16, 52, 96, 0.12);
}

.person strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.person span {
  font-size: 11px;
  color: var(--muted);
}

.team-icons {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: center;
}

.team-ic i {
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.team-ic strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.team-ic span {
  font-size: 11px;
  color: var(--muted);
}

.amounts {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 12px;
}

.amt {
  border: 1px solid #f0d5d5;
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.amt.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.other-amt {
  display: none;
  margin: -4px 0 12px;
}

.other-amt.show {
  display: block;
}

.other-amt input {
  width: 100%;
  border: 1px solid #f0d5d5;
  border-radius: 10px;
  padding: 8px 12px;
  outline: none;
}

.pay-row {
  display: grid;
  grid-template-columns: 86px 78px 1fr;
  gap: 10px;
  align-items: center;
}

.qr {
  width: 86px;
  height: 86px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  object-fit: contain;
}

.scan {
  font-size: 11px;
  color: #667588;
  font-weight: 600;
  line-height: 1.2;
}

.upi-badge {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.upi-badge i {
  font-style: normal;
  color: #f26b1d;
}

.upi-badge b {
  color: #6a3ea1;
}

.bank {
  font-size: 11px;
  color: #4d5d70;
  line-height: 1.45;
}

.bank strong {
  color: var(--navy);
}

.copy-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
}

.support-donate {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

/* Lower */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid #d7ebe0;
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
}

.field input::placeholder {
  color: #9aa8b5;
}

.field select {
  color: #6d7c8c;
}

.field .err {
  color: var(--red);
  font-size: 11px;
  min-height: 0;
}

.vol-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vol-actions .btn-green {
  flex: 1;
}

.vol-art {
  width: 74px;
  flex: 0 0 auto;
}

.thanks {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  color: #3d5148;
}

.thanks h3 {
  color: var(--green-dark);
  margin-bottom: 6px;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-row {
  background: #fff;
  border-radius: 10px;
  padding: 8px 8px 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.doc-row i {
  color: var(--blue);
  font-size: 16px;
}

.doc-row span {
  flex: 1;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.news-date {
  text-align: center;
  line-height: 1;
}

.news-date strong {
  display: block;
  font-size: 26px;
  color: var(--navy);
  font-weight: 700;
}

.news-date small {
  color: #8b97a6;
  font-size: 11px;
}

.news-item h3 {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}

.more {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #fff;
  margin-top: 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1.15fr 0.95fr;
  gap: 22px;
  padding: 28px 0 18px;
  align-items: center;
}

.site-footer h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.contact-list i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 12px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

.fb {
  background: #1877f2;
}

.yt {
  background: #ff0033;
}

.ig {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976 55%, #4f5bd5);
}

.wa {
  background: #25d366;
}

.map-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 132px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-card .btn-blue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.foot-script {
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-size: 34px;
  line-height: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.foot-script span {
  display: block;
}

.foot-script .lg {
  font-size: 30px;
}

.foot-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-links button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.foot-links button:hover,
.contact-list a:hover {
  color: #fff;
}

.to-top {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--footer);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Modal + lightbox */
.modal-back,
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 48, 0.55);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-back.show,
.lightbox.show {
  display: flex;
}

.modal-card {
  background: #fff;
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 18px;
  padding: 22px 22px 18px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.modal-card h2 {
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 6px;
}

.modal-card h3 {
  color: var(--navy);
  font-size: 16px;
  margin: 12px 0 4px;
}

.modal-card p,
.modal-card li {
  color: #4c5c70;
  font-size: 14px;
}

.modal-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.modal-x,
.lb-x,
.lb-nav {
  border: 0;
  cursor: pointer;
}

.modal-x,
.lb-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f5f8;
  color: var(--navy);
  font-size: 18px;
}

.modal-hero {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 0 12px;
}

.doc-sheet {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(#fff, #f7fbff);
}

.doc-sheet .seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 90;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lb-frame {
  position: relative;
  width: min(920px, 100%);
}

.lb-frame img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0d1b2e;
  border-radius: 12px;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 20px;
}

.lb-prev {
  left: -18px;
}

.lb-next {
  right: -18px;
}

.lb-cap {
  color: #fff;
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
}

@media (max-width: 1100px) {

  .top-grid,
  .impact-row,
  .trio,
  .lower,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .impact-row .quote {
    grid-column: 1 / -1;
  }

  .projects-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .project {
    min-width: 180px;
    scroll-snap-align: start;
  }

  .project img {
    height: 100px;
  }

  .foot-script {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .menu-btn {
    display: flex;
  }

  .btn-donate.head-donate {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px 16px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 10px 0;
  }

  .nav.open .btn-donate {
    display: inline-flex;
    margin-top: 6px;
  }

  .brand {
    min-width: 0;
  }

  .brand-tag {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 520px;
  }

  .hero-photo {
    background:
      linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.94) 28%, rgba(255, 255, 255, 0) 52%),
      url("../img/hero.jpg") 72% 18% / cover no-repeat;
  }

  .hero-content {
    height: auto;
    min-height: 0;
    padding-top: 28px;
    max-width: none;
    display: block;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-script {
    top: auto;
    bottom: 18px;
    right: 16px;
    font-size: 34px;
  }

  .hero-script .lg {
    font-size: 38px;
  }

  .top-grid,
  .impact-row,
  .trio,
  .lower,
  .foot-grid,
  .act-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-card,
  .activities,
  .quote {
    grid-column: 1 / -1;
  }

  .foot-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .act-grid,
  .form-grid,
  .top-grid,
  .impact-row,
  .trio,
  .lower,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .facts {
    gap: 14px;
  }

  .pay-row {
    grid-template-columns: 86px 1fr;
  }

  .scan {
    display: none;
  }

  .lb-prev {
    left: 6px;
  }

  .lb-next {
    right: 6px;
  }
}