:root {
  --ink: var(--school-dark, #263746);
  --muted: #5f7180;
  --green: var(--school-navy, #173b65);
  --dark: var(--school-navy, #173b65);
  --navy: var(--school-navy, #173b65);
  --blue: var(--school-blue, #3989d8);
  --fresh-green: var(--school-green, #48a77a);
  --coral: var(--school-coral, #f47e68);
  --gold: var(--sunshine, #ffc947);
  --sunshine: #ffc947;
  --cream: #fff9ef;
  --mint: #eef6ff;
  --peach: #fff0e9;
  --line: #dfe8ee;
  --radius: 26px;
  --shadow: 0 20px 55px rgb(23 59 101 / 10%);
  --font-head: "Nunito", "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}
body {
  color: var(--ink);
  background: #fff;
  font: 400 16px/1.7 var(--font-body);
  overflow-x: clip;
}
body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}
h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.55rem);
  line-height: 1.04;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.12;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}
p {
  color: var(--muted);
}
.wrap {
  width: min(1180px, calc(100% - 56px));
}
.section-pad {
  padding: clamp(74px, 8vw, 112px) 0;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* School header and mobile navigation */
.topbar {
  color: #eaf3fb;
  background: var(--navy);
  font-size: 0.79rem;
}
.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.6vw, 34px);
}
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f3f7fb;
}
.topbar-contact i {
  color: var(--gold);
}
.topbar-contact a:hover {
  color: var(--gold);
}
.topbar-social {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.topbar-social-link {
  display: inline-flex;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}
.topbar-social-link::before,
.topbar-social-link::after {
  display: none !important;
  content: none !important;
}
.topbar-social-link > i.fa-brands {
  display: inline-block;
  width: 1em;
  color: inherit;
  font-family: "Font Awesome 7 Brands" !important;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}
.topbar .topbar-social-link:hover,
.topbar .topbar-social-link:focus-visible {
  color: var(--navy) !important;
  background: var(--gold);
}
.topbar .topbar-social-link:hover > i.fa-brands,
.topbar .topbar-social-link:focus-visible > i.fa-brands {
  color: var(--navy) !important;
}
.announcement-message {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}
.announcement-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(255 201 71 / 17%);
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 800;
}
.topbar a:hover {
  color: var(--gold);
}
.topbar-portal-icon {
  color: var(--gold);
  font-size: 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid rgb(23 59 101 / 8%);
  box-shadow: 0 7px 25px rgb(23 59 101 / 5%);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 84px;
  gap: 28px;
}
.brand {
  gap: 13px;
  min-width: 0;
}
.brand-logo-image {
  width: var(--header-logo-width, 72px);
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.brand-text strong {
  max-width: 230px;
  color: var(--navy);
  font: 800 1rem/1.22 var(--font-head);
}
.brand-text small {
  max-width: 240px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}
.primary-nav {
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  gap: clamp(13px, 1.7vw, 25px);
  margin: 0;
  font-size: 0.87rem;
  font-weight: 700;
}
.primary-nav ul {
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.55vw, 23px);
}
.primary-nav li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #34495d;
  white-space: nowrap;
}
.primary-nav li a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav li a:hover,
.primary-nav .current-menu-item > a {
  color: var(--blue);
}
.primary-nav li a:hover::after,
.primary-nav .current-menu-item > a::after {
  transform: scaleX(1);
}
.header-cta {
  flex: 0 0 auto;
}
.header-mobile-actions {
  display: none;
}
.mobile-header-portal {
  display: none !important;
}
.primary-nav > ul > li {
  position: relative;
}
.primary-nav > ul > li.menu-item-has-children > a {
  padding-right: 17px;
}
.primary-nav > ul > li.menu-item-has-children > a::before {
  position: absolute;
  top: 16px;
  right: 2px;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.primary-nav > ul > li.menu-item-has-children:hover > a::before,
.primary-nav > ul > li.menu-item-has-children:focus-within > a::before {
  transform: translateY(2px) rotate(45deg);
}
.primary-nav > ul > li > .sub-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 60;
  display: grid;
  min-width: 225px;
  align-items: stretch;
  justify-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid #e6edf2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 16px 36px rgb(23 59 101 / 13%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}
.primary-nav > ul > li:hover > .sub-menu,
.primary-nav > ul > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu li {
  display: block;
  width: 100%;
}
.primary-nav .sub-menu li a {
  display: flex;
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 9px 12px;
  border-radius: 9px;
  text-align: left;
}
.primary-nav .sub-menu li a::after {
  display: none;
}
.primary-nav .sub-menu li a:hover {
  background: #f0f6fb;
}
.nav-toggle {
  display: none;
  color: var(--navy);
}
.submenu-toggle {
  display: none;
}
.button {
  min-height: 48px;
  padding: 13px 21px;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 7px 15px rgb(23 59 101 / 14%);
  color: #fff;
  font: 800 0.92rem/1.2 var(--font-head);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}
.button:not(.button-light):visited {
  color: #fff;
}
.button:hover {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 11px 22px rgb(23 59 101 / 18%);
  transform: translateY(-2px);
}
.button-portal-nav,
.button-portal-nav:visited {
  color: #fff !important;
  background: var(--fresh-green);
  text-decoration: none;
}
.button-portal-nav:hover,
.button-portal-nav:focus-visible {
  color: #fff !important;
  background: var(--navy);
}
.button-small {
  min-height: 43px;
  padding: 11px 17px;
  white-space: nowrap;
}
.button-light,
.button-light:visited {
  color: var(--navy);
  background: #fff;
  box-shadow: none;
}
.button-light:hover {
  color: var(--navy);
  background: var(--gold);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  border-bottom: 2px solid rgb(57 137 216 / 35%);
  padding-bottom: 3px;
  font-weight: 800;
}
.text-link span {
  transition: transform 0.2s ease;
}
.text-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.text-link:hover span {
  transform: translateX(4px);
}
.eyebrow {
  color: var(--blue);
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 900;
}
.eyebrow-dot {
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--coral);
}

/* Home hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(55px, 6vw, 82px) 0 27px;
  background:
    radial-gradient(
      circle at 89% 15%,
      rgb(255 201 71 / 19%) 0 8px,
      transparent 9px
    ),
    radial-gradient(
      circle at 8% 86%,
      rgb(72 167 122 / 10%) 0 90px,
      transparent 91px
    ),
    var(--cream);
}
.hero::before {
  position: absolute;
  top: 54px;
  right: 47%;
  width: 118px;
  height: 70px;
  content: "";
  opacity: 0.45;
  background-image: radial-gradient(var(--blue) 1.4px, transparent 1.6px);
  background-size: 12px 12px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(40px, 6vw, 82px);
  min-height: 500px;
}
.hero-copy {
  padding: 10px 0 26px;
}
.hero h1 {
  position: relative;
  max-width: 650px;
  padding-bottom: 13px;
  margin: 0;
}
.hero h1::after {
  position: absolute;
  bottom: 0;
  left: 3px;
  width: 112px;
  height: 7px;
  border-radius: 99px;
  content: "";
  background: var(--gold);
  transform: rotate(-2deg);
}
.hero-copy .lead {
  max-width: 570px;
  margin: 25px 0 28px;
  color: #506779;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.8;
}
.hero-actions {
  flex-wrap: wrap;
  gap: 18px 24px;
}
.hero-actions .button {
  min-height: 54px;
}
.hero-note {
  margin-top: 28px;
  color: #526778;
  font-size: 0.88rem;
  font-weight: 700;
}
.note-icon {
  width: 39px;
  height: 39px;
  color: var(--navy);
  background: #fff0c9;
}
.note-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--coral);
}
.hero-visual {
  padding: 13px 15px 28px 25px;
}
.hero-visual::before {
  position: absolute;
  z-index: -1;
  right: -5px;
  bottom: 4px;
  width: 145px;
  height: 112px;
  border-radius: 38px 38px 45px 16px;
  content: "";
  background: var(--blue);
  transform: rotate(7deg);
}
.hero-visual::after {
  position: absolute;
  top: 4px;
  left: -8px;
  width: 68px;
  height: 68px;
  border: 9px solid var(--gold);
  border-radius: 50%;
  content: "";
}
.hero-image-frame {
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 34% 26% 26px 31%;
  background: #dcecf8;
  box-shadow: 0 22px 45px rgb(23 59 101 / 15%);
  transform: rotate(1deg);
}
.hero-image-frame img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-sticker {
  bottom: 23px;
  left: -2px;
  z-index: 2;
  border: 1px solid #f4e8d1;
  border-radius: 16px;
  padding: 11px 17px 11px 11px;
  color: var(--navy);
  box-shadow: 0 12px 30px rgb(23 59 101 / 14%);
  font-size: 0.9rem;
}
.hero-sticker .sticker-sun {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #fff0c9;
}
.sticker-sun svg {
  width: 23px;
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-width: 1.8;
}
.hero-bottom {
  gap: 11px;
  margin-top: 13px;
  color: #668096;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-line {
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
}

/* Welcome and learning programmes */
.welcome {
  background: #fff;
}
.welcome-grid,
.environment-grid {
  grid-template-columns: 1fr 1fr;
  gap: clamp(45px, 8vw, 104px);
}
.welcome-visual {
  padding: 0 15px 18px 0;
}
.welcome-visual::before {
  position: absolute;
  z-index: -1;
  top: -17px;
  left: -18px;
  width: 115px;
  height: 115px;
  border: 2px dashed var(--coral);
  border-radius: 50%;
  content: "";
}
.welcome-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  object-position: center;
  border: 7px solid #fff;
  border-radius: 26px 72px 28px 28px;
  box-shadow: var(--shadow);
}
.welcome-caption {
  bottom: 0;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 7px 22px rgb(23 59 101 / 10%);
  font-size: 0.8rem;
}
.welcome-caption svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-width: 1.8;
}
.welcome-copy h2,
.environment-copy h2 {
  max-width: 570px;
  margin: 0 0 17px;
}
.welcome-copy > p,
.environment-copy > p {
  max-width: 550px;
  margin: 0 0 25px;
  font-size: 1rem;
  line-height: 1.82;
}
.signature {
  margin-top: 29px;
}
.signature-flower {
  width: 45px;
  height: 45px;
  color: var(--navy);
  background: #e5f4ec;
  font-size: 18px;
}
.signature-flower svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.signature strong {
  color: var(--navy);
  font: 800 0.83rem var(--font-head);
}
.programmes {
  background: #f5f9fd;
}
.section-heading {
  align-items: end;
  margin-bottom: 34px;
}
.section-heading h2 {
  max-width: 680px;
  margin: 0;
}
.section-heading > p {
  max-width: 380px;
  margin: 0 0 7px;
  font-size: 0.98rem;
}
.programme-grid {
  gap: 25px;
}
.programme-card {
  border: 1px solid rgb(23 59 101 / 7%);
  border-radius: 25px;
  box-shadow: 0 15px 38px rgb(23 59 101 / 7%);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.programme-card:hover {
  box-shadow: 0 24px 45px rgb(23 59 101 / 13%);
  transform: translateY(-5px);
}
.programme-art,
.primary .programme-art {
  padding: 15px 15px 0;
  background: #fff0ce;
}
.primary .programme-art {
  background: #dcecff;
}
.programme-art img {
  height: auto;
  aspect-ratio: 1.68;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 18px;
}
.programme-number {
  top: 26px;
  left: 26px;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 5px 15px rgb(23 59 101 / 12%);
  font-size: 0.75rem;
}
.programme-copy {
  min-height: 190px;
  padding: 24px 28px 27px;
}
.programme-copy .eyebrow {
  margin-bottom: 7px;
  font-size: 0.68rem;
}
.programme-copy h3 {
  margin: 0 0 8px;
}
.programme-copy p {
  max-width: 480px;
  margin: 0;
  font-size: 0.94rem;
}
.round-arrow {
  top: auto;
  right: 24px;
  bottom: 22px;
  width: 45px;
  height: 45px;
  border: 0;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.round-arrow:hover {
  color: #fff;
  background: var(--navy);
  transform: translateX(3px);
}

/* Why choose us, environment and school values */
.values {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #eef6ff;
}
.values::before {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 290px;
  height: 290px;
  border: 38px solid rgb(57 137 216 / 8%);
  border-radius: 50%;
  content: "";
}
.values-grid {
  position: relative;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 76px);
}
.values h2,
.values h3 {
  color: var(--navy);
}
.values .eyebrow {
  color: var(--blue);
}
.values .values-grid > .values-intro > p {
  max-width: 420px;
  margin: 20px 0 25px;
  color: #4d6174;
}
.value-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.value-list article {
  display: grid;
  min-height: 162px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 11px 13px;
  padding: 20px;
  border: 1px solid rgb(23 59 101 / 6%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(23 59 101 / 6%);
}
.value-card-1 {
  border-top: 4px solid var(--blue) !important;
}
.value-card-2 {
  border-top: 4px solid var(--coral) !important;
}
.value-card-3 {
  border-top: 4px solid var(--fresh-green) !important;
}
.value-card-4 {
  border-top: 4px solid var(--gold) !important;
}
.value-list article > .value-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: #e8f3fc;
  font: 900 0.78rem var(--font-head);
}
.value-card-2 .value-number {
  background: #fff0e9;
}
.value-card-3 .value-number {
  background: #e7f5ed;
}
.value-card-4 .value-number {
  background: #fff6da;
}
.value-list h3 {
  align-self: center;
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.value-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: #526678;
  font-size: 0.88rem;
  line-height: 1.6;
}
.value-spark {
  position: absolute;
}
.environment {
  background: #fff;
}
.environment-grid {
  gap: clamp(45px, 8vw, 100px);
}
.environment-art {
  padding: 0 18px 20px 0;
}
.environment-art::before {
  position: absolute;
  top: 12px;
  right: -2px;
  z-index: -1;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  content: "";
  background: #d9edff;
  transform: rotate(13deg);
}
.environment-art img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  object-position: center 42%;
  border: 7px solid white;
  border-radius: 70px 26px 28px 28px;
  box-shadow: var(--shadow);
}
.art-tag {
  right: 2px;
  bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
}
.art-tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fresh-green);
}
.environment-copy .eyebrow {
  margin-bottom: 13px;
}
.mini-points {
  gap: 10px;
  margin: 24px 0 27px;
  color: var(--navy);
  font-size: 0.93rem;
}
.mini-points span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-points i {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e4f4eb;
}
.mini-points i::after {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 5px;
  height: 8px;
  border: solid var(--fresh-green);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}
.highlights {
  background: var(--cream);
}
.highlight-grid {
  gap: 18px;
}
.highlight-grid > .highlight-card {
  position: relative;
  min-height: 230px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid rgb(23 59 101 / 6%);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(23 59 101 / 5%);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.highlight-grid > .highlight-card:hover {
  box-shadow: 0 20px 36px rgb(23 59 101 / 10%);
  transform: translateY(-4px);
}
.highlight-card::after {
  position: absolute;
  right: -20px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  content: "";
  background: rgb(255 201 71 / 15%);
}
.highlight-card-2::after {
  background: rgb(57 137 216 / 12%);
}
.highlight-card-3::after {
  background: rgb(72 167 122 / 13%);
}
.highlight-icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px;
  margin-bottom: 22px;
  background: #fff1c9;
  color: var(--navy);
}
.highlight-card-2 .highlight-icon {
  background: #e4f0ff;
}
.highlight-card-3 .highlight-icon {
  background: #e5f4eb;
}
.highlight-icon::before {
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 8px 8px 8px 2px;
  content: "";
  transform: rotate(-8deg);
}
.highlight-card-2 .highlight-icon::before {
  width: 24px;
  height: 18px;
  border-radius: 4px;
  transform: rotate(0);
}
.highlight-card-3 .highlight-icon::before {
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
}
.highlight-grid h3 {
  margin: 0 0 9px;
  font-size: 1.22rem;
}
.highlight-grid p {
  max-width: 310px;
  margin: 0;
  font-size: 0.92rem;
}

/* Gallery and calls to action */
.gallery-preview {
  background: #fff;
}
.gallery-preview .section-heading {
  align-items: center;
}
.gallery-cards {
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  grid-template-rows: repeat(2, minmax(175px, 215px));
  gap: 16px;
}
.gallery-cards a {
  height: auto;
  min-height: 100%;
  border-radius: 22px;
  background: #dfeefa;
}
.gallery-cards a:first-child {
  height: auto;
  grid-row: 1 / span 2;
}
.gallery-cards a:nth-child(2) {
  grid-column: 2 / span 2;
}
.gallery-cards a:nth-child(3) {
  grid-column: 2 / span 2;
}
.gallery-cards img {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-cards a:hover img {
  transform: scale(1.055);
}
.gallery-cards a::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(transparent, rgb(16 39 60 / 48%));
}
.gallery-cards a span {
  z-index: 1;
  bottom: 17px;
  left: 17px;
  padding: 9px 14px;
  color: var(--navy);
  background: #fff;
  font-size: 0.82rem;
}
.gallery-all-link {
  margin-top: 26px;
}
.admissions-band {
  position: relative;
  overflow: hidden;
  padding: clamp(49px, 6vw, 72px) 0;
  background: linear-gradient(110deg, #ffe59d, #ffeadf 95%);
}
.admissions-band::before {
  position: absolute;
  top: -65px;
  right: 19%;
  width: 200px;
  height: 200px;
  border: 30px solid rgb(244 126 104 / 13%);
  border-radius: 50%;
  content: "";
}
.admissions-inner {
  z-index: 1;
  gap: 32px;
}
.admissions-inner h2 {
  max-width: 700px;
  margin: 0 0 9px;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
}
.admissions-inner p {
  max-width: 620px;
  margin: 0;
}
.admissions-inner .eyebrow {
  color: #8a5d14;
}
.admissions-inner .button {
  flex: 0 0 auto;
  z-index: 2;
}
.admissions-flower {
  right: 30%;
  bottom: -93px;
  color: rgb(244 126 104 / 15%);
}
.admissions-flower svg {
  width: 190px;
  height: 190px;
  fill: currentColor;
}
.home-contact {
  background: #f5f9fd;
}
.contact-home-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(35px, 7vw, 80px);
}
.contact-home-copy h2 {
  max-width: 570px;
  margin: 0 0 17px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}
.contact-home-copy > p {
  max-width: 500px;
  margin: 0 0 22px;
}
.contact-home-card {
  display: block;
  padding: clamp(23px, 3vw, 34px);
  border: 1px solid #dce8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 36px rgb(23 59 101 / 7%);
}
.contact-home-card-heading {
  display: flex;
  gap: 17px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.contact-icon {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 17px;
  color: var(--navy);
  background: #fff1c9;
  font-size: 1.3rem;
}
.contact-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.contact-home-card strong {
  display: block;
  color: #637687;
  font-size: 0.84rem;
}
.contact-home-card a {
  color: var(--navy);
  font: 800 1.3rem var(--font-head);
}
.contact-home-card a:hover {
  color: var(--blue);
}
.contact-detail-list {
  display: grid;
  gap: 13px;
  padding-top: 17px;
}
.contact-detail-list p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
  color: #4e6476;
  font-size: 0.9rem;
}
.contact-detail-list p > span {
  color: var(--navy);
  font-weight: 800;
}
.contact-detail-list p a {
  overflow-wrap: anywhere;
  font: 600 0.91rem var(--font-body);
}
.portal-band {
  padding: 30px 0;
  color: #fff;
  background: var(--navy);
}
.portal-inner {
  gap: 22px;
}
.portal-symbol {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  color: var(--navy);
  background: var(--gold);
  font-size: 1.5rem;
}
.portal-symbol svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.portal-inner .eyebrow {
  color: #a7d4ff;
}
.portal-inner h2 {
  font-size: 1.55rem;
}
.portal-inner p {
  color: #d4e2ef;
}
.portal-inner a.button.button-light,
.portal-inner a.button.button-light:visited {
  color: #fff !important;
  background: var(--fresh-green);
  border: 1px solid rgb(255 255 255 / 30%);
  text-decoration: none;
}
.portal-inner a.button.button-light:hover,
.portal-inner a.button.button-light:focus-visible {
  color: #fff !important;
  background: #2f654f;
}

/* Shared inner pages and WordPress content */
.content-area {
  width: min(1100px, calc(100% - 56px));
  padding-top: clamp(38px, 6vw, 70px);
  padding-bottom: clamp(70px, 9vw, 110px);
}
.page-heading {
  position: relative;
  overflow: hidden;
  margin: 0 0 42px;
  padding: clamp(29px, 5vw, 56px);
  border: 0;
  border-radius: 30px;
  background: linear-gradient(125deg, #eef6ff, #fff9ef);
}
.page-heading::after {
  position: absolute;
  top: -55px;
  right: 3%;
  width: 190px;
  height: 190px;
  border: 24px solid rgb(255 201 71 / 28%);
  border-radius: 50%;
  content: "";
}
.page-breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  color: #607588;
  font-size: 0.82rem;
  font-weight: 700;
}
.page-breadcrumb a {
  color: var(--blue);
}
.page-breadcrumb span[aria-hidden] {
  color: var(--coral);
}
.page-heading .eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}
.page-heading h1 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
}
.page-heading > p {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 14px 0 0;
}
.page-featured-wrap {
  margin: -5px 0 42px;
}
.page-featured {
  width: 100%;
  max-height: 470px;
  aspect-ratio: 2.15;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.entry-content {
  max-width: 850px;
  color: #526879;
  font-size: 1.03rem;
  line-height: 1.85;
}
.entry-content > * {
  margin-bottom: 23px;
}
.entry-content h2 {
  margin-top: 46px;
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}
.entry-content h3 {
  margin-top: 32px;
  font-size: 1.35rem;
}
.entry-content h4 {
  margin-top: 25px;
  font-size: 1.12rem;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}
.entry-content li {
  padding: 5px 0;
  color: #526879;
}
.entry-content li::marker {
  color: var(--coral);
}
.entry-content a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content blockquote {
  margin: 32px 0;
  padding: 21px 27px;
  border-left: 5px solid var(--gold);
  border-radius: 0 17px 17px 0;
  background: var(--cream);
}
.entry-content img,
.entry-content video {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.entry-content figure {
  margin: 28px 0;
}
.entry-content figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.entry-content iframe,
.entry-content embed {
  max-width: 100%;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.entry-content th {
  color: var(--navy);
  background: #eef6ff;
}
.faq-list {
  max-width: 900px;
}
.faq-item {
  margin: 0 0 13px;
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(23 59 101 / 4%);
}
.faq-item h2 {
  margin: 0;
  font-size: 1rem;
}
.faq-item button {
  min-height: 68px;
  align-items: center;
  gap: 20px;
  color: var(--navy);
  font: 800 1.08rem var(--font-head);
}
.faq-item button::after {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #fff1c9;
  font: 700 1.3rem var(--font-body);
}
.faq-item button[aria-expanded="true"]::after {
  color: #fff;
  background: var(--blue);
}
.faq-item [data-panel] {
  padding: 0 45px 21px 0;
  color: #586d7e;
}
.faq-item [data-panel] p:last-child {
  margin-bottom: 0;
}
.contact-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}
.contact-card {
  padding: clamp(23px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f3f8fd;
}
.contact-card h2 {
  font-size: 1.65rem;
}
.contact-card a {
  color: var(--blue);
  font-weight: 700;
}
.sbf-form {
  gap: 17px;
  padding: clamp(23px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 35px rgb(23 59 101 / 6%);
}
.sbf-form label {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}
.sbf-form input,
.sbf-form textarea {
  min-height: 48px;
  padding: 12px 14px;
  border-color: #ccd9e3;
  border-radius: 12px;
  color: var(--ink);
}
.sbf-form input:focus,
.sbf-form textarea:focus {
  outline: 3px solid rgb(57 137 216 / 19%);
  border-color: var(--blue);
}
.sbf-form textarea {
  min-height: 155px;
}
.sbf-form > p {
  margin: 0;
  font-size: 0.8rem;
}
.sbf-form button {
  justify-self: start;
  cursor: pointer;
}
.form-notice {
  border: 1px solid #b9dfc8;
  border-radius: 13px;
  color: #225f40;
  background: #edf8f1;
}
.form-error {
  border-color: #f0c1b8;
  color: #8b3527;
  background: #fff1ee;
}
.gallery-filters {
  gap: 9px;
  margin: 0 0 24px;
}
.gallery-filters a {
  padding: 9px 16px;
  border: 1px solid #dce8f0;
  color: var(--navy);
  background: #f1f7fc;
  font-size: 0.88rem;
}
.gallery-filters a:hover,
.gallery-filters a:focus-visible {
  color: #fff;
  background: var(--blue);
}
.gallery-grid {
  gap: 20px;
}
.gallery-item {
  border-radius: 20px;
  background: #edf4f9;
  box-shadow: 0 10px 26px rgb(23 59 101 / 7%);
}
.gallery-item img {
  height: clamp(210px, 23vw, 290px);
  transition: transform 0.35s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item span {
  padding: 13px 16px;
  color: var(--navy);
  font-weight: 800;
}
.sbf-pagination ul {
  gap: 8px;
}
.sbf-pagination a,
.sbf-pagination span {
  min-width: 42px;
  border-color: var(--line);
  border-radius: 12px;
  color: var(--navy);
  text-align: center;
}
.sbf-pagination .current {
  color: #fff;
  background: var(--navy);
}
.post-grid {
  gap: 23px;
}
.post-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(23 59 101 / 5%);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.post-card:hover {
  box-shadow: 0 20px 38px rgb(23 59 101 / 10%);
  transform: translateY(-4px);
}
.post-card > img {
  height: 230px;
  object-fit: cover;
}
.post-card > a:first-child > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.post-card-body {
  padding: 23px;
}
.post-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.post-card h2 a:hover {
  color: var(--blue);
}
.post-card .eyebrow {
  margin: 0 0 10px;
}
.post-card-body > p:not(.eyebrow) {
  font-size: 0.93rem;
}
.post-card .text-link {
  font-size: 0.9rem;
}
.posts-pagination {
  margin-top: 32px;
}
.posts-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.posts-pagination a,
.posts-pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
}
.posts-pagination .current {
  color: #fff;
  background: var(--navy);
}
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 45px;
}
.post-navigation .nav-links a {
  display: block;
  min-height: 74px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--navy);
  background: #f5f9fd;
}
.post-navigation .nav-links a:hover {
  border-color: var(--blue);
  background: #eef6ff;
}
.archive-description {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: 13px;
}
.archive-description p {
  margin: 0;
}
.search-page-form {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin-top: 23px;
}
.search-page-form .search-form {
  display: flex;
  gap: 10px;
  align-items: end;
}
.search-page-form .search-form label {
  flex: 1;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}
.search-page-form .search-field {
  width: 100%;
  min-height: 48px;
  margin-top: 5px;
  padding: 10px 13px;
  border: 1px solid #cad9e5;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.search-page-form .search-submit {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--navy);
  font: 800 0.9rem var(--font-head);
  cursor: pointer;
}
.testimonials {
  background: #eef6ff;
}
.testimonial-card {
  border: 1px solid #dae7f0;
  border-radius: 20px;
  box-shadow: 0 10px 27px rgb(23 59 101 / 5%);
}
.testimonial-quote {
  color: var(--coral);
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 5px 5px 0;
  color: #dcecff;
  font-size: 0.87rem;
}
.empty-state {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 90px;
  padding-bottom: 100px;
}
.empty-state::before {
  position: absolute;
  right: 12%;
  width: 210px;
  height: 210px;
  border: 28px solid rgb(255 201 71 / 25%);
  border-radius: 50%;
  content: "";
}
.empty-state h1,
.empty-state p,
.empty-state .button,
.empty-state .eyebrow {
  position: relative;
  z-index: 1;
}
.empty-state p {
  max-width: 540px;
}

/* Footer */
.site-footer {
  padding: 65px 0 18px;
  color: #fff;
  background: var(--footer-background, #102e4d);
}
.footer-grid {
  grid-template-columns: 1.12fr 0.78fr 0.92fr 1.18fr;
  gap: clamp(22px, 3vw, 42px);
  padding-bottom: 48px;
}
.footer-brand {
  align-items: center;
  gap: 13px;
  color: #fff;
}
.footer-brand:hover {
  color: var(--gold);
}
.footer-logo-image {
  width: var(--footer-logo-width, 96px);
  max-width: 100%;
  height: auto;
  max-height: none;
}
.footer-brand strong {
  color: inherit;
  font: 800 1.02rem/1.3 var(--font-head);
}
.footer-about p {
  max-width: 370px;
  margin: 18px 0;
  color: #d1dfeb;
  font-size: 0.91rem;
}
.site-footer h2 {
  margin: 5px 0 18px;
  color: #fff;
  font: 800 1.06rem var(--font-head);
}
.site-footer li,
.site-footer p {
  color: #d1dfeb;
  font-size: 0.88rem;
}
.site-footer li {
  margin: 0 0 7px;
}
.site-footer .footer-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 13px;
  overflow-wrap: anywhere;
}
.site-footer .footer-detail i {
  width: 15px;
  flex: 0 0 15px;
  padding-top: 5px;
  color: var(--gold);
}
.footer-social-block {
  margin: 18px 0 16px;
}
.footer-about .footer-social-block {
  margin: 20px 0 0;
}
.footer-social-block h3 {
  margin: 0 0 9px;
  color: #d6e2ec;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.footer-social-link {
  display: inline-flex;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 8%);
}
.footer-social-link::before,
.footer-social-link::after {
  display: none !important;
  content: none !important;
}
.footer-social-link i.fa-brands {
  font-family: "Font Awesome 7 Brands" !important;
  font-size: 1rem;
  line-height: 1;
}
.site-footer .footer-social-link:hover,
.site-footer .footer-social-link:focus-visible {
  color: var(--navy) !important;
  background: var(--gold);
}
.site-footer .footer-social-link:hover > i.fa-brands,
.site-footer .footer-social-link:focus-visible > i.fa-brands {
  color: var(--navy) !important;
}
.site-footer .footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-menu .sub-menu {
  margin: 5px 0 0 12px;
  padding: 0 0 0 12px;
  border-left: 1px solid rgb(255 255 255 / 20%);
}
.site-footer a:hover {
  color: var(--gold);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid rgb(255 255 255 / 18%);
  color: #b9cbd9;
  font-size: 0.78rem;
}

/* Reveal effects are enabled only when the script and observer are available. */
.sbf-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sbf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 18px;
  }
  .brand-text small {
    display: none;
  }
  .primary-nav {
    gap: 13px;
    font-size: 0.82rem;
  }
  .primary-nav ul {
    gap: 12px;
  }
  .hero-grid {
    gap: 45px;
  }
  .footer-grid {
    gap: 40px;
  }
}
@media (max-width: 1080px) {
  .header-inner {
    min-height: 76px;
    flex-wrap: wrap;
  }
  .sbf-has-js .nav-toggle {
    display: flex;
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
  }
  .nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 21px;
    height: 2px;
    margin: 0;
    border-radius: 4px;
    background: var(--navy);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .primary-nav {
    position: static;
    display: flex;
    flex: 1 0 100%;
    visibility: visible;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }
  .sbf-has-js .primary-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    visibility: hidden;
    padding: 18px max(28px, calc((100vw - 720px) / 2));
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 25px rgb(23 59 101 / 12%);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s;
  }
  .sbf-has-js .primary-nav {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
  }
  .sbf-has-js .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .primary-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .primary-nav li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    border: 0;
  }
  .primary-nav > ul > li {
    border-bottom: 1px solid #e7edf2;
  }
  .primary-nav li > a {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 11px;
    white-space: normal;
  }
  .primary-nav li > a::after,
  .primary-nav > ul > li.menu-item-has-children > a::before {
    display: none;
  }
  .primary-nav li.current-menu-item > a,
  .primary-nav li.current-menu-ancestor > a {
    color: var(--blue);
    background: #f0f7ff;
  }
  .primary-nav .submenu-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    color: var(--navy);
    background: #fff;
    cursor: pointer;
    transition:
      color 0.18s ease,
      border-color 0.18s ease,
      background 0.18s ease,
      transform 0.18s ease;
  }
  .primary-nav .submenu-toggle[aria-expanded="true"] {
    border-color: #b9d8f5;
    color: var(--blue);
    background: #edf6ff;
  }
  .primary-nav .submenu-toggle i {
    transition: transform 0.18s ease;
  }
  .primary-nav .submenu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }
  .sbf-has-js .primary-nav > ul > li > .sub-menu {
    position: static;
    display: none;
    grid-column: 1 / -1;
    min-width: 0;
    align-items: stretch;
    justify-items: stretch;
    gap: 3px;
    margin: 0 0 10px 12px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 2px solid #d8e9f8;
    border-radius: 0;
    background: #f7faff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .sbf-has-js .primary-nav > ul > li.is-submenu-open > .sub-menu {
    display: grid;
  }
  .primary-nav .sub-menu li {
    display: block;
  }
  .primary-nav .sub-menu li a {
    min-height: 42px;
    justify-content: flex-start;
    padding: 9px 12px;
    border-radius: 9px;
    color: #526678;
    font-size: 0.93rem;
    text-align: left;
  }
  .primary-nav .sub-menu li a:hover {
    color: var(--navy);
    background: #eaf3fb;
  }
  .header-cta {
    display: none;
  }
  .header-mobile-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    margin-left: auto;
  }
  .mobile-header-portal {
    display: inline-flex !important;
    flex: 0 0 auto;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    font-size: 0.78rem;
  }
  .hero-grid {
    grid-template-columns: 1fr 0.92fr;
    gap: 27px;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 5.5vw, 3.65rem);
  }
  .hero-visual {
    padding-left: 16px;
  }
  .welcome-grid,
  .environment-grid {
    gap: 42px;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .values-intro {
    max-width: 690px;
  }
  .value-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .value-list article {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    padding: 16px;
  }
  .value-list p {
    grid-column: auto;
  }
  .gallery-cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 270px 195px;
  }
  .gallery-cards a:first-child {
    grid-row: 1 / span 2;
  }
  .gallery-cards a:nth-child(2),
  .gallery-cards a:nth-child(3) {
    grid-column: 2;
  }
  .contact-home-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
@media (max-width: 720px) {
  .wrap,
  .content-area {
    width: min(100% - 36px, 560px);
  }
  .header-inner {
    gap: 8px;
  }
  .topbar {
    font-size: 0.75rem;
  }
  .topbar-inner {
    min-height: 40px;
    gap: 8px;
  }
  .topbar-contact {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .topbar-contact a {
    font-size: 0.73rem;
  }
  .topbar-contact a:last-child span {
    overflow-wrap: anywhere;
  }
  .topbar-social {
    display: none;
  }
  .announcement-message {
    max-width: 70%;
    line-height: 1.25;
  }
  .header-inner {
    min-height: 70px;
  }
  .site-header .brand-logo-image {
    width: min(var(--header-logo-width, 72px), 54px);
    max-width: 100%;
    max-height: none;
  }
  .mobile-header-portal {
    min-height: 40px;
    padding: 8px 18px;
    gap: 5px;
    font-size: 0.7rem;
  }
  .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 8px;
  }
  .brand-text strong {
    max-width: 195px;
    font-size: 0.92rem;
  }
  .brand-text small {
    display: none;
  }
  .sbf-has-js .primary-nav {
    padding: 12px 18px 19px;
  }
  .primary-nav ul {
    grid-template-columns: 1fr;
  }
  .primary-nav li a {
    font-size: 1rem;
  }
  .primary-nav > .button {
    width: 100%;
  }
  .hero {
    padding: 45px 0 21px;
  }
  .hero::before {
    top: 33px;
    right: 13%;
  }
  .hero-grid,
  .welcome-grid,
  .environment-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    max-width: 570px;
    font-size: clamp(2.65rem, 11.6vw, 3.75rem);
  }
  .hero-copy .lead {
    margin: 19px 0 23px;
    font-size: 1rem;
  }
  .hero-note {
    margin-top: 21px;
  }
  .hero-visual {
    width: min(100%, 510px);
    margin-inline: auto;
    padding: 12px 11px 24px;
  }
  .hero-visual::before {
    width: 100px;
    height: 80px;
  }
  .hero-visual::after {
    top: 0;
    left: -1px;
    width: 48px;
    height: 48px;
    border-width: 7px;
  }
  .hero-image-frame {
    border-width: 6px;
    border-radius: 28% 24% 24px 24px;
  }
  .hero-image-frame img {
    aspect-ratio: 1.18;
  }
  .hero-sticker {
    bottom: 16px;
    left: -2px;
    padding: 8px 12px 8px 8px;
    font-size: 0.79rem;
  }
  .hero-sticker .sticker-sun {
    width: 34px;
    height: 34px;
  }
  .hero-bottom {
    margin-top: 2px;
  }
  .section-pad {
    padding: 67px 0;
  }
  .welcome-visual img,
  .environment-art img {
    aspect-ratio: 1.2;
  }
  .welcome-copy h2,
  .environment-copy h2 {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }
  .section-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
  }
  .section-heading h2 {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  }
  .programme-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .programme-art {
    padding: 11px 11px 0;
  }
  .programme-art img {
    aspect-ratio: 1.55;
  }
  .programme-copy {
    min-height: 176px;
    padding: 21px;
  }
  .programme-copy h3 {
    font-size: 1.45rem;
  }
  .round-arrow {
    right: 18px;
    bottom: 17px;
    width: 41px;
    height: 41px;
  }
  .value-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .value-list article {
    min-height: 0;
    padding: 15px;
  }
  .value-list h3 {
    font-size: 1rem;
  }
  .value-list p {
    font-size: 0.83rem;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .highlight-grid > .highlight-card {
    min-height: 0;
    padding: 21px;
  }
  .highlight-icon {
    margin-bottom: 15px;
  }
  .gallery-cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 285px 175px;
    gap: 10px;
  }
  .gallery-cards a:first-child {
    grid-row: 1;
    grid-column: 1 / span 2;
  }
  .gallery-cards a:nth-child(2),
  .gallery-cards a:nth-child(3) {
    grid-row: 2;
    grid-column: auto;
  }
  .gallery-cards a span {
    bottom: 11px;
    left: 11px;
    padding: 7px 10px;
    font-size: 0.74rem;
  }
  .admissions-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }
  .admissions-inner h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .admissions-inner .button {
    width: 100%;
  }
  .contact-home-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .contact-home-card {
    padding: 21px;
  }
  .contact-detail-list p {
    grid-template-columns: 58px 1fr;
  }
  .portal-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }
  .portal-inner > div {
    min-width: calc(100% - 74px);
  }
  .portal-inner .button {
    width: 100%;
    margin-left: 0;
  }
  .content-area {
    padding-top: 33px;
    padding-bottom: 70px;
  }
  .page-heading {
    margin-bottom: 28px;
    padding: 27px 22px;
    border-radius: 22px;
  }
  .page-heading::after {
    top: -55px;
    right: -35px;
    width: 140px;
    height: 140px;
    border-width: 18px;
  }
  .page-heading h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 3.25rem);
  }
  .page-featured-wrap {
    margin-bottom: 28px;
  }
  .page-featured {
    min-height: 220px;
    aspect-ratio: 1.5;
    border-width: 5px;
    border-radius: 21px;
  }
  .entry-content {
    font-size: 1rem;
  }
  .entry-content h2 {
    margin-top: 34px;
  }
  .faq-item {
    padding-inline: 15px;
  }
  .faq-item button {
    min-height: 62px;
    font-size: 1rem;
  }
  .faq-item [data-panel] {
    padding-right: 0;
  }
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
  .search-page-form .search-form {
    align-items: stretch;
    flex-direction: column;
  }
  .contact-card,
  .sbf-form {
    padding: 21px;
    border-radius: 19px;
  }
  .gallery-grid,
  .post-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .gallery-item img {
    height: 190px;
  }
  .post-card > img {
    height: 175px;
  }
  .post-card-body {
    padding: 16px;
  }
  .post-card h2 {
    font-size: 1.13rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
  }
  .footer-about,
  .footer-contact {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
  }
}
@media (max-width: 460px) {
  h1 {
    font-size: 2.65rem;
  }
  .wrap,
  .content-area {
    width: min(100% - 30px, 430px);
  }
  .topbar-inner {
    align-items: center;
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .topbar-contact {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .topbar-contact a {
    font-size: 0.7rem;
  }
  .topbar-social {
    display: none;
  }
  .brand {
    gap: 8px;
  }
  .brand-text strong {
    max-width: 160px;
    font-size: 0.84rem;
  }
  .nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .hero h1 {
    font-size: clamp(2.45rem, 11.4vw, 3rem);
  }
  .hero-actions {
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .button {
    flex: 1 1 100%;
  }
  .hero-actions .text-link {
    align-self: flex-start;
  }
  .value-list {
    grid-template-columns: 1fr;
  }
  .value-list article {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
  }
  .value-list p {
    grid-column: 2;
  }
  .gallery-cards {
    grid-template-rows: 270px 165px;
  }
  .gallery-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: 240px;
  }
  .post-card > img {
    height: 220px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-about,
  .footer-contact {
    grid-column: auto;
  }
  .footer-bottom {
    font-size: 0.72rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sbf-reveal {
    opacity: 1;
    transform: none;
  }
}
