:root {
  --navy: #10264f;
  --navy-deep: #0a1936;
  --pink: #d95f89;
  --pink-light: #f8e9ef;
  --gold: #c79d4f;
  --ink: #29364b;
  --muted: #68758a;
  --paper: #f7f8fa;
  --white: #fff;
  --line: #e5e9ef;
  --shadow: 0 18px 50px rgba(16, 38, 79, 0.09);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}
body.dialog-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: white;
  color: var(--navy);
  padding: 10px 14px;
  z-index: 20;
}
.skip-link:focus {
  top: 8px;
}
.announcement {
  height: 34px;
  padding: 0 max(calc((100vw - 1240px) / 2), 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy-deep);
  color: #eaf0fa;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.announcement span:first-child {
  color: #f2cf88;
  font-weight: 700;
}
.site-header {
  height: auto;
  min-height: 84px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px max(calc((100vw - 1240px) / 2), 24px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(16, 38, 79, 0.06);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 240px;
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 50%;
}
.brand span {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}
.brand strong {
  font-size: 12px;
  letter-spacing: 0.045em;
}
.brand small {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.primary-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(10px, 1.4vw, 21px);
  flex-wrap: wrap;
}
.primary-nav a {
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: #344058;
  white-space: nowrap;
  transition: color 0.2s;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--pink);
}
.menu-toggle {
  display: none;
}
.hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: white;
}
.hero-image {
  position: absolute;
  inset: 0 0 0 35%;
  background-image:
    linear-gradient(
      90deg,
      #0a1936 2%,
      rgba(10, 25, 54, 0.82) 22%,
      rgba(10, 25, 54, 0.15) 100%
    ),
    url("pic.jpg");
  background-size: cover;
  background-position: center 35%;
  opacity: 0.9;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 25, 54, 0.48), transparent 75%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 66%);
  padding: 94px max(calc((100vw - 1240px) / 2), 24px);
}
.eyebrow {
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.17em;
  margin: 0 0 14px;
}
.hero .eyebrow {
  color: #efbbcf;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--navy);
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.17;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  color: #fff;
  max-width: 710px;
  margin: 0 0 8px;
}
.hero h1 span {
  color: #f2c4d5;
}
.hero-motto {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  color: #f2cf88;
  margin: 8px 0 12px;
}
.hero-copy {
  max-width: 510px;
  color: #e0e6f0;
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 29px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-pink {
  background: var(--pink);
  color: #fff;
}
.button-pink:hover {
  background: #bd456f;
}
.button-light {
  background: #fff;
  color: var(--navy);
}
.button-outline {
  border-color: #c9d1dd;
  color: var(--navy);
  background: transparent;
}
.button-outline:hover {
  background: var(--navy);
  color: white;
}
.button-navy {
  background: var(--navy);
  color: #fff;
}
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.hero-contact {
  color: #fff;
}
.hero-note {
  position: absolute;
  right: max(calc((100vw - 1240px) / 2), 24px);
  bottom: 35px;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 19px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.6;
  box-shadow: var(--shadow);
}
.note-mark {
  font-size: 24px;
  color: var(--pink);
}
.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: -1px auto 0;
  padding: 25px 20px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.intro-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding: 3px 20px;
}
.intro-strip > div:last-child {
  border: 0;
}
.strip-icon {
  font-size: 24px;
  color: var(--pink);
}
.intro-strip span:last-child {
  display: grid;
  line-height: 1.5;
}
.intro-strip small {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.intro-strip strong {
  font-size: 12px;
  color: var(--navy);
}
.section {
  padding: 100px max(calc((100vw - 1160px) / 2), 30px);
}
.about-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px 76px;
  align-items: center;
}
.section-image-wrap {
  position: relative;
}
.section-image-wrap > img {
  height: 420px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.image-caption {
  position: absolute;
  right: -17px;
  bottom: 22px;
  background: var(--navy);
  color: white;
  border-left: 4px solid var(--gold);
  padding: 14px 21px;
  display: grid;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.image-caption span {
  font-size: 10px;
  color: #dbe1eb;
}
.image-caption strong {
  font-size: 14px;
}
h2 {
  font-size: clamp(30px, 3.6vw, 43px);
  margin-bottom: 17px;
}
.section-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.values div {
  padding: 13px 14px;
  background: var(--paper);
  border-radius: 8px;
  display: grid;
  gap: 1px;
}
.values span {
  color: var(--pink);
  font-size: 10px;
  font-weight: 700;
}
.values strong {
  color: var(--navy);
  font-size: 13px;
}
.values small {
  color: var(--muted);
  font-size: 9px;
}
.about-details {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about-details article {
  border-top: 1px solid var(--line);
  padding: 20px 18px 0;
}
.detail-icon {
  color: var(--gold);
  font-size: 24px;
}
.about-details h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  margin: 8px 0;
}
.about-details p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.academics-section {
  background: var(--paper);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 35px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > p {
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 4px;
}
.section-heading.centered {
  display: block;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 43px;
}
.section-heading.centered > p:last-child {
  max-width: 550px;
  margin: 12px auto 0;
}
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.learning-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius);
  min-height: 225px;
  box-shadow: 0 9px 30px rgba(16, 38, 79, 0.04);
}
.learning-card.featured {
  background: var(--navy);
  color: white;
}
.learning-card.featured h3 {
  color: white;
}
.card-number {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--pink);
  font-size: 27px;
}
.learning-card h3 {
  font-size: 17px;
  margin: 9px 0;
}
.learning-card p {
  font-size: 12px;
  color: var(--muted);
  min-height: 60px;
}
.learning-card.featured p {
  color: #dce3ed;
}
.learning-card > span {
  display: block;
  padding-top: 12px;
  border-top: 1px solid rgba(110, 125, 148, 0.2);
  font-size: 10px;
  font-weight: 700;
  color: var(--pink);
}
.classes-panel,
.subjects-panel {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.classes-panel h3,
.subjects-panel h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  margin: 0 0 4px;
}
.classes-panel p:not(.eyebrow),
.subjects-panel p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
}
.class-list,
.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.class-pill {
  border: 1px solid #d9dfe8;
  background: white;
  color: var(--navy);
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
}
.subject-pill {
  padding: 9px 12px;
  background: #fff;
  border-left: 2px solid var(--pink);
  font-size: 11px;
  color: #39465b;
}
.admissions-section {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 65px;
  align-items: start;
}
.admissions-copy {
  position: sticky;
  top: 125px;
}
.admissions-copy > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.admissions-steps {
  display: grid;
  gap: 18px;
  margin: 30px 0;
}
.admissions-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.admissions-steps > div > span {
  flex: none;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pink-light);
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
}
.admissions-steps p {
  display: grid;
  line-height: 1.5;
  margin: 0;
}
.admissions-steps strong {
  font-size: 12px;
  color: var(--navy);
}
.admissions-steps small {
  font-size: 11px;
  color: var(--muted);
}
.privacy-note {
  font-size: 10px;
  color: #8791a0;
  line-height: 1.5;
}
.form-card,
.contact-form {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card h3,
.contact-form h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  margin: 0 0 5px;
}
.form-intro {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 19px;
}
.form-intro span {
  color: var(--pink);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid label,
.admin-inline-form label {
  display: grid;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #465269;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.admin-inline-form input,
.admin-inline-form textarea {
  width: 100%;
  border: 1px solid #dce1e8;
  border-radius: 5px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.admin-inline-form input:focus,
.admin-inline-form textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217, 95, 137, 0.13);
}
.form-grid textarea,
.admin-inline-form textarea {
  resize: vertical;
}
.full-field {
  grid-column: 1/-1;
}
.form-card > .button,
.contact-form > .button {
  margin-top: 18px;
}
.form-status {
  margin: 12px 0 0;
  color: #1b7045;
  font-size: 12px;
  font-weight: 600;
}
.form-status:empty {
  display: none;
}
.founders-section {
  background: #fbf9f8;
}
.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 390px));
  justify-content: center;
  gap: 25px;
}
.founder-card {
  display: grid;
  grid-template-columns: 135px 1fr;
  align-items: center;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(16, 38, 79, 0.06);
}
.founder-photo {
  height: 175px;
  display: grid;
  place-items: center;
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 38px;
  background: linear-gradient(145deg, #182f58, #51647c);
}
.founder-two {
  background: linear-gradient(145deg, #c76689, #f1c7d6);
}
.founder-info {
  padding: 22px;
}
.founder-info .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}
.founder-info h3 {
  font-size: 16px;
  margin: 0 0 9px;
}
.founder-info > p:last-child {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.placeholder-note {
  font-size: 10px;
  color: #8791a0;
  text-align: center;
  margin: 20px 0 0;
}
.school-life-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 50px;
  align-items: center;
}
.school-life-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.school-life-intro .button {
  margin-top: 14px;
}
.life-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.life-grid article {
  padding: 18px;
  background: var(--paper);
  border-radius: 10px;
}
.life-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  color: var(--pink);
  font-size: 17px;
}
.life-grid h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  margin: 10px 0 4px;
}
.life-grid p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.gallery-section {
  background: var(--paper);
}
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.filter-button {
  border: 1px solid #dce1e8;
  background: white;
  color: #526075;
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 10px;
  cursor: pointer;
}
.filter-button.active,
.filter-button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 250px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #dce1e8;
  cursor: pointer;
  text-align: left;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(5, 16, 36, 0.68));
}
.gallery-item span {
  position: absolute;
  z-index: 1;
  bottom: 15px;
  left: 17px;
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.gallery-item[hidden] {
  display: none;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.news-card > span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  font-weight: 700;
}
.news-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  margin: 12px 0;
}
.news-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.news-card time {
  font-size: 10px;
  color: var(--muted);
}
.news-card.empty-content {
  grid-column: 1/-1;
  background: var(--paper);
  text-align: center;
  border-style: dashed;
}
.calendar-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 55px;
  background: #fbf9f8;
}
.calendar-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.calendar-copy .placeholder-note {
  text-align: left;
}
.calendar-list {
  display: grid;
  align-content: start;
}
.calendar-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.calendar-entry time {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
}
.calendar-entry h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  margin: 0 0 3px;
}
.calendar-entry p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.calendar-empty {
  padding: 22px;
  border: 1px dashed #cdd4df;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  background: white;
}
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.contact-detail {
  display: flex;
  gap: 13px;
  margin: 22px 0;
}
.contact-detail > span {
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--pink);
}
.contact-detail p {
  display: grid;
  line-height: 1.55;
  margin: 0;
}
.contact-detail small {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.contact-detail strong,
.contact-detail a {
  font-size: 12px;
  text-decoration: none;
  color: var(--navy);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}
.contact-actions .button {
  padding: 9px 13px;
  min-height: 39px;
  font-size: 10px;
}
.opening-info {
  padding: 13px;
  background: var(--paper);
  font-size: 11px !important;
}
.contact-side {
  display: grid;
  gap: 16px;
}
.map-panel {
  min-height: 185px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  background-color: #eef1f4;
  background-image:
    linear-gradient(
      35deg,
      transparent 46%,
      rgba(16, 38, 79, 0.08) 47%,
      rgba(16, 38, 79, 0.08) 49%,
      transparent 50%
    ),
    linear-gradient(
      125deg,
      transparent 44%,
      rgba(217, 95, 137, 0.12) 45%,
      rgba(217, 95, 137, 0.12) 47%,
      transparent 48%
    );
  border-radius: 12px;
}
.map-pin {
  font-size: 28px;
  color: var(--pink);
}
.map-panel p {
  font-size: 11px;
  color: #536075;
  margin: 4px 0;
}
.map-panel p strong {
  color: var(--navy);
}
.map-panel > a {
  font-size: 10px;
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}
.contact-form {
  box-shadow: none;
  padding: 24px;
}
.contact-form h3 {
  font-size: 19px;
  margin-bottom: 15px;
}
.site-footer {
  background: var(--navy-deep);
  color: #e0e6ef;
}
.footer-main {
  max-width: 1160px;
  margin: auto;
  padding: 58px 30px 45px;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr 1.25fr;
  gap: 38px;
}
.footer-logo {
  color: white;
}
.footer-logo img {
  width: 48px;
  height: 48px;
}
.footer-logo strong {
  font-size: 10px;
}
.footer-logo small {
  color: #bbc5d5;
  font-size: 8px;
}
.footer-brand > p {
  max-width: 280px;
  margin: 15px 0;
  color: #c0cad9;
  font-size: 11px;
}
.footer-brand .footer-motto {
  color: #f0c5d5;
}
.footer-motto span {
  color: var(--gold);
}
.footer-main h3 {
  font-family: "DM Sans", sans-serif;
  color: white;
  font-size: 12px;
  margin: 0 0 13px;
}
.footer-main > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-main > div > a:not(.brand),
.footer-contact p,
.social-placeholder {
  font-size: 10px;
  color: #c0cad9;
  text-decoration: none;
  margin: 0 0 9px;
}
.footer-main > div > a:hover {
  color: #f0c5d5;
}
.footer-contact p {
  line-height: 1.6;
}
.social-placeholder {
  margin-top: 5px;
  font-style: italic;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 14px max(calc((100vw - 1160px) / 2), 30px);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #bec7d5;
}
.admin-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #e6c1ce;
  font-size: 9px;
  cursor: pointer;
  text-decoration: underline;
}
.lightbox,
.admin-dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 70px rgba(4, 12, 26, 0.35);
}
.lightbox {
  width: min(900px, 92vw);
  background: #0b1730;
  color: white;
}
.lightbox::backdrop,
.admin-dialog::backdrop {
  background: rgba(3, 10, 24, 0.72);
  backdrop-filter: blur(3px);
}
.lightbox img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.lightbox p {
  padding: 10px 18px;
  font-size: 12px;
  margin: 0;
}
.lightbox-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.admin-dialog {
  width: min(900px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 25px;
  background: white;
  color: var(--ink);
}
.admin-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.admin-header h2 {
  font-size: 30px;
  margin: 0;
}
.admin-close {
  position: static;
  flex: none;
  background: var(--paper);
}
.demo-warning {
  margin: 17px 0;
  padding: 13px 15px;
  border-left: 4px solid var(--gold);
  background: #fff7e7;
  color: #584a2c;
  font-size: 11px;
  line-height: 1.55;
}
.demo-warning strong {
  display: block;
}
.admin-tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 3px 0 14px;
  border-bottom: 1px solid var(--line);
}
.admin-tab {
  flex: none;
  border: 1px solid var(--line);
  background: white;
  color: #536075;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 10px;
  cursor: pointer;
}
.admin-tab.active {
  background: var(--navy);
  color: white;
}
.admin-panel {
  display: none;
  padding: 20px 0;
}
.admin-panel.active {
  display: block;
}
.admin-panel h3 {
  font-size: 16px;
  margin: 17px 0 10px;
}
.admin-panel h3:first-child {
  margin-top: 0;
}
.admin-inline-form {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 12px 0;
}
.admin-inline-form label {
  flex: 1;
}
.admin-inline-form .button {
  min-height: 40px;
}
.admin-chip-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}
.admin-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  background: var(--paper);
  border-radius: 30px;
  font-size: 10px;
}
.admin-chip button,
.record-delete {
  border: 0;
  background: none;
  color: #b64262;
  font-weight: 700;
  cursor: pointer;
}
.admin-help {
  color: var(--muted);
  font-size: 11px;
}
.admin-form {
  padding: 16px;
  background: var(--paper);
  border-radius: 10px;
}
.checkbox-label {
  display: flex !important;
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
}
.admin-records {
  display: grid;
  gap: 8px;
  margin: 17px 0;
}
.admin-record {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 11px;
}
.admin-record strong {
  display: block;
  color: var(--navy);
}
.admin-record small {
  color: var(--muted);
}
.admin-record img {
  width: 68px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
}
.record-main {
  display: flex;
  gap: 12px;
  align-items: center;
}
.record-delete {
  flex: none;
}
@media (max-width: 1100px) {
  .site-header {
    padding-left: 22px;
    padding-right: 22px;
  }
  .primary-nav {
    gap: 9px;
  }
  .primary-nav a {
    font-size: 10px;
  }
  .brand {
    min-width: 205px;
  }
  .brand img {
    width: 48px;
    height: 48px;
  }
  .brand strong {
    font-size: 10px;
  }
  .hero-content {
    width: 75%;
  }
  .intro-strip {
    margin-left: 15px;
    margin-right: 15px;
  }
  .intro-strip > div {
    padding: 3px 10px;
  }
}
@media (max-width: 800px) {
  html {
    scroll-padding-top: 75px;
  }
  .announcement {
    padding: 0 18px;
    font-size: 9px;
  }
  .announcement span:last-child {
    text-align: right;
  }
  .site-header {
    min-height: 72px;
    padding: 8px 19px;
  }
  .brand {
    min-width: 0;
  }
  .brand img {
    width: 48px;
    height: 48px;
  }
  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--navy);
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 90px);
    overflow: auto;
    padding: 13px 20px 18px;
    background: white;
    box-shadow: 0 15px 20px rgba(16, 38, 79, 0.1);
    align-items: stretch;
    gap: 0;
  }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
  }
  .primary-nav a {
    padding: 9px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .hero {
    min-height: 550px;
  }
  .hero-image {
    inset: 0;
    background-image:
      linear-gradient(90deg, rgba(10, 25, 54, 0.94), rgba(10, 25, 54, 0.43)),
      url("pic.jpg");
    background-position: center;
  }
  .hero-content {
    width: 100%;
    padding: 78px 26px;
  }
  .hero h1 {
    font-size: clamp(39px, 8vw, 60px);
  }
  .hero-note {
    right: 20px;
    bottom: 18px;
  }
  .intro-strip {
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 16px 10px;
    gap: 4px;
  }
  .intro-strip > div {
    border: 0;
    padding: 9px 12px;
  }
  .section {
    padding: 75px 26px;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .section-image-wrap {
    max-width: 560px;
  }
  .section-image-wrap > img {
    height: 360px;
  }
  .about-details {
    grid-template-columns: repeat(3, 1fr);
  }
  .admissions-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .admissions-copy {
    position: static;
  }
  .school-life-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .calendar-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    padding: 45px 26px;
    gap: 32px;
  }
  .gallery-grid {
    grid-auto-rows: 220px;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 14px;
  }
  .announcement {
    height: auto;
    min-height: 34px;
    gap: 8px;
  }
  .announcement span:first-child {
    white-space: nowrap;
  }
  .announcement span:last-child {
    font-size: 8px;
  }
  .brand strong {
    font-size: 9px;
  }
  .brand small {
    font-size: 7px;
  }
  .hero {
    min-height: 590px;
  }
  .hero-content {
    padding: 72px 22px 110px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-copy {
    font-size: 14px;
  }
  .hero-motto {
    font-size: 21px;
  }
  .hero-actions {
    gap: 9px;
  }
  .hero-actions .button {
    padding: 10px 13px;
    font-size: 10px;
  }
  .hero-contact {
    width: 100%;
    margin-top: 4px;
  }
  .hero-note {
    left: 22px;
    right: auto;
    bottom: 17px;
  }
  .intro-strip {
    grid-template-columns: 1fr 1fr;
  }
  .intro-strip > div {
    gap: 8px;
    padding: 9px 5px;
  }
  .strip-icon {
    font-size: 20px;
  }
  .intro-strip strong {
    font-size: 10px;
  }
  .intro-strip small {
    font-size: 8px;
  }
  .section {
    padding: 62px 20px;
  }
  h2 {
    font-size: 32px;
  }
  .section-image-wrap > img {
    height: 280px;
  }
  .image-caption {
    right: -7px;
  }
  .about-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-details article {
    padding: 13px 3px 0;
  }
  .values {
    gap: 7px;
  }
  .values div {
    padding: 10px 8px;
  }
  .values small {
    font-size: 8px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 13px;
  }
  .learning-grid {
    grid-template-columns: 1fr;
  }
  .learning-card {
    min-height: 0;
  }
  .learning-card p {
    min-height: 0;
  }
  .classes-panel,
  .subjects-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 25px 0;
  }
  .form-card {
    padding: 21px 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .full-field {
    grid-column: auto;
  }
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .founder-card {
    grid-template-columns: 110px 1fr;
  }
  .founder-photo {
    height: 155px;
  }
  .founder-info {
    padding: 15px;
  }
  .founder-info h3 {
    font-size: 14px;
  }
  .life-grid {
    gap: 8px;
  }
  .life-grid article {
    padding: 13px;
  }
  .life-grid h3 {
    font-size: 11px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 170px;
    gap: 9px;
  }
  .gallery-large {
    grid-column: 1/-1;
  }
  .gallery-filters {
    gap: 6px;
  }
  .filter-button {
    padding: 7px 10px;
    font-size: 9px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card.empty-content {
    grid-column: auto;
  }
  .calendar-entry {
    grid-template-columns: 75px 1fr;
    gap: 12px;
  }
  .contact-actions {
    gap: 6px;
  }
  .contact-actions .button {
    font-size: 9px;
    padding: 8px;
  }
  .contact-form {
    padding: 19px 16px;
  }
  .footer-main {
    padding: 39px 20px;
    gap: 25px 18px;
  }
  .footer-bottom {
    padding: 14px 20px;
    flex-wrap: wrap;
  }
  .admin-dialog {
    padding: 18px 14px;
  }
  .admin-header h2 {
    font-size: 24px;
  }
  .admin-inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-inline-form .button {
    align-self: flex-start;
  }
  .admin-record {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
