:root {
  --font-main: Aptos, "Aptos Display", "Segoe UI", Arial, Helvetica, sans-serif;
  --navy: #071d3b;
  --navy-2: #0e315f;
  --gold: #d7a247;
  --gold-2: #f0c66b;
  --ink: #162235;
  --muted: #667085;
  --line: #e7edf4;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(7, 29, 59, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.6;
  background: var(--paper);
}

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

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

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

.topbar {
  background: #041326;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(4, 19, 38, 0.08);
}

.nav {
  background: var(--paper);
}

.nav-inner {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 560px;
}

.brand img {
  width: 540px;
  height: auto;
  max-height: 116px;
  object-fit: contain;
}

.brand span {
  display: none;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 27px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu a,
.dropdown-toggle {
  position: relative;
  padding: 31px 0;
}

.menu a::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.menu a:hover::after {
  transform: scaleX(1);
}

.dropdown {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 220px;
  display: grid;
  gap: 0;
  padding: 6px 0;
  background: var(--paper);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown:hover .submenu,
.dropdown:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.submenu a {
  padding: 8px 16px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}

.submenu a::after {
  display: none;
}

.submenu a:hover,
.submenu a.active {
  background: var(--soft);
  color: var(--navy-2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  min-height: 680px;
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}

.announcement {
  overflow: hidden;
  background: var(--gold);
  color: #16120a;
  border-top: 1px solid rgba(7, 29, 59, 0.08);
  border-bottom: 1px solid rgba(7, 29, 59, 0.1);
}

.announcement-track {
  display: flex;
  width: max-content;
  animation: announcement-scroll 28s linear infinite;
}

.announcement-track span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 44px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

@keyframes announcement-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-slide {
  min-height: 680px;
  display: flex;
  align-items: stretch;
  background-image: linear-gradient(90deg, rgba(4, 19, 38, 0.9), rgba(7, 29, 59, 0.66), rgba(7, 29, 59, 0.24)), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 44px;
  padding: 90px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.section h2,
.footer h2 {
  margin: 14px 0 18px;
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: none;
  font-size: clamp(44px, 4.2vw, 58px);
  white-space: nowrap;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.btn.primary {
  background: var(--gold);
  color: #16120a;
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  color: white;
}

.hero-card {
  align-self: end;
  transform: translateY(48px);
  background: var(--paper);
  color: var(--ink);
  padding: 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(7, 29, 59, 0.22), 0 0 0 0 rgba(215, 162, 71, 0.5);
  border-top: 5px solid var(--gold);
  animation: enquiry-glow 2.8s ease-in-out infinite;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(215, 162, 71, 0.16) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: enquiry-shine 4.2s ease-in-out infinite;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-card strong {
  display: block;
  margin: 10px 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.2;
}

.hero-card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.hero-card a {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--navy);
  color: white;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 10px 24px rgba(7, 29, 59, 0.16);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
}

@keyframes enquiry-glow {
  0%,
  100% {
    box-shadow: 0 24px 70px rgba(7, 29, 59, 0.22), 0 0 0 0 rgba(215, 162, 71, 0.48);
  }
  50% {
    box-shadow: 0 28px 80px rgba(7, 29, 59, 0.28), 0 0 0 10px rgba(215, 162, 71, 0);
  }
}

@keyframes enquiry-shine {
  0%,
  45% {
    transform: translateX(-100%);
  }
  70%,
  100% {
    transform: translateX(100%);
  }
}

.quick-links {
  position: relative;
  z-index: 2;
  margin-top: -70px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.quick-item {
  min-height: 190px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.quick-item:nth-child(1) {
  background: linear-gradient(135deg, #e5f4ff 0%, #e8f8ef 52%, #fff7c6 100%);
}

.quick-item:nth-child(2) {
  background: linear-gradient(135deg, #75bdf3 0%, #79d28a 52%, #f0d84f 100%);
}

.quick-item:nth-child(3) {
  background: linear-gradient(135deg, #0e5f9e 0%, #128346 52%, #b99a00 100%);
}

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

.quick-item .icon {
  display: block;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 16px;
}

.quick-item strong {
  display: block;
  color: var(--navy);
  font-size: 25px;
  margin-bottom: 8px;
}

.quick-item p {
  margin: 0;
  color: var(--muted);
}

.quick-item:nth-child(3) strong,
.quick-item:nth-child(3) p {
  color: white;
}

.section {
  padding: 105px 0;
}

.split,
.admission-grid,
.news-grid,
.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
  align-items: center;
}

.section h2 {
  color: var(--navy);
  font-size: 38px;
}

.section-copy p,
.admission p,
.values p {
  color: var(--muted);
  font-size: 17px;
}

.principal-panel,
.payment-box,
.events-panel {
  background: var(--navy);
  color: white;
  padding: 42px;
  box-shadow: var(--shadow);
}

.principal-panel h3,
.payment-box h3,
.events-panel h3 {
  margin: 0 0 18px;
  font-size: 26px;
}

blockquote {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.principal-panel p {
  margin: 0;
  color: var(--gold-2);
  font-weight: 800;
}

.feature-band,
.news {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

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

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

.feature-grid article {
  background: var(--paper);
  padding: 32px;
  border: 1px solid var(--line);
  min-height: 250px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(7, 29, 59, 0.1);
}

.feature-grid img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 22px;
}

.feature-grid h3,
.news-list h3 {
  color: var(--navy);
  margin: 0 0 10px;
  font-size: 19px;
}

.feature-grid p,
.news-list p,
.payment-box p {
  color: var(--muted);
  margin: 0;
}

.admission {
  background: linear-gradient(90deg, rgba(7, 29, 59, 0.94), rgba(7, 29, 59, 0.78)), url("assets/images/hero/kindergarten.jpg") center/cover;
  color: white;
}

.admission h2 {
  color: white;
}

.admission p {
  color: rgba(255, 255, 255, 0.82);
}

.payment-box {
  background: var(--paper);
  color: var(--ink);
  border-top: 5px solid var(--gold);
}

.payment-box h3 {
  color: var(--navy);
}

.payment-box p {
  color: #334155;
  font-weight: 600;
}

.payment-box dl {
  margin: 26px 0 0;
}

.payment-box div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.payment-box dt {
  font-weight: 800;
  color: var(--navy);
}

.payment-box dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.news-grid {
  align-items: start;
}

.news-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.news-list article {
  background: var(--paper);
  padding: 26px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 12px 28px rgba(7, 29, 59, 0.07);
}

.news-list time {
  display: block;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
}

.events-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.events-panel li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

.events-panel span {
  color: var(--gold-2);
  font-weight: 800;
}

.gallery-groups {
  display: grid;
  gap: 42px;
}

.photo-group {
  min-width: 0;
}

.group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.group-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.group-heading span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-shell {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
}

.gallery-grid {
  --gallery-gap: 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gallery-gap) * 3)) / 4);
  gap: var(--gallery-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-grid.is-loading::before {
  content: "Loading photos...";
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.gallery-empty {
  min-height: 140px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.gallery-upload-link {
  display: inline-flex;
  margin-top: 10px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  border-bottom: 3px solid var(--gold);
}

.upload-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--soft);
}

.upload-panel {
  width: min(720px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 36px;
}

.upload-panel h1 {
  margin: 12px 0;
  color: var(--navy);
  font-size: 34px;
}

.upload-panel h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 26px;
}

.upload-panel p {
  color: var(--muted);
}

.upload-back {
  color: var(--navy-2);
  font-weight: 800;
}

.upload-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.upload-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.upload-form input,
.upload-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font: inherit;
}

.upload-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.upload-divider {
  height: 1px;
  margin: 34px 0;
  background: var(--line);
}

.btn.danger {
  background: #b42318;
  color: white;
}

.gallery-scroll {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 29, 59, 0.08);
}

.gallery-scroll:hover {
  background: var(--navy);
  color: white;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0b1830;
  cursor: zoom-in;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(7, 29, 59, 0.12);
}

.gallery-item::after {
  content: "View Photo";
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  background: rgba(7, 29, 59, 0.86);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  opacity: 0.72;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(2, 9, 20, 0.92);
}

.lightbox.open {
  display: flex;
}

.lightbox figure {
  width: min(1100px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #07111f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: white;
}

.lightbox-group {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-caption {
  text-align: right;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.values {
  background: var(--navy);
  color: white;
}

.values h2 {
  color: white;
}

.values p {
  color: rgba(255, 255, 255, 0.82);
}

.footer {
  background: #041326;
  color: rgba(255, 255, 255, 0.74);
  padding: 70px 0 26px;
}

.page-hero {
  min-height: 380px;
  display: flex;
  align-items: end;
  color: white;
  background-image: linear-gradient(90deg, rgba(4, 19, 38, 0.86), rgba(7, 29, 59, 0.56)), var(--page-image);
  background-position: center;
  background-size: cover;
}

.contact-hero {
  --page-image: url("assets/images/pages/our-school.jpg");
}

.page-hero-inner {
  padding: 88px 0 74px;
}

.page-hero h1 {
  margin: 14px 0 12px;
  max-width: 850px;
  font-size: 46px;
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

.page-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.page-sidebar {
  position: sticky;
  top: 150px;
  display: grid;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(7, 29, 59, 0.08);
}

.page-sidebar a {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
}

.page-sidebar a:last-child {
  border-bottom: 0;
}

.page-sidebar a.active,
.page-sidebar a:hover {
  background: var(--navy);
  color: white;
}

.page-content {
  display: grid;
  gap: 24px;
}

.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 34px;
  box-shadow: 0 16px 34px rgba(7, 29, 59, 0.08);
}

.content-card h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.15;
}

.content-card h3 {
  margin: 26px 0 10px;
  color: var(--navy-2);
  font-size: 19px;
}

.content-card p,
.content-card li {
  color: #475467;
  font-size: 16px;
}

.content-card p {
  margin: 0 0 16px;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
}

.section-copy p,
.principal-panel blockquote,
.news-list p,
.feature-grid p,
.quick-item p,
.payment-box p,
.values p,
.footer p {
  text-align: justify;
  text-justify: inter-word;
}

.content-card ul,
.content-card ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

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

.person-card,
.bank-card {
  padding: 22px;
  background: var(--soft);
  border-left: 4px solid var(--gold);
}

.person-photo {
  width: 138px;
  height: 138px;
  margin: 0 0 18px;
  object-fit: cover;
  object-position: center;
  border: 5px solid white;
  box-shadow: 0 14px 30px rgba(7, 29, 59, 0.14);
}

.person-card strong,
.bank-card strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.person-card span,
.bank-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.contact-page {
  background: var(--soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card,
.map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(7, 29, 59, 0.08);
}

.contact-card {
  padding: 34px;
}

.contact-card h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 28px;
}

.contact-card p {
  margin: 0 0 18px;
  color: #475467;
  text-align: justify;
}

.contact-card a {
  color: var(--navy-2);
  font-weight: 800;
}

.map-card {
  min-height: 460px;
  overflow: hidden;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 48px;
}

.footer h2,
.footer h3 {
  color: white;
  margin-top: 0;
}

.footer h2 {
  font-size: 28px;
  white-space: nowrap;
}

.footer a {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 44px;
  padding-top: 22px;
  font-size: 14px;
}

@media (max-width: 960px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  .nav-inner {
    min-height: 104px;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 118px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .dropdown,
  .dropdown-toggle,
  .submenu {
    position: static;
  }

  .submenu {
    width: auto;
    display: grid;
    padding: 0;
    border-top: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: #f8fafc;
  }

  .submenu a {
    padding-left: 34px;
    white-space: normal;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }

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

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

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

  .page-sidebar {
    position: static;
  }

  .page-hero h1 {
    font-size: 38px;
  }

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

  .hero,
  .hero-slide {
    min-height: auto;
  }

  .hero-grid,
  .split,
  .admission-grid,
  .news-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-grid {
    padding: 74px 0 120px;
  }

  .hero h1 {
    font-size: 42px;
    white-space: normal;
  }

  .hero-card {
    transform: none;
  }

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

  .footer h2 {
    white-space: normal;
  }

  .quick-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-grid {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(340px, 72vw);
    height: auto;
    max-height: 88px;
  }

  .brand strong {
    font-size: 18px;
  }

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

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-card,
  .principal-panel,
  .payment-box,
  .events-panel {
    padding: 28px;
  }

  .section {
    padding: 78px 0;
  }

  .section h2 {
    font-size: 30px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .content-card {
    padding: 26px;
  }

  .gallery-grid {
    grid-auto-columns: 100%;
  }

  .gallery-shell {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .gallery-scroll {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .group-heading,
  .lightbox figcaption {
    align-items: start;
    flex-direction: column;
  }

  .lightbox-caption {
    text-align: left;
  }

  .payment-box div,
  .events-panel li {
    grid-template-columns: 1fr;
    display: grid;
  }

  .payment-box dd {
    text-align: left;
  }
}
