
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* =====================================================
   1. GLOBAL SETTINGS
===================================================== */

:root {
    --navy: #102d52;
    --navy2: #173d68;
    --gold: #e5bd45;
    --gold-dark: #bd9222;
    --ink: #1d2b3d;
    --muted: #667386;
    --paper: #f6f7f9;
    --white: #fff;
    --line: #e5e9ef;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button {
    font: inherit;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    padding: 10px;
    z-index: 99;
}

.skip-link:focus {
    left: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================================
   2. TOP BAR
===================================================== */

.topbar {
    background: #0b213d;
    color: #dce5ef;
    font-size: 12px;
}

.topbar-inner,
.topbar-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.topbar-inner {
    min-height: 36px;
}

.topbar-links a {
    color: #fff;
}

/* =====================================================
   3. HEADER AND NAVIGATION
===================================================== */

.site-header {
    background: #fff;
    position: relative;
    z-index: 10;
    box-shadow: 0 3px 18px #102d520c;
}

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

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

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

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    color: var(--navy);
}

.brand-copy strong {
    font-size: 15px;
    letter-spacing: .7px;
}

.brand-copy span {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-top: 4px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    font-weight: 600;
}

.primary-nav > a {
    padding: 10px 0;
    color: #3e4c5f;
}

.primary-nav > a:hover,
.primary-nav > a.active {
    color: var(--gold-dark);
}

.primary-nav .nav-portal {
    background: var(--navy);
    color: #fff;
    padding: 12px 17px;
    border-radius: 3px;
}

.primary-nav .nav-portal:hover {
    background: var(--gold-dark);
    color: #fff;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--navy);
    color: #fff;
    border-radius: 4px;
    padding: 9px 13px;
    font-size: 22px;
    cursor: pointer;
}

/* =====================================================
   4. HOMEPAGE HERO SECTION
===================================================== */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            rgba(8,29,54,.94) 0%,
            rgba(12,42,75,.82) 48%,
            rgba(12,42,75,.28) 100%
        ),
        linear-gradient(
            135deg,
            #173d68,
            #59748b 55%,
            #b2a17b
        );
    overflow: hidden;
}

.hero:after {
    content: "";
    position: absolute;
    right: -5%;
    top: -30%;
    width: 58%;
    height: 160%;
    border: 1px solid #ffffff30;
    transform: rotate(22deg);
    border-radius: 48%;
    pointer-events: none;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 78% 45%,
        #e5bd4520,
        transparent 32%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 65px;
    padding-bottom: 65px;
}

/* Hero text and image layout */

.hero-content.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 16px;
}

.hero h1,
.section-heading h2,
.welcome h2,
.values h2,
.admissions-inner h2 {
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.13;
    letter-spacing: -.5px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    max-width: 720px;
    margin: 0 0 22px;
}

.hero h1 span {
    color: var(--gold);
}

.hero-intro {
    max-width: 560px;
    color: #e2e9f0;
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 21px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 3px;
    transition: .2s;
}

.button-gold {
    background: var(--gold);
    color: #172c45;
}

.button-gold:hover {
    background: #f1cf65;
    transform: translateY(-2px);
}

.button-outline {
    border: 1px solid #ffffff90;
    color: #fff;
}

.button-outline:hover {
    background: #fff;
    color: var(--navy);
}

.hero-note {
    margin-top: 45px;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #d9e1ea;
    display: flex;
    align-items: center;
    gap: 12px;
}

.note-line {
    width: 38px;
    height: 2px;
    background: var(--gold);
}

/* =====================================================
   5. HERO PHOTO CAROUSEL
===================================================== */

.hero-gallery {
    position: relative;
    width: 100%;
    height: 430px;
    border: 5px solid rgba(255,255,255,.85);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0,0,0,.35);
    background: #173d68;
}

/* Slide container */

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* All photographs are hidden by default */

.hero-slides .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 1.1s ease, visibility 1.1s ease;
}

/* Only the active photograph is displayed */

.hero-slides .hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Photograph sizing */

.hero-slides .hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Previous and next buttons */

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    background: rgba(16,45,82,.75);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: .25s;
}

.hero-control:hover {
    background: var(--gold);
    color: var(--navy);
}

.hero-prev {
    left: 15px;
}

.hero-next {
    right: 15px;
}

/* Photograph indicators */

.hero-indicators {
    position: absolute;
    bottom: 65px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 20px;
}

.hero-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    transition: .25s;
}

.hero-dot.active {
    background: var(--gold);
    transform: scale(1.5);
}

/* Caption at the bottom of the photograph */

.hero-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 20px;
    background: linear-gradient(
        transparent,
        rgba(5,20,38,.92)
    );
    color: #fff;
}

.hero-gallery-caption span {
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-gallery-caption strong {
    font-size: 13px;
}

/* =====================================================
   6. WELCOME SECTION
===================================================== */

.section-pad {
    padding: 90px 0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 90px;
    align-items: center;
}

.eyebrow-blue {
    color: var(--gold-dark);
}

.welcome h2,
.section-heading h2,
.values h2 {
    font-size: clamp(32px, 4vw, 44px);
    color: var(--navy);
    margin: 0 0 22px;
}

.welcome h2 span,
.section-heading h2 span {
    color: var(--gold-dark);
}

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

.welcome .lead {
    font-size: 17px;
    color: #405066;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    margin-top: 15px;
}

.text-link:hover {
    color: var(--navy);
}

.welcome-card {
    background: var(--navy);
    color: #fff;
    padding: 35px 38px;
    min-height: 330px;
    position: relative;
    overflow: hidden;
}

.welcome-card:after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid #ffffff20;
    border-radius: 50%;
    right: -80px;
    bottom: -90px;
}

.welcome-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.crest-frame {
    background: #fff;
    border-radius: 3px;
    padding: 5px;
    display: inline-flex;
}

.crest-frame img {
    width: 75px;
    height: 55px;
    object-fit: contain;
}

.since {
    text-align: right;
    font-size: 10px;
    letter-spacing: 2px;
    color: #d8e2ed;
}

.since strong {
    font-size: 24px;
    color: var(--gold);
}

.welcome-card h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
    line-height: 1.25;
    margin: 34px 0 12px;
}

.welcome-card p {
    color: #cbd6e3;
    font-size: 13px;
}

.gold-rule {
    height: 3px;
    width: 45px;
    background: var(--gold);
    margin: 26px 0 13px;
}

.card-caption {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #dce4ed;
}

/* =====================================================
   7. SCHOOL LEVELS
===================================================== */

.school-levels {
    background: var(--paper);
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 42px;
}

.section-heading h2 {
    margin-bottom: 14px;
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: 14px;
}

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

.level-card {
    min-height: 310px;
    background: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-shadow: 0 8px 28px #102d520a;
}

.level-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: var(--gold);
}

.level-primary:before {
    background: var(--navy2);
}

.level-secondary:before {
    background: #8296a9;
}

.level-number {
    position: absolute;
    right: 22px;
    top: 17px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 58px;
    color: #eef1f5;
}

.level-content {
    position: relative;
}

.level-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 10px;
    color: var(--gold-dark);
    font-weight: 700;
}

.level-content h3 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--navy);
    font-size: 29px;
    margin: 5px 0;
}

.level-content p:not(.level-label) {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

/* =====================================================
   8. SCHOOL VALUES
===================================================== */

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

.values-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.values h2 {
    color: #fff;
}

.values h2 span {
    color: var(--gold);
}

.values-intro > p:not(.eyebrow) {
    color: #cbd6e3;
    font-size: 14px;
    max-width: 430px;
    margin-bottom: 28px;
}

.button-light {
    background: #fff;
    color: var(--navy);
}

.button-light:hover {
    background: var(--gold);
}

.value-list {
    border-top: 1px solid #ffffff30;
}

.value-item {
    display: flex;
    gap: 25px;
    padding: 23px 0;
    border-bottom: 1px solid #ffffff30;
}

.value-item > span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    color: var(--gold);
}

.value-item h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.value-item p {
    margin: 0;
    color: #cbd6e3;
    font-size: 13px;
}

/* =====================================================
   9. QUICK LINKS
===================================================== */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-card {
    border: 1px solid var(--line);
    padding: 25px 22px;
    display: flex;
    flex-direction: column;
    min-height: 205px;
    transition: .2s;
}

.quick-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #102d5210;
}

.quick-icon {
    font-size: 25px;
    color: var(--gold-dark);
    margin-bottom: 17px;
}

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

.quick-card > span:not(.quick-icon) {
    font-size: 12px;
    color: var(--muted);
    margin-top: 7px;
}

.quick-card b {
    font-size: 11px;
    color: var(--gold-dark);
    margin-top: auto;
    padding-top: 18px;
}

/* =====================================================
   10. ADMISSIONS BANNER
===================================================== */

.admissions-banner {
    background: #e9edf2;
    padding: 54px 0;
}

.admissions-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.admissions-inner .eyebrow {
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.admissions-inner h2 {
    font-size: clamp(27px, 3vw, 37px);
    color: var(--navy);
    margin: 0 0 8px;
    max-width: 650px;
}

.admissions-inner p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* =====================================================
   11. FOOTER
===================================================== */

.site-footer {
    background: #091d35;
    color: #d9e2ec;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 45px;
    padding-top: 55px;
    padding-bottom: 45px;
}

.brand-footer {
    min-width: 0;
}

.brand-footer .brand-copy {
    color: #fff;
}

.brand-footer .brand-copy span {
    color: var(--gold);
}

.brand-footer img {
    background: #fff;
    border-radius: 3px;
    padding: 3px;
}

.footer-brand > p,
.footer-main > div:last-child p {
    font-size: 12px;
    color: #aebdcd;
    margin-top: 18px;
}

.footer-main h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--gold);
    margin: 5px 0 17px;
}

.footer-main > div:not(:first-child) > a {
    display: block;
    font-size: 12px;
    color: #c4d0dc;
    margin: 10px 0;
}

.footer-main a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #ffffff20;
    font-size: 10px;
    color: #aebdcd;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    padding-bottom: 17px;
}

/* =====================================================
   12. INNER PAGE HERO
===================================================== */

.page-hero {
    background: linear-gradient(115deg, #0b2341, #173d68);
    color: #fff;
    padding: 76px 0 82px;
    position: relative;
    overflow: hidden;
}

.page-hero:after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid #ffffff25;
    border-radius: 50%;
    right: 7%;
    top: -220px;
    box-shadow: 0 0 0 35px #ffffff08, 0 0 0 70px #ffffff06;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font: 700 clamp(38px, 5vw, 58px)/1.12 "Playfair Display", Georgia, serif;
    margin: 0 0 14px;
}

.page-hero h1 span {
    color: var(--gold);
}

.page-hero p:last-child {
    color: #d6e0eb;
    max-width: 650px;
    margin: 0;
    font-size: 15px;
}

/* =====================================================
   13. INNER PAGE CONTENT
===================================================== */

.content-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 65px;
    align-items: start;
}

.content-grid h2,
.contact-grid h2 {
    font: 700 clamp(30px, 4vw, 40px)/1.2 "Playfair Display", Georgia, serif;
    color: var(--navy);
    margin: 0 0 18px;
}

.content-grid p {
    color: var(--muted);
    font-size: 14px;
}

.content-grid .lead {
    font-size: 17px;
    color: #405066;
    line-height: 1.8;
}

.info-panel {
    background: #f2f4f7;
    border-top: 4px solid var(--gold);
    padding: 30px;
}

.info-panel h3 {
    font: 700 23px "Playfair Display", Georgia, serif;
    color: var(--navy);
    margin: 0 0 14px;
}

.info-panel p,
.info-panel li {
    font-size: 13px;
    color: var(--muted);
}

.panel-mark {
    display: inline-flex;
    background: var(--navy);
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 2px;
    padding: 9px 13px;
    margin-bottom: 20px;
}

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

/* =====================================================
   14. FEATURE GRID
===================================================== */

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

.feature-grid article {
    background: #fff;
    border: 1px solid var(--line);
    padding: 27px;
}

.feature-grid article > b {
    font: 700 25px "Playfair Display", Georgia, serif;
    color: var(--gold-dark);
}

.feature-grid h3 {
    color: var(--navy);
    font-size: 17px;
    margin: 13px 0 8px;
}

.feature-grid p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* =====================================================
   15. PROGRAMMES
===================================================== */

.programme-list {
    max-width: 900px;
    margin: 0 auto;
}

.programme {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 25px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 30px;
}

.programme-index {
    font: 700 48px "Playfair Display", Georgia, serif;
    color: #d9e0e8;
}

.programme h2 {
    font: 700 30px "Playfair Display", Georgia, serif;
    color: var(--navy);
    margin: 0 0 8px;
}

.programme p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.programme .eyebrow {
    margin-bottom: 7px;
}

.check-list {
    padding-left: 20px;
}

.check-list li {
    padding: 5px 0;
}

.small-note {
    font-size: 11px !important;
    color: #788596 !important;
    line-height: 1.6;
    margin-top: 20px;
}

/* =====================================================
   16. NOTICES AND GALLERY
===================================================== */

.notice-panel {
    max-width: 780px;
    margin: 0 auto 30px;
    padding: 42px;
    background: var(--paper);
    border-left: 4px solid var(--gold);
}

.notice-panel h2 {
    font: 700 30px "Playfair Display", Georgia, serif;
    color: var(--navy);
    margin: 0 0 12px;
}

.notice-panel p:not(.eyebrow) {
    font-size: 14px;
    color: var(--muted);
}

.gallery-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-placeholder-grid div {
    min-height: 150px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8edf2, #d5dde7);
    color: #53647a;
    font-weight: 700;
}

/* =====================================================
   17. CONTACT PAGE
===================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 60px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
}

.contact-detail b {
    font-size: 12px;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail span,
.contact-detail a {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

/* =====================================================
   18. TABLET RESPONSIVE DESIGN
===================================================== */

@media (max-width: 1000px) {

    .primary-nav {
        gap: 12px;
        font-size: 12px;
    }

    .welcome-grid,
    .values-grid {
        gap: 45px;
    }

    .footer-main {
        gap: 25px;
    }
}

@media (max-width: 800px) {

    /* Navigation */

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

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px 22px 22px;
        box-shadow: 0 12px 20px #102d5215;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav > a {
        padding: 11px 5px;
    }

    .primary-nav .nav-portal {
        text-align: center;
        margin-top: 8px;
    }

    /* Homepage hero */

    .hero {
        min-height: auto;
    }

    .hero-content.hero-layout {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .hero-gallery {
        height: 380px;
        width: 100%;
    }

    .hero h1 {
        max-width: 100%;
    }

    .hero-note {
        margin-top: 28px;
    }

    /* Homepage sections */

    .welcome-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .welcome-card {
        max-width: 520px;
    }

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

    .level-card {
        min-height: 240px;
    }

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

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

    .admissions-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Inner pages */

    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

    .programme {
        grid-template-columns: 60px 1fr;
        gap: 15px;
    }

    .programme-index {
        font-size: 36px;
    }

    .gallery-placeholder-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 60px 0;
    }
}

/* =====================================================
   19. MOBILE RESPONSIVE DESIGN
===================================================== */

@media (max-width: 520px) {

    .container {
        width: min(var(--max), calc(100% - 32px));
    }

    /* Header */

    .topbar-inner {
        font-size: 10px;
    }

    .topbar-links {
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

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

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

    .brand-copy span {
        font-size: 8px;
    }

    /* Hero */

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

    .hero-intro {
        font-size: 14px;
    }

    .hero-content.hero-layout {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero-gallery {
        height: 270px;
        border-width: 3px;
    }

    .hero-control {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .hero-indicators {
        gap: 6px;
        bottom: 65px;
    }

    .hero-dot {
        width: 6px;
        height: 6px;
    }

    .hero-gallery-caption {
        padding: 11px 14px;
    }

    .hero-note {
        margin-top: 30px;
    }

    /* Other sections */

    .section-pad {
        padding: 65px 0;
    }

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

    .quick-card {
        min-height: 170px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 25px 18px;
    }

    .footer-bottom .container {
        flex-direction: column;
    }

    .welcome-card {
        padding: 28px;
    }
}

/* =====================================================
   20. ACCESSIBILITY: REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-slides .hero-slide {
        transition: none;
    }

    .button,
    .hero-control,
    .hero-dot,
    .quick-card {
        transition: none;
    }
	/* =====================================================
   21. IMPROVED CKIS HOMEPAGE HERO DESIGN
===================================================== */

.hero-content.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(28px, 4vw, 55px);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* Make the photograph section fill the available height */

.hero-gallery {
    width: 100%;
    height: auto;
    min-height: 430px;
    aspect-ratio: 1.28 / 1;
    align-self: stretch;
    border: 5px solid rgba(255,255,255,.88);
    border-radius: 9px;
    box-shadow: 0 22px 55px rgba(0,0,0,.28);
}

/* Improved heading typography */

.hero h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(44px, 5.1vw, 66px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.5px;
    max-width: 620px;
    margin: 0 0 22px;
    text-wrap: balance;
}

.hero h1 span {
    color: var(--gold);
}

/* Improved introductory text */

.hero-intro {
    max-width: 540px;
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.8;
    margin: 0;
}

.hero .eyebrow {
    font-size: 11px;
    letter-spacing: 2.4px;
    margin-bottom: 18px;
}

/* Improved buttons */

.hero-actions {
    margin-top: 28px;
    gap: 14px;
}

.hero .button {
    min-height: 50px;
    padding: 14px 21px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: .1px;
}

/* Improved photograph presentation */

.hero-slides .hero-slide img {
    object-fit: cover;
    object-position: center;
}

.hero-control {
    width: 42px;
    height: 42px;
    backdrop-filter: blur(5px);
}

.hero-dot {
    width: 8px;
    height: 8px;
}

/* Improve headings throughout the website */

.welcome h2,
.section-heading h2,
.values h2,
.admissions-inner h2,
.page-hero h1,
.content-grid h2,
.contact-grid h2 {
    letter-spacing: -.8px;
}


/* =========================================
   SCHOOL LEVEL PHOTOGRAPH CARDS
========================================= */

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

.level-card {
    min-width: 0;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px #102d520a;
}

.level-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9edf2;
}

.level-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.level-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gold);
    z-index: 2;
}

.level-primary:before {
    background: var(--navy2);
}

.level-secondary:before {
    background: #8296a9;
}

.level-number {
    position: absolute;
    right: 20px;
    top: 12px;
    z-index: 3;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 48px;
    color: rgba(255,255,255,.85);
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.level-content {
    position: relative;
    padding: 25px 26px 28px;
    flex: 1;
}

.level-label {
    margin-bottom: 8px;
}

.level-content h3 {
    margin-bottom: 12px;
}

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

/* MOBILE */
@media (max-width: 600px) {
    .level-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .level-image {
        aspect-ratio: 4 / 3;
    }

    .level-content {
        padding: 22px;
    }
}

}
