
:root {
  --navy: #073c65;
  --navy-deep: #042a49;
  --blue: #1597d4;
  --sky: #eaf7fc;
  --sky-soft: #f5fbfe;
  --gold: #f4c34f;
  --gold-deep: #dba62a;
  --ink: #153047;
  --muted: #5c7386;
  --line: #d9e9f1;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(4, 58, 96, 0.13);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 70;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-item,
.topbar-side {
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar-side {
  gap: 12px;
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

.topbar a {
  color: var(--gold);
  font-weight: 650;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(217, 233, 241, 0.8);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(5, 55, 89, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.school-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 248px;
}

.school-logo-wrap {
  width: 62px;
  height: 57px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.school-logo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.mark-shield {
  position: relative;
  width: 45px;
  height: 50px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  clip-path: polygon(50% 0, 95% 17%, 86% 77%, 50% 100%, 14% 77%, 5% 17%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.mark-shield::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  top: 9px;
}

.mark-shield span {
  padding-top: 9px;
  font-weight: 800;
  font-size: 21px;
}

.school-mark > div:last-child {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.02em;
}

.school-mark strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.055em;
}

.school-mark > div:last-child span {
  margin-top: 2px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  height: 100%;
}

.desktop-nav a {
  position: relative;
  display: grid;
  align-items: center;
  height: 100%;
  color: #27485f;
  font-size: 13px;
  font-weight: 620;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--blue);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  width: 100%;
}

.program-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.program-dropdown > button {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #27485f;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
}

.program-dropdown > button span {
  font-size: 16px;
  transition: transform 160ms ease;
}

.program-dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  z-index: 20;
  width: 280px;
  display: grid;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 45px rgba(4, 42, 73, .18);
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.program-dropdown-menu a {
  min-height: 42px;
  height: auto;
  padding: 11px 12px;
  border-radius: 7px;
  color: #27485f;
  line-height: 1.35;
}

.program-dropdown-menu a::after {
  display: none;
}

.program-dropdown-menu a:hover,
.program-dropdown-menu a:focus-visible {
  color: var(--blue);
  background: var(--sky);
}

.program-dropdown:hover .program-dropdown-menu,
.program-dropdown:focus-within .program-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.program-dropdown:hover > button span,
.program-dropdown:focus-within > button span {
  transform: rotate(180deg);
}

.mobile-program-menu {
  border-bottom: 1px solid var(--line);
}

.mobile-program-menu summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.mobile-program-menu[open] summary svg {
  transform: rotate(90deg);
}

.mobile-program-menu > div {
  display: grid;
  gap: 4px;
  padding: 0 0 12px 12px;
}

.mobile-program-menu > div a {
  padding: 9px 12px;
  color: #34596f;
  background: #f1f8fb;
  border-radius: 7px;
  font-size: 13px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--navy);
  background: var(--sky);
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.service-ribbon {
  color: var(--navy);
  background: #eef8fc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid #cfe5ef;
  box-shadow: 0 6px 18px rgba(4, 42, 73, 0.06);
}

.service-ribbon-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-ribbon-inner > span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 3px;
  color: white;
  background: var(--navy);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-ribbon-inner > div {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.service-ribbon-inner > div::-webkit-scrollbar {
  display: none;
}

.service-ribbon a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 3px;
  color: #234c66;
  background: white;
  font-size: 10px;
  font-weight: 680;
  line-height: 14px;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}

.service-ribbon a:hover,
.service-ribbon a:focus-visible {
  color: white;
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: clamp(540px, 68vh, 640px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("images/hero-campus.png");
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.01);
  opacity: 0;
  transition: opacity 900ms ease, transform 6s ease;
}

.hero-image.active {
  opacity: 1;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 34, 59, 0.96) 0%, rgba(4, 53, 88, 0.84) 39%, rgba(3, 52, 87, 0.25) 67%, rgba(3, 38, 64, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 38, 64, 0.32), transparent 55%);
}

.hero-slider-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-slider-controls > button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: white;
  background: rgba(3, 38, 64, 0.52);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.hero-slider-dots {
  display: flex;
  gap: 7px;
  max-width: min(320px, 34vw);
  overflow-x: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(3, 38, 64, 0.5);
  scrollbar-width: none;
}

.hero-slider-dots::-webkit-scrollbar {
  display: none;
}

.hero-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-slider-dots button.active {
  width: 24px;
  border-radius: 5px;
  background: var(--gold);
}

.hero-slide-caption {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 26px;
  width: min(420px, calc(100vw - 520px));
  display: grid;
  padding: 13px 17px;
  color: white;
  background: rgba(3, 38, 64, .73);
  border-left: 3px solid var(--gold);
  backdrop-filter: blur(9px);
  box-shadow: 0 12px 32px rgba(1, 23, 39, .2);
}

.hero-slide-caption span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-slide-caption strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-slide-caption small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12vw;
  top: -28vw;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(255, 255, 255, 0.025),
    0 0 0 16vw rgba(255, 255, 255, 0.018);
}

.hero-content {
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 54px;
  padding-bottom: 76px;
}

.hero-copy {
  width: min(680px, 64%);
  color: white;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(3rem, 5.1vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 760;
  text-wrap: balance;
}

.hero h1 span {
  color: #8cdafa;
  font-weight: 620;
}

.hero-tagline {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 35px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 25px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 720;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-gold {
  color: #17374c;
  background: var(--gold);
  box-shadow: 0 12px 30px rgba(244, 195, 79, 0.18);
}

.button-gold:hover {
  background: #ffcf5b;
}

.button-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.hero-seal {
  align-self: flex-end;
  margin-bottom: 34px;
}

.seal-ring {
  position: relative;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  background: rgba(3, 50, 84, 0.55);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  text-align: center;
}

.seal-ring::before,
.seal-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.seal-ring::before {
  inset: 8px;
  border: 1px dashed rgba(244, 195, 79, .6);
}

.seal-ring::after {
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
}

.seal-curved-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.seal-curved-title text {
  fill: #f4c34f;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.seal-center {
  position: absolute;
  inset: 31px 21px 19px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.seal-icon {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.seal-center strong {
  margin-top: 2px;
  color: white;
  font-size: 21px;
  letter-spacing: .11em;
}

.seal-center small {
  width: 82px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 7px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right center;
}

.scroll-cue i {
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.main-menu-showcase {
  position: relative;
  z-index: 6;
  padding: 34px 0 38px;
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(7, 60, 101, 0.07);
}

.main-menu-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}

.main-menu-heading > div {
  flex: 0 0 auto;
}

.main-menu-heading span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.main-menu-heading h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.main-menu-heading p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.main-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.main-menu-card {
  min-height: 72px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: var(--sky-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.main-menu-card:hover,
.main-menu-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(21, 151, 212, .5);
  background: white;
  box-shadow: 0 12px 26px rgba(7, 60, 101, .09);
}

.main-menu-card .main-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.main-menu-card strong {
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
}

.main-menu-card > svg {
  color: #8ba6b7;
}

.quick-band {
  position: relative;
  z-index: 5;
  background: white;
  box-shadow: 0 15px 50px rgba(7, 60, 101, 0.1);
}

.quick-grid {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, 1fr);
}

.quick-intro,
.quick-item {
  min-height: 126px;
  display: flex;
  align-items: center;
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.quick-intro {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--sky-soft);
}

.quick-intro strong {
  margin-top: 7px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.quick-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.16em;
}

.quick-item {
  gap: 17px;
}

.quick-item:last-child {
  border-right: 0;
}

.quick-item b {
  color: var(--gold-deep);
  font-size: 11px;
  align-self: flex-start;
  padding-top: 4px;
}

.quick-item div {
  display: flex;
  flex-direction: column;
}

.quick-item strong {
  color: var(--navy);
  font-size: 14px;
}

.quick-item span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.identity-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  background: #fbfdfe;
}

.identity-inner {
  display: grid;
  grid-template-columns: 0.72fr 2.28fr;
  align-items: center;
  gap: 38px;
}

.identity-heading {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.identity-heading > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.identity-heading h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.identity-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 16px;
}

.identity-logo-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 11px;
}

.identity-logo-image {
  position: relative;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 10px;
  background: white;
}

.identity-logo-image img {
  object-fit: contain;
}

.identity-logo-image.logo-wide {
  border-radius: 5px;
}

.identity-logo-item > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.identity-logo-item strong {
  color: var(--navy);
  font-size: 11px;
  line-height: 1.3;
}

.identity-logo-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.section {
  padding: 105px 0;
}

.intro-placeholder {
  background:
    radial-gradient(circle at 86% 14%, rgba(21, 151, 212, 0.1), transparent 30%),
    var(--sky-soft);
}

.section-heading {
  text-align: center;
}

.section-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 790px;
  margin: 16px auto 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(55px, 8vw, 112px);
}

.principal-visual {
  position: relative;
  padding: 22px 0 0 22px;
}

.principal-visual::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 74%;
  height: 72%;
  border-radius: 2px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
    radial-gradient(circle at 1px 1px, var(--blue) 1px, transparent 1px);
  background-size: auto, 15px 15px;
  opacity: 0.18;
}

.principal-frame {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 4px;
  background: #dceef8;
  box-shadow: var(--shadow);
}

.principal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.principal-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.principal-caption {
  position: absolute;
  right: -24px;
  bottom: 34px;
  width: min(275px, 76%);
  display: flex;
  flex-direction: column;
  padding: 19px 24px;
  color: white;
  background: var(--navy);
  box-shadow: 0 14px 36px rgba(3, 50, 84, 0.24);
}

.principal-caption::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.principal-caption span {
  color: #8cdafa;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.principal-caption strong {
  margin-top: 5px;
  font-size: 13px;
}

.welcome-copy h2,
.split-heading h2,
.news-heading h2 {
  margin: 15px 0 0;
  color: var(--navy);
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  line-height: 1.11;
  letter-spacing: -0.05em;
}

.welcome-copy > svg {
  margin: 28px 0 10px;
  color: var(--gold-deep);
}

.welcome-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.welcome-copy .lead {
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 700;
}

.signature {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.signature span {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.signature strong {
  margin-top: 7px;
  color: var(--navy);
  font-size: 14px;
}

.profile-section {
  position: relative;
  overflow: hidden;
  background: white;
}

.profile-section::before {
  content: "SMK";
  position: absolute;
  right: -20px;
  top: 50px;
  color: rgba(7, 60, 101, 0.03);
  font-size: 16rem;
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 1;
}

.split-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 80px;
}

.split-heading h2 {
  max-width: 680px;
}

.split-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.profile-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 55px;
}

.profile-card {
  min-height: 342px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-card:hover {
  border-color: rgba(21, 151, 212, 0.55);
  box-shadow: 0 18px 45px rgba(7, 60, 101, 0.1);
  transform: translateY(-5px);
}

.card-no {
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 760;
}

.card-line {
  width: 40px;
  height: 2px;
  margin: 23px 0;
  background: var(--blue);
}

.profile-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.profile-card p {
  min-height: 108px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.profile-card a,
.news-body a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 720;
}

.vision-note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 28px;
  padding: 25px 32px;
  color: white;
  background: var(--navy);
}

.vision-note > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.vision-note p {
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.7;
}

.excellence-section {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 15% 10%, rgba(21, 151, 212, 0.26), transparent 33%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.excellence-section::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -250px;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.015),
    0 0 0 140px rgba(255, 255, 255, 0.012);
}

.section-heading.narrow {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.excellence-section .section-heading h2 {
  color: white;
}

.excellence-section .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.section-label.light {
  color: var(--gold);
}

.excellence-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 55px;
  background: rgba(255, 255, 255, 0.14);
}

.excellence-card {
  position: relative;
  min-height: 290px;
  padding: 32px 27px;
  background: rgba(5, 48, 80, 0.88);
  transition: background 180ms ease, transform 180ms ease;
}

.excellence-card:hover {
  z-index: 2;
  background: rgba(12, 112, 166, 0.92);
  transform: translateY(-4px);
}

.excellence-card > span {
  position: absolute;
  right: 24px;
  top: 24px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 10px;
  font-weight: 700;
}

.excellence-icon {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--gold);
}

.excellence-card h3 {
  margin: 38px 0 0;
  font-size: 17px;
}

.excellence-card p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.7;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 52px;
}

.service-card {
  min-height: 122px;
  display: grid;
  grid-template-columns: 48px 1fr 20px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  border-color: rgba(21, 151, 212, 0.55);
  box-shadow: 0 14px 34px rgba(7, 60, 101, 0.08);
  transform: translateY(-3px);
}

.service-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sky);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.06em;
}

.service-card:nth-child(3n + 2) > span {
  color: #7a5b11;
  background: #fff5d9;
}

.service-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.service-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.service-card > svg {
  color: #97afbe;
}

.news-section {
  background: white;
}

.news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.news-heading h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
}

.text-link {
  margin-bottom: 8px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
  box-shadow: 0 20px 50px rgba(7, 60, 101, 0.11);
  transform: translateY(-5px);
}

.news-image {
  position: relative;
  height: 228px;
  overflow: hidden;
  background: #dbeaf2;
}

.news-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

.news-card:hover .news-image img {
  transform: scale(1.035);
}

.news-image span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 10px;
  color: white;
  background: rgba(4, 42, 73, 0.86);
  backdrop-filter: blur(7px);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-body {
  padding: 26px;
}

.news-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.news-body p {
  min-height: 63px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gallery-section {
  background:
    linear-gradient(rgba(234, 247, 252, 0.88), rgba(234, 247, 252, 0.88)),
    radial-gradient(circle at 1px 1px, rgba(7, 60, 101, 0.18) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 310px;
  gap: 12px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 550ms ease, opacity 300ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 31, 53, 0.82), transparent 60%);
}

.gallery-item:hover img {
  opacity: 0.88;
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  color: white;
}

.gallery-item figcaption span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gallery-item figcaption strong {
  margin-top: 6px;
  font-size: 18px;
}

.ppdb-section {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy-deep);
}

.ppdb-art,
.ppdb-overlay {
  position: absolute;
  inset: 0;
}

.ppdb-art {
  background: url("images/hero-campus.png") center 48% / cover;
}

.ppdb-overlay {
  background:
    linear-gradient(90deg, rgba(3, 38, 64, 0.98) 0%, rgba(4, 52, 85, 0.89) 48%, rgba(4, 52, 85, 0.28) 100%),
    linear-gradient(0deg, rgba(3, 38, 64, 0.35), transparent 60%);
}

.ppdb-content {
  position: relative;
  z-index: 2;
  padding-top: 75px;
  padding-bottom: 75px;
}

.ppdb-content > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ppdb-content h2 {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.ppdb-content p {
  max-width: 540px;
  margin: 21px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.75;
}

.ppdb-actions {
  display: flex;
  gap: 12px;
  margin-top: 31px;
}

footer {
  color: rgba(255, 255, 255, 0.72);
  background: #031f35;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.72fr 0.72fr 0.9fr;
  gap: 68px;
  padding-top: 75px;
  padding-bottom: 60px;
}

.school-mark-light strong {
  color: white;
}

.school-mark-light > div:last-child span {
  color: #7fd2f4;
}

.footer-brand > p {
  max-width: 370px;
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.75;
}

.footer-location {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 11px;
  line-height: 1.6;
}

.footer-location svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.footer-grid h3 {
  margin: 3px 0 21px;
  color: white;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 11px;
  transition: color 140ms ease, transform 140ms ease;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: #7fd2f4;
  font-size: 11px;
  font-weight: 680;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 19px;
}

.social-links a {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 760;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--navy-deep);
  background: var(--gold);
}

.footer-bottom {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10px;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal 700ms 120ms both ease-out;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 16px;
  }

  .desktop-nav a {
    font-size: 12px;
  }

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

  .quick-intro {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 19px 28px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .quick-intro strong {
    margin: 0;
  }

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

  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 0.75fr);
    gap: 35px;
  }

  .service-ribbon a {
    padding: 7px 8px;
    font-size: 9px;
  }

  .identity-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .identity-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-heading h2 {
    margin: 0;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: grid-template-rows 220ms ease, border-color 220ms ease;
    background: white;
  }

  .service-ribbon {
    display: none;
  }

  .mobile-menu.open {
    grid-template-rows: 1fr;
    border-color: var(--line);
  }

  .mobile-menu-inner {
    min-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
  }

  .mobile-menu.open .mobile-menu-inner {
    padding-top: 14px;
    padding-bottom: 22px;
  }

  .mobile-menu-inner > a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 14px;
    font-weight: 650;
  }

  .mobile-menu p {
    margin: 20px 0 11px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .mobile-services {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .mobile-services a {
    padding: 8px 10px;
    border-radius: 7px;
    color: #31556c;
    background: var(--sky);
    font-size: 11px;
    font-weight: 620;
  }

  .hero-copy {
    width: 78%;
  }

  .hero-seal {
    display: none;
  }

  .welcome-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 45px;
  }

  .principal-frame {
    height: 480px;
  }

  .principal-caption {
    right: -10px;
  }

  .split-heading {
    gap: 45px;
  }

  .profile-card {
    min-height: 380px;
    padding: 26px;
  }

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

  .news-grid {
    gap: 12px;
  }

  .news-image {
    height: 185px;
  }

  .news-body {
    padding: 20px;
  }

  .news-body h3 {
    font-size: 16px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

  .footer-grid > div:last-child {
    grid-column: 2 / -1;
  }
}

.channel-page {
  min-height: 100vh;
  color: #16384d;
  background: #f6fafc;
}

.channel-header {
  background: #fff;
  border-bottom: 1px solid #d9e6ed;
}

.channel-header .container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.channel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #062f50;
}

.channel-brand img {
  object-fit: contain;
}

.channel-brand span {
  display: grid;
}

.channel-brand strong {
  font-size: 15px;
}

.channel-brand small {
  color: #557184;
  font-size: 12px;
  letter-spacing: .13em;
}

.channel-home-link {
  color: #0a5b83;
  font-size: 14px;
  font-weight: 700;
}

.channel-hero {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(125deg, #052e4c, #087aa0);
}

.channel-hero span,
.channel-heading span,
.channel-article > span {
  color: #f4c34f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.channel-hero h1 {
  margin: 10px 0;
  font-size: clamp(40px, 7vw, 72px);
}

.channel-hero p {
  max-width: 620px;
  color: #d7edf5;
}

.channel-content {
  padding-top: 56px;
  padding-bottom: 80px;
}

.channel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.channel-heading h2 {
  margin-top: 6px;
  font-size: 30px;
}

.channel-heading > strong {
  color: #6b8494;
  font-size: 13px;
}

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

.channel-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e6ed;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(5, 47, 79, .08);
}

.channel-card-image {
  position: relative;
  height: 220px;
  background: #dfeef4;
}

.channel-card-image img,
.channel-article-image img {
  object-fit: cover;
}

.channel-card-placeholder {
  background: linear-gradient(135deg, #dcecf3, #b9dce8);
}

.channel-card > div:last-child {
  padding: 24px;
}

.channel-card time,
.channel-article time {
  color: #708796;
  font-size: 12px;
}

.channel-card h2 {
  margin: 9px 0;
  color: #062f50;
  font-size: 21px;
}

.channel-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 18px;
  color: #587080;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.channel-card a {
  color: #087aa0;
  font-size: 13px;
  font-weight: 800;
}

.channel-empty {
  padding: 72px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #b7ccd7;
  border-radius: 18px;
}

.channel-empty p {
  margin-top: 8px;
  color: #6b8494;
}

.channel-article {
  max-width: 920px;
  padding-top: 64px;
  padding-bottom: 90px;
}

.channel-article h1 {
  max-width: 780px;
  margin: 12px 0;
  color: #062f50;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
}

.channel-article-image {
  position: relative;
  height: min(56vw, 520px);
  margin: 34px 0;
  overflow: hidden;
  border-radius: 20px;
}

.channel-article-lead {
  color: #365a70;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.7;
}

.channel-article-body {
  margin-top: 26px;
  color: #3d5b6d;
  font-size: 17px;
  line-height: 1.85;
}

.channel-article-body p + p {
  margin-top: 18px;
}

.post-media-gallery {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid #d9e6ed;
}

.post-media-gallery h2 {
  margin-bottom: 22px;
  color: #062f50;
  font-size: 27px;
}

.post-media-gallery > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-media-gallery figure {
  position: relative;
  min-height: 290px;
  margin: 0;
  overflow: hidden;
  background: #dfeef4;
  border-radius: 14px;
}

.post-media-gallery figure.video {
  min-height: 0;
  grid-column: 1 / -1;
  background: #031f35;
}

.post-media-gallery img {
  object-fit: cover;
}

.post-media-gallery video {
  width: 100%;
  max-height: 620px;
  display: block;
  background: #031f35;
}

.post-media-gallery figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 9px 11px;
  color: white;
  background: rgba(3, 31, 53, .78);
  border-radius: 7px;
  font-size: 12px;
  backdrop-filter: blur(6px);
}

.post-media-editor {
  padding: 16px;
  background: #f5fafc;
  border: 1px solid #d9e6ed;
  border-radius: 12px;
}

.post-media-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-media-heading > div {
  display: grid;
  gap: 3px;
}

.post-media-heading strong {
  color: #123f5b;
  font-size: 13px;
}

.post-media-heading small,
.post-media-note {
  color: #708796;
  font-size: 10px;
}

.post-media-add {
  position: relative;
  padding: 10px 13px;
  color: white;
  background: #087aa0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.post-media-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.post-media-empty {
  margin: 16px 0;
  padding: 18px;
  color: #718896;
  text-align: center;
  border: 1px dashed #bfd2dc;
  border-radius: 9px;
  font-size: 11px;
}

.post-media-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.post-media-list article {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  background: white;
  border: 1px solid #d9e6ed;
  border-radius: 9px;
}

.post-media-list img,
.post-media-list video {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #052e4c;
}

.post-media-list input {
  min-width: 0;
  padding: 9px;
  border: 1px solid #c9dbe4;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
}

.post-media-list button {
  padding: 7px;
  color: #9b2d35;
  background: #fff1f1;
  border: 0;
  border-radius: 6px;
  font-size: 10px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .channel-card {
    display: grid;
    grid-template-columns: 180px 1fr;
  }

  .channel-card-image {
    height: 100%;
    min-height: 230px;
  }

  .post-media-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar-side {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-item {
    font-size: 10px;
    text-align: center;
  }

  .header-inner {
    height: 68px;
  }

  .school-mark {
    min-width: 0;
  }

  .school-logo-wrap {
    width: 50px;
    height: 46px;
  }

  .mark-shield {
    width: 38px;
    height: 42px;
  }

  .mark-shield span {
    font-size: 18px;
  }

  .school-mark strong {
    font-size: 12px;
  }

  .school-mark > div:last-child span {
    font-size: 9px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-image {
    background-position: 63% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(2, 34, 59, 0.95), rgba(3, 48, 80, 0.63)),
      linear-gradient(0deg, rgba(2, 30, 52, 0.75), transparent 70%);
  }

  .hero-content {
    align-items: flex-end;
    padding-top: 86px;
    padding-bottom: 92px;
  }

  .hero-slide-caption {
    top: 18px;
    bottom: auto;
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero-slide-caption strong {
    font-size: 12px;
  }

  .hero-slider-controls {
    right: 18px;
    bottom: 18px;
  }

  .hero-slider-dots {
    max-width: 44vw;
  }

  .hero-copy {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-tagline {
    width: 90%;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .identity-section {
    padding: 30px 0;
  }

  .identity-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .identity-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }

  .identity-logo-item {
    grid-template-columns: 52px 1fr;
  }

  .identity-logo-image {
    width: 52px;
    height: 52px;
  }

  .quick-intro {
    grid-column: auto;
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .quick-item {
    min-height: 96px;
    padding: 20px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 76px 0;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .principal-visual {
    width: calc(100% - 14px);
    max-width: 440px;
    padding-left: 12px;
  }

  .principal-frame {
    height: 500px;
  }

  .principal-caption {
    right: -14px;
    bottom: 22px;
  }

  .welcome-copy h2,
  .split-heading h2,
  .news-heading h2 {
    font-size: 2.35rem;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .profile-card {
    min-height: 0;
  }

  .profile-card p {
    min-height: 0;
  }

  .vision-note {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 24px;
  }

  .vision-note p {
    padding: 15px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .excellence-grid {
    grid-template-columns: 1fr;
  }

  .excellence-card {
    min-height: 255px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .service-card {
    min-height: 106px;
  }

  .news-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .news-image {
    height: 245px;
  }

  .news-body p {
    min-height: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.wide {
    grid-column: auto;
  }

  .ppdb-section {
    min-height: 590px;
  }

  .ppdb-art {
    background-position: 65% center;
  }

  .ppdb-overlay {
    background:
      linear-gradient(90deg, rgba(3, 38, 64, 0.94), rgba(4, 52, 85, 0.7)),
      linear-gradient(0deg, rgba(3, 38, 64, 0.65), transparent 60%);
  }

  .ppdb-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 28px;
    padding-top: 60px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px 0;
  }
}

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

/* Ikon identitas Menu Utama */
.main-menu-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #087aa0;
  background: #dff3fa;
  box-shadow: inset 0 0 0 1px rgba(8, 122, 160, .08);
}

.main-menu-icon svg {
  display: block;
}

.service-ribbon a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
}

.service-ribbon a .main-menu-icon {
  width: 25px;
  height: 25px;
  border-radius: 7px;
}

.service-ribbon a:hover .main-menu-icon,
.service-ribbon a:focus-visible .main-menu-icon {
  color: var(--navy);
  background: var(--gold);
}

.mobile-services a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mobile-services .main-menu-icon {
  width: 30px;
  height: 30px;
  background: white;
}

.icon-humas { color: #087aa0; background: #dff3fa; }
.icon-sarpras { color: #8a5b11; background: #fff0c9; }
.icon-tata-usaha { color: #6947a8; background: #eee6ff; }
.icon-bkk { color: #17613f; background: #ddf5e8; }
.icon-uks { color: #b33949; background: #ffe5e9; }
.icon-osis-mpk { color: #3f5fbd; background: #e3eaff; }
.icon-bk { color: #9a4e17; background: #ffeadb; }
.icon-adiwiyata { color: #287946; background: #def5df; }
.icon-tefa { color: #4f6170; background: #e4edf2; }
.icon-smk-pusat-keunggulan { color: #8b6200; background: #fff1bd; }
.icon-sekolah-model { color: #086e73; background: #dff5f4; }

.channel-hero .main-menu-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .34),
    0 12px 30px rgba(0, 0, 0, .14);
}

.channel-hero .main-menu-icon + span {
  display: block;
}

.post-comments {
  max-width: 820px;
  margin: 64px auto 0;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

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

.comments-heading span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.comments-heading h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(27px, 4vw, 38px);
}

.comments-heading > strong {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
}

.comment-form {
  position: relative;
  display: grid;
  gap: 15px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #d7e6ee;
  border-radius: 18px;
  background: #f6fafc;
}

.comment-form label {
  display: grid;
  gap: 7px;
  color: #294c61;
  font-size: 13px;
  font-weight: 750;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9dce6;
  border-radius: 10px;
  color: var(--navy);
  background: white;
  font: inherit;
}

.comment-form textarea {
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(12, 126, 175, .12);
}

.comment-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comment-form small {
  color: #6a7f8c;
}

.comment-form button {
  min-height: 43px;
  padding: 0 19px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.comment-form button:disabled {
  opacity: .6;
  cursor: wait;
}

.comment-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comment-message {
  margin: 0;
  color: #146341;
  font-size: 13px;
  font-weight: 700;
}

.comment-list {
  display: grid;
  gap: 14px;
  margin-top: 25px;
}

.comment-list > p {
  margin: 0;
  padding: 24px;
  border-radius: 14px;
  color: #647c8a;
  background: #f6fafc;
  text-align: center;
}

.comment-list > article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 19px;
  border: 1px solid #deeaef;
  border-radius: 14px;
}

.comment-list > article > div {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07446f;
  background: #dff2fa;
  font-weight: 850;
}

.comment-list article header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.comment-list article time {
  color: #7a8d98;
  font-size: 11px;
}

.comment-list article p {
  margin: 8px 0 0;
  color: #365365;
  line-height: 1.65;
}

.admin-comments {
  display: grid;
  gap: 12px;
}

.admin-comments > article {
  padding: 18px;
  border: 1px solid #dce7ed;
  border-radius: 12px;
  background: white;
}

.admin-comments article header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-comments article strong,
.admin-comments article small {
  display: block;
}

.admin-comments article small,
.admin-comments article time {
  margin-top: 4px;
  color: #778b98;
  font-size: 11px;
}

.admin-comments article p {
  margin: 13px 0;
  color: #3e596a;
  white-space: pre-wrap;
}

.admin-comments article button {
  padding: 8px 12px;
  border: 1px solid #f0b9be;
  border-radius: 8px;
  color: #a62e3a;
  background: #fff4f5;
  cursor: pointer;
}

.admin-comments-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 9px;
  color: #17613f;
  background: #e8f7ef;
}

@media (max-width: 700px) {
  .mobile-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-services a {
    min-width: 0;
    line-height: 1.3;
  }

  .channel-hero .main-menu-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .comment-form > div,
  .comment-list article header {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-form button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .mobile-services {
    grid-template-columns: 1fr;
  }
}

/* Penyesuaian build PHP Rumahweb */
body {
  overflow-x: hidden;
}

.school-mark > span:last-child {
  display: flex;
  flex-direction: column;
  letter-spacing: .02em;
}

.school-mark > span:last-child > span {
  margin-top: 2px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
}

.identity-logo-image img {
  width: 100%;
  height: 100%;
}

.hero-slide-caption:not(.active) {
  display: none;
}

.main-menu-icon.channel-icon {
  font-style: normal;
}

.program-grid {
  margin-bottom: 0;
}

/* Halaman kanal, postingan, pemasangan, dan admin tetap kompatibel. */
.header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.brand span {
  display: grid;
}

.brand b {
  color: var(--navy);
  font-size: 14px;
}

.brand small {
  color: var(--blue);
  letter-spacing: .14em;
}

.kicker {
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.channel-page-title {
  min-height: 70vh;
}

.channel-page-title > h1 {
  margin: 16px 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.posts article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.posts img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.posts article > div {
  padding: 22px;
}

.posts p {
  color: var(--muted);
  line-height: 1.6;
}

.posts a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 800;
}

.article {
  max-width: 900px;
  margin: auto;
  padding: clamp(45px, 7vw, 80px) 24px;
}

.article h1 {
  color: var(--navy);
  font-size: clamp(35px, 7vw, 64px);
  overflow-wrap: anywhere;
}

.cover {
  width: 100%;
  max-height: 540px;
  margin: 30px 0;
  border-radius: 18px;
  object-fit: cover;
}

.body {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.9;
}

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

.media figure {
  margin: 0;
}

.media img,
.media video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.media figcaption {
  padding: 10px;
  background: #fff;
}

.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.auth-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 6vw, 35px);
  border-radius: 18px;
  background: #fff;
}

.auth-card label,
.panel label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.auth-card input,
.panel input,
.panel textarea,
.panel select {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #bfd2dc;
  border-radius: 8px;
  font: inherit;
}

.auth-card button,
.panel button {
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.alert,
.success {
  padding: 12px;
  border-radius: 8px;
}

.alert {
  color: #8d2630;
  background: #fff0f0;
}

.success {
  color: #14623d;
  background: #eaf8f0;
}

.admin-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #f7fafc;
}

.admin-page > aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  color: #fff;
  background: var(--navy);
}

.admin-page > main {
  width: min(1000px, calc(100% - 40px));
  margin: 25px auto;
}

.panel {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.panel summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

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

.panel .form-heading {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding: 12px 0 8px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.panel textarea,
.panel .check,
.panel button {
  grid-column: 1 / -1;
}

.admin-posts {
  display: grid;
  gap: 8px;
}

.admin-posts article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-posts article > div {
  min-width: 0;
  display: grid;
}

.admin-posts b {
  overflow-wrap: anywhere;
}

.danger {
  background: #a52b34 !important;
}

@media (max-width: 900px) {
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header {
    min-height: 70px;
    padding: 0 14px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand b {
    font-size: 11px;
  }

  .brand small {
    font-size: 9px;
  }

  .posts,
  .media {
    grid-template-columns: 1fr;
  }

  .posts img {
    height: clamp(210px, 62vw, 320px);
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-page > aside {
    position: sticky;
    top: 0;
    z-index: 80;
    flex-direction: row;
    align-items: center;
    overflow: auto;
    padding: 14px 16px;
  }

  .admin-page > aside h2 {
    font-size: 15px;
    white-space: nowrap;
  }

  .admin-page > aside a {
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .admin-page > main {
    width: calc(100% - 22px);
    margin: 15px auto;
  }

  .panel {
    padding: 16px;
  }

  .panel form {
    grid-template-columns: 1fr;
  }

  .panel form > * {
    grid-column: 1;
  }

  .admin-posts article {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-posts form,
  .admin-posts button {
    width: 100%;
  }

  .article {
    padding-inline: 14px;
  }
}

/* Admin CMS */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f3f7fa;
  color: #173247;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  color: white;
  background:
    radial-gradient(circle at 0 0, rgba(30, 156, 216, 0.22), transparent 35%),
    #062f50;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.admin-brand > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #073c65;
  background: #f4c34f;
  font-weight: 850;
}

.admin-brand div,
.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-size: 16px;
}

.admin-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}

.admin-sidebar nav {
  display: grid;
  gap: 7px;
  padding: 25px 0;
}

.admin-sidebar nav button {
  width: 100%;
  display: block;
  padding: 13px 14px;
  border: 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar nav button:hover,
.admin-sidebar nav button.active {
  color: white;
  background: rgba(255, 255, 255, 0.11);
}

.admin-sidebar nav button.active {
  box-shadow: inset 3px 0 #f4c34f;
}

.admin-sidebar nav button strong,
.admin-sidebar nav button span {
  display: block;
}

.admin-sidebar nav button strong {
  font-size: 14px;
}

.admin-sidebar nav button span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.admin-user {
  margin-top: auto;
  padding: 17px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.admin-user span,
.admin-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user span {
  font-size: 13px;
  font-weight: 700;
}

.admin-user small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.admin-user a {
  display: inline-block;
  margin-top: 13px;
  color: #f4c34f;
  font-size: 12px;
  font-weight: 700;
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid #dbe7ee;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.admin-topbar > div:first-child > span {
  color: #6d8291;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 3px 0 0;
  color: #073c65;
  font-size: 25px;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-top-actions a,
.admin-top-actions button,
.admin-collection-title button,
.admin-item-head button,
.admin-danger-zone button {
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
}

.admin-top-actions a {
  padding: 11px 15px;
  border: 1px solid #cfdfe8;
  color: #315168;
  background: white;
  font-size: 12px;
}

.admin-top-actions .admin-save {
  padding: 12px 18px;
  color: #062f50;
  background: #f4c34f;
  box-shadow: 0 8px 20px rgba(219, 166, 42, 0.2);
  font-size: 12px;
}

.admin-top-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-notice {
  margin: 22px clamp(24px, 4vw, 56px) 0;
  padding: 13px 16px;
  border: 1px solid #b8dfcf;
  border-radius: 10px;
  color: #17613f;
  background: #effbf5;
  font-size: 13px;
}

.admin-notice.error {
  border-color: #f1c3c3;
  color: #9e2f2f;
  background: #fff5f5;
}

.admin-content {
  width: min(1120px, calc(100% - 48px));
  display: grid;
  gap: 22px;
  margin: 30px auto 70px;
}

.admin-section {
  padding: 26px;
  border: 1px solid #dbe7ee;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 32px rgba(5, 55, 89, 0.045);
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4edf2;
}

.admin-section-heading h2 {
  margin: 0;
  color: #073c65;
  font-size: 18px;
}

.admin-section-heading p {
  margin: 6px 0 0;
  color: #718694;
  font-size: 12px;
}

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

.admin-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.admin-field > span:first-child,
.admin-check span {
  color: #38566b;
  font-size: 11px;
  font-weight: 750;
}

.admin-field input:not([type="file"]),
.admin-field textarea,
.admin-field select {
  width: 100%;
  border: 1px solid #cfdfe8;
  border-radius: 9px;
  outline: 0;
  color: #173247;
  background: #fbfdfe;
  font: inherit;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.admin-field input:not([type="file"]),
.admin-field select {
  height: 43px;
  padding: 0 12px;
}

.admin-field textarea {
  min-height: 102px;
  padding: 11px 12px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: #1597d4;
  box-shadow: 0 0 0 3px rgba(21, 151, 212, 0.11);
}

.admin-field-wide,
.admin-collection {
  grid-column: 1 / -1;
}

.admin-check {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #d6e4eb;
  border-radius: 9px;
  background: #fbfdfe;
}

.admin-check input {
  width: 17px;
  height: 17px;
  accent-color: #1597d4;
}

.admin-upload-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px dashed #c4d8e3;
  border-radius: 9px;
  background: #f7fbfd;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.admin-upload-row:hover {
  border-color: #1597d4;
  background: #eef9fd;
}

.admin-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-image-preview {
  width: 82px;
  height: 62px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 7px;
  background: #e8f1f5;
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-upload-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #1597d4;
  background: #e5f5fb;
  font-size: 24px;
  font-weight: 500;
}

.admin-upload-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-upload-copy strong {
  color: #0872aa;
  font-size: 12px;
}

.admin-upload-copy small {
  color: #78909f;
  font-size: 10px;
}

.admin-collection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-collection-title strong {
  color: #25485f;
  font-size: 12px;
}

.admin-collection-title button {
  padding: 8px 12px;
  color: #0872aa;
  background: #eaf7fc;
  font-size: 11px;
}

.admin-collection-list {
  display: grid;
  gap: 12px;
}

.admin-item-card {
  padding: 16px;
  border: 1px solid #dce8ee;
  border-radius: 12px;
  background: #f9fcfd;
}

.admin-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.admin-item-head > span {
  color: #6b8292;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-item-head > div {
  display: flex;
  gap: 5px;
}

.admin-item-head button {
  min-width: 30px;
  min-height: 29px;
  padding: 0 8px;
  color: #4d6c7f;
  background: #e9f1f5;
  font-size: 11px;
}

.admin-item-head button.admin-delete {
  color: #a63d3d;
  background: #fff0f0;
}

.blog-manager {
  min-height: 560px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d9e6ed;
  border-radius: 14px;
  background: #f8fbfc;
}

.blog-post-list {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid #d9e6ed;
  background: white;
}

.blog-new-button {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 9px;
  color: #062f50;
  background: #f4c34f;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.blog-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 2px 10px;
}

.blog-list-heading strong {
  color: #24485f;
  font-size: 12px;
}

.blog-list-heading span {
  color: #8397a4;
  font-size: 10px;
}

.blog-list-items {
  display: grid;
  gap: 7px;
}

.blog-list-items > button {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.blog-list-items > button:hover,
.blog-list-items > button.active {
  border-color: #c8e1ed;
  background: #edf8fc;
}

.blog-list-items img,
.blog-thumb-empty {
  width: 52px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  object-fit: cover;
  color: #8aa0ae;
  background: #e8f0f4;
  font-size: 9px;
}

.blog-list-items > button > span:last-child {
  min-width: 0;
}

.blog-list-items strong,
.blog-list-items small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-list-items strong {
  color: #264b62;
  font-size: 11px;
}

.blog-list-items small {
  margin-top: 4px;
  color: #7b919f;
  font-size: 9px;
}

.blog-editor {
  min-width: 0;
  padding: 24px;
}

.blog-empty {
  min-height: 500px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #79909e;
  text-align: center;
}

.blog-empty > span {
  font-size: 40px;
}

.blog-empty h3 {
  margin: 14px 0 5px;
  color: #31566d;
  font-size: 17px;
}

.blog-empty p {
  margin: 0;
  font-size: 11px;
}

.blog-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dde8ee;
}

.blog-editor-head span {
  color: #1597d4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.blog-editor-head h3 {
  margin: 4px 0 0;
  color: #073c65;
  font-size: 18px;
}

.blog-editor-head button {
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  color: #a63d3d;
  background: #fff0f0;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
}

.blog-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #dde8ee;
}

.blog-editor-actions button {
  padding: 11px 15px;
  border: 1px solid #c8dbe5;
  border-radius: 9px;
  color: #31566d;
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
}

.blog-editor-actions button.publish {
  border-color: #f4c34f;
  color: #062f50;
  background: #f4c34f;
}

.admin-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px;
  border: 1px solid #f1caca;
  border-radius: 11px;
  background: #fff8f8;
}

.admin-danger-zone strong {
  color: #8e3232;
  font-size: 13px;
}

.admin-danger-zone p {
  margin: 4px 0 0;
  color: #8a6666;
  font-size: 11px;
}

.admin-danger-zone button {
  padding: 9px 13px;
  color: white;
  background: #b94747;
  font-size: 11px;
}

.admin-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(21, 151, 212, 0.18), transparent 28%),
    #062f50;
}

.admin-auth-card {
  width: min(520px, 100%);
  padding: 38px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.admin-kicker {
  color: #1597d4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.admin-auth-card h1 {
  margin: 12px 0;
  color: #073c65;
  font-size: 28px;
}

.admin-auth-card p {
  margin: 0 0 24px;
  color: #5c7386;
  line-height: 1.7;
}

.admin-primary-link {
  display: inline-flex;
  padding: 12px 17px;
  border-radius: 9px;
  color: #062f50;
  background: #f4c34f;
  font-size: 12px;
  font-weight: 760;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    padding: 18px;
  }

  .admin-brand {
    padding-bottom: 17px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    padding: 16px 0;
  }

  .admin-sidebar nav button span {
    display: none;
  }

  .admin-user {
    display: none;
  }

  .blog-manager {
    grid-template-columns: 1fr;
  }

  .blog-post-list {
    border-right: 0;
    border-bottom: 1px solid #d9e6ed;
  }

  .blog-list-items {
    max-height: 260px;
    overflow-y: auto;
  }

  .admin-topbar {
    top: 0;
    min-height: 78px;
  }
}

@media (max-width: 640px) {
  .channel-header .container {
    min-height: 72px;
  }

  .channel-brand strong {
    font-size: 12px;
  }

  .channel-brand img {
    width: 44px;
    height: 44px;
  }

  .channel-home-link {
    font-size: 12px;
  }

  .channel-hero {
    padding: 48px 0;
  }

  .channel-card {
    display: block;
  }

  .channel-card-image {
    height: 210px;
  }

  .post-media-gallery > div {
    grid-template-columns: 1fr;
  }

  .post-media-gallery figure,
  .post-media-gallery figure.video {
    grid-column: auto;
    min-height: 230px;
  }

  .post-media-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 18px;
  }

  .admin-top-actions {
    width: 100%;
  }

  .admin-top-actions a,
  .admin-top-actions button {
    flex: 1;
    text-align: center;
  }

  .admin-content {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .admin-notice {
    margin: 14px 12px 0;
  }

  .admin-section {
    padding: 18px;
  }

  .admin-fields,
  .admin-item-fields {
    grid-template-columns: 1fr;
  }

  .admin-field-wide,
  .admin-collection {
    grid-column: auto;
  }

  .admin-danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Responsive usability refinements */
img,
video,
iframe {
  max-width: 100%;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    border-top: 1px solid transparent;
    background: white;
    transition: grid-template-rows 220ms ease, border-color 220ms ease;
  }

  .mobile-menu.open {
    grid-template-rows: 1fr;
    border-color: var(--line);
  }

  .mobile-menu-inner {
    min-height: 0;
    max-height: min(72vh, 680px);
    overflow-y: auto;
  }

  .service-ribbon {
    display: none;
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-button {
    min-width: 46px;
    min-height: 46px;
  }

  .hero {
    min-height: clamp(540px, 70vh, 660px);
  }

  .hero-copy {
    width: min(760px, 78%);
  }

  .hero-seal {
    display: none;
  }

  .welcome-grid {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: clamp(36px, 6vw, 70px);
  }

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

  .gallery-item.wide {
    grid-column: span 1;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  .topbar {
    min-height: 38px;
  }

  .hero-copy {
    width: 100%;
  }

  .welcome-grid,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .principal-visual {
    width: min(100%, 480px);
    margin-inline: auto;
  }

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

  .ppdb-content {
    width: min(100%, 680px);
  }

  .channel-header .container {
    min-height: 72px;
  }

  .channel-article {
    padding-top: 44px;
  }

  .main-menu-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .main-menu-heading p {
    max-width: 620px;
    text-align: left;
  }

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

@media (max-width: 700px) {
  .school-mark > div:last-child {
    min-width: 0;
  }

  .school-mark strong,
  .school-mark > div:last-child span {
    white-space: nowrap;
  }

  .mobile-menu-inner > a,
  .mobile-program-menu summary {
    min-height: 48px;
  }

  .mobile-services a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    min-height: max(590px, 88svh);
  }

  .hero-content {
    padding-top: 78px;
    padding-bottom: 94px;
  }

  .hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-tagline {
    width: 100%;
  }

  .hero-slide-caption {
    top: 16px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .hero-slider-controls {
    right: 14px;
    bottom: 14px;
  }

  .hero-slider-controls > button {
    width: 44px;
    height: 44px;
  }

  .hero-slider-dots {
    max-width: calc(100vw - 132px);
  }

  .section {
    padding: 62px 0;
  }

  .profile-grid,
  .excellence-grid,
  .services-grid,
  .news-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .news-image {
    height: clamp(210px, 62vw, 320px);
  }

  .gallery-grid {
    grid-auto-rows: clamp(240px, 72vw, 340px);
  }

  .ppdb-section {
    min-height: 620px;
  }

  .button,
  .ppdb-actions a {
    min-height: 48px;
  }

  .main-menu-showcase {
    padding: 28px 0 32px;
  }

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

  .main-menu-card {
    min-height: 68px;
  }

  .channel-header .container {
    align-items: center;
    gap: 10px;
  }

  .channel-brand span {
    min-width: 0;
  }

  .channel-home-link {
    max-width: 42%;
    text-align: right;
    line-height: 1.35;
  }

  .channel-article h1 {
    overflow-wrap: anywhere;
  }

  .post-media-gallery figure {
    min-height: clamp(220px, 70vw, 360px);
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(6, minmax(116px, 1fr));
    scroll-snap-type: x proximity;
  }

  .admin-sidebar nav button {
    min-height: 48px;
    scroll-snap-align: start;
    text-align: center;
  }

  .admin-topbar {
    position: relative;
  }

  .admin-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-top-actions a,
  .admin-top-actions button {
    min-height: 46px;
    display: grid;
    place-items: center;
  }

  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .blog-manager {
    min-height: 0;
  }

  .blog-editor {
    padding: 18px;
  }

  .blog-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .blog-editor-actions button {
    min-height: 46px;
  }

  .post-media-list article {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .post-media-list img,
  .post-media-list video {
    width: 72px;
    height: 60px;
  }

  .post-media-list button {
    grid-column: 1 / -1;
    min-height: 40px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 22px);
  }

  .topbar {
    display: none;
  }

  .school-logo-wrap {
    width: 44px;
    height: 44px;
  }

  .school-mark strong {
    font-size: 10px;
  }

  .school-mark > div:last-child span {
    font-size: 8px;
    letter-spacing: .12em;
  }

  .hero {
    min-height: max(560px, 86svh);
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.3rem);
  }

  .hero-actions {
    gap: 9px;
  }

  .main-menu-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
  }

  .main-menu-card > svg {
    display: none;
  }

  .welcome-copy h2,
  .split-heading h2,
  .news-heading h2,
  .section-heading h2 {
    font-size: 2rem;
  }

  .principal-frame {
    height: 420px;
  }

  .channel-brand small {
    display: none;
  }

  .admin-sidebar {
    padding: 14px 12px;
  }

  .admin-brand {
    padding-bottom: 12px;
  }

  .admin-topbar {
    padding-inline: 12px;
  }

  .admin-content {
    width: calc(100% - 16px);
  }

  .admin-section {
    padding: 14px;
    border-radius: 12px;
  }

  .admin-top-actions {
    width: 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .button,
  .menu-button,
  .desktop-nav a,
  .service-ribbon a,
  .mobile-menu a,
  .admin-top-actions a,
  .admin-top-actions button,
  .blog-new-button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
