:root {
  --bg: #f4faf6;
  --surface: #fdfefe;
  --surface-strong: #ffffff;
  --ink: #17392d;
  --muted: #5d7468;
  --line: rgba(23, 57, 45, 0.1);
  --brand: #1f7a4d;
  --brand-deep: #145537;
  --accent: #e18a33;
  --accent-soft: #fff1e2;
  --forest: #0f4d34;
  --shadow: 0 18px 40px rgba(22, 54, 42, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

body.popup-open {
  overflow: hidden;
}

#top {
  position: relative;
}

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

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

p {
  line-height: 1.7;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  margin-bottom: 2rem;
}

.section {
  padding: 5.5rem 0;
}

.section-tint {
  background: #ffffff;
}

.section-accent {
  background:
    linear-gradient(135deg, rgba(16, 84, 55, 0.97), rgba(12, 63, 41, 0.97)),
    var(--forest);
  color: #f5fff8;
}

.section-heading {

  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
}

.section-accent .eyebrow,
.hero-slider .eyebrow {
  color: var(--accent);
}

.hero-content .eyebrow {
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.6rem;
}

.site-header {
  position: relative;
  z-index: 20;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.hero-header {
  padding-top: 0;
}

.hero-header .header-inner {
  min-height: auto;
  padding: 1rem 1.25rem;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  border: 1px solid rgba(20, 85, 55, 0.9);
  box-shadow: 0 14px 34px rgba(20, 85, 55, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(21, 53, 47, 0.08);
  box-shadow: var(--shadow);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.05;
  color: #fff;
  font-weight: 800;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #f1aa5f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.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;
}

.hero-slider {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--forest);
}

.slider-backdrop {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.slide.is-active {
  opacity: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero-grid,
.section-grid,
.admissions-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  align-items: center;
}

.hero-content .hero-grid {
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.hero-text {
  width: 100%;
  max-width: none;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-badge {
  justify-self: center;
  width: 100%;
  max-width: 240px;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 122, 77, 0.12);
  box-shadow: var(--shadow);
}

.hero-badge span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}

.hero-badge strong {
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(56, 49, 49, 0.8);
  color: #fff;
}

.wide {
  width: 100%;
}

.brochure-link-wrap {
  text-align: center;
  margin-top: 1rem;
}

.brochure-link {
  display: inline-block;
  font-weight: 800;
  color: #ffffff;
  animation: brochure-blink 1s linear infinite;
}

@keyframes brochure-blink {

  0%,
  100% {
    color: #ffffff;
  }

  50% {
    color: #ff0000;
  }
}

.hero-stats,
.check-list,
.contact-list,
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.hero-stats li,
.card,
.feature-card,
.info-card,
.admission-panel,
.contact-form,
.trust-grid article {
  background: #ffffff;
  border: 1px solid rgba(31, 122, 77, 0.42);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 1.2rem;
  background: #ffffff;
  border-color: rgba(31, 122, 77, 0.42);
  color: var(--ink);
}

.hero-stats strong,
.contact-list strong {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-stats span,
.section-copy,
.card p,
.feature-card p,
.notice-date {
  color: var(--muted);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
  padding-bottom: 2rem;
}

.hero-copy,
.hero-card {
  background: #ffffff;
  border: 1px solid rgba(31, 122, 77, 0.42);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  width: 100%;
  max-width: none;
  padding: 1.85rem 2rem;
}

.hero-card {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.15rem;
  min-height: 100%;
}

.slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

.slider-dot1 {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

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

.slider-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 0px rgba(225, 138, 51, 0.2);
}

.admission-panel,
.contact-form {
  padding: 2rem;
}

.trust-strip {
  padding-bottom: 1.5rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-grid article {
  padding: 1.6rem;
}

.trust-grid span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-weight: 800;
}

.cards.three-up,
.cards.four-up,
.cards.two-up,
.feature-grid,
.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.card,
.feature-card {
  padding: 1.6rem;
}

.statement-card {
  min-height: 100%;
}

.compact-section {
  padding: 4.25rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.8rem 1.2rem;
}

.stat-value {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  margin: 0;
  color: var(--muted);
}

.pillars-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.result-grid {
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.pillar-card {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(31, 122, 77, 0.42);
  box-shadow: var(--shadow);
}

.pillar-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
}

.leadership-section {
  position: relative;
}

.leadership-section::before {
  content: "";
  position: absolute;
  inset: 10% 0 auto auto;
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  background: radial-gradient(circle, rgba(225, 138, 51, 0.14), transparent 70%);
  pointer-events: none;
}

.leadership-card {
  position: relative;
  overflow: hidden;
}

.leadership-profile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.profile-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.profile-image {
  width: 120px;
  height: 140px;
  object-fit: fill;
  border-radius: 20px;
  border: 1px solid rgba(31, 122, 77, 0.1);
  background: #f4faf6;
}

.profile-name {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.leadership-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.trustee-section {
  background:
    radial-gradient(circle at top right, rgba(225, 138, 51, 0.14), transparent 26%),
    linear-gradient(180deg, #f9fdfb, #eef7f2);
}

.trustee-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trustee-viewport {
  overflow: hidden;
  width: 100%;
}

.trustee-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 350ms ease;
  will-change: transform;
}

.trustee-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  background: #ffffff;
  border: 1px solid rgba(31, 122, 77, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trustee-image {
  width: 100%;
  height: 320px;
  object-fit: fill;
}

.trustee-name {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  text-align: center;
  font-size: 1.35rem;
}

.trustee-nav {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, opacity 180ms ease;
}

.trustee-nav:hover,
.trustee-nav:focus-visible {
  transform: translateY(-2px);
}

.message-role {
  margin: 0 0 1rem;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

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

.focus-card {
  background: #ffffff;
}

.gallery-image {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 122, 77, 0.1);
}

.result-section {
  background: #ffffff;
}

.result-card {
  text-align: center;
}

.result-value {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  color: var(--brand);
  font-weight: 700;
}

.result-label {
  margin: 0;
  color: var(--muted);
}

.steps {
  counter-reset: admission-step;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  position: relative;
  padding-left: 3.4rem;
  min-height: 2.4rem;
}

.steps li::before {
  counter-increment: admission-step;
  content: counter(admission-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(225, 138, 51, 0.16);
  color: #b76416;
  font-weight: 800;
}

.section-accent .admission-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 246, 0.98));
  border-color: rgba(31, 122, 77, 0.12);
  box-shadow: 0 22px 40px rgba(7, 22, 19, 0.18);
  color: var(--ink);
}

.section-accent .admission-panel h3,
.section-accent .admission-panel p,
.section-accent .admission-panel li,
.section-accent .admission-panel strong {
  color: var(--ink);
}

.section-accent .admission-panel .button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.contact-list li {
  margin-bottom: 0.8rem;
}

.office-hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  max-width: 320px;

}

.office-hours-layout .contact-list {
  max-width: 320px;
}

.office-map-access {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
}

.map-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-panel {
  align-content: start;
}

.contact-actions {
  display: grid;
  gap: 0.9rem;
}

.helper-text {
  margin: 0;
  color: var(--muted);
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(31, 122, 77, 0.18);
  border-color: rgba(31, 122, 77, 0.4);
}

.site-footer {
  padding: 2rem 0 3rem;
  background: #ffffff;
}

.site-footer .footer-inner {
  justify-content: center;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 30, 22, 0.72);
  backdrop-filter: blur(4px);
}

.popup-overlay[hidden] {
  display: none;
}

.popup-dialog {
  position: relative;
  width: fit-content;
  max-width: min(92vw, 760px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  background: transparent;
}

.popup-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
}

.popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18, 43, 34, 0.84);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 980px) {

  .hero-grid,
  .section-grid,
  .admissions-grid,
  .contact-grid,
  .cards.three-up,
  .cards.four-up,
  .cards.two-up,
  .feature-grid,
  .gallery-grid,
  .trust-grid,
  .hero-stats,
  .pillars-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .leadership-profile {
    grid-template-columns: 1fr;
  }

  .profile-image {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid rgba(29, 43, 42, 0.08);
    border-radius: var(--radius-md);
    background: rgba(20, 85, 55, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    margin-top: -2.5rem;

  }

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

  .trustee-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }

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

  .office-map-access {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero-slider {
    min-height: 0;
    height: auto;
    aspect-ratio: 1913 / 768;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 1rem 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

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

  .brand-copy small {
    font-size: 0.78rem;
  }

  .nav-toggle {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .hero-badge {
    justify-self: start;
  }

  .hero-copy,
  .hero-card {
    padding: 1.5rem;
  }

  .hero-content {
    margin-top: -1.5rem;
  }

  .trustee-slider {
    gap: 0.75rem;
  }

  .trustee-card {
    flex-basis: 100%;
  }

  .trustee-image {
    height: 280px;
  }

  .trustee-nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}
