:root {
  --ink: #17362f;
  --muted: #5d746e;
  --paper: #edf8f0;
  --surface: #fbfefa;
  --line: #c9dfd1;
  --blue: #3b8fa7;
  --green: #4fa978;
  --red: #2f8a66;
  --gold: #c29b3b;
  --slate: #527d72;
  --shadow: 0 18px 44px rgba(41, 91, 67, 0.14);
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
}

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

main,
section {
  scroll-margin-top: 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(244, 251, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 360px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 1.24rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a,
.nav-menu summary {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.nav-menu summary:hover,
.nav-menu[open] summary {
  color: var(--ink);
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-menu[open] summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr);
  width: max-content;
  min-width: 240px;
  max-width: min(82vw, 640px);
  padding: 10px;
  background: rgba(251, 254, 250, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.nav-dropdown a {
  padding: 9px 10px;
  color: var(--ink);
  border-radius: 6px;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: #12352d;
  background: #e4f4e9;
}

.hero {
  min-height: 38svh;
  display: grid;
  align-items: end;
  padding: 72px clamp(20px, 6vw, 80px) 36px;
  background:
    linear-gradient(90deg, rgba(19, 70, 57, 0.86), rgba(48, 108, 76, 0.64), rgba(222, 244, 229, 0.24)),
    url("assets/campus-lequn-building.jpg") center / cover;
  color: #ffffff;
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bdf2d0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: 1.08;
  max-width: 900px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.03rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: #2f8a66;
}

.button.secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: #9fc7ae;
}

.facts-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.facts-band article {
  min-height: 176px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
}

.facts-band span,
.achievement-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.facts-band p,
.card p,
.feature-list p,
.project-list p,
.contact-grid p,
.achievement-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  padding: clamp(56px, 8vw, 108px) clamp(20px, 6vw, 80px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.section-intro p,
.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.feature-list,
.project-list,
.contact-grid {
  display: grid;
  gap: 16px;
}

.feature-list article,
.project-list article,
.contact-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.identity-band {
  color: var(--ink);
  background: #dff2e6;
}

.identity-band .eyebrow,
.identity-band .text-link {
  color: #2f8a66;
}

.identity-band p {
  color: var(--muted);
}

.identity-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin-top: 26px;
}

.emblem {
  width: 220px;
  aspect-ratio: 1;
  padding: 18px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding-left: 18px;
  border-left: 4px solid #6fbd8d;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.cards-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  position: relative;
  min-height: 178px;
  padding: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
}

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

.accent-red::before {
  background: var(--red);
}

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

.accent-gold::before {
  background: var(--gold);
}

.accent-slate::before {
  background: var(--slate);
}

.unit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.unit-columns article {
  padding: 26px;
  background: #e2f2e8;
  border-radius: 8px;
}

.principal-profile {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.principal-profile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
}

.principal-profile h2,
.principal-profile h3 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.principal-name {
  margin-bottom: 20px;
  color: var(--slate);
  font-size: 1.08rem;
  font-weight: 800;
}

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

.principal-details h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.principal-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.office-grid article {
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.office-grid h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.office-grid h3 {
  margin: 18px 0 8px;
  color: var(--slate);
  font-size: 1.05rem;
}

.office-grid h2 + h3 {
  margin-top: 0;
}

.office-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  color: var(--ink);
  background: #f4fbf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
}

.unit-columns .tag-list li {
  padding: 0;
}

.unit-columns .tag-list a {
  display: block;
  padding: 7px 10px;
  color: inherit;
  text-decoration: none;
}

.unit-columns .tag-list a:hover {
  color: var(--blue);
}

.admissions-band {
  background: #e4f4e9;
}

.admission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.admission-material {
  scroll-margin-top: 88px;
  margin-top: 34px;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

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

.admission-pages figure {
  box-shadow: none;
}

.admission-pages img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #ffffff;
}

.brochure-pages {
  grid-template-columns: 1fr;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.link-grid a,
.link-grid span,
.bulletin-links a,
.bulletin-links span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #bcd8c6;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.link-grid a:hover,
.bulletin-links a:hover {
  border-color: var(--red);
}

.bulletin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.bulletin-links h3 {
  flex-basis: 100%;
  margin-bottom: 0;
}

.campus-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.campus-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
  margin-bottom: 28px;
}

.campus-map-panel figure {
  box-shadow: none;
}

.campus-map-panel img {
  aspect-ratio: 14 / 9;
  object-fit: contain;
  background: #ffffff;
}

.campus-map-panel h3 {
  margin-bottom: 14px;
}

figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.achievements-band {
  color: var(--ink);
  background: #e6f5eb;
}

.achievements-band .eyebrow,
.achievements-band .text-link {
  color: #2f8a66;
}

.achievements-band .section-heading p {
  color: var(--muted);
}

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

.achievement-grid article {
  min-height: 220px;
  padding: 24px;
  background: rgba(251, 254, 250, 0.78);
  border: 1px solid #c7decf;
  border-radius: 8px;
}

.achievement-grid span {
  color: #2f8a66;
  font-size: 1.5rem;
  line-height: 1.15;
  text-transform: none;
}

.achievement-grid p {
  color: var(--muted);
}

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

.contact-band {
  background: #edf8f0;
}

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

.sources {
  background: var(--surface);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--blue);
  background: #f4fbf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 6vw, 80px);
  color: var(--ink);
  background: #d7ecdf;
}

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

.site-footer a {
  color: #2f8a66;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .facts-band,
  .cards-five,
  .achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-list,
  .contact-grid,
  .campus-gallery,
  .campus-map-panel,
  .principal-details,
  .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav > a {
    padding-left: 0;
  }

  .nav-menu[open] {
    flex-basis: 100%;
  }

  .nav-dropdown,
  .nav-dropdown.wide {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin-top: 6px;
    box-shadow: none;
  }

  .hero {
    min-height: 46svh;
    padding-top: 56px;
  }

  .two-column,
  .identity-layout,
  .unit-columns,
  .principal-profile,
  .principal-details,
  .office-grid,
  .facts-band,
  .cards-five,
  .achievement-grid,
  .project-list,
  .contact-grid,
  .campus-gallery,
  .campus-map-panel,
  .source-list,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .identity-layout {
    align-items: start;
  }

  .emblem {
    width: 172px;
  }

  .site-footer {
    flex-direction: column;
  }
}
