:root {
  --blue: #176db4;
  --blue-deep: #2d258b;
  --green: #15a943;
  --lime: #8bd017;
  --purple: #392893;
  --ink: #172033;
  --muted: #667085;
  --line: #dbe4ef;
  --soft: #f6faf8;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(23, 32, 51, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 228, 239, 0.9);
  backdrop-filter: blur(18px);
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 8px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--green));
  font-size: 0.86rem;
}

.trust-strip p {
  margin: 0;
  font-weight: 700;
}

.trust-strip a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  min-height: 82px;
  margin: 0 auto;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 196px;
  height: auto;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.primary-menu > a,
.nav-group > button {
  border: 0;
  background: transparent;
  color: #26324a;
  cursor: pointer;
  padding: 12px 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-menu > a:hover,
.nav-group > button:hover {
  color: var(--green);
}

.primary-menu > a.active {
  color: var(--green);
}

.nav-group {
  position: relative;
}

.nav-panel {
  position: absolute;
  left: 0;
  top: 100%;
  display: grid;
  min-width: 210px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.nav-panel.wide {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  min-width: 430px;
}

.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-panel a {
  border-radius: 6px;
  padding: 10px 12px;
  color: #33415c;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-panel a:hover {
  background: #eef8f2;
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--purple);
}

.donate-btn,
.primary-action,
.case-action,
.newsletter button,
.contact-form button {
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(21, 169, 67, 0.2);
}

.donate-btn {
  padding: 12px 20px;
}

.section-band {
  background:
    linear-gradient(135deg, rgba(21, 169, 67, 0.1), rgba(23, 109, 180, 0.08)),
    var(--soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 122px);
  padding: 78px max(24px, calc((100vw - 1180px) / 2)) 56px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--purple);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--purple);
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  color: #1f2a44;
  line-height: 1.25;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  color: #42516b;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.primary-action,
.secondary-action,
.case-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
}

.secondary-action {
  border: 1px solid rgba(45, 37, 139, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--purple);
  font-weight: 800;
}

.secondary-action.compact {
  min-height: 42px;
  padding: 10px 16px;
}

.impact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: 0;
}

.impact-row div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(23, 109, 180, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.impact-row dt {
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
}

.impact-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(23, 109, 180, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(240, 250, 246, 0.88)),
    linear-gradient(45deg, rgba(23, 109, 180, 0.08) 25%, transparent 25% 50%, rgba(21, 169, 67, 0.08) 50% 75%, transparent 75%);
  background-size: auto, 28px 28px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: min(92%, 560px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(45, 37, 139, 0.11);
}

.visual-card {
  position: absolute;
  width: min(260px, 46%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.16);
}

.visual-card strong,
.visual-card span {
  display: block;
}

.visual-card span {
  margin-top: 4px;
  font-size: 0.86rem;
}

.card-care {
  right: 22px;
  bottom: 36px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.card-edu {
  left: 20px;
  top: 36px;
  background: linear-gradient(135deg, var(--green), var(--lime));
}

.notice-band {
  padding: 16px 24px;
  color: #214466;
  background: #eaf6ff;
  text-align: center;
}

.notice-band p {
  max-width: 1040px;
  margin: 0 auto;
  font-weight: 700;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0;
}

.page-hero {
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
}

.page-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #42516b;
  font-size: 1.12rem;
}

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

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.case-grid,
.programme-grid,
.people-grid,
.story-grid,
.involved-grid,
.legal-grid {
  display: grid;
  gap: 22px;
}

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

.case-card,
.programme-grid article,
.mission-grid article,
.people-grid article,
.story-grid article,
.involved-grid article,
.legal-grid article,
.media-card,
.newsletter,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.07);
}

.case-card {
  overflow: hidden;
}

.case-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 900;
}

.case-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.case-media.blue {
  background: linear-gradient(135deg, #1f88d2, #2d258b);
}

.case-media.green {
  background: linear-gradient(135deg, #0f9e54, #9bd21f);
}

.case-media.purple {
  background: linear-gradient(135deg, #392893, #176db4);
}

.case-body {
  padding: 22px;
}

.case-tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.case-meta strong {
  color: var(--ink);
}

.case-action {
  width: 100%;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 26px;
}

.about-panel {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--purple);
  color: var(--white);
}

.about-panel h2,
.about-panel .eyebrow {
  color: var(--white);
}

.about-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.mission-grid {
  display: grid;
  gap: 18px;
}

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

.mission-grid article {
  padding: 24px;
}

.mission-grid span {
  color: var(--blue);
  font-weight: 900;
}

.programmes {
  padding: 78px max(24px, calc((100vw - 1180px) / 2));
}

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

.programme-grid article,
.people-grid article,
.story-grid article,
.involved-grid article {
  padding: 24px;
}

.programme-grid article {
  overflow: hidden;
}

.programme-thumb,
.detail-image {
  width: calc(100% + 48px);
  max-width: none;
  height: 170px;
  margin: -24px -24px 18px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.detail-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 20px;
  border: 0;
  border-radius: var(--radius);
}

.program-icon,
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 900;
}

.blue {
  background: var(--blue);
}

.green {
  background: var(--green);
}

.cyan {
  background: #0097a7;
}

.purple {
  background: var(--purple);
}

.amber {
  background: #f6a400;
}

.red {
  background: #d94841;
}

.leaf {
  background: #4d9d2f;
}

.ocean {
  background: #0877a9;
}

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

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

.detail-grid article,
.policy-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.07);
}

.avatar {
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.where-band {
  color: var(--white);
  background:
    linear-gradient(rgba(45, 37, 139, 0.9), rgba(23, 109, 180, 0.9)),
    var(--blue);
}

.where-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.where-content h2,
.where-content .eyebrow {
  color: var(--white);
}

.where-content p {
  color: rgba(255, 255, 255, 0.86);
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.location-list span,
.partner-strip span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.location-list.on-light span {
  color: var(--purple);
  background: #f2f7fb;
  border-color: var(--line);
}

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

.story-grid article {
  border-left: 5px solid var(--green);
}

.involved {
  padding: 78px max(24px, calc((100vw - 1180px) / 2));
}

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

.partners .partner-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.partner-strip span {
  color: var(--purple);
  background: #f2f7fb;
  border-color: var(--line);
  text-align: center;
}

.media-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.media-card,
.newsletter {
  padding: 28px;
}

.newsletter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter label {
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 1.3rem;
  font-weight: 900;
}

.newsletter div {
  display: flex;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

.newsletter button {
  padding: 0 18px;
}

.form-note {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.legal-grid article {
  padding: 28px;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 34px;
  padding: 78px max(24px, calc((100vw - 1180px) / 2));
}

.contact-copy address {
  color: #34435b;
  font-style: normal;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  color: #34435b;
  font-weight: 800;
}

.site-footer {
  color: rgba(255, 255, 255, 0.84);
  background: #171836;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-main img {
  width: 220px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--white);
}

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

.footer-main a {
  color: var(--white);
  font-weight: 800;
}

.footer-notice {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.donate-modal {
  width: min(620px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.donate-modal::backdrop {
  background: rgba(23, 32, 51, 0.56);
}

.donate-modal form {
  position: relative;
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  font-size: 1.4rem;
}

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

.donation-options button {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
  color: var(--purple);
  cursor: pointer;
  font-weight: 900;
}

.float-donate {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 18;
  display: none;
  border: 0;
  border-radius: var(--radius);
  padding: 13px 18px;
  background: var(--purple);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(45, 37, 139, 0.28);
}

.cms-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.cms-tabs {
  position: sticky;
  top: 128px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.cms-tabs button,
.cms-actions button,
.cms-array button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 900;
  text-align: left;
}

.cms-tabs button.active,
.cms-actions .primary {
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: var(--white);
}

.cms-editor {
  display: grid;
  gap: 18px;
}

.cms-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.07);
}

.cms-panel.active {
  display: grid;
  gap: 16px;
}

.cms-field {
  display: grid;
  gap: 6px;
  color: #34435b;
  font-weight: 800;
}

.cms-field textarea {
  min-height: 96px;
  resize: vertical;
}

.cms-array {
  display: grid;
  gap: 14px;
}

.cms-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #f7fafc;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
  }

  .primary-menu {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 120px;
    display: none;
    align-items: stretch;
    max-height: calc(100vh - 148px);
    overflow: auto;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-menu.is-open {
    display: flex;
  }

  .nav-panel,
  .nav-panel.wide {
    position: static;
    min-width: 0;
    grid-template-columns: 1fr;
    padding: 0 0 8px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-menu > a,
  .nav-group > button {
    width: 100%;
    text-align: left;
  }

  .hero,
  .about-layout,
  .where-content,
  .media-legal,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    min-height: 420px;
  }

  .case-grid,
  .programme-grid,
  .people-grid,
  .story-grid,
  .involved-grid,
  .partners .partner-strip,
  .legal-grid,
  .mission-grid.three,
  .detail-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-shell {
    grid-template-columns: 1fr;
  }

  .cms-tabs {
    position: static;
  }
}

@media (max-width: 700px) {
  .trust-strip {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .nav-shell {
    min-height: 76px;
  }

  .brand img {
    width: 160px;
  }

  .donate-btn {
    display: none;
  }

  .primary-menu {
    top: 132px;
  }

  .hero,
  .programmes,
  .involved,
  .contact {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .impact-row,
  .case-grid,
  .programme-grid,
  .people-grid,
  .story-grid,
  .involved-grid,
  .partners .partner-strip,
  .legal-grid,
  .mission-grid.three,
  .detail-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .footer-bottom,
  .newsletter div {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 360px;
  }

  .visual-card {
    position: static;
    width: calc(100% - 32px);
    margin: 8px auto;
  }

  .hero-visual img {
    width: calc(100% - 32px);
    margin: 16px auto 8px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .donation-options {
    grid-template-columns: 1fr;
  }

  .float-donate {
    display: inline-flex;
  }
}
