:root {
  --green-900: #0e3530;
  --green-800: #164f43;
  --green-700: #1f6f5b;
  --green-500: #3f8a6a;
  --sage-400: #7faf7b;
  --navy-900: #10243a;
  --navy-800: #173554;
  --gold-500: #c49a3a;
  --gold-300: #e4c879;
  --ink: #102022;
  --muted: #5d6c6b;
  --line: #dce5e0;
  --paper: #f8faf8;
  --white: #ffffff;
  --focus: #f2b84b;
  --shadow: 0 18px 48px rgba(16, 36, 58, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--green-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-800);
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
}

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

.visually-hidden {
  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: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 229, 224, 0.9);
  backdrop-filter: blur(16px);
}

.staging-banner {
  background: #f7f1df;
  border-bottom: 1px solid #e5d7ae;
  color: #513a08;
  font-size: 0.9rem;
  font-weight: 760;
}

.staging-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 10px;
  text-align: center;
}

.site-header__inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 252px;
  max-height: 82px;
  object-fit: contain;
}

.footer-brand img {
  width: 240px;
  max-height: 84px;
  object-fit: contain;
}

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

.site-nav a {
  color: var(--navy-900);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.93rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #edf5f0;
  color: var(--green-800);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--green-700);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.header-cta:hover {
  color: var(--white);
  background: var(--navy-800);
}

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

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: var(--navy-900);
  content: "";
}

.nav-toggle__bar::before {
  transform: translateY(-7px);
}

.nav-toggle__bar::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  min-height: min(780px, 78vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(90deg, rgba(14, 53, 48, 0.96), rgba(16, 36, 58, 0.72) 42%, rgba(16, 36, 58, 0.08)),
    var(--hero-image);
  background-position: left top, right bottom;
  background-size: auto, cover;
  background-repeat: no-repeat;
  color: var(--white);
}

.home-hero {
  --hero-image: url("hero-education.png");
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 86px 96px;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 690px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2.3vw, 1.42rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions,
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__note {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-500);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
}

.button--primary {
  background: var(--gold-500);
  color: #12170f;
}

.button--primary:hover {
  background: var(--gold-300);
  color: #12170f;
}

.button--secondary {
  background: var(--green-700);
  color: var(--white);
}

.button--secondary:hover {
  background: var(--navy-800);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--green-900);
}

.button--outline,
.button--outline-light {
  background: transparent;
  color: var(--green-800);
  border-color: currentColor;
}

.button--outline-light {
  color: var(--white);
}

.button--outline:hover {
  background: #edf5f0;
  color: var(--green-900);
}

.button--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.notice-band {
  background: var(--navy-900);
  color: var(--white);
}

.notice-band__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
}

.notice-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.section {
  padding-block: clamp(54px, 8vw, 96px);
}

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

.section--split {
  background: linear-gradient(180deg, #ffffff, #f4f8f5);
}

.section--compact {
  padding-block: 54px;
}

.section-intro {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-intro h2,
.split-grid h2,
.content-note h2,
.fact-panel h2,
.form-panel h2,
.platform-panel h2,
.legal-content h2,
.donate-layout h2 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-size: clamp(1.65rem, 3.8vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-intro p,
.split-grid p,
.content-note p,
.legal-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.04rem;
}

.pathway-grid,
.card-grid,
.auth-grid,
.split-grid,
.form-layout,
.donate-layout,
.platform-layout,
.admin-layout,
.footer-grid {
  display: grid;
  gap: 22px;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 12px 30px rgba(16, 36, 58, 0.07);
}

.trust-strip div {
  padding: 18px 20px;
  background: #fbfdfb;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--green-900);
  font-size: 1.05rem;
}

.trust-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pathway,
.info-card,
.form-panel,
.platform-panel,
.fact-panel,
.content-note,
.purpose-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(16, 36, 58, 0.08);
}

.pathway {
  padding: 26px;
}

.pathway h3,
.info-card h3,
.purpose-list h3 {
  margin: 0 0 10px;
  color: var(--green-900);
  font-size: 1.2rem;
}

.pathway p,
.info-card p,
.purpose-list p {
  margin: 0 0 18px;
  color: var(--muted);
}

.pathway a {
  font-weight: 850;
}

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

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

.info-card {
  padding: 24px;
}

.programme-card {
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status-pill--gold {
  background: #fff4d7;
  color: #6f4d08;
}

.status-pill--navy {
  background: #eaf1f8;
  color: var(--navy-800);
}

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

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage-400);
}

.split-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div {
  padding: 20px;
  border-left: 5px solid var(--gold-500);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16, 36, 58, 0.08);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list span {
  color: var(--muted);
  margin-top: 4px;
}

.cta-band {
  padding-block: 56px;
  background:
    linear-gradient(135deg, rgba(16, 36, 58, 0.98), rgba(14, 53, 48, 0.95)),
    linear-gradient(90deg, var(--navy-900), var(--green-900));
  color: var(--white);
}

.cta-band__inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.cta-band h2,
.cta-band p {
  margin: 0 0 12px;
  max-width: 720px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
}

.page-header {
  padding-block: clamp(60px, 9vw, 104px);
  background: linear-gradient(135deg, rgba(16, 36, 58, 0.98), rgba(31, 111, 91, 0.92));
  color: var(--white);
}

.page-header h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.3rem);
}

.fact-panel,
.content-note,
.form-panel,
.platform-panel {
  padding: 26px;
}

.fact-panel dl {
  margin: 0;
}

.fact-panel dt {
  font-weight: 900;
  color: var(--navy-900);
  margin-top: 16px;
}

.fact-panel dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.form-layout,
.donate-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
  align-items: start;
}

.form-row {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.form-row label,
fieldset legend {
  font-weight: 850;
  color: var(--navy-900);
}

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

textarea {
  resize: vertical;
}

.form-row--hidden {
  position: absolute;
  left: -9999px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
}

.checkbox-row input {
  width: auto;
  margin-top: 6px;
}

.form-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-weight: 760;
}

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

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

.muted {
  color: var(--muted);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

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

.amount-grid button {
  min-height: 44px;
  border: 1px solid #c9d7d1;
  border-radius: var(--radius);
  background: #f6fbf7;
  color: var(--green-900);
  font-weight: 850;
}

.amount-grid button.is-selected {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}

.purpose-list {
  display: grid;
  gap: 14px;
}

.purpose-list article {
  padding: 20px;
}

.process-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
}

.process-panel h3 {
  margin: 0 0 12px;
  color: var(--green-900);
}

.process-panel ol {
  margin: 0;
  padding-left: 22px;
}

.process-panel li + li {
  margin-top: 8px;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.payment-methods span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: #eef3f7;
  color: var(--navy-900);
  font-weight: 850;
  font-size: 0.86rem;
}

.small-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
}

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

.auth-grid form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.auth-grid h3 {
  margin: 0 0 16px;
  color: var(--green-900);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-stats div,
.access-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.dashboard-stats strong,
.dashboard-stats span {
  display: block;
}

.dashboard-stats strong {
  color: var(--navy-900);
  font-size: 1.5rem;
}

.dashboard-stats span {
  color: var(--muted);
}

.access-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.course-card.is-unlocked {
  border-color: var(--green-700);
  box-shadow: 0 14px 34px rgba(31, 111, 91, 0.16);
}

.lesson-workspace {
  display: grid;
  gap: 18px;
}

.lesson-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
}

.lesson-category h3 {
  margin: 0 0 14px;
}

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

.video-frame {
  min-height: 132px;
  display: grid;
  align-content: end;
  padding: 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 36, 58, 0.9), rgba(31, 111, 91, 0.8)),
    #10243a;
  color: var(--white);
}

.video-frame span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-500);
  color: #101510;
  font-weight: 900;
  margin-bottom: 14px;
}

.is-hidden {
  display: none !important;
}

.admin-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

caption {
  text-align: left;
  margin-bottom: 12px;
  font-weight: 850;
  color: var(--navy-900);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--navy-900);
  background: var(--paper);
}

.large-link {
  font-size: 1.3rem;
  font-weight: 850;
}

.legal-content {
  max-width: 840px;
}

.legal-content section + section {
  margin-top: 30px;
}

.draft-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 30px;
  padding: 18px 20px;
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius);
  background: #fff9e9;
  color: #533b08;
}

.draft-notice strong {
  color: #3d2b05;
}

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding-block: 54px 28px;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.charity-line {
  max-width: 620px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 92px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav a {
    padding: 14px;
  }

  .pathway-grid,
  .trust-strip,
  .card-grid--three,
  .split-grid,
  .form-layout,
  .donate-layout,
  .admin-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band__inner {
    display: grid;
  }
}

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

  .site-header__inner {
    min-height: 78px;
  }

  .brand img {
    width: 190px;
    max-height: 68px;
  }

  .hero {
    min-height: 690px;
    background-image:
      linear-gradient(180deg, rgba(14, 53, 48, 0.96), rgba(16, 36, 58, 0.78)),
      var(--hero-image);
    background-position: left top, center bottom;
    background-size: auto, cover;
    background-repeat: no-repeat;
  }

  .hero__content {
    padding-block: 70px 78px;
  }

  .hero__actions,
  .cta-band__actions {
    display: grid;
  }

  .notice-band__inner,
  .staging-banner__inner,
  .panel-heading,
  .footer-bottom {
    display: grid;
  }

  .card-grid--two,
  .auth-grid,
  .dashboard-stats,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

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