/* Editorial type, accessible contrast, icon details and individual page compositions. */
:root {
  --muted: #4b5d70;
  --font-head: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;
}

body, button, input, textarea, select { font-family: var(--font-body); }
body { color: var(--ink); font-size: 16px; line-height: 1.75; }
p { color: var(--muted); }
h1, h2, h3, h4 { color: var(--navy); font-family: var(--font-head); font-weight: 800; }
.fa-solid, .fa-brands { flex: 0 0 auto; }
.button, .text-link { font-family: var(--font-head); font-weight: 800; }
.hero-bottom, .hero-note { color: #465a6d; }
.inner-hero .page-breadcrumb { margin-bottom: 23px; color: #43586c; }
.inner-hero .page-breadcrumb i { color: var(--coral); font-size: .68rem; }
.inner-hero .page-breadcrumb a { color: var(--navy); }
.inner-hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--blue); }
.eyebrow-marker { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgb(244 126 104 / 16%); }
.inner-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(52px, 7.2vw, 96px) 0 clamp(56px, 7vw, 88px);
  background: linear-gradient(112deg, #eef6ff 0%, #fffaf1 78%);
}
.inner-hero::before { position: absolute; z-index: -1; top: -155px; right: 8%; width: 340px; height: 340px; border: 36px solid rgb(255 201 71 / 24%); border-radius: 50%; content: ""; }
.inner-hero::after { position: absolute; z-index: -1; bottom: 23px; left: 4%; width: 108px; height: 72px; opacity: .28; background-image: radial-gradient(var(--blue) 1.5px, transparent 1.6px); background-size: 12px 12px; content: ""; }
.inner-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: clamp(38px, 6vw, 84px); }
.inner-hero-copy { position: relative; z-index: 1; max-width: 650px; }
.inner-hero h1 { max-width: 720px; margin: 0; color: var(--navy); font-size: clamp(3rem, 6.3vw, 5.25rem); line-height: .99; letter-spacing: -.045em; }
.inner-hero-summary { max-width: 620px; margin: 20px 0 0; color: #40566b; font-size: clamp(1.05rem, 1.35vw, 1.18rem); font-weight: 500; line-height: 1.78; }
.inner-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 24px; margin-top: 28px; }
.inner-hero-actions .text-link { min-height: 45px; align-items: center; }
.inner-hero-actions .fa-solid, .button .fa-solid, .text-link .fa-solid { font-size: .88em; }
.inner-hero-visual { position: relative; min-width: 0; margin: 0; padding: 9px 10px 24px 19px; }
.inner-hero-visual::before { position: absolute; z-index: -1; right: -4px; bottom: 3px; width: 34%; height: 27%; border-radius: 29px 14px 30px 18px; background: var(--blue); content: ""; transform: rotate(5deg); }
.inner-hero-image { width: 100%; height: clamp(280px, 32vw, 440px); border: 8px solid #fff; border-radius: 32% 24% 28px 30%; object-fit: cover; object-position: center 42%; box-shadow: 0 24px 55px rgb(23 59 101 / 17%); transform: rotate(-1deg); }
.inner-hero-visual figcaption { position: absolute; bottom: 4px; left: 1px; display: inline-flex; align-items: center; gap: 9px; min-height: 43px; padding: 10px 15px; border: 1px solid #e5edf3; border-radius: 14px; color: var(--navy); background: #fff; box-shadow: 0 10px 26px rgb(23 59 101 / 12%); font-size: .83rem; font-weight: 800; }
.inner-hero-visual figcaption i { color: var(--coral); }
.inner-hero-orbit { display: grid; width: clamp(130px, 17vw, 205px); aspect-ratio: 1; place-items: center; justify-self: center; border: 2px solid rgb(57 137 216 / 26%); border-radius: 45% 55% 60% 40%; color: var(--blue); background: rgb(255 255 255 / 58%); box-shadow: 0 25px 60px rgb(23 59 101 / 9%); transform: rotate(-8deg); }
.inner-hero-orbit i { font-size: clamp(3.4rem, 6vw, 5.25rem); }
.inner-hero--about { background: linear-gradient(112deg, #fff9ef 0%, #f0f7ff 83%); }
.inner-hero--academics { background: linear-gradient(112deg, #eef6ff 0%, #f8fbff 72%, #fff9ef 100%); }
.inner-hero--facilities { background: linear-gradient(112deg, #f2f8f2 0%, #fff9ef 84%); }
.inner-hero--gallery { background: linear-gradient(112deg, #fff3eb 0%, #fff9ef 64%, #eef6ff 100%); }
.inner-hero--admissions { background: linear-gradient(112deg, #fff1c9 0%, #fff3e8 75%, #fff9ef 100%); }
.inner-hero--faqs { background: linear-gradient(112deg, #eef7f1 0%, #f0f7ff 100%); }
.inner-hero--contact { background: linear-gradient(112deg, #eef6ff 0%, #f7fbff 62%, #fff9ef 100%); }
.inner-hero--privacy { background: linear-gradient(112deg, #eef6ff 0%, #fff9ef 100%); }
.inner-hero--portal { color: #fff; background: radial-gradient(circle at 82% 12%, rgb(255 201 71 / 20%), transparent 25%), linear-gradient(120deg, #102e4d, #173b65 70%, #285b81); }
.inner-hero--portal::before { border-color: rgb(255 201 71 / 21%); }
.inner-hero--portal::after { background-image: radial-gradient(#fff 1.5px, transparent 1.6px); }
.inner-hero--portal h1, .inner-hero--portal .page-breadcrumb, .inner-hero--portal .page-breadcrumb a { color: #fff; }
.inner-hero--portal .inner-hero-summary { color: #e0eaf2; }
.inner-hero--portal .eyebrow { color: #ffe08a; }
.inner-hero--portal .inner-hero-orbit { border-color: rgb(255 255 255 / 28%); color: var(--gold); background: rgb(255 255 255 / 9%); }
.inner-hero--portal .button { color: var(--navy); background: #fff; }
.inner-hero--portal .button:hover { color: var(--navy); background: var(--gold); }

.page-body, .privacy-page-layout { display: grid; align-items: start; gap: clamp(28px, 4.5vw, 58px); padding-top: clamp(48px, 6vw, 78px); padding-bottom: clamp(70px, 8vw, 105px); }
.page-body--about { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr); }
.page-body--facilities { grid-template-columns: minmax(0, 1fr) 300px; }
.page-body--admissions { grid-template-columns: minmax(0, 1fr) 320px; }
.page-body--faqs { grid-template-columns: minmax(0, 1fr) 310px; }
.page-editorial-card { max-width: none; margin: 0; padding: clamp(28px, 4vw, 52px); border: 1px solid #e5edf3; border-radius: 27px; background: #fff; box-shadow: 0 18px 46px rgb(23 59 101 / 6%); }
.entry-content { max-width: 880px; color: #43576a; font-size: 1.045rem; line-height: 1.85; }
.entry-content p, .entry-content li { color: #43576a; }
.entry-content > * { margin-bottom: 22px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 42px; margin-bottom: 15px; color: var(--navy); font-size: clamp(1.65rem, 2.7vw, 2.15rem); line-height: 1.16; }
.entry-content h2:not(:first-child) { display: flex; align-items: baseline; gap: 13px; }
.entry-content h2:not(:first-child)::before { width: 7px; height: .85em; flex: 0 0 7px; border-radius: 8px; background: var(--gold); content: ""; }
.entry-content h3 { margin-top: 30px; color: var(--navy); font-size: 1.3rem; }
.entry-content h4 { color: var(--navy); }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { padding: 5px 0; }
.entry-content li::marker { color: var(--coral); font-weight: 800; }
.entry-content a { color: #1768a8; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--navy); }
.entry-content blockquote { border-color: var(--gold); color: #354b60; }
.entry-content figcaption { color: #536679; }
.page-body--default { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.school-profile-card, .page-aside-card, .admissions-enquiry-card { position: sticky; top: 125px; padding: clamp(25px, 3.5vw, 38px); border: 1px solid #dce8f0; border-radius: 25px; background: #f2f8fd; box-shadow: 0 18px 40px rgb(23 59 101 / 7%); }
.school-profile-card { color: #fff; border-color: #173b65; background: linear-gradient(145deg, #173b65, #24577a); }
.school-profile-card h2, .school-profile-card strong { color: #fff; }
.school-profile-card p { color: #edf4f9; }
.school-profile-card .eyebrow { color: #ffe08a; }
.school-profile-icon, .page-aside-icon, .admissions-enquiry-icon { display: grid; width: 55px; height: 55px; place-items: center; margin-bottom: 23px; border-radius: 17px; color: var(--navy); background: var(--gold); font-size: 1.25rem; }
.school-profile-card h2, .page-aside-card h2, .admissions-enquiry-card h2 { margin: 10px 0 13px; font-size: 1.45rem; line-height: 1.2; }
.school-profile-card .icon-detail-list { display: grid; gap: 16px; padding: 18px 0 21px; margin: 22px 0 18px; border-top: 1px solid rgb(255 255 255 / 22%); border-bottom: 1px solid rgb(255 255 255 / 22%); list-style: none; }
.icon-detail-list li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; color: #f1f6fa; font-size: .91rem; line-height: 1.55; }
.icon-detail-list i { margin-top: 4px; color: #ffe08a; }
.icon-detail-list a { color: #fff; font-weight: 700; }
.school-profile-card .text-link { color: #fff; border-color: rgb(255 255 255 / 32%); }
.school-profile-card .text-link:hover { color: #ffe08a; }
.page-aside-card p, .admissions-enquiry-card p { color: #455a6e; }
.page-aside-card .button, .admissions-enquiry-card .button { width: 100%; justify-content: center; margin: 10px 0; }
.page-aside-card .text-link, .admissions-enquiry-card .text-link { margin-top: 14px; }

.programme-details-section { padding: clamp(50px, 6.5vw, 82px) 0; background: #f4f8fc; }
.page-section-heading { max-width: 760px; margin: 0 0 30px; }
.page-section-heading h2 { margin: 7px 0 0; font-size: clamp(2rem, 3.8vw, 3rem); }
.programme-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.programme-detail-card { overflow: hidden; border: 1px solid #e2eaf0; border-radius: 27px; background: #fff; box-shadow: 0 17px 42px rgb(23 59 101 / 7%); }
.programme-detail-card--nursery { border-top: 5px solid var(--coral); }
.programme-detail-card--primary { border-top: 5px solid var(--blue); }
.programme-detail-image { overflow: hidden; height: clamp(210px, 25vw, 325px); margin: 0; background: #e7eff6; }
.programme-detail-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .45s ease; }
.programme-detail-card:hover .programme-detail-image img { transform: scale(1.04); }
.programme-detail-copy { position: relative; padding: 27px 30px 31px; }
.programme-detail-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 17px; border-radius: 15px; color: var(--navy); background: #fff0c9; font-size: 1.15rem; }
.programme-detail-card--primary .programme-detail-icon { color: #15568b; background: #e5f1ff; }
.programme-detail-copy h3 { margin: 5px 0 9px; font-size: 1.65rem; }
.programme-detail-copy p { max-width: 570px; color: #4b5e71; }
.programme-detail-copy .text-link { margin-top: 7px; }
.page-body--academics { grid-template-columns: minmax(0, 1fr); max-width: 950px; }
.page-body--academics .entry-content { max-width: none; }
.facilities-editorial { max-width: none; }
.facilities-editorial > .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facilities-editorial .post-card { overflow: hidden; }
.facilities-editorial .post-card-body { padding: 25px; }
.facilities-editorial .post-card-body p { color: #4b5e71; }
.gallery-page-section { padding: clamp(45px, 6vw, 72px) 0 clamp(70px, 8vw, 100px); background: #fff; }
.gallery-page-intro { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.gallery-page-intro h2 { max-width: 700px; margin: 7px 0 0; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.gallery-page-intro p { max-width: 350px; margin: 0; color: #4b5e71; }
.gallery-page-content { max-width: 1180px; }
.gallery-page-content > p { margin-bottom: 25px; }
.gallery-page-content .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-page-content .gallery-item { overflow: hidden; border-radius: 21px; }
.gallery-page-content .gallery-item img { height: clamp(210px, 22vw, 300px); object-fit: cover; }
.page-body--admissions .entry-content { max-width: none; }
.admissions-editorial .sbf-form { margin-top: 30px; }
.admissions-enquiry-card { background: linear-gradient(150deg, #fff8e8, #fff0e9); border-color: #f4dfc4; }
.admissions-enquiry-card .admissions-enquiry-icon { color: #fff; background: var(--coral); }
.admissions-enquiry-card .eyebrow { color: #a14c36; }
.faq-editorial { max-width: none; }
.faq-editorial .faq-list { max-width: none; margin-top: 27px; }
.faq-item { padding-inline: 22px; border-color: #e2eaf0; box-shadow: 0 10px 26px rgb(23 59 101 / 5%); }
.faq-item h2 { display: block !important; margin: 0 !important; font-size: 1.06rem !important; }
.faq-item h2::before { content: none !important; }
.faq-item button { width: 100%; color: var(--navy); font: 800 1.05rem/1.35 var(--font-head); text-align: left; }
.faq-item [data-panel] { color: #455a6e; line-height: 1.75; }
.faq-aside .page-aside-icon { color: #fff; background: var(--blue); }
.contact-page-section { padding-top: clamp(49px, 6vw, 78px); padding-bottom: clamp(72px, 8vw, 106px); }
.contact-page-content { display: grid; max-width: none; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.22fr); gap: 16px 28px; align-items: start; }
.contact-page-content > p:first-child { grid-column: 1 / -1; margin: 0 0 12px; }
.contact-page-content > .contact-grid { grid-column: 1; grid-row: 2 / span 3; }
.contact-page-content > h2 { grid-column: 2; grid-row: 2; margin: 0; padding: 7px 0 0; font-size: 1.55rem; }
.contact-page-content > p:not(:first-child) { grid-column: 2; margin: -6px 0 -7px; }
.contact-page-content > .sbf-form { grid-column: 2; grid-row: 4; }
.contact-card { padding: clamp(25px, 3.5vw, 38px); background: #eef6ff; }
.contact-card h2 { margin-top: 8px; color: var(--navy); }
.contact-detail-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start; margin: 18px 0; color: #40576b; }
.contact-detail-row > i { margin-top: 5px; color: var(--blue); }
.contact-detail-row strong { color: var(--navy); }
.contact-detail-row a { color: #155f9c; overflow-wrap: anywhere; }
.sbf-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: clamp(25px, 3vw, 38px); border-color: #e1eaf0; border-radius: 24px; box-shadow: 0 18px 43px rgb(23 59 101 / 7%); }
.sbf-form label { display: grid; gap: 9px; color: #173b65; font-family: var(--font-head); font-size: .88rem; font-weight: 800; }
.sbf-form input, .sbf-form textarea { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid #c7d6e2; border-radius: 13px; color: #263746; background: #fbfdff; font: 500 1rem/1.5 var(--font-body); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sbf-form input:hover, .sbf-form textarea:hover { border-color: #9bb7cb; }
.sbf-form input:focus, .sbf-form textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(57 137 216 / 14%); }
.sbf-form textarea { min-height: 145px; resize: vertical; }
.sbf-field-message, .sbf-form [data-form-status], .sbf-form button, .recaptcha-attribution { grid-column: 1 / -1; }
.recaptcha-attribution { margin: 0; color: #53687a; font-size: .79rem; line-height: 1.6; }
.recaptcha-attribution a { color: #155f9c; text-decoration: underline; }
.sbf-form button { justify-self: start; cursor: pointer; }
.sbf-form .honeypot { display: none; }
.contact-card { border-color: #d9e7ef; background: linear-gradient(145deg, #eef6ff 0%, #f7fbff 100%); box-shadow: 0 14px 35px rgb(23 59 101 / 5%); }
.contact-card h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.contact-detail-row { padding: 14px 0; border-bottom: 1px solid #dce8f0; }
.contact-detail-row:last-of-type { border-bottom: 0; }
.contact-detail-row > i { display: grid; width: 34px; height: 34px; place-items: center; margin: 0; border-radius: 11px; color: var(--navy); background: #fff; box-shadow: 0 4px 12px rgb(23 59 101 / 7%); }
.portal-page-section { max-width: 920px; padding-top: 65px; padding-bottom: 95px; }
.portal-page-card { display: grid; grid-template-columns: 70px 1fr; gap: 23px; padding: clamp(28px, 5vw, 54px); border: 1px solid #dbe7ef; border-radius: 29px; background: #f2f8fd; box-shadow: 0 18px 44px rgb(23 59 101 / 8%); }
.portal-page-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 20px; color: var(--navy); background: var(--gold); font-size: 1.5rem; }
.portal-page-card h2 { margin: 7px 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.portal-page-content { max-width: none; font-size: 1rem; }
.portal-page-content .button { margin-top: 4px; }
.privacy-page-layout { grid-template-columns: minmax(0, 1fr) 280px; max-width: 1130px; }
.privacy-article { min-width: 0; max-width: none; padding: clamp(28px, 4vw, 49px); border: 1px solid #e2eaf0; border-radius: 26px; background: #fff; box-shadow: 0 16px 40px rgb(23 59 101 / 5%); overflow-wrap: anywhere; }
.privacy-article img, .privacy-article video, .privacy-article iframe, .privacy-article embed, .privacy-article object { max-width: 100%; }
.privacy-article table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
.privacy-article > p:first-child { padding: 18px 21px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: #fff8e9; }
.privacy-aside { min-width: 0; overflow-wrap: anywhere; }
.privacy-aside .page-aside-icon { color: #fff; background: var(--navy); }
.privacy-aside .text-link { max-width: 100%; overflow-wrap: anywhere; }
.footer-detail { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; align-items: start; color: #e4edf5 !important; font-size: .97rem !important; line-height: 1.65; }
.footer-detail > i { margin-top: 5px; color: var(--gold); }
.footer-detail a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.site-footer li, .site-footer p { color: #e4edf5; font-size: .94rem; }
.site-footer h2 { color: #fff; font-size: 1.14rem; }
.footer-links a { color: #e4edf5; }
.footer-bottom { color: #d6e2ec; font-size: .83rem; }
.social-links { align-items: center; gap: 9px; margin: 19px 0; }
.social-link { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 12px; color: #fff; background: rgb(255 255 255 / 7%); font-size: .86rem; font-weight: 700; }
.social-link i { color: #ffdb77; font-size: 1rem; }
.social-link:hover { border-color: var(--gold); color: #fff; background: rgb(255 255 255 / 12%); }
.portal-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.footer-contact-link i { transition: transform .2s ease; }
.footer-contact-link:hover i { transform: translateX(4px); }

/* Intentional page signatures and a consistent real-icon treatment. */
.school-profile-milestone, .school-profile-leadership { display: grid; gap: 4px; padding: 15px 17px; border-radius: 15px; background: rgb(255 255 255 / 9%); }
.school-profile-milestone { margin-top: 20px; border-left: 3px solid var(--gold); }
.school-profile-milestone span, .school-profile-leadership span { color: #d8e6f0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.school-profile-milestone strong { color: #ffe08a; font: 800 1rem/1.4 var(--font-head); }
.school-profile-leadership { margin-top: 10px; }
.school-profile-leadership strong { color: #fff; font: 700 .9rem/1.65 var(--font-body); }
.note-icon .fa-solid, .sticker-sun .fa-solid, .welcome-caption .fa-solid, .signature-flower .fa-solid,
.contact-icon .fa-solid, .portal-symbol .fa-solid, .programme-detail-icon .fa-solid,
.school-profile-icon .fa-solid, .page-aside-icon .fa-solid, .admissions-enquiry-icon .fa-solid,
.portal-page-icon .fa-solid, .value-icon .fa-solid, .highlight-icon .fa-solid { display: inline-block; line-height: 1; }
.note-icon .fa-solid { color: var(--coral); font-size: 1.08rem; }
.sticker-sun .fa-solid { color: var(--coral); font-size: 1.2rem; }
.welcome-caption .fa-solid { color: var(--coral); font-size: 1rem; }
.signature-flower .fa-solid { font-size: 1.1rem; }
.contact-icon .fa-solid { font-size: 1.18rem; }
.portal-symbol .fa-solid { font-size: 1.3rem; }
.value-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; margin-bottom: 9px; border-radius: 11px; color: var(--navy); background: #e8f3fc; }
.value-card-2 .value-icon { color: #a64e38; background: #fff0e9; }
.value-card-3 .value-icon { color: #26724f; background: #e7f5ed; }
.value-card-4 .value-icon { color: #946b12; background: #fff6da; }
.highlight-icon::before { display: none; }
.highlight-icon .fa-solid { font-size: 1.2rem; }
.text-link > .fa-solid { transition: transform .2s ease; }
.text-link:hover > .fa-solid { transform: translateX(4px); }
.mini-points i.fa-solid { display: inline-grid; width: 19px; height: 19px; place-items: center; color: #26724f; font-size: .62rem; }
.inner-hero--about .inner-hero-image { object-position: center 40%; }
.inner-hero--academics .inner-hero-image { object-position: center 48%; }
.inner-hero--gallery .inner-hero-image { object-position: center 35%; }
.inner-hero--admissions .inner-hero-image { object-position: center 42%; }
.inner-hero--contact .inner-hero-image { object-position: center 45%; }
.inner-hero--editorial .inner-hero-image { object-position: center 40%; }
.mini-points i.fa-solid::after { content: none; }
.school-empty-state { padding: clamp(25px, 4vw, 40px); border: 1px dashed #b8cad9; border-radius: 20px; background: linear-gradient(130deg, #f4f9fd, #fffaf1); }
.school-empty-state > span { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 15px; border-radius: 15px; color: var(--navy); background: #ffedb9; font-size: 1.15rem; }
.school-empty-state h2, .school-empty-state h3 { margin: 0 0 8px; font-size: 1.35rem; }
.school-empty-state p { max-width: 660px; margin: 0 0 14px; color: #43576a; }
.school-empty-state .text-link { margin-top: 4px; }
.gallery-page-content .gallery-filters { gap: 9px; margin: 0 0 24px; }
.gallery-page-content .gallery-filters a { padding: 10px 17px; border: 1px solid #dce8f0; color: #173b65; background: #f2f8fd; transition: color .18s ease, background .18s ease, transform .18s ease; }
.gallery-page-content .gallery-filters a:hover, .gallery-page-content .gallery-filters a:focus-visible { color: #fff; background: #173b65; transform: translateY(-2px); }
.gallery-page-content .gallery-item { position: relative; background: #e8f1f8; }
.gallery-page-content .gallery-item img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.gallery-page-content .gallery-item:hover img { transform: scale(1.045); }
.gallery-page-content .gallery-item > span { right: 12px; bottom: 12px; left: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 9px 13px; border: 1px solid rgb(255 255 255 / 60%); border-radius: 12px; color: #173b65; background: rgb(255 255 255 / 94%); font-size: .82rem; font-weight: 800; }
.story-page { max-width: 1100px; }
.story-page-heading { padding-bottom: 34px; }
.story-page-heading .story-heading-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); align-items: center; gap: clamp(28px, 5vw, 62px); }
.story-page-heading .story-heading-grid:not(.has-featured) { grid-template-columns: 1fr; }
.story-page-heading .story-heading-copy { position: relative; z-index: 1; }
.story-page-heading h1 { max-width: 700px; }
.story-page-heading .story-summary { max-width: 620px; margin: 15px 0 0; color: #40566b; font-size: 1.08rem; }
.story-page-heading .story-date { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #40566b; font-size: .88rem; font-weight: 800; }
.story-page-heading .story-date i { color: var(--coral); }
.story-page-heading .story-featured { overflow: hidden; min-width: 0; margin: 0; border: 7px solid #fff; border-radius: 28px 72px 28px 28px; background: #e3edf4; box-shadow: 0 20px 50px rgb(23 59 101 / 15%); transform: rotate(1deg); }
.story-page-heading .story-featured img { width: 100%; height: clamp(245px, 30vw, 385px); object-fit: cover; }
.story-article { max-width: 850px; margin: 0 auto; padding: clamp(27px, 5vw, 55px); border: 1px solid #e2eaf0; border-radius: 26px; background: #fff; box-shadow: 0 16px 40px rgb(23 59 101 / 6%); }
.story-navigation { max-width: 850px; margin: 0 auto; }
.story-navigation .nav-links { margin-top: 28px; }
.story-navigation .nav-links a { height: 100%; }
.not-found-mark { display: grid; width: 72px; height: 72px; place-items: center; margin: 24px 0 13px; border: 1px solid #f1d998; border-radius: 23px; color: var(--navy); background: #fff2cb; box-shadow: 0 12px 28px rgb(23 59 101 / 8%); font-size: 1.7rem; transform: rotate(-7deg); }
.not-found-page { display: grid; width: 100%; max-width: none; min-height: 70vh; place-items: center; margin: 0; padding: clamp(42px, 7vw, 90px) 0; background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%); }
.not-found-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: clamp(30px, 7vw, 100px); min-height: 470px; padding: clamp(30px, 6vw, 72px); border: 1px solid #e4edf2; border-radius: 32px; background: linear-gradient(120deg, #f0f7ff, #fffaf0); box-shadow: 0 20px 60px rgb(23 59 101 / 8%); }
.not-found-copy { min-width: 0; }
.not-found-copy .page-breadcrumb { margin-bottom: 22px; }
.not-found-copy .not-found-mark { margin: 24px 0 18px; }
.not-found-copy h1 { max-width: 700px; margin: 0 0 17px; color: var(--navy); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.04; }
.not-found-copy > p { max-width: 510px; margin: 0 0 22px; color: #4a6072; font-size: 1.08rem; }
.not-found-copy .hero-actions { flex-wrap: wrap; gap: 14px 24px; }
.not-found-search { max-width: 470px; margin-top: 27px; }
.not-found-search .search-form { display: flex; gap: 10px; }
.not-found-search input[type="search"] { min-width: 0; flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid #c8d8e3; border-radius: 12px; background: #fff; }
.not-found-search button, .not-found-search input[type="submit"] { min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; color: #fff; background: var(--navy); font-weight: 800; cursor: pointer; }
.not-found-visual { position: relative; display: grid; min-height: 340px; place-items: center; isolation: isolate; }
.not-found-orbit { position: absolute; width: min(100%, 330px); aspect-ratio: 1; border: 26px solid rgb(255 201 71 / 26%); border-radius: 50%; background: rgb(255 255 255 / 45%); }
.not-found-number { position: relative; color: rgb(23 59 101 / 8%); font: 900 clamp(6rem, 13vw, 10rem)/1 var(--font-head); letter-spacing: -.08em; }
.not-found-visual-icon { position: absolute; top: 18%; right: 13%; display: grid; width: 66px; height: 66px; place-items: center; border: 5px solid #fff; border-radius: 22px; color: var(--navy); background: var(--gold); box-shadow: 0 15px 35px rgb(23 59 101 / 14%); font-size: 1.55rem; transform: rotate(9deg); }
.not-found-caption { position: absolute; right: 0; bottom: 8%; padding: 12px 16px; border: 1px solid #e5edf2; border-radius: 14px; color: #36536a; background: #fff; box-shadow: 0 10px 26px rgb(23 59 101 / 8%); font-size: .8rem; font-weight: 800; }

@media (max-width: 980px) {
  .inner-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: 35px; }
  .inner-hero h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); }
  .page-body--about, .page-body--facilities, .page-body--admissions, .page-body--faqs, .privacy-page-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 25px; }
}
@media (max-width: 760px) {
  .sbf-privacy-page .site-header { position: static; top: auto; }
  .inner-hero { padding: 42px 0 56px; }
  .inner-hero-grid { grid-template-columns: 1fr; gap: 27px; }
  .inner-hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .inner-hero-summary { margin-top: 15px; font-size: 1.03rem; }
  .inner-hero-visual { width: min(100%, 540px); justify-self: center; padding: 6px 8px 19px 14px; }
  .inner-hero-image { height: clamp(235px, 65vw, 370px); border-width: 6px; }
  .inner-hero-visual figcaption { left: 0; min-height: 40px; font-size: .78rem; }
  .inner-hero--portal .inner-hero-grid { grid-template-columns: 1fr auto; }
  .inner-hero--portal .inner-hero-orbit { width: 112px; }
  .inner-hero--portal .inner-hero-orbit i { font-size: 2.8rem; }
  .page-body, .privacy-page-layout { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 68px; }
  .privacy-page-layout { width: min(100% - 30px, 560px); min-width: 0; }
  .privacy-article { box-sizing: border-box; width: 100%; padding: 24px 18px; }
  .privacy-article > p:first-child { padding: 16px 14px; }
  .privacy-page-layout .privacy-aside { position: static !important; top: auto; box-sizing: border-box; width: 100%; }
  .school-profile-card, .page-aside-card, .admissions-enquiry-card { position: static; }
  .programme-details-section { padding: 48px 0; }
  .programme-detail-grid { gap: 16px; }
  .programme-detail-copy { padding: 22px; }
  .programme-detail-image { height: clamp(200px, 43vw, 280px); }
  .facilities-editorial > .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-page-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
  .gallery-page-content .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page-content { grid-template-columns: 1fr; gap: 16px; }
  .contact-page-content > p, .contact-page-content > .contact-grid, .contact-page-content > h2, .contact-page-content > .sbf-form { grid-column: 1; grid-row: auto; }
  .sbf-form { grid-template-columns: 1fr; gap: 15px; }
  .sbf-field-message, .sbf-form [data-form-status], .sbf-form button, .recaptcha-attribution { grid-column: 1; }
  .portal-page-section { padding-top: 42px; padding-bottom: 70px; }
  .story-page-heading .story-heading-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 25px; }
}
@media (max-width: 520px) {
  .inner-hero-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .inner-hero-actions > a { width: 100%; justify-content: center; }
  .inner-hero-actions > .text-link { justify-content: flex-start; }
  .inner-hero--portal .inner-hero-grid { grid-template-columns: 1fr; }
  .inner-hero--portal .inner-hero-orbit { display: none; }
  .page-editorial-card, .privacy-article { padding: 25px 21px; border-radius: 21px; }
  .programme-detail-grid { grid-template-columns: 1fr; }
  .programme-detail-image { height: 235px; }
  .facilities-editorial > .post-grid, .gallery-page-content .gallery-grid { grid-template-columns: 1fr; }
  .gallery-page-content .gallery-item img { height: 240px; }
  .portal-page-card { grid-template-columns: 1fr; gap: 15px; padding: 25px 21px; }
  .portal-page-icon { width: 54px; height: 54px; }
  .story-page-heading .story-heading-grid { grid-template-columns: 1fr; }
  .story-page-heading .story-featured { order: -1; }
  .story-page-heading .story-featured img { height: clamp(220px, 65vw, 315px); }
  .story-article { padding: 25px 21px; }
}
@media (max-width: 760px) {
  .not-found-page { min-height: auto; padding: 28px 0 55px; }
  .not-found-layout { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 28px 22px; border-radius: 23px; }
  .not-found-copy h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .not-found-visual { min-height: 240px; }
  .not-found-orbit { width: 220px; border-width: 20px; }
  .not-found-number { font-size: 7rem; }
  .not-found-visual-icon { top: 8%; right: 18%; width: 54px; height: 54px; border-radius: 18px; }
  .not-found-caption { right: 5%; bottom: 2%; }
}

/* Purpose-built school content cards */
.facility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facility-card { overflow: hidden; border: 1px solid #e1eaf0; border-radius: 23px; background: #fff; box-shadow: 0 13px 34px rgb(23 59 101 / 7%); transition: transform .2s ease, box-shadow .2s ease; }
.facility-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgb(23 59 101 / 12%); }
.facility-card-image img { display: block; width: 100%; height: 220px; object-fit: cover; }
.facility-card-body { position: relative; padding: 28px 24px 25px; }
.facility-card-icon { position: relative; display: grid; width: 48px; height: 48px; place-items: center; margin-top: -52px; margin-bottom: 17px; border: 4px solid #fff; border-radius: 16px; color: var(--navy); background: var(--gold); font-size: 1.1rem; }
.facility-card-body h2 { margin: 0 0 7px; color: var(--navy); font-size: 1.35rem; }
.facility-card-subtitle { margin: 0 0 10px; color: #315f4e; font-size: .87rem; font-weight: 800; }
.facility-card-copy { color: #526678; font-size: .94rem; line-height: 1.7; }
.facility-card-copy > :last-child { margin-bottom: 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.testimonial-card { position: relative; display: flex; min-height: 230px; flex-direction: column; padding: 27px; border: 1px solid #e0eaf0; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgb(23 59 101 / 6%); }
.testimonial-card-quote { flex: 1; color: #40576b; font-size: 1rem; line-height: 1.75; }
.testimonial-card-quote p:last-child { margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 11px; padding-top: 17px; border-top: 1px solid #e8eef2; }
.testimonial-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; color: var(--navy); background: #fff2cc; }
.testimonial-author strong, .testimonial-author small { display: block; }
.testimonial-author strong { color: var(--navy); font-size: .9rem; }
.testimonial-author small { margin-top: 3px; color: #637789; font-size: .78rem; }
.gallery-item { overflow: hidden; border-radius: 20px; box-shadow: 0 12px 30px rgb(23 59 101 / 8%); }
.gallery-item img { transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.faq-item { overflow: hidden; margin-bottom: 12px; border: 1px solid #e1eaf0; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgb(23 59 101 / 4%); }
.faq-item h2 button { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 21px; }
.faq-item [data-panel] { padding: 0 21px 20px; }
@media (max-width: 900px) { .facility-grid, .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 520px) { .facility-grid, .testimonial-grid { grid-template-columns: 1fr; } }

/* Testimonial carousel and full quote dialog */
.testimonial-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.testimonial-heading h2 { margin-bottom: 0; }
.testimonial-carousel-controls { display: flex; flex: 0 0 auto; gap: 10px; padding-bottom: 3px; }
.testimonial-carousel-arrow { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 1px solid #d4e2ed; border-radius: 50%; color: var(--navy); background: #fff; box-shadow: 0 7px 18px rgb(23 59 101 / 7%); font-size: 1rem; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease; }
.testimonial-carousel-arrow:not(:disabled):hover { transform: translateY(-2px); border-color: var(--navy); color: #fff; background: var(--navy); }
.testimonial-carousel-arrow:disabled { opacity: .42; cursor: default; box-shadow: none; }
.testimonial-viewport { overflow: hidden; padding: 6px; margin: -6px; }
.testimonial-grid { display: flex; align-items: stretch; gap: 20px; transition: transform .42s cubic-bezier(.22,.75,.25,1); will-change: transform; }
.testimonial-card { box-sizing: border-box; flex: 0 0 calc((100% - 40px) / 3); min-width: 0; min-height: 330px; padding: 27px; }
.testimonial-card-quote { display: flex; flex: 1; flex-direction: column; align-items: flex-start; color: #40576b; font-size: 1rem; line-height: 1.75; }
.testimonial-card-quote p { margin: 0 0 14px; color: inherit; }
.testimonial-read-more { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 21px; padding: 0; border: 0; color: #315f4e; background: none; font: 800 .88rem var(--font-head); cursor: pointer; }
.testimonial-read-more:hover { color: var(--blue); }
.testimonial-read-more i { font-size: .76rem; }
.testimonial-author { width: 100%; margin-top: auto; }
.testimonial-dialog { position: fixed; inset: 0; box-sizing: border-box; width: min(650px, calc(100% - 32px)); max-width: 650px; max-height: min(86vh, 820px); overflow: auto; padding: 0; margin: auto; border: 0; border-radius: 28px; color: var(--ink); background: transparent; box-shadow: 0 30px 100px rgb(16 46 77 / 28%); }
.testimonial-dialog[open] { display: grid; place-items: center; }
.testimonial-dialog::backdrop { background: rgb(13 35 58 / 64%); backdrop-filter: blur(5px); }
.testimonial-dialog-card { position: relative; padding: clamp(30px, 6vw, 52px); border: 1px solid rgb(255 255 255 / 75%); border-radius: 28px; background: linear-gradient(145deg, #fff 0%, #f5f9ff 100%); }
.testimonial-dialog-card .eyebrow { display: block; padding-right: 50px; }
.testimonial-dialog-card h2 { margin: 12px 48px 18px 0; font-size: clamp(1.65rem, 5vw, 2.25rem); }
.testimonial-dialog-close { position: absolute; top: 18px; right: 18px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #dce7ef; border-radius: 50%; color: var(--navy); background: #fff; font-size: 1.1rem; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.testimonial-dialog-close:hover { transform: rotate(90deg); color: #fff; background: var(--navy); }
.testimonial-dialog-quote { display: block; margin-top: 22px; color: var(--coral); font: 800 4.4rem/.7 var(--font-head); }
.testimonial-dialog-content { color: #40576b; font-size: 1.04rem; line-height: 1.85; }
.testimonial-dialog-content > :last-child { margin-bottom: 0; }
.testimonial-dialog-author { margin: 23px 0 0; padding-top: 17px; border-top: 1px solid #dce7ef; color: var(--navy); font-size: .88rem; font-weight: 800; }
@media (max-width: 900px) {
  .testimonial-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .testimonial-heading { align-items: flex-end; gap: 14px; }
  .testimonial-heading h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .testimonial-carousel-controls { gap: 7px; }
  .testimonial-carousel-arrow { width: 42px; height: 42px; }
  .testimonial-grid { gap: 14px; }
  .testimonial-card { flex-basis: 100%; min-height: 300px; padding: 23px; }
  .testimonial-dialog-card { padding: 30px 23px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-grid, .testimonial-carousel-arrow, .testimonial-dialog-close { transition: none; }
}

/* Keep desktop dropdown links left-aligned when other menu styles are active. */
@media (min-width: 1081px) {
  .site-header .primary-nav > ul > li > ul.sub-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .site-header .primary-nav > ul > li > ul.sub-menu > li {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    text-align: left !important;
  }
  .site-header .primary-nav > ul > li > ul.sub-menu > li > a {
    display: flex !important;
    width: 100% !important;
    min-height: 42px;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    text-align: left !important;
  }
}
