:root {
  --ink: #08243a;
  --muted: #40586a;
  --paper: #f2f6f8;
  --surface: #ffffff;
  --surface-ice: #edf3f6;
  --surface-blue: #e0edf4;
  --surface-sky: #dcebf0;
  --surface-mist: #f0edf6;
  --line: #b5c7d2;
  --blue: #087fbd;
  --green: #087f62;
  --red: #c9473b;
  --gold: #a96f00;
  --violet: #6554c7;
  --slate: #4d5d6a;
  --shadow: 0 18px 44px rgba(20, 45, 65, 0.17);
  --motion-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --motion-pop: cubic-bezier(0.22, 1.42, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

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

.svg-sprite {
  display: none;
}

.icon {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  padding: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(8, 36, 58, 0.08);
  animation: headerDrop 0.72s var(--motion-ease) both;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px clamp(18px, 4vw, 56px);
  text-decoration: none;
  text-align: center;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.42s var(--motion-pop), filter 0.42s ease;
}

.brand:hover img,
.brand:focus-visible img {
  filter: drop-shadow(0 8px 12px rgba(8, 36, 58, 0.18));
  transform: rotate(-5deg) scale(1.08);
}

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

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

.brand small {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.5vw, 2.05rem);
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 clamp(12px, 3vw, 40px);
  background: #126a99;
  border-top: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-nav a,
.nav-menu summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px clamp(14px, 2.2vw, 28px);
  overflow: hidden;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.24s ease, transform 0.24s var(--motion-pop);
}

.site-nav a::before,
.nav-menu summary::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--motion-ease);
}

.site-nav a:hover,
.nav-menu summary:hover,
.nav-menu[open] summary {
  color: #ffffff;
  background: #0f5d88;
  transform: translateY(-1px);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.nav-menu summary:hover::before,
.nav-menu summary:focus-visible::before,
.nav-menu[open] summary::before {
  transform: scaleX(1);
}

.site-nav > a,
.site-nav > .nav-menu > summary {
  font-size: 1.14rem;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 0;
  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 var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

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

.nav-dropdown {
  position: absolute;
  top: 100%;
  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: #0f5d88;
  border: 1px solid #0b4d72;
  border-top: 3px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform-origin: top right;
  animation: dropdownSwing 0.28s var(--motion-ease) both;
}

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

.nav-dropdown a {
  padding: 9px 10px;
  min-height: 42px;
  color: #ffffff;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: #ffffff;
  background: #126a99;
}

.hero {
  min-height: clamp(280px, 31vw, 440px);
  background: url("assets/campus-lequn-building.jpg") center / cover;
}

.hero-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #dce8ee;
  box-shadow: inset 0 -90px 110px rgba(8, 36, 58, 0.26);
  --carousel-interval: 5200ms;
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-carousel::before {
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.28) 48%, transparent 56%);
  transform: translateX(-72%);
  animation: heroSweep 6.6s ease-in-out infinite;
}

.hero-carousel::after {
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--blue), var(--green));
  background-size: 200% 100%;
  animation: accentSlide 5.2s linear infinite;
}

.hero-slides,
.hero-slide,
.hero-slide img {
  width: 100%;
  height: 100%;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  filter: saturate(0.86);
  transform: scale(1.035);
  transition: opacity 0.82s var(--motion-ease), transform 0.82s var(--motion-ease), filter 0.82s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  filter: saturate(1.07);
  transform: scale(1);
}

.hero-slide.is-leaving {
  z-index: 0;
  opacity: 1;
  animation: heroSlideOut 0.9s var(--motion-ease) both;
}

.hero-slide img {
  object-fit: cover;
}

.hero-slide.is-active img {
  animation: heroImageDrift 5.2s ease-out both;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 58px;
  padding: 0;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  background: rgba(8, 36, 58, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(8, 36, 58, 0.24);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.22s ease, transform 0.28s var(--motion-pop), box-shadow 0.22s ease;
  transform: translateY(-50%);
}

.carousel-button::before {
  content: "";
  position: absolute;
  inset: -20% auto -20% -55%;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: skewX(-18deg);
  transition: left 0.44s var(--motion-ease);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: rgba(8, 36, 58, 0.78);
  box-shadow: 0 14px 28px rgba(8, 36, 58, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.carousel-button:hover::before,
.carousel-button:focus-visible::before {
  left: 115%;
}

.carousel-prev {
  left: clamp(14px, 3vw, 42px);
}

.carousel-next {
  right: clamp(14px, 3vw, 42px);
}

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots button {
  position: relative;
  width: 34px;
  height: 12px;
  padding: 0;
  overflow: hidden;
  background: rgba(8, 36, 58, 0.48);
  border: 2px solid rgba(8, 36, 58, 0.54);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.carousel-dots button::before,
.carousel-dots button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.carousel-dots button::before {
  background: rgba(255, 255, 255, 0.56);
  transform: scaleX(0.34);
  transform-origin: center;
  transition: transform 0.26s ease, background-color 0.26s ease;
}

.carousel-dots button::after {
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

.carousel-dots button.is-active {
  background: rgba(8, 36, 58, 0.66);
  border-color: #ffffff;
  transform: scale(1.05);
}

.carousel-dots button.is-active::before {
  background: rgba(255, 255, 255, 0.88);
  transform: scaleX(1);
}

.carousel-dots button.is-active::after {
  animation: dotProgress var(--carousel-interval) linear both;
}

.hero-intro {
  position: relative;
  padding: clamp(28px, 4vw, 54px) clamp(20px, 6vw, 80px);
  overflow: hidden;
  background: linear-gradient(180deg, #fafafa 0%, var(--surface-mist) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0 22%, rgba(8, 127, 189, 0.12) 36%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 62%);
  background-size: 180% 100%, 100% 100%;
  animation: heroIntroGlow 7.2s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
}

.hero-intro .hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-intro h1 {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.55rem, 6.2vw, 5.9rem);
  line-height: 1.04;
}

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

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: var(--muted);
  font-size: clamp(1.03rem, 1.6vw, 1.25rem);
}

.hero-intro .hero-lede {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.28s var(--motion-pop), box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -55%;
  z-index: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
  transform: skewX(-18deg);
  transition: left 0.5s var(--motion-ease);
}

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

.button:hover::after,
.button:focus-visible::after {
  left: 115%;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(23, 143, 206, 0.2);
}

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

.hero-intro .button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: #9ecae6;
}

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

.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 {
  position: relative;
  min-height: 176px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  background: var(--surface);
  border-top: 6px solid var(--blue);
  transition: transform 0.3s var(--motion-pop), box-shadow 0.3s ease, border-color 0.3s ease;
}

.fact-icon,
.card-icon {
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  padding: 8px;
  color: var(--blue);
  background: rgba(8, 127, 189, 0.1);
  border: 1px solid rgba(8, 127, 189, 0.24);
  border-radius: 999px;
  transition: transform 0.36s var(--motion-pop), box-shadow 0.36s ease, background-color 0.36s ease;
}

.facts-band article:nth-child(2) {
  background: var(--surface-blue);
  border-top-color: var(--green);
}

.facts-band article:nth-child(2) .fact-icon,
.feature-list article:nth-child(2n) .card-icon,
.project-list article:nth-child(2n) .card-icon,
.contact-grid article:nth-child(2n) .card-icon {
  color: var(--green);
  background: rgba(8, 127, 98, 0.1);
  border-color: rgba(8, 127, 98, 0.24);
}

.facts-band article:nth-child(3) {
  background: var(--surface-mist);
  border-top-color: var(--violet);
}

.facts-band article:nth-child(3) .fact-icon,
.feature-list article:nth-child(3n) .card-icon {
  color: var(--violet);
  background: rgba(101, 84, 199, 0.1);
  border-color: rgba(101, 84, 199, 0.24);
}

.facts-band article:nth-child(4) {
  background: var(--surface-sky);
  border-top-color: var(--gold);
}

.facts-band article:nth-child(4) .fact-icon,
.feature-list article:nth-child(4n) .card-icon,
.project-list article:nth-child(3n) .card-icon,
.contact-grid article:nth-child(3n) .card-icon {
  color: var(--gold);
  background: rgba(169, 111, 0, 0.1);
  border-color: rgba(169, 111, 0, 0.24);
}

.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 span {
  font-size: clamp(0.88rem, 1vw, 1rem);
  letter-spacing: 0.02em;
}

.facts-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 1.65vw, 1.7rem);
  line-height: 1.22;
}

.facts-band p {
  font-size: clamp(1.02rem, 1.14vw, 1.2rem);
  line-height: 1.65;
}

.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(42px, 5vw, 72px) clamp(20px, 6vw, 80px);
}

.section + .section {
  padding-top: clamp(30px, 3.6vw, 48px);
}

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

.about-layout {
  display: grid;
  gap: 34px;
}

.about-layout .section-intro {
  max-width: 920px;
}

.about-layout .feature-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.about-layout .feature-list article {
  min-height: 250px;
  padding: 20px;
}

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

.section-heading {
  width: 100%;
  max-width: none;
  margin-bottom: 34px;
}

.section-heading h1,
.section-heading h2,
.section-heading p {
  max-width: none;
}

.source-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.source-note a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 143, 206, 0.35);
}

.source-note a:hover {
  border-bottom-color: currentColor;
}

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

.feature-list article,
.project-list article,
.contact-grid article {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  transition: transform 0.3s var(--motion-pop), box-shadow 0.3s ease, border-color 0.3s ease;
}

.facts-band article::after,
.feature-list article::after,
.project-list article::after,
.contact-grid article::after,
.office-grid article::after,
.achievement-grid article::after,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.52) 49%, transparent 62%);
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform 0.74s var(--motion-ease);
}

.feature-list article:nth-child(even),
.project-list article:nth-child(even),
.contact-grid article:nth-child(even) {
  background: var(--surface-ice);
}

.feature-list article:nth-child(2n) {
  border-top-color: var(--green);
}

.feature-list article:nth-child(3n) {
  border-top-color: var(--violet);
}

.feature-list article:nth-child(4n) {
  border-top-color: var(--gold);
}

.feature-list article:nth-child(5n) {
  border-top-color: var(--red);
}

.feature-list article:nth-child(5n) .card-icon {
  color: var(--red);
  background: rgba(201, 71, 59, 0.1);
  border-color: rgba(201, 71, 59, 0.24);
}

.project-list article:nth-child(2n),
.contact-grid article:nth-child(2n) {
  border-top-color: var(--green);
}

.project-list article:nth-child(3n),
.contact-grid article:nth-child(3n) {
  border-top-color: var(--gold);
}

.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: #e5eaee;
}

.identity-band .eyebrow,
.identity-band .text-link {
  color: var(--red);
}

.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;
  animation: emblemFloat 5.6s ease-in-out infinite;
}

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

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

.clean-list li:nth-child(2n) {
  border-left-color: var(--green);
}

.clean-list li:nth-child(3n) {
  border-left-color: var(--gold);
}

.clean-list li:nth-child(4n) {
  border-left-color: var(--violet);
}

.clean-list li:nth-child(5n) {
  border-left-color: var(--red);
}

.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-ice);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--motion-pop), box-shadow 0.3s ease, border-color 0.3s ease;
}

.cards-five .card:nth-child(2) {
  background: var(--surface-blue);
}

.cards-five .card:nth-child(3) {
  background: var(--surface-mist);
}

.cards-five .card:nth-child(4) {
  background: var(--surface-sky);
}

.cards-five .card:nth-child(5) {
  background: #ebeef1;
}

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

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

.accent-blue .card-icon {
  color: var(--blue);
  background: rgba(8, 127, 189, 0.1);
  border-color: rgba(8, 127, 189, 0.24);
}

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

.accent-red .card-icon {
  color: var(--red);
  background: rgba(201, 71, 59, 0.1);
  border-color: rgba(201, 71, 59, 0.24);
}

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

.accent-green .card-icon {
  color: var(--green);
  background: rgba(8, 127, 98, 0.1);
  border-color: rgba(8, 127, 98, 0.24);
}

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

.accent-gold .card-icon {
  color: var(--gold);
  background: rgba(169, 111, 0, 0.1);
  border-color: rgba(169, 111, 0, 0.24);
}

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

.accent-slate .card-icon {
  color: var(--slate);
  background: rgba(77, 93, 106, 0.1);
  border-color: rgba(77, 93, 106, 0.24);
}

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

.unit-columns article {
  padding: 26px;
  background: var(--surface-sky);
  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-blue);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  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 {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--motion-pop), box-shadow 0.3s ease, border-color 0.3s ease;
}

.office-grid article:nth-child(even) {
  background: var(--surface-ice);
  border-top-color: var(--green);
}

.office-grid article:nth-child(3n) {
  border-top-color: var(--gold);
}

.office-grid article:nth-child(4n) {
  border-top-color: var(--violet);
}

.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: #f6f7f8;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  font-size: 0.92rem;
}

.tag-list li:nth-child(2n) {
  border-left-color: var(--green);
}

.tag-list li:nth-child(3n) {
  border-left-color: var(--gold);
}

.tag-list li:nth-child(4n) {
  border-left-color: var(--violet);
}

.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: linear-gradient(135deg, #eceff3 0%, #f2eee8 100%);
}

.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 #c3ddec;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

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

figure:not(.hero-slide) {
  position: relative;
  overflow: hidden;
  background: var(--surface-ice);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--motion-pop), box-shadow 0.3s ease;
}

figure:not(.hero-slide) img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.62s var(--motion-ease), filter 0.62s ease;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
}

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

.achievements-band .eyebrow,
.achievements-band .text-link {
  color: var(--red);
}

.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 {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  background: #fbfcfd;
  border: 1px solid #d2d9de;
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  transition: transform 0.3s var(--motion-pop), box-shadow 0.3s ease, border-color 0.3s ease;
}

.achievement-grid span {
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1.15;
  text-transform: none;
}

.achievement-grid article:nth-child(2n) {
  border-top-color: var(--green);
}

.achievement-grid article:nth-child(2n) span {
  color: var(--green);
}

.achievement-grid article:nth-child(3n) {
  border-top-color: var(--gold);
}

.achievement-grid article:nth-child(3n) span {
  color: var(--gold);
}

.achievement-grid article:nth-child(4n) {
  border-top-color: var(--violet);
}

.achievement-grid article:nth-child(4n) span {
  color: var(--violet);
}

.achievement-grid article:nth-child(5n) {
  border-top-color: var(--red);
}

.achievement-grid article:nth-child(5n) span {
  color: var(--red);
}

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

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

.contact-band {
  background: var(--paper);
}

.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 {
  position: relative;
  display: block;
  min-height: 50px;
  padding: 12px 14px;
  overflow: hidden;
  color: var(--blue);
  background: #f6f7f8;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s var(--motion-pop);
}

.source-list a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.58) 49%, transparent 62%);
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform 0.74s var(--motion-ease);
}

.site-footer {
  display: block;
  padding: 24px clamp(20px, 6vw, 80px);
  color: #edf7fb;
  background: #08243a;
  border-top: 4px solid var(--blue);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #d3e3ea;
}

.site-footer a {
  color: #ffffff;
}

.site-footer p + p {
  margin-top: 6px;
}

.footer-info {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.effects-ready .reveal-on-scroll {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 30px), 0) scale(0.96);
  transition: opacity 0.78s ease, transform 0.78s var(--motion-ease), filter 0.78s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.effects-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownSwing {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroSweep {
  0%,
  42% {
    transform: translateX(-72%);
  }

  72%,
  100% {
    transform: translateX(72%);
  }
}

@keyframes heroIntroGlow {
  0%,
  100% {
    background-position: 115% 0, 0 0;
  }

  48% {
    background-position: -35% 0, 0 0;
  }
}

@keyframes accentSlide {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 200% 0;
  }
}

@keyframes dotProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes heroSlideOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.985) translateX(-18px);
  }
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.035) translate3d(-0.6%, 0, 0);
  }

  to {
    transform: scale(1.105) translate3d(0.8%, -0.8%, 0);
  }
}

@keyframes emblemFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .facts-band article:hover,
  .feature-list article:hover,
  .project-list article:hover,
  .contact-grid article:hover,
  .office-grid article:hover,
  .card:hover,
  .achievement-grid article:hover,
  .source-list a:hover,
  figure:not(.hero-slide):hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 26px 54px rgba(20, 45, 65, 0.22);
  }

  .facts-band article:hover::after,
  .feature-list article:hover::after,
  .project-list article:hover::after,
  .contact-grid article:hover::after,
  .office-grid article:hover::after,
  .achievement-grid article:hover::after,
  .card:hover::after,
  .source-list a:hover::after {
    transform: translateX(120%);
  }

  .facts-band article:hover .fact-icon,
  .feature-list article:hover .card-icon,
  .project-list article:hover .card-icon,
  .contact-grid article:hover .card-icon,
  .card:hover .card-icon {
    box-shadow: 0 12px 22px rgba(8, 127, 189, 0.18);
    transform: translateY(-4px) rotate(-5deg) scale(1.1);
  }

  figure:not(.hero-slide):hover img {
    filter: saturate(1.12) contrast(1.03);
    transform: scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .effects-ready .reveal-on-scroll {
    opacity: 1;
    filter: none;
    transform: 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));
  }

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

}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px 8px;
  }

  .site-nav > a {
    padding-inline: 12px;
  }

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

  .nav-menu[open] summary {
    width: 100%;
  }

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

  .nav-dropdown a {
    white-space: normal;
  }

  .hero {
    min-height: 280px;
  }

  .carousel-button {
    width: 38px;
    height: 48px;
    font-size: 2rem;
  }

  .two-column,
  .about-layout .feature-list,
  .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;
  }

}
