:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #667382;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --line: #d9e2ea;
  --teal: #0f766e;
  --teal-dark: #0c5651;
  --gold: #f2b84b;
  --blue: #285c8f;
  --rose: #d95b5b;
  --shadow: 0 18px 44px rgba(23, 33, 43, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(232, 244, 242, 0.76), rgba(247, 249, 251, 0) 430px),
    var(--bg);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 226, 234, 0.88);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: 1180px;
  min-height: 86px;
  margin: 0 auto;
  padding: 12px 24px;
}

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

.brand-logo {
  width: min(300px, 40vw);
  max-height: 58px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #34414f;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: #e7f5f1;
  color: var(--teal-dark);
}

.nav-links .portal-link {
  background: var(--ink);
  color: #fff;
}

.nav-links .portal-link:hover,
.nav-links .portal-link.active {
  background: var(--ink);
  color: #fff;
}

.hero {
  min-height: 76vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 22, 33, 0.78), rgba(12, 22, 33, 0.28) 52%, rgba(12, 22, 33, 0.12)),
    var(--hero-image) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(247, 249, 251, 0), var(--bg));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 96px 0 112px;
  color: #fff;
}

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

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

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.58;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: #e9eef3;
  color: #22303d;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.section {
  padding: 72px 22px;
}

.section.alt {
  background: #fff;
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  line-height: 1.08;
}

.section-head p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.copy-panel {
  display: grid;
  gap: 18px;
  color: #34414f;
  font-size: 1.02rem;
  line-height: 1.72;
}

.feature-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-panel h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.feature-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.64;
}

.value-grid,
.program-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.value-card,
.program-card,
.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.07);
}

.value-card {
  padding: 20px;
}

.value-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e7f5f1;
  color: var(--teal-dark);
  font-weight: 950;
}

.value-card:nth-child(2) span {
  background: #fff4e5;
  color: #8a5000;
}

.value-card:nth-child(3) span {
  background: #eaf2fb;
  color: var(--blue);
}

.value-card:nth-child(4) span {
  background: #fff0f0;
  color: var(--rose);
}

.value-card h3,
.program-card h3,
.contact-card h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
}

.value-card p,
.program-card p,
.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.program-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.program-card-body {
  padding: 18px;
}

.program-category {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mission-card {
  padding: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.mission-card:nth-child(2) {
  background: var(--teal-dark);
}

.mission-card h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.mission-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.68;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  min-height: 270px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.09);
}

.gallery-stack {
  display: grid;
  gap: 16px;
}

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

.contact-card {
  padding: 20px;
}

.contact-card a {
  color: var(--teal-dark);
  font-weight: 850;
  overflow-wrap: anywhere;
}

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

.site-footer {
  padding: 28px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-inner a {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 980px) {
  .intro-grid,
  .gallery-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-shell,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    width: min(100% - 32px, 1180px);
    padding-bottom: 88px;
  }

  .section {
    padding: 52px 16px;
  }

  .value-grid,
  .program-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
