﻿/* ==========================================================
   BPS Narnaul — Welcome Section  (blue theme, matches header)
   All sizes are in px and every rule is scoped under .welcome,
   so the site's global CSS (small html font-size, .btn, a{} …)
   cannot shrink or restyle it.
   ========================================================== */

.welcome {
    --navy: #14125f; /* same family as the top menu bar */
    --blue: #0c0c9a; /* logo blue */
    --blue-mid: #3a46d8;
    --blue-soft: #dfe4ff;
    --blue-tint: #eef1ff;
    --blue-wash: #f6f8ff;
    --ink: #1c1d4a;
    --muted: #4c5078;
    --line: #dfe3f7;
    --font-head: "Fraunces", Georgia, serif;
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    position: relative;
    overflow: hidden;
    padding: 110px 24px;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, var(--blue-wash) 100%);
}

    .welcome *,
    .welcome *::before,
    .welcome *::after {
        box-sizing: border-box;
    }

.welcome__container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
}

/* ---------- Background decoration (blue only) ---------- */
.welcome__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
}

.welcome__blob--one {
    width: 380px;
    height: 380px;
    top: -140px;
    left: -120px;
    background: var(--blue-soft);
}

.welcome__blob--two {
    width: 420px;
    height: 420px;
    bottom: -170px;
    right: -130px;
    background: #d3d9ff;
}

.welcome__dots {
    position: absolute;
    left: 3%;
    bottom: 8%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--blue-mid) 1.6px, transparent 1.7px);
    background-size: 16px 16px;
    opacity: 0.25;
}

/* ---------- Content ---------- */
.welcome .welcome__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font: 600 15px/1 var(--font-body);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-mid);
}

    .welcome .welcome__eyebrow span {
        width: 46px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--blue), var(--blue-soft));
    }

.welcome .welcome__title {
    margin: 0 0 24px;
    padding: 0;
    font: 700 58px/1.12 var(--font-head);
    letter-spacing: -0.01em;
    color: var(--navy);
}

    .welcome .welcome__title em {
        position: relative;
        font-style: italic;
        white-space: nowrap;
        color: var(--blue);
    }

        .welcome .welcome__title em::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -8px;
            height: 9px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5C40 1 80 1 120 4s56 1 78-2' fill='none' stroke='%23a9b4ff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
        }

.welcome .welcome__lead {
    margin: 0 0 16px;
    padding: 2px 0 2px 18px;
    border-left: 4px solid var(--blue-mid);
    font: 500 21px/1.5 var(--font-body);
    color: var(--navy);
}

.welcome .welcome__text {
    margin: 0 0 30px;
    max-width: 620px;
    font: 400 14px/1.85 var(--font-body);
    color: var(--muted);
    text-align: left;
}

/* ---------- Highlight chips ---------- */
.welcome .welcome__points {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 540px;
}

    .welcome .welcome__points li {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0;
        padding: 7px 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        font: 500 14px / 1.3 var(--font-body);
        color: var(--navy);
        box-shadow: 0 8px 20px rgba(20, 18, 95, 0.06);
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }

        .welcome .welcome__points li:hover {
            transform: translateY(-3px);
            border-color: var(--blue-mid);
            box-shadow: 0 14px 28px rgba(20, 18, 95, 0.12);
        }

    .welcome .welcome__points svg {
        flex: none;
        width: 40px;
        height: 40px;
        padding: 9px;
        border-radius: 12px;
        background: var(--blue-tint);
        fill: var(--blue);
    }

/* ---------- Buttons (own class names, immune to .btn / a{}) ---------- */
.welcome .welcome__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.welcome a.welcome__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    font: 600 17px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

    .welcome a.welcome__btn svg {
        width: 20px;
        height: 20px;
        transition: transform .25s ease;
    }

.welcome a.welcome__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    border: 2px solid transparent;
    box-shadow: 0 12px 26px rgba(12, 12, 154, 0.3);
}

    .welcome a.welcome__btn--primary:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 18px 32px rgba(12, 12, 154, 0.38);
    }

        .welcome a.welcome__btn--primary:hover svg {
            transform: translateX(5px);
        }

.welcome a.welcome__btn--ghost {
    color: var(--blue);
    background: #fff;
    border: 2px solid var(--blue);
}

    .welcome a.welcome__btn--ghost:hover {
        color: #fff;
        background: var(--blue);
        transform: translateY(-3px);
    }

.welcome a.welcome__btn:focus-visible {
    outline: 3px solid var(--blue-mid);
    outline-offset: 3px;
}

/* ---------- Media ---------- */
.welcome .welcome__media {
    position: relative;
    margin: 0;
    padding: 0 28px 28px 0;
}

.welcome .welcome__frame {
    position: absolute;
    top: 28px;
    left: 28px;
    right: 0;
    bottom: 0;
    border-radius: 28px 120px 28px 28px;
    background: linear-gradient(135deg, var(--blue-mid), var(--navy));
}

.welcome .welcome__photo {
    position: relative;
    border-radius: 28px 120px 28px 28px;
    overflow: hidden;
    aspect-ratio: 4 / 4.3;
    background: var(--blue-soft);
    box-shadow: 0 30px 60px rgba(20, 18, 95, 0.28);
}

    .welcome .welcome__photo img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: 55% 30%;
        transition: transform .8s ease;
    }

.welcome .welcome__media:hover .welcome__photo img {
    transform: scale(1.05);
}

.welcome .welcome__badge {
    position: absolute;
    left: -28px;
    bottom: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px 14px 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(20, 18, 95, 0.22);
    font: 400 14px/1.4 var(--font-body);
    color: var(--muted);
    animation: welcome-float 5s ease-in-out infinite;
}

    .welcome .welcome__badge strong {
        display: block;
        font: 600 17px/1.3 var(--font-body);
        color: var(--navy);
    }

.welcome .welcome__badge-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue));
}

    .welcome .welcome__badge-icon svg {
        width: 26px;
        height: 26px;
        fill: #fff;
    }

@keyframes welcome-float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ---------- Entrance animation ---------- */
.welcome .welcome__content > *,
.welcome .welcome__media {
    opacity: 0;
    transform: translateY(24px);
    animation: welcome-rise .8s cubic-bezier(.2,.7,.2,1) forwards;
}

    .welcome .welcome__content > *:nth-child(1) {
        animation-delay: .05s;
    }

    .welcome .welcome__content > *:nth-child(2) {
        animation-delay: .15s;
    }

    .welcome .welcome__content > *:nth-child(3) {
        animation-delay: .25s;
    }

    .welcome .welcome__content > *:nth-child(4) {
        animation-delay: .35s;
    }

    .welcome .welcome__content > *:nth-child(5) {
        animation-delay: .45s;
    }

    .welcome .welcome__content > *:nth-child(6) {
        animation-delay: .55s;
    }

.welcome .welcome__media {
    animation-delay: .3s;
}

@keyframes welcome-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome .welcome__content > *, .welcome .welcome__media, .welcome .welcome__badge {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .welcome .welcome__title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .welcome__container {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .welcome .welcome__media {
        order: -1;
        max-width: 620px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .welcome {
        padding: 56px 18px;
    }

        .welcome .welcome__title {
            font-size: 38px;
        }

            .welcome .welcome__title em {
                white-space: normal;
            }

        .welcome .welcome__lead {
            font-size: 19px;
        }

        .welcome .welcome__text, .welcome a.welcome__btn {
            font-size: 14px;
        }


        .welcome .welcome__points {
            grid-template-columns: 1fr;
        }

        .welcome .welcome__media {
            padding: 0 16px 16px 0;
        }

        .welcome .welcome__frame {
            top: 16px;
            left: 16px;
            border-radius: 22px 80px 22px 22px;
        }

        .welcome .welcome__photo {
            border-radius: 22px 80px 22px 22px;
        }

        .welcome .welcome__badge {
            left: -6px;
            bottom: 30px;
            padding: 10px 16px 10px 10px;
        }

        .welcome a.welcome__btn {
            padding: 12px 24px;
        }

    .gl a.gl__item img {
        object-position: top;
    }

    .gl a.gl__btn {
        padding: 12px 23px;
        font: 600 12px / 1 "Poppins", sans-serif;
    }
}

.ql {
    --navy: #14125f;
    --blue: #0c0c9a;
    --mid: #121250;
    --soft: #dfe4ff;
    --tint: #eef1ff;
    --muted: #555a82;
    --line: #dfe3f7;
    position: relative;
    overflow: hidden;
    padding: 40px 24px;
    font-family: "Poppins",system-ui,sans-serif;
    font-size: 18px;
    color: var(--navy);
    background: linear-gradient(180deg,#fff 0%,#f6f8ff 100%)
}

    .ql *, .ql *::before, .ql *::after {
        box-sizing: border-box
    }

.ql__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    pointer-events: none;
    background: var(--soft)
}

.ql__blob--a {
    width: 380px;
    height: 380px;
    top: -150px;
    right: -100px
}

.ql__blob--b {
    width: 340px;
    height: 340px;
    bottom: -160px;
    left: -110px;
    background: #d3d9ff
}

.ql__wrap {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto
}

.ql .ql__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px
}

.ql .ql__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    font: 600 15px/1 "Poppins",sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mid)
}

    .ql .ql__eyebrow::before, .ql .ql__eyebrow::after {
        content: "";
        width: 36px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg,var(--blue),var(--soft))
    }

    .ql .ql__eyebrow::before {
        background: linear-gradient(270deg,var(--blue),var(--soft))
    }

.ql .ql__title {
    margin: 0 0 14px;
    padding: 0;
    font: 700 46px/1.15 "Fraunces",Georgia,serif;
    color: var(--navy);
    text-wrap: balance
}

    .ql .ql__title em {
        font-style: italic;
        color: var(--blue)
    }

.ql .ql__sub {
    margin: 0;
    font: 400 18px/1.7 "Poppins",sans-serif;
    color: var(--muted)
}

.ql .ql__grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 24px
}

.ql a.ql__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 40px 24px 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(20,18,95,.06);
    transition: transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .35s,background .35s;
    opacity: 0;
    transform: translateY(24px);
    animation: ql-rise .7s cubic-bezier(.2,.7,.2,1) forwards
}

    .ql a.ql__card:nth-child(1) {
        animation-delay: .05s
    }

    .ql a.ql__card:nth-child(2) {
        animation-delay: .1s
    }

    .ql a.ql__card:nth-child(3) {
        animation-delay: .15s
    }

    .ql a.ql__card:nth-child(4) {
        animation-delay: .2s
    }

    .ql a.ql__card:nth-child(5) {
        animation-delay: .25s
    }

    .ql a.ql__card:nth-child(6) {
        animation-delay: .3s
    }

    .ql a.ql__card:nth-child(7) {
        animation-delay: .35s
    }

    .ql a.ql__card:nth-child(8) {
        animation-delay: .4s
    }

@keyframes ql-rise {
    to {
        opacity: 1;
        transform: none
    }
}

/* sliding blue fill on hover */
.ql a.ql__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(160deg,var(--mid),var(--navy));
    transform: translateY(101%);
    transition: transform .45s cubic-bezier(.2,.7,.2,1)
}

.ql a.ql__card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 26px 50px rgba(20,18,95,.28)
}

    .ql a.ql__card:hover::before {
        transform: none
    }

.ql a.ql__card > * {
    position: relative;
    z-index: 1
}

.ql a.ql__card > .ql__num {
    position: absolute
}

.ql .ql__num {
    position: absolute;
    top: 18px;
    left: 22px;
    font: 600 13px/1 "Poppins",sans-serif;
    letter-spacing: .1em;
    color: #b3bbe8;
    transition: color .35s
}

.ql .ql__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    border-radius: 26px;
    background: var(--tint);
    transition: background .35s,transform .45s cubic-bezier(.2,.7,.2,1)
}

    .ql .ql__icon svg {
        width: 40px;
        height: 40px;
        fill: var(--blue);
        transition: fill .35s
    }

.ql .ql__name {
    font: 600 21px/1.3 "Poppins",sans-serif;
    color: var(--navy);
    transition: color .35s
}

.ql .ql__desc {
    margin-top: 6px;
    font: 400 15px/1.5 "Poppins",sans-serif;
    color: var(--muted);
    transition: color .35s
}

.ql .ql__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: 20px;
    border-radius: 50%;
    color: var(--blue);
    background: var(--tint);
    transition: background .35s,color .35s,transform .35s
}

    .ql .ql__arrow svg {
        width: 20px;
        height: 20px
    }

.ql a.ql__card:hover .ql__num {
    color: rgba(255,255,255,.55)
}

.ql a.ql__card:hover .ql__icon {
    background: rgba(255,255,255,.16);
    transform: scale(1.08) rotate(-4deg);
    border: 2px solid white;
}

    .ql a.ql__card:hover .ql__icon svg {
        fill: #fff
    }

.ql a.ql__card:hover .ql__name {
    color: #fff
}

.ql a.ql__card:hover .ql__desc {
    color: #d5dbff
}

.ql a.ql__card:hover .ql__arrow {
    background: #fff;
    color: var(--blue);
    transform: translateX(4px)
}

.ql a.ql__card:focus-visible {
    outline: 3px solid var(--mid);
    outline-offset: 4px
}

@media(max-width:1100px) {
    .ql .ql__grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }
}

@media(max-width:820px) {
    .ql .ql__grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .ql .ql__title {
        font-size: 38px
    }
}

@media(max-width:480px) {
    .ql {
        padding: 60px 16px
    }

        .ql .ql__grid {
            gap: 14px
        }

        .ql a.ql__card {
            padding: 34px 12px 26px
        }

        .ql .ql__title {
            font-size: 32px
        }

        .ql .ql__icon {
            width: 68px;
            height: 68px
        }

            .ql .ql__icon svg {
                width: 34px;
                height: 34px
            }

        .ql .ql__name {
            font-size: 18px
        }

        .ql .ql__desc {
            font-size: 14px
        }
}

@media(prefers-reduced-motion:reduce) {
    .ql a.ql__card {
        animation: none;
        opacity: 1;
        transform: none
    }
}

.gl {
    --navy: #14125f;
    --blue: #0c0c9a;
    --mid: #3a46d8;
    --soft: #dfe4ff;
    --tint: #eef1ff;
    --muted: #555a82;
    position: relative;
    overflow: hidden;
    padding: 40px 24px;
    font-family: "Poppins",system-ui,sans-serif;
    font-size: 18px;
    color: var(--navy);
    /*background: linear-gradient(180deg,#f6f8ff 0%,#fff 100%)*/
}

    .gl *, .gl *::before, .gl *::after {
        box-sizing: border-box
    }

.gl__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    pointer-events: none;
    background: var(--soft)
}

.gl__blob--a {
    width: 400px;
    height: 400px;
    top: -160px;
    left: -120px
}

.gl__blob--b {
    width: 360px;
    height: 360px;
    bottom: -170px;
    right: -110px;
    background: #d3d9ff
}

.gl__wrap {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto
}

.gl .gl__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 52px
}

.gl .gl__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    font: 600 15px/1 "Poppins",sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mid)
}

    .gl .gl__eyebrow::before, .gl .gl__eyebrow::after {
        content: "";
        width: 36px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg,var(--blue),var(--soft))
    }

    .gl .gl__eyebrow::before {
        background: linear-gradient(270deg,var(--blue),var(--soft))
    }

.gl .gl__title {
    margin: 0 0 14px;
    padding: 0;
    font: 700 46px/1.15 "Fraunces",Georgia,serif;
    color: var(--navy);
    text-wrap: balance
}

    .gl .gl__title em {
        font-style: italic;
        color: var(--blue)
    }

.gl .gl__sub {
    margin: 0;
    font: 400 18px/1.7 "Poppins",sans-serif;
    color: var(--muted)
}

/* bento grid */
.gl .gl__grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-auto-rows: 230px;
    gap: 18px
}

.gl a.gl__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--soft);
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(20,18,95,.12);
    transition: transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s;
    opacity: 0;
    transform: translateY(24px);
    animation: gl-rise .7s cubic-bezier(.2,.7,.2,1) forwards
}

.gl a.gl__i1 {
    grid-column: span 2;
    grid-row: span 2
}

.gl a.gl__i6 {
    grid-column: span 2
}

.gl a.gl__item:nth-child(1) {
    animation-delay: .05s
}

.gl a.gl__item:nth-child(2) {
    animation-delay: .12s
}

.gl a.gl__item:nth-child(3) {
    animation-delay: .19s
}

.gl a.gl__item:nth-child(4) {
    animation-delay: .26s
}

.gl a.gl__item:nth-child(5) {
    animation-delay: .33s
}

.gl a.gl__item:nth-child(6) {
    animation-delay: .4s
}

.gl a.gl__item:nth-child(7) {
    animation-delay: .47s
}

.gl a.gl__item:nth-child(8) {
    animation-delay: .54s
}

@keyframes gl-rise {
    to {
        opacity: 1;
        transform: none
    }
}

.gl a.gl__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(20,18,95,.28)
}

.gl a.gl__item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1)
}

.gl a.gl__item:hover img {
    transform: scale(1.08)
}

.gl .gl__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(20,18,95,0) 45%,rgba(20,18,95,.88) 100%);
    opacity: 0;
    transition: opacity .4s
}

.gl a.gl__item:hover .gl__shade, .gl a.gl__item:focus-visible .gl__shade {
    opacity: 1
}

.gl .gl__zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    transform: scale(.6);
    opacity: 0;
    transition: transform .4s cubic-bezier(.2,.7,.2,1),opacity .4s
}

    .gl .gl__zoom svg {
        width: 22px;
        height: 22px;
        fill: var(--blue)
    }

.gl a.gl__item:hover .gl__zoom {
    transform: none;
    opacity: 1
}

.gl .gl__cap {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    display: block;
    font: 400 14px/1.4 "Poppins",sans-serif;
    color: #d5dbff;
    transform: translateY(14px);
    opacity: 0;
    transition: transform .4s cubic-bezier(.2,.7,.2,1),opacity .4s
}

    .gl .gl__cap strong {
        display: block;
        font: 600 19px/1.3 "Poppins",sans-serif;
        color: #fff
    }

.gl a.gl__item:hover .gl__cap {
    transform: none;
    opacity: 1
}

.gl a.gl__item:focus-visible {
    outline: 3px solid var(--mid);
    outline-offset: 4px
}

.gl .gl__more {
    display: flex;
    justify-content: center;
    margin-top: 48px
}

.gl a.gl__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 999px;
    font: 600 17px/1 "Poppins",sans-serif;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg,var(--blue),var(--navy));
    box-shadow: 0 12px 26px rgba(12,12,154,.3);
    transition: transform .25s,box-shadow .25s
}

    .gl a.gl__btn svg {
        width: 20px;
        height: 20px;
        transition: transform .25s
    }

    .gl a.gl__btn:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 18px 32px rgba(12,12,154,.38)
    }

        .gl a.gl__btn:hover svg {
            transform: translateX(5px)
        }

/* CSS-only lightbox */
.gl .gl__lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px
}

    .gl .gl__lb:target {
        display: flex;
        animation: gl-fade .3s ease
    }

@keyframes gl-fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.gl .gl__lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(8,8,50,.92)
}

.gl .gl__lb figure {
    position: relative;
    margin: 0;
    max-width: min(1000px,100%);
    text-align: center
}

.gl .gl__lb img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5)
}

.gl .gl__lb figcaption {
    margin-top: 16px;
    font: 600 20px/1.4 "Poppins",sans-serif;
    color: #fff
}

    .gl .gl__lb figcaption span {
        font-weight: 400;
        color: #b9c2ff
    }

.gl .gl__lb a.gl__lb-x, .gl .gl__lb a.gl__lb-n {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    text-decoration: none;
    font: 400 34px/1 "Poppins",sans-serif;
    transition: background .25s,color .25s
}

    .gl .gl__lb a.gl__lb-x:hover, .gl .gl__lb a.gl__lb-n:hover {
        background: #fff;
        color: var(--blue)
    }

.gl .gl__lb a.gl__lb-x {
    top: 24px;
    right: 24px
}

.gl .gl__lb a.gl__lb-n {
    top: 50%;
    margin-top: -26px;
    padding-bottom: 4px
}

.gl .gl__lb a.gl__lb-n--p {
    left: 24px
}

.gl .gl__lb a.gl__lb-n--n {
    right: 24px
}

@media(max-width:1000px) {
    .gl .gl__grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
        grid-auto-rows: 200px
    }

    .gl a.gl__i6 {
        grid-column: span 1
    }

    .gl .gl__title {
        font-size: 40px
    }
}

@media(max-width:680px) {
    .gl {
        padding: 60px 14px
    }

        .gl .gl__grid {
            grid-template-columns: repeat(2,minmax(0,1fr));
            grid-auto-rows: 160px;
            gap: 12px
        }

        .gl a.gl__i1 {
            grid-column: span 2;
            grid-row: span 2
        }

        .gl a.gl__item:nth-child(8) {
            grid-column: span 2
        }

        .gl .gl__title {
            font-size: 32px
        }

        .gl .gl__sub {
            font-size: 16px
        }

        .gl a.gl__item {
            border-radius: 16px
        }

        .gl .gl__shade {
            opacity: 1;
            background: linear-gradient(180deg,rgba(20,18,95,0) 55%,rgba(20,18,95,.85) 100%)
        }

        .gl .gl__cap {
            opacity: 1;
            transform: none;
            left: 12px;
            right: 12px;
            bottom: 10px;
            font-size: 12px
        }

            .gl .gl__cap strong {
                font-size: 14px
            }

        .gl .gl__zoom {
            display: none
        }

        .gl .gl__lb {
            padding: 16px
        }

            .gl .gl__lb a.gl__lb-n {
                top: auto;
                bottom: 24px;
                margin: 0
            }
}

@media(prefers-reduced-motion:reduce) {
    .gl a.gl__item {
        animation: none;
        opacity: 1;
        transform: none
    }
}

/* ------------------------------------------------------------
       Tagline banner
       Every rule starts with .tagline-section so the rest of the
       website's CSS can't change how this block looks.
       Sizes are in px on purpose (the main site shrinks rem/em).
    ------------------------------------------------------------ */

.tagline-section {
    /* colours - same blues as the menu bar and logo */
    --navy: #14125f;
    --dark-blue: #0c0c9a;
    --sky-blue: #3a46d8;
    --light-blue: #a9b4ff;
    position: relative;
    overflow: hidden;
    padding: 50px 24px 110px;
    text-align: center;
    font-family: "Poppins", Arial, sans-serif;
    /* To use your school building photo, put it at images/school-building.jpg.
         The blue layer on top keeps the text easy to read.
         If the photo is missing, the plain blue gradient shows instead. */
    background: linear-gradient(135deg, rgba(20, 18, 95, 0.92), rgba(12, 12, 154, 0.78)), linear-gradient(135deg, #14125f, #0c0c9a);
}

    .tagline-section *,
    .tagline-section *::before,
    .tagline-section *::after {
        box-sizing: border-box;
    }

    /* soft light patch in the top-right corner */
    .tagline-section::before {
        content: "";
        position: absolute;
        top: -180px;
        right: -120px;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(169, 180, 255, 0.45), transparent 65%);
        pointer-events: none;
    }

    /* dotted pattern in the bottom-left corner */
    .tagline-section::after {
        content: "";
        position: absolute;
        left: 4%;
        bottom: 30px;
        width: 140px;
        height: 100px;
        background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.6px);
        background-size: 16px 16px;
        pointer-events: none;
    }

    /* big thin circles for a bit of depth */
    .tagline-section .decor-circle {
        position: absolute;
        border: 2px solid rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        pointer-events: none;
    }

    .tagline-section .decor-circle-large {
        width: 380px;
        height: 380px;
        left: -140px;
        top: -150px;
    }

    .tagline-section .decor-circle-small {
        width: 200px;
        height: 200px;
        right: 6%;
        bottom: -90px;
    }

    .tagline-section .tagline-container {
        position: relative;
        z-index: 1;
        max-width: 1000px;
        margin: 0 auto;
    }

    /* small label above the heading */
    .tagline-section .tagline-label {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        margin: 0 0 22px;
        padding: 0;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--light-blue);
    }

        .tagline-section .tagline-label::before,
        .tagline-section .tagline-label::after {
            content: "";
            width: 36px;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, transparent, var(--light-blue));
        }

        .tagline-section .tagline-label::after {
            transform: scaleX(-1);
        }

    /* main heading */
    .tagline-section .tagline-heading {
        margin: 0;
        padding: 0;
        font-size: 50px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0.01em;
        text-transform: uppercase;
        color: #ffffff;
        text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    }

    /* the three key words sit on their own line */
    .tagline-section .tagline-keywords {
        display: block;
        margin-top: 10px;
        font-size: inherit;
    }

    .tagline-section .keyword {
        position: relative;
        display: inline-block;
        margin: 0 6px;
        font-size: inherit;
        color: var(--light-blue);
    }

        /* line that draws itself under each key word */
        .tagline-section .keyword::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 100%;
            height: 4px;
            border-radius: 4px;
            background: #ffffff;
            transform: scaleX(0);
            transform-origin: left;
            animation: draw-underline 0.7s ease forwards;
        }

        .tagline-section .keyword:nth-child(1)::after {
            animation-delay: 0.6s;
        }

        .tagline-section .keyword:nth-child(2)::after {
            animation-delay: 0.9s;
        }

        .tagline-section .keyword:nth-child(3)::after {
            animation-delay: 1.2s;
        }

@keyframes draw-underline {
    to {
        transform: scaleX(1);
    }
}

/* fade the text in when the page loads */
.tagline-section .tagline-label,
.tagline-section .tagline-heading {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease forwards;
}

.tagline-section .tagline-heading {
    animation-delay: 0.2s;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: none;
    }
}

/* curved white edge at the bottom so it blends into the next section */
.tagline-section .bottom-curve {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 50px;
    display: block;
}

    .tagline-section .bottom-curve path {
        fill: #ffffff;
    }

/* tablets */
@media (max-width: 992px) {
    .tagline-section {
        padding: 80px 24px 90px;
    }

        .tagline-section .tagline-heading {
            font-size: 40px;
        }
}

/* phones */
@media (max-width: 576px) {
    .tagline-section {
        padding: 64px 18px 76px;
    }

        .tagline-section .tagline-label {
            font-size: 13px;
            margin-bottom: 16px;
        }

        .tagline-section .tagline-heading {
            font-size: 28px;
        }

        .tagline-section .keyword {
            margin: 0 3px;
        }

        .tagline-section .bottom-curve {
            height: 30px;
        }
}

/* people who turn off animations in their device settings */
@media (prefers-reduced-motion: reduce) {
    .tagline-section .tagline-label,
    .tagline-section .tagline-heading {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .tagline-section .keyword::after {
        animation: none;
        transform: scaleX(1);
    }
}

/* ------------------------------------------------------------
       School highlights: Activities, Achievements, Facilities
       Everything is written under .school-highlights so the main
       website's CSS can't squash or restyle it.
       Font sizes are in px because the main site changes rem/em.
    ------------------------------------------------------------ */

.school-highlights {
    /* colours - taken from the logo and the menu bar */
    --navy: #14125f;
    --dark-blue: #0c0c9a;
    --sky-blue: #3a46d8;
    --pale-blue: #dfe4ff;
    --very-pale-blue: #eef1ff;
    --text-grey: #4c5078;
    --border-blue: #dfe3f7;
    position: relative;
    overflow: hidden;
    padding: 40px 24px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 18px;
    color: var(--navy);
    background: linear-gradient(180deg, #ffffff, #f6f8ff);
}

    .school-highlights *,
    .school-highlights *::before,
    .school-highlights *::after {
        box-sizing: border-box;
    }

    /* two blurry blue patches behind the cards */
    .school-highlights .background-glow {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.5;
        pointer-events: none;
    }

    .school-highlights .glow-top-right {
        top: -150px;
        right: -100px;
        width: 380px;
        height: 380px;
        background: var(--pale-blue);
    }

    .school-highlights .glow-bottom-left {
        bottom: -160px;
        left: -110px;
        width: 340px;
        height: 340px;
        background: #d3d9ff;
    }

    .school-highlights .highlights-container {
        position: relative;
        z-index: 1;
        max-width: 1240px;
        margin: 0 auto;
    }

    /* ---------- section heading ---------- */
    .school-highlights .section-heading {
        max-width: 760px;
        margin: 0 auto 56px;
        text-align: center;
    }

    .school-highlights .section-label {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        margin: 0 0 14px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--sky-blue);
    }

        .school-highlights .section-label::before,
        .school-highlights .section-label::after {
            content: "";
            width: 36px;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--dark-blue), var(--pale-blue));
        }

        .school-highlights .section-label::before {
            transform: scaleX(-1);
        }

    .school-highlights .section-title {
        margin: 0 0 14px;
        padding: 0;
        font-family: "Fraunces", Georgia, serif;
        font-size: 46px;
        font-weight: 700;
        line-height: 1.15;
        color: var(--navy);
    }

        .school-highlights .section-title em {
            font-style: italic;
            color: var(--dark-blue);
        }

    .school-highlights .section-intro {
        margin: 0;
        font-size: 18px;
        line-height: 1.7;
        color: var(--text-grey);
    }

    /* ---------- the three cards ---------- */
    .school-highlights .highlight-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .school-highlights .highlight-card {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid var(--border-blue);
        border-radius: 26px;
        box-shadow: 0 12px 32px rgba(20, 18, 95, 0.08);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

        .school-highlights .highlight-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 28px 54px rgba(20, 18, 95, 0.22);
        }

    /* photo at the top of the card */
    .school-highlights .highlight-photo {
        position: relative;
        height: 270px;
        overflow: hidden;
    }

        .school-highlights .highlight-photo img {
            transition: transform 0.8s ease;
        }

    .school-highlights .highlight-card:hover .highlight-photo img {
        transform: scale(1.06);
    }

    /* dark blue fade at the bottom of the photo */
    .school-highlights .highlight-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 55%, rgba(20, 18, 95, 0.55));
        pointer-events: none;
    }

    .school-highlights .card-number {
        position: absolute;
        top: 18px;
        left: 18px;
        z-index: 8;
        padding: 7px 14px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.1em;
        color: var(--navy);
        background: rgba(255, 255, 255, 0.92);
        border-radius: 999px;
    }

    /* round icon that sits half on the photo, half on the card body */
    .school-highlights .highlight-icon {
        position: relative;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 64px;
        height: 64px;
        margin: -32px 0 0 30px;
        background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
        border: 4px solid #ffffff;
        border-radius: 50%;
        box-shadow: 0 10px 22px rgba(12, 12, 154, 0.35);
        transition: transform 0.4s ease;
    }

        .school-highlights .highlight-icon svg {
            width: 28px;
            height: 28px;
            fill: #ffffff;
        }

    .school-highlights .highlight-card:hover .highlight-icon {
        transform: rotate(-8deg) scale(1.08);
    }

    /* text part of the card */
    .school-highlights .highlight-body {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 18px 30px 34px;
    }

    .school-highlights .highlight-title {
        margin: 0 0 12px;
        padding: 0;
        font-family: "Fraunces", Georgia, serif;
        font-size: 30px;
        font-weight: 700;
        line-height: 1.2;
        color: var(--navy);
    }

    .school-highlights .highlight-text {
        margin: 0 0 26px;
        font-size: 16px;
        line-height: 1.8;
        color: var(--text-grey);
        text-align: left;
        /* show only 4 lines, then "..." */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .school-highlights a.read-more-button {
        display: inline-flex;
        align-self: flex-start;
        align-items: center;
        gap: 10px;
        margin-top: auto;
        padding: 13px 26px;
        font-family: "Poppins", Arial, sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        color: var(--dark-blue);
        text-decoration: none;
        background: var(--very-pale-blue);
        border-radius: 999px;
        transition: background 0.3s ease, color 0.3s ease;
    }

        .school-highlights a.read-more-button svg {
            width: 18px;
            height: 18px;
            transition: transform 0.3s ease;
        }

        .school-highlights a.read-more-button:hover,
        .school-highlights .highlight-card:hover a.read-more-button {
            color: #ffffff;
            background: var(--dark-blue);
        }

            .school-highlights a.read-more-button:hover svg {
                transform: translateX(5px);
            }

        .school-highlights a.read-more-button:focus-visible {
            outline: 3px solid var(--sky-blue);
            outline-offset: 3px;
        }


    /* ---------- photo slider inside each card (Bootstrap carousel) ---------- */
    .school-highlights .photo-slider,
    .school-highlights .photo-slider .carousel-inner,
    .school-highlights .photo-slider .carousel-inner > .item {
        height: 100%;
    }

        .school-highlights .photo-slider .carousel-inner > .item > img {
            display: block;
            width: 100%;
            height: 100%;
            max-width: none;
            object-fit: cover;
        }

        /* round previous / next buttons - they show when you hover the card */
        .school-highlights .photo-slider a.carousel-control {
            top: 50%;
            bottom: auto;
            display: grid;
            place-items: center;
            width: 42px;
            height: 42px;
            margin-top: -21px;
            color: var(--dark-blue);
            text-shadow: none;
            background: rgba(255, 255, 255, 0.92);
            background-image: none;
            border-radius: 50%;
            opacity: 0;
            z-index: 6;
            transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
        }

            .school-highlights .photo-slider a.carousel-control.left {
                left: 14px;
                right: auto;
            }

            .school-highlights .photo-slider a.carousel-control.right {
                right: 14px;
                left: auto;
            }

            .school-highlights .photo-slider a.carousel-control svg {
                width: 20px;
                height: 20px;
            }

    .school-highlights .highlight-card:hover .photo-slider a.carousel-control {
        opacity: 1;
    }

    .school-highlights .photo-slider a.carousel-control:hover {
        color: #ffffff;
        background: var(--dark-blue);
    }

    /* small dots at the bottom of the photo */
    .school-highlights .photo-slider .carousel-indicators {
        bottom: 14px;
        left: 50%;
        width: auto;
        margin: 0;
        padding: 6px 8px;
        background: rgba(20, 18, 95, 0.45);
        border-radius: 999px;
        transform: translateX(-50%);
        z-index: 7;
    }

        .school-highlights .photo-slider .carousel-indicators li {
            width: 8px;
            height: 8px;
            margin: 0 3px;
            background: rgba(255, 255, 255, 0.6);
            border: none;
            border-radius: 8px;
            transition: width 0.3s ease, background 0.3s ease;
        }

            .school-highlights .photo-slider .carousel-indicators li.active {
                width: 22px;
                height: 8px;
                margin: 0 3px;
                background: #ffffff;
            }

/* phones have no hover, so keep the buttons visible */
@media (hover: none) {
    .school-highlights .photo-slider a.carousel-control {
        opacity: 1;
    }
}

/* cards slide up one after another when the page loads */
.school-highlights .highlight-card {
    opacity: 0;
    transform: translateY(30px);
    animation: card-slide-up 0.8s ease forwards;
}

    .school-highlights .highlight-card:nth-child(2) {
        animation-delay: 0.15s;
    }

    .school-highlights .highlight-card:nth-child(3) {
        animation-delay: 0.3s;
    }

@keyframes card-slide-up {
    to {
        opacity: 1;
        transform: none;
    }
}

/* tablets: two cards per row, third one centred below */
@media (max-width: 992px) {
    .school-highlights .highlight-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-highlights .highlight-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .school-highlights .section-title {
        font-size: 38px;
    }
}

/* phones: one card per row */
@media (max-width: 640px) {
    .school-highlights {
        padding: 64px 16px;
    }

        .school-highlights .highlight-cards {
            grid-template-columns: 1fr;
            gap: 26px;
        }

        .school-highlights .section-title {
            font-size: 30px;
        }

        .school-highlights .section-intro {
            font-size: 16px;
        }

        .school-highlights .highlight-photo {
            height: 230px;
        }

        .school-highlights .highlight-title {
            font-size: 27px;
        }
}

/* for people who switch off animations on their device */
@media (prefers-reduced-motion: reduce) {
    .school-highlights .highlight-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------------
       Social links: Facebook, Instagram, YouTube
       Every rule starts with .social-section so the main website's
       CSS can't change how this block looks.
       Font sizes are in px because the main site changes rem/em.
    ------------------------------------------------------------ */

.social-section {
    /* colours - same blues as the menu bar and logo */
    --navy: #14125f;
    --dark-blue: #0c0c9a;
    --sky-blue: #3a46d8;
    --pale-blue: #dfe4ff;
    --very-pale-blue: #eef1ff;
    --text-grey: #4c5078;
    --border-blue: #dfe3f7;
    position: relative;
    overflow: hidden;
    padding: 40px 24px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 18px;
    color: var(--navy);
    background: linear-gradient(180deg, #f6f8ff, #ffffff);
}

    .social-section *,
    .social-section *::before,
    .social-section *::after {
        box-sizing: border-box;
    }

    /* blurry blue patches in the background */
    .social-section .background-glow {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.5;
        pointer-events: none;
    }

    .social-section .glow-top-left {
        top: -160px;
        left: -110px;
        width: 380px;
        height: 380px;
        background: var(--pale-blue);
    }

    .social-section .glow-bottom-right {
        bottom: -170px;
        right: -110px;
        width: 360px;
        height: 360px;
        background: #d3d9ff;
    }

    .social-section .social-container {
        position: relative;
        z-index: 1;
        max-width: 1240px;
        margin: 0 auto;
    }

    /* ---------- section heading ---------- */
    .social-section .section-heading {
        max-width: 760px;
        margin: 0 auto 56px;
        text-align: center;
    }

    .social-section .section-label {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        margin: 0 0 14px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--sky-blue);
    }

        .social-section .section-label::before,
        .social-section .section-label::after {
            content: "";
            width: 36px;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--dark-blue), var(--pale-blue));
        }

        .social-section .section-label::before {
            transform: scaleX(-1);
        }

    .social-section .section-title {
        margin: 0 0 14px;
        padding: 0;
        font-family: "Fraunces", Georgia, serif;
        font-size: 46px;
        font-weight: 700;
        line-height: 1.15;
        color: var(--navy);
    }

        .social-section .section-title em {
            font-style: italic;
            color: var(--dark-blue);
        }

    .social-section .section-intro {
        margin: 0;
        font-size: 18px;
        line-height: 1.7;
        color: var(--text-grey);
    }

    /* ---------- the three cards ---------- */
    .social-section .social-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .social-section .social-card {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 28px 26px 26px;
        background: #ffffff;
        border: 1px solid var(--border-blue);
        border-radius: 26px;
        box-shadow: 0 12px 32px rgba(20, 18, 95, 0.08);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

        .social-section .social-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 28px 54px rgba(20, 18, 95, 0.2);
        }

        /* thin blue line along the top edge of each card */
        .social-section .social-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 40px;
            right: 40px;
            height: 4px;
            border-radius: 0 0 6px 6px;
            background: linear-gradient(90deg, var(--sky-blue), var(--dark-blue));
        }

    /* top row: round icon + name + short line of text */
    .social-section .card-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 22px;
    }

    .social-section .platform-icon {
        display: grid;
        flex: none;
        place-items: center;
        width: 56px;
        height: 56px;
        border-radius: 18px;
        box-shadow: 0 10px 22px rgba(20, 18, 95, 0.18);
        transition: transform 0.4s ease;
    }

        .social-section .platform-icon svg {
            width: 28px;
            height: 28px;
            fill: #ffffff;
        }

    .social-section .social-card:hover .platform-icon {
        transform: rotate(-8deg) scale(1.08);
    }

    /* each platform keeps its own icon colour, everything else stays blue */
    .social-section .facebook-card .platform-icon {
        background: #3b5998;
    }

    .social-section .instagram-card .platform-icon {
        background: linear-gradient(45deg, #f9a03c, #e1306c 55%, #6d4fd6);
    }

    .social-section .youtube-card .platform-icon {
        background: #d01212;
    }

    .social-section .platform-name {
        margin: 0 0 2px;
        padding: 0;
        font-family: "Fraunces", Georgia, serif;
        font-size: 28px;
        font-weight: 700;
        line-height: 1.2;
        color: var(--navy);
    }

    .social-section .platform-tagline {
        margin: 0;
        font-size: 15px;
        line-height: 1.4;
        color: var(--text-grey);
    }

    /* box that holds the Facebook / Instagram / YouTube widget.
       Your iframe or embed code goes inside it. */
    .social-section .social-embed {
        height: 340px;
        margin-bottom: 24px;
        overflow: hidden;
        background: var(--very-pale-blue);
        border: 1px solid var(--border-blue);
        border-radius: 18px;
    }

        .social-section .social-embed iframe,
        .social-section .social-embed img {
            display: block;
            width: 100%;
            height: 100%;
            max-width: none;
            border: 0;
        }

    /* YouTube: the video player is always 16:9 and sits at the top of its
       frame, so forcing it taller only leaves a black gap.
       Instead the video keeps its natural shape and a short blue note fills
       the space under it. */
    .social-section .youtube-card .social-embed {
        display: flex;
        flex-direction: column;
        background: var(--navy);
        border-color: var(--navy);
    }

        .social-section .youtube-card .social-embed iframe {
            flex: none;
            height: auto !important; /* the main site's CSS can't change this */
            aspect-ratio: 16 / 9 !important;
        }

    .social-section .video-note {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 16px 22px;
        color: #ffffff;
        background: linear-gradient(135deg, var(--sky-blue), var(--navy));
    }

        .social-section .video-note strong {
            font-size: 17px;
            font-weight: 600;
            line-height: 1.3;
        }

        .social-section .video-note span {
            font-size: 14px;
            line-height: 1.5;
            color: #d5dbff;
        }

    /* Facebook and Instagram are screenshots wrapped in a link.
       "contain" shows the whole picture instead of cropping it. */
    .social-section .social-embed a.embed-link {
        display: block;
        width: 100%;
        height: 100%;
    }

    .social-section .social-embed img {
        object-fit: contain;
        background: #ffffff;
    }

    /* "Visit our page" button */
    .social-section a.visit-button {
        display: inline-flex;
        align-self: flex-start;
        align-items: center;
        gap: 10px;
        margin-top: auto;
        padding: 13px 26px;
        font-family: "Poppins", Arial, sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        color: var(--dark-blue);
        text-decoration: none;
        background: var(--very-pale-blue);
        border-radius: 999px;
        transition: background 0.3s ease, color 0.3s ease;
    }

        .social-section a.visit-button svg {
            width: 18px;
            height: 18px;
            transition: transform 0.3s ease;
        }

        .social-section a.visit-button:hover,
        .social-section .social-card:hover a.visit-button {
            color: #ffffff;
            background: var(--dark-blue);
        }

            .social-section a.visit-button:hover svg {
                transform: translateX(5px);
            }

        .social-section a.visit-button:focus-visible {
            outline: 3px solid var(--sky-blue);
            outline-offset: 3px;
        }

    /* cards slide up one after another when the page loads */
    .social-section .social-card {
        opacity: 0;
        transform: translateY(30px);
        animation: card-slide-up 0.8s ease forwards;
    }

        .social-section .social-card:nth-child(2) {
            animation-delay: 0.15s;
        }

        .social-section .social-card:nth-child(3) {
            animation-delay: 0.3s;
        }

@keyframes card-slide-up {
    to {
        opacity: 1;
        transform: none;
    }
}

/* tablets: two cards in the first row, the third one centred below */
@media (max-width: 992px) {
    .social-section .social-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-section .social-card:nth-child(3) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .social-section .section-title {
        font-size: 38px;
    }
}

/* phones: one card per row */
@media (max-width: 640px) {
    .social-section {
        padding: 64px 16px;
    }

        .social-section .social-cards {
            grid-template-columns: 1fr;
            gap: 26px;
        }

        .social-section .social-card {
            padding: 24px 18px 22px;
        }

        .social-section .section-title {
            font-size: 30px;
        }

        .social-section .section-intro {
            font-size: 16px;
        }

        .social-section .platform-name {
            font-size: 25px;
        }

        .social-section .social-embed {
            height: 300px;
        }
}

/* for people who switch off animations on their device */
@media (prefers-reduced-motion: reduce) {
    .social-section .social-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------------
       Messages from the Secretary, Principal and Chairman
       Every rule starts with .messages-section so the main website's
       CSS can't change how this block looks.
       Font sizes are in px because the main site changes rem/em.
    ------------------------------------------------------------ */

.messages-section {
    /* colours - same blues as the menu bar and logo */
    --navy: #14125f;
    --dark-blue: #0c0c9a;
    --sky-blue: #3a46d8;
    --light-blue: #a9b4ff;
    --pale-blue: #dfe4ff;
    --very-pale-blue: #eef1ff;
    --text-grey: #4c5078;
    --border-blue: #dfe3f7;
    position: relative;
    overflow: hidden;
    padding: 40px 24px 40px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 18px;
    color: var(--navy);
    background: linear-gradient(180deg, #f6f8ff, #ffffff);
}

    .messages-section *,
    .messages-section *::before,
    .messages-section *::after {
        box-sizing: border-box;
    }

    /* blurry blue patches and a dotted corner for a little depth */
    .messages-section::before {
        content: "";
        position: absolute;
        top: -170px;
        right: -120px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: #d3d9ff;
        filter: blur(80px);
        opacity: 0.6;
        pointer-events: none;
    }

    .messages-section::after {
        content: "";
        position: absolute;
        left: 3%;
        bottom: 40px;
        width: 140px;
        height: 110px;
        background-image: radial-gradient(rgba(58, 70, 216, 0.3) 1.5px, transparent 1.6px);
        background-size: 16px 16px;
        pointer-events: none;
    }

    .messages-section .messages-container {
        position: relative;
        z-index: 1;
        max-width: 1240px;
        margin: 0 auto;
    }

    /* ---------- section heading ---------- */
    .messages-section .section-heading {
        max-width: 760px;
        margin: 0 auto 60px;
        text-align: center;
    }

    .messages-section .section-label {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        margin: 0 0 14px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--sky-blue);
    }

        .messages-section .section-label::before,
        .messages-section .section-label::after {
            content: "";
            width: 36px;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--dark-blue), var(--pale-blue));
        }

        .messages-section .section-label::before {
            transform: scaleX(-1);
        }

    .messages-section .section-title {
        margin: 0;
        padding: 0;
        font-family: "Fraunces", Georgia, serif;
        font-size: 48px;
        font-weight: 700;
        line-height: 1.15;
        color: var(--navy);
    }

        .messages-section .section-title em {
            font-style: italic;
            color: var(--dark-blue);
        }

/* ---------- the three message cards ---------- */
/* .messages-section .message-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }*/

.message-block p {
    font-size: 16px;
    text-align: justify;
}

.messages-section .message-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* white speech-bubble card */
.messages-section .message-card {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 18px 34px 25px;
    color: var(--text-grey);
    background: #ffffff;
    border: 1px solid var(--border-blue);
    border-radius: 26px;
    box-shadow: 0 12px 32px rgba(20, 18, 95, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.messages-section .message-block:hover .message-card {
    transform: translateY(-8px);
    box-shadow: 0 28px 54px rgba(20, 18, 95, 0.2);
}

/* little arrow on top of the card, pointing up at the person's photo */
.messages-section .message-card::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -13px;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    background: #ffffff;
    border-left: 1px solid var(--border-blue);
    border-top: 1px solid var(--border-blue);
    border-radius: 6px 0 0 0;
    transform: rotate(45deg);
}

/* big quote mark in a round tile */
.messages-section .message-quote-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(12, 12, 154, 0.35);
}

    .messages-section .message-quote-icon svg {
        width: 24px;
        height: 24px;
        fill: #ffffff;
    }

.messages-section p {
    margin: 0px 3px 0px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-grey);
    text-align: left;
    /* show 7 lines, then "..." */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.messages-section a.read-more-button {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 13px 26px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--dark-blue);
    text-decoration: none;
    background: var(--very-pale-blue);
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease;
}

    .messages-section a.read-more-button svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    .messages-section a.read-more-button:hover,
    .messages-section .message-block:hover a.read-more-button {
        color: #ffffff;
        background: var(--dark-blue);
    }

        .messages-section a.read-more-button:hover svg {
            transform: translateX(5px);
        }

    .messages-section a.read-more-button:focus-visible {
        outline: 3px solid var(--sky-blue);
        outline-offset: 3px;
    }

/* ---------- person under the card ---------- */
.messages-section .message-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 12px;
}

.messages-section .person-photo {
    width: 136px;
    height: 136px;
    padding: 5px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(58, 70, 216, 0.12), 0 18px 36px rgba(20, 18, 95, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .messages-section .person-photo img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        border-radius: 50%;
    }

.messages-section .message-block:hover .person-photo {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(58, 70, 216, 0.2), 0 22px 40px rgba(20, 18, 95, 0.3);
}

.messages-section .person-role {
    margin: 18px 0 0;
    padding: 8px 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark-blue);
    background: var(--very-pale-blue);
    border: 1px solid var(--pale-blue);
    border-radius: 999px;
}

/* cards slide up one after another when the page loads */
.messages-section .message-block {
    opacity: 0;
    transform: translateY(30px);
    animation: block-slide-up 0.8s ease forwards;
}

    .messages-section .message-block:nth-child(2) {
        animation-delay: 0.15s;
    }

    .messages-section .message-block:nth-child(3) {
        animation-delay: 0.3s;
    }

@keyframes block-slide-up {
    to {
        opacity: 1;
        transform: none;
    }
}

/* tablets: two blocks in the first row, the third one centred below */
@media (max-width: 992px) {
    .messages-section .message-cards {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 56px;
    }

    .messages-section .message-block:nth-child(3) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .messages-section .section-title {
        font-size: 40px;
    }
}

/* phones: one block per row */
@media (max-width: 640px) {
    .messages-section {
        padding: 64px 16px 72px;
    }

        .messages-section .message-cards {
            grid-template-columns: 1fr;
            row-gap: 48px;
        }

        .messages-section .message-card {
            padding: 32px 22px 28px;
        }

        .messages-section .section-heading {
            margin-bottom: 44px;
        }

        .messages-section .section-title {
            font-size: 32px;
        }

        .messages-section .person-photo {
            width: 116px;
            height: 116px;
        }
}

/* for people who switch off animations on their device */
@media (prefers-reduced-motion: reduce) {
    .messages-section .message-block {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.message-cards .owl-stage {
    padding-bottom: 20px;
}

/* ------------------------------------------------------------
       Website footer (new layout)
       Every rule starts with .site-footer so the main website's CSS
       can't change how this block looks.
       Font sizes are in px because the main site changes rem/em.
    ------------------------------------------------------------ */

.site-footer {
    /* colours - same blues as the menu bar and logo */
    --navy: #14125f;
    --deep-navy: #0b0a40;
    --dark-blue: #0c0c9a;
    --sky-blue: #121250;
    --light-blue: #a9b4ff;
    --pale-blue: #dfe4ff;
    --very-pale-blue: #eef1ff;
    --soft-white: #e6e9ff;
    --text-grey: #4c5078;
    --line-colour: rgba(169, 180, 255, 0.22);
    position: relative;
    padding-top: 0;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 17px;
    color: var(--soft-white);
}

    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        box-sizing: border-box;
    }

    /* dark blue background sits behind everything; it starts half way
       down the contact strip so the strip looks like it is floating */
    .site-footer .footer-background {
        position: absolute;
        top: 70px;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
        background: linear-gradient(180deg, var(--navy), var(--deep-navy));
    }

        .site-footer .footer-background::before {
            content: "";
            position: absolute;
            top: -160px;
            right: -120px;
            width: 460px;
            height: 460px;
            border-radius: 50%;
            background: var(--sky-blue);
            filter: blur(110px);
            opacity: 0.35;
        }

        .site-footer .footer-background::after {
            content: "";
            position: absolute;
            left: 3%;
            bottom: 90px;
            width: 140px;
            height: 110px;
            background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.6px);
            background-size: 16px 16px;
        }

    .site-footer .footer-container {
        position: relative;
        z-index: 1;
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 24px;
    }

    /* ---------- floating white strip with the contact details ---------- */
    .site-footer .contact-strip {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1.3fr 1.15fr;
        margin: 0;
        padding: 12px;
        list-style: none;
        background: #ffffff;
        border-radius: 28px;
        box-shadow: 0 28px 60px rgba(11, 10, 64, 0.28);
    }

    .site-footer .contact-box {
        display: flex;
        align-items: center;
        gap: 16px;
        margin: 0;
        padding: 22px 18px;
        border-right: 1px solid var(--pale-blue);
    }

        .site-footer .contact-box:last-child {
            border-right: none;
        }

    .site-footer .contact-icon {
        display: grid;
        flex: none;
        place-items: center;
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
        border-radius: 50%;
        box-shadow: 0 10px 20px rgba(12, 12, 154, 0.3);
        transition: transform 0.3s ease;
    }

        .site-footer .contact-icon svg {
            width: 22px;
            height: 22px;
            fill: #ffffff;
        }

    .site-footer .contact-box:hover .contact-icon {
        transform: rotate(-10deg) scale(1.1);
    }

    .site-footer .contact-label {
        display: block;
        margin-bottom: 3px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--sky-blue);
    }

    .site-footer .contact-value {
        display: block;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.5;
        color: var(--navy);
        text-decoration: none;
    }

    .site-footer a.contact-value:hover {
        color: var(--sky-blue);
    }

    /* ---------- main part: about | links | map ---------- */
    .site-footer .footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr 1.35fr;
        gap: 56px;
        padding: 46px 0 29px;
    }

    .site-footer .footer-heading {
        position: relative;
        margin: 0 0 26px;
        padding: 0 0 14px;
        font-family: "Poppins", Arial, sans-serif;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #ffffff;
    }

        .site-footer .footer-heading::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 48px;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--sky-blue), var(--light-blue));
        }

    /* about column */
    .site-footer .school-name {
        margin: 0 0 10px;
        padding: 0;
        font-family: "Fraunces", Georgia, serif;
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
        color: #ffffff;
    }

    .site-footer .school-motto {
        margin: 0 0 20px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: var(--light-blue);
    }

    .site-footer .affiliation-text {
        margin: 0 0 28px;
        font-size: 15px;
        line-height: 1.8;
        color: var(--soft-white);
    }

    .site-footer .social-circles {
        display: flex;
        gap: 12px;
    }

    .site-footer a.social-circle {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--line-colour);
        border-radius: 50%;
        transition: transform 0.3s ease, background 0.3s ease;
    }

        .site-footer a.social-circle svg {
            width: 21px;
            height: 21px;
            fill: #ffffff;
        }

        .site-footer a.social-circle:hover {
            transform: translateY(-6px);
        }

    .site-footer a.facebook-circle:hover {
        background: #3b5998;
    }

    .site-footer a.instagram-circle:hover {
        background: linear-gradient(45deg, #f9a03c, #e1306c 55%, #6d4fd6);
    }

    .site-footer a.youtube-circle:hover {
        background: #d01212;
    }

    /* our services - a stack of soft rounded buttons */
    .site-footer .service-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .site-footer .service-links li {
            margin: 0;
        }

    .site-footer a.service-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 20px;
        font-size: 16px;
        color: #ffffff;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid transparent;
        border-radius: 7px;
        transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    }

        .site-footer a.service-link svg {
            width: 16px;
            height: 16px;
            flex: none;
            transition: transform 0.3s ease;
        }

        .site-footer a.service-link:hover {
            color: var(--navy);
            background: #ffffff;
            transform: translateX(6px);
        }

            .site-footer a.service-link:hover svg {
                transform: translateX(4px);
            }

    /* map card - the column is a flex box so the map fills the space under the heading */
    .site-footer .footer-map-column {
        display: flex;
        flex-direction: column;
    }

    .site-footer .map-card {
        position: relative;
        flex: 1;
        min-height: 340px;
    }

    .site-footer .map-frame {
        position: absolute;
        inset: 0;
        overflow: hidden;
        background: var(--pale-blue);
        border: 4px solid #ffffff;
        border-radius: 28px;
        box-shadow: 0 22px 46px rgba(0, 0, 20, 0.4);
    }

        .site-footer .map-frame iframe {
            display: block;
            width: 100%;
            height: 100%;
            border: 0;
        }

    /* white label floating on the corner of the map */
    .site-footer a.directions-pill {
        position: absolute;
        left: 22px;
        bottom: 22px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 13px 24px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        color: #ffffff;
        text-decoration: none;
        background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
        border: 2px solid #ffffff;
        border-radius: 999px;
        box-shadow: 0 12px 26px rgba(12, 12, 154, 0.45);
        transition: transform 0.3s ease;
    }

        .site-footer a.directions-pill svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        .site-footer a.directions-pill:hover {
            transform: translateY(-4px);
        }

    /* ---------- bottom bar ---------- */
    .site-footer .footer-bottom {
        position: relative;
        z-index: 1;
        background: white;
        border-top: 1px solid var(--line-colour);
    }

    .site-footer .footer-bottom-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px 28px;
        max-width: 1240px;
        margin: 0 auto;
        padding: 9px 24px;
    }

    .site-footer .copyright-text,
    .site-footer .credit-text {
        margin: 0;
        font-size: 15px;
        line-height: 1.6;
        color: #0d0c47;
    }

    .site-footer a.credit-link {
        font-weight: 600;
        color: #0c0b45;
        text-decoration: none;
    }

        .site-footer a.credit-link:hover {
            color: var(--light-blue);
        }

    .site-footer .visitor-counter {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 8px 18px;
        font-size: 14px;
        line-height: 1;
        color: var(--light-blue);
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid var(--line-colour);
        border-radius: 999px;
    }

    .site-footer .visitor-number {
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
    }

    .site-footer a:focus-visible {
        outline: 3px solid var(--light-blue);
        outline-offset: 3px;
    }

/* laptops and tablets */
@media (max-width: 1100px) {
    .site-footer .contact-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer .contact-box:nth-child(2) {
        border-right: none;
    }

    .site-footer .contact-box:nth-child(-n+2) {
        border-bottom: 1px solid var(--pale-blue);
    }

    .site-footer .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 48px 40px;
    }

    .site-footer .footer-map-column {
        grid-column: 1 / -1;
    }

    .site-footer .map-card {
        min-height: 320px;
    }
}

/* phones */
@media (max-width: 640px) {
    .site-footer .footer-background {
        top: 40px;
    }

    .site-footer .contact-strip {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .site-footer .contact-box,
    .site-footer .contact-box:nth-child(2) {
        padding: 18px 16px;
        border-right: none;
        border-bottom: 1px solid var(--pale-blue);
    }

        .site-footer .contact-box:last-child {
            border-bottom: none;
        }

    .site-footer .footer-main {
        grid-template-columns: 1fr;
        gap: 44px;
        padding: 48px 0 44px;
    }

    .site-footer .school-name {
        font-size: 27px;
    }

    .site-footer .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}


/* ------------------------------------------------------------
       Website header: top bar (highlights + contact) and logo bar
       Every rule starts with .site-header so the main website's CSS
       can't change how this block looks.
       Font sizes are in px because the main site changes rem/em.
    ------------------------------------------------------------ */

.site-header {
    /* colours - same blues as the menu bar and logo */
    --navy: #14125f;
    --dark-blue: #0c0c9a;
    --sky-blue: #3a46d8;
    --light-blue: #a9b4ff;
    --pale-blue: #dfe4ff;
    --very-pale-blue: #eef1ff;
    position: relative;
    z-index: 10;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(20, 18, 95, 0.1);
}

    .site-header *,
    .site-header *::before,
    .site-header *::after {
        box-sizing: border-box;
    }

    /* ================= TOP BAR ================= */
    .site-header .top-bar {
        background: #121250;
        color: #ffffff;
    }

    .site-header .top-bar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 24px;
    }

    /* ---- highlights (the scrolling news) ---- */
    .site-header .highlights-area {
        display: flex;
        flex: 1;
        align-items: center;
        gap: 16px;
        min-width: 0;
        padding: 9px 0;
    }

    .site-header .highlights-label {
        display: inline-flex;
        flex: none;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 8px 16px 8px 14px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--navy);
        background: #ffffff;
        border-radius: 999px;
    }

        .site-header .highlights-label svg {
            width: 16px;
            height: 16px;
            color: var(--sky-blue);
            animation: blink-slowly 1.4s ease-in-out infinite;
        }

@keyframes blink-slowly {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* window that the text scrolls inside */
.site-header .highlights-ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    /* soft fade on both ends */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

/* The text starts just outside the right edge and slides all the way out
       on the left. Your server code fills the #headlines div. */
.site-header .highlights-track {
    display: inline-block;
    padding-left: 100%;
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff;
    animation: scroll-highlights 30s linear infinite;
}

.site-header .highlights-ticker:hover .highlights-track {
    animation-play-state: paused; /* stops when you point at it */
}

.site-header .highlights-track a {
    color: #ffffff;
    text-decoration: none;
}

    .site-header .highlights-track a:hover {
        text-decoration: underline;
    }

.site-header .highlight-item {
    display: inline-block;
    margin-right: 48px;
}

    .site-header .highlight-item::before {
        content: "";
        display: inline-block;
        width: 7px;
        height: 7px;
        margin-right: 12px;
        background: var(--light-blue);
        border-radius: 50%;
    }

@keyframes scroll-highlights {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ---- phone and email ---- */
.site-header .contact-links {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px 22px;
}

.site-header .top-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #ffffff;
}

    .site-header .top-contact svg {
        width: 18px;
        height: 18px;
        fill: var(--light-blue);
    }

    .site-header .top-contact a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .site-header .top-contact a:hover {
            color: var(--light-blue);
        }

.site-header .contact-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.3);
}

/* ================= LOGO BAR ================= */
.site-header .logo-bar {
    position: relative;
    overflow: hidden; /* keeps the pulsing ring inside the bar */
    background: linear-gradient(180deg, #ffffff, #f6f8ff);
}


.site-header .logo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 24px 10px;
}

.site-header a.school-logo {
    display: block;
    flex: 0 1 750px;
    min-width: 0;
}

.site-header .school-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ---- the two buttons on the right ---- */
.site-header .header-buttons {
    display: flex;
    flex: none;
    align-items: center;
    gap: 16px;
}

.site-header a.header-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 28px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

    .site-header a.header-button svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

    .site-header a.header-button:hover {
        transform: translateY(-3px);
    }

    .site-header a.header-button:focus-visible {
        outline: 3px solid var(--sky-blue);
        outline-offset: 3px;
    }

/* "Admission Open" - the main button, with a ring that pulses */
.site-header a.admission-button {
    position: relative;
    color: #121250;
    background: linear-gradient(135deg, #fddc83, #ffd697);
    /* box-shadow: 0 12px 26px rgba(12, 12, 154, 0.35);*/
}

    .site-header a.admission-button:hover {
        color: #121250;
        box-shadow: 0 18px 32px rgba(12, 12, 154, 0.45);
    }

    .site-header a.admission-button::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        border: 2px solid #594517;
        animation: pulse-ring 2s ease-out infinite;
        pointer-events: none;
    }

@keyframes pulse-ring {
    from {
        transform: scale(1);
        opacity: 0.8;
    }

    to {
        transform: scale(1.18, 1.5);
        opacity: 0;
    }
}

/* "Parent Login" - the quieter outline button */
    .site-header a.parent-login-button {
    color: var(--dark-blue);
    background: #ffffff;
    border: 2px solid var(--dark-blue);
    padding: 13px 26px;
}

    .site-header a.parent-login-button:hover {
        color: #ffffff;
        background: var(--dark-blue);
    }

/* ================= SMALLER SCREENS ================= */

/* laptops and tablets */
@media (max-width: 1100px) {
    .site-header .top-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-header .contact-links {
        justify-content: center;
        padding: 0 0 10px;
    }

    .site-header .logo-bar-inner {
        flex-direction: column;
        gap: 20px;
    }

    .site-header a.school-logo {
        flex: none;
        width: 100%;
        max-width: 640px;
    }
}

/* phones */
@media (max-width: 640px) {
    .site-header .top-bar-inner {
        padding: 0 14px;
    }

    .site-header .highlights-label {
        padding: 7px 12px;
        font-size: 12px;
    }

    .site-header .highlights-track {
        font-size: 14px;
    }

    .site-header .contact-links {
        flex-direction: column;
        gap: 6px;
    }

    .site-header .contact-divider {
        display: none;
    }

    .site-header .top-contact {
        font-size: 14px;
    }

    .site-header .logo-bar-inner {
        padding: 14px 14px 18px;
    }

    .site-header .header-buttons {
        width: 100%;
        display: flex;
    }

    .site-header a.header-button {
        justify-content: center;
        width: 100%;
        max-width: 340px;
        font-size: 14px;
        padding: 11px 15px;
    }

    .site-header a.admission-button::before {
        display: none; /* no pulse on phones, the button is already full width */
    }
}

/* for people who switch off animations on their device */
@media (prefers-reduced-motion: reduce) {
    .site-header .highlights-label svg,
    .site-header a.admission-button::before {
        animation: none;
    }

    .site-header .highlights-track {
        animation-duration: 90s;
    }
}

.social-sidebar {
    /* colours - the blue is taken from the school logo */
    --logo-blue: #0c0c9e;
    --light-blue: #a9b4ff;
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: "Poppins", Arial, sans-serif;
    transform: translateY(-50%);
    animation: sidebar-slide-in 0.8s ease 0.3s both;
}

    .social-sidebar *,
    .social-sidebar *::before,
    .social-sidebar *::after {
        box-sizing: border-box;
    }

@keyframes sidebar-slide-in {
    from {
        opacity: 0;
        transform: translate(70px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* small blue tab on top that says "Follow us" (text runs upwards) */
.social-sidebar .follow-tab {
    display: block;
    margin: 0 0 4px;
    padding: 14px 8px 14px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--logo-blue);
    border-radius: 14px 0 0 14px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    box-shadow: -6px 8px 18px rgba(12, 12, 158, 0.3);
}

/* each social link: a tab that is just an icon until you point at it,
       then it grows to the left and shows the name */
.social-sidebar a.social-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 56px;
    height: 56px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    border-radius: 18px 0 0 18px;
    box-shadow: -6px 8px 18px rgba(12, 12, 40, 0.28);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

    .social-sidebar a.social-link:hover,
    .social-sidebar a.social-link:focus-visible {
        width: 168px;
        box-shadow: -10px 12px 26px rgba(12, 12, 40, 0.4);
        outline: none;
    }

.social-sidebar .social-name {
    flex: 1;
    padding-left: 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-sidebar a.social-link:hover .social-name,
.social-sidebar a.social-link:focus-visible .social-name {
    opacity: 1;
}

.social-sidebar .social-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 56px;
    height: 56px;
}

    .social-sidebar .social-icon svg {
        width: 26px;
        height: 26px;
        fill: #ffffff;
        transition: transform 0.4s ease;
    }

.social-sidebar a.social-link:hover .social-icon svg {
    transform: scale(1.18) rotate(-8deg);
}

/* each platform keeps its own colour */
.social-sidebar .facebook-link {
    background: #3b5998;
}

.social-sidebar .instagram-link {
    background: linear-gradient(45deg, #f9a03c, #e1306c 55%, #6d4fd6);
}

.social-sidebar .youtube-link {
    background: #d01212;
}

/* smaller on phones */
@media (max-width: 640px) {
    .social-sidebar {
        gap: 8px;
    }

        .social-sidebar .follow-tab {
            padding: 12px 6px 12px 8px;
            font-size: 11px;
        }

        .social-sidebar a.social-link,
        .social-sidebar .social-icon {
            width: 44px;
            height: 44px;
        }

        .social-sidebar a.social-link {
            border-radius: 14px 0 0 14px;
        }

            .social-sidebar a.social-link:hover,
            .social-sidebar a.social-link:focus-visible {
                width: 44px; /* no slide-out on touch screens */
            }

        .social-sidebar .social-name {
            display: none;
        }

        .social-sidebar .social-icon svg {
            width: 22px;
            height: 22px;
        }
}

/* for people who switch off animations on their device */
@media (prefers-reduced-motion: reduce) {
    .social-sidebar {
        animation: none;
    }

        .social-sidebar a.social-link,
        .social-sidebar .social-icon svg {
            transition: none;
        }
}


.quick-actions {
    /* colours - taken from the school logo */
    --logo-blue: #0c0c9e;
    --logo-yellow: #ffdc12;
    --pale-blue: #dfe4ff;
    position: fixed;
    top: 75%;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-family: "Poppins", Arial, sans-serif;
    transform: translateY(-50%);
}

    .quick-actions *,
    .quick-actions *::before,
    .quick-actions *::after {
        box-sizing: border-box;
    }

    /* both buttons: round icon badge + name, stuck to the left edge */
    .quick-actions a.action-button {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        height: 58px;
        padding: 0 24px 0 8px;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        border-radius: 0 999px 999px 0;
        box-shadow: 8px 10px 22px rgba(12, 12, 40, 0.3);
        transform: translateX(-100%);
        animation: button-slide-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        transition: padding 0.3s ease, box-shadow 0.3s ease;
    }

    .quick-actions a.enquire-button {
        animation-delay: 0.45s;
    }

    .quick-actions a.feedback-button {
        animation-delay: 0.3s;
    }

@keyframes button-slide-in {
    to {
        transform: translateX(0);
    }
}

/* the button grows a little to the right when you point at it */
.quick-actions a.action-button:hover,
.quick-actions a.action-button:focus-visible {
    padding-right: 34px;
    box-shadow: 12px 14px 28px rgba(12, 12, 40, 0.4);
    outline: none;
}

.quick-actions .action-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

    .quick-actions .action-icon svg {
        width: 22px;
        height: 22px;
        transition: transform 0.4s ease;
    }

.quick-actions a.action-button:hover .action-icon svg {
    transform: rotate(-12deg) scale(1.15);
}

/* "Feedback" - blue from the logo */
.quick-actions a.feedback-button {
    color: #ffffff;
    background: linear-gradient(135deg, #121250, var(--logo-blue));
}

    .quick-actions a.feedback-button .action-icon {
        background: rgba(255, 255, 255, 0.18);
    }

        .quick-actions a.feedback-button .action-icon svg {
            fill: #ffffff;
        }

/* "Enquire Now" - yellow from the logo, with a soft glow that pulses */
.quick-actions a.enquire-button {
    color: var(--logo-blue);
    background: linear-gradient(135deg, #ffe85c, var(--logo-yellow) 55%, #ffc400);
    animation: button-slide-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards, glow-pulse 2.4s ease-in-out 1.4s infinite;
}

    .quick-actions a.enquire-button .action-icon {
        background: var(--logo-blue);
    }

        .quick-actions a.enquire-button .action-icon svg {
            fill: #ffffff;
        }

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 8px 10px 22px rgba(12, 12, 40, 0.3), 0 0 0 0 rgba(255, 220, 18, 0.7);
    }

    50% {
        box-shadow: 8px 10px 22px rgba(12, 12, 40, 0.3), 0 0 0 12px rgba(255, 220, 18, 0);
    }
}

/* smaller on phones */
@media (max-width: 640px) {
    .quick-actions {
        gap: 10px;
    }

        .quick-actions a.action-button {
            height: 46px;
            gap: 8px;
            padding: 0 16px 0 6px;
            font-size: 14px;
        }

        .quick-actions .action-icon {
            width: 34px;
            height: 34px;
        }

            .quick-actions .action-icon svg {
                width: 18px;
                height: 18px;
            }
}

/* for people who switch off animations on their device */
@media (prefers-reduced-motion: reduce) {
    .quick-actions a.action-button,
    .quick-actions a.enquire-button {
        animation: none;
        transform: none;
    }
}

.closebtn{
    display:none;
}
    .closebtn .fa-times{
        color:white;
    }
    @media only screen and (max-width: 669px) {
        .closebtn {
            position: fixed;
            font-size: 25px;
            left: 92% !important;
            top: 0;
            height: 10px;
            width: 100%;
            z-index: 999999;
            padding: 0;
        }

    .navbar_start.menu-active .closebtn {
        display: inline-block;
    }
}

/* Desktop: Open submenu on hover */
@media (min-width: 670px) {
    #MenuItems li:hover > ul {
        display: inline-block  !important;
        border: none !important;
    }

    .navbar_header > ul > li:hover > a{
        border:none !important;
    }
}

/* Mobile: Do not open submenu on hover */
@media (max-width: 669px) {
    #MenuItems li:hover > ul {
        display: none;
    }
}

.message-card p a {
    display: inline-block;
    padding: 4px 9px;
    background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

    .message-card p a:hover {
        background: #e6a23c;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }


@media (min-width: 768px) {
    .right_sidebar {
        position: sticky;
        position: -webkit-sticky;
        top: 20px;
        align-self: flex-start;
        height: fit-content;
    }
}