/*
   The modern home page: the live home page when the modern design is switched on in the site
   settings, and the administrators' preview at /preview/home. Loaded by those two pages alone.
   Everything is under .hp, except the rules at the end that make the shared header stick -
   and those, too, only on these pages. The modern footer has its own stylesheet, since it is
   used on every public page once the design is switched on.

   A girls' school: refined and warm rather than corporate or childish. Rose and plum on a
   blush-white ground, gently curved shapes, careful Persian typography, one icon family.
*/

.hp {
    --hp-ink: #2b1731;
    --hp-ink-2: #4a3552;
    --hp-muted: #7b6983;
    --hp-rose: #d6336c;
    --hp-rose-soft: #fde7ef;
    --hp-plum: #7b2a6b;
    --hp-violet: #8b4fd8;
    --hp-blush: #fff7fa;
    --hp-lilac: #f6f1fd;
    --hp-line: rgba(123, 42, 107, 0.12);
    --hp-gold: #c7a15a;
    --hp-grad: linear-gradient(135deg, #e0487f 0%, #b945b8 55%, #8b4fd8 100%);
    --hp-grad-deep: linear-gradient(135deg, #d63f7a 0%, #b4439f 55%, #8450cf 100%);
    --hp-shadow: 0 22px 48px -24px rgba(123, 42, 107, 0.35);
    --hp-shadow-sm: 0 10px 26px -16px rgba(123, 42, 107, 0.35);
    --hp-radius: 24px;

    color: var(--hp-ink);
    font-family: Vazirmatn, Tahoma, sans-serif;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.hp *,
.hp *::before,
.hp *::after { box-sizing: border-box; }

.hp h1, .hp h2, .hp h3 { margin: 0; color: var(--hp-ink); }
.hp p { margin: 0; }
.hp a { text-decoration: none; }
.hp ul { list-style: none; margin: 0; padding: 0; }

.hp-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.hp-i {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    vertical-align: -0.2em;
}

/* ── the note that this is a preview ────────────────────────────────── */

.hp-preview-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #7c5a10;
    font-size: 13px;
    line-height: 1.8;
}

.hp-preview-note .hp-i { color: #d97706; }
.hp-preview-note span { flex: 1 1 320px; }
.hp-preview-note a { color: #b45309; font-weight: 700; text-decoration: underline; }

/* ── buttons, links, section heads ──────────────────────────────────── */

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.hp-btn:hover { transform: translateY(-2px); }

.hp-btn-primary {
    background: var(--hp-grad);
    color: #fff;
    box-shadow: 0 16px 34px -14px rgba(214, 51, 108, 0.75);
}

.hp-btn-primary:hover { color: #fff; box-shadow: 0 20px 40px -14px rgba(214, 51, 108, 0.85); }

.hp-btn-glass {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hp-btn-glass:hover { color: #fff; background: rgba(255, 255, 255, 0.26); }

.hp-btn-light {
    background: #fff;
    color: var(--hp-plum);
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.45);
}

.hp-btn-light:hover { color: var(--hp-rose); }

.hp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--hp-line);
    background: #fff;
    color: var(--hp-plum);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.hp-link:hover { background: var(--hp-rose-soft); color: var(--hp-rose); }

/* One rhythm down the page: 112px from the end of one section's content to the start of the
   next (88px a side left 176px of empty page between every pair, more than a screen's worth of
   blank on the way down). The last section keeps the same padding, so the collapsed "about"
   strip and the footer after it sit half a step away - see the end of this file. */
.hp-section { padding: 56px 0; position: relative; }
.hp-section-tint { background: linear-gradient(180deg, rgba(253, 231, 239, 0) 0%, rgba(253, 231, 239, 0.55) 18%, rgba(246, 241, 253, 0.6) 82%, rgba(246, 241, 253, 0) 100%); }

.hp-head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.hp-head-row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    text-align: right;
}

.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--hp-rose);
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: 0;
}

/* A small gold lozenge before each eyebrow - the one ornament the page repeats. */
.hp-eyebrow::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 2px;
    transform: rotate(45deg);
    background: var(--hp-gold);
}

.hp-eyebrow-light { color: #ffd6e5; }

.hp-title {
    font-size: clamp(1.55rem, 2.7vw, 2.25rem);
    font-weight: 900;
    line-height: 1.55;
}

.hp-title span {
    background: var(--hp-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hp-lead {
    margin-top: 12px;
    color: var(--hp-muted);
    font-size: 16px;
    line-height: 2.05;
}

.hp-empty { text-align: center; color: var(--hp-muted); }

/* ── hero ───────────────────────────────────────────────────────────── */

.hp-hero { padding-bottom: 8px; }

.hp-hero-frame {
    position: relative;
    height: clamp(520px, 72vh, 640px);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(76, 42, 138, 0.55);
    isolation: isolate;
    background: #3b1740;
}

/* Specific enough to beat Bootstrap's own .carousel rules, which this page's stylesheet is
   loaded before. Bootstrap also floats each slide with a -100% margin for its sliding effect;
   with the slides stacked and cross-faded here, that margin would push the picture out of the
   frame. */
.hp .hp-hero-slides,
.hp .hp-hero-slides .carousel-inner,
.hp .hp-hero-slides .carousel-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    float: none;
}

.hp-hero-slides .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.04);
    transition: transform 6s ease-out;
}

.hp-hero-slides .carousel-item.active img { transform: scale(1); }

.hp-hero-empty { background: var(--hp-grad-deep); }

/* Text sits on the right, so the shade is darkest there and clears towards the left, leaving
   the girls in the photograph visible. */
.hp-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to left, rgba(66, 14, 46, 0.86) 0%, rgba(86, 20, 60, 0.6) 38%, rgba(86, 20, 60, 0.12) 72%, rgba(86, 20, 60, 0) 100%),
        linear-gradient(to top, rgba(52, 12, 38, 0.45) 0%, rgba(52, 12, 38, 0) 45%);
    pointer-events: none;
}

.hp-hero-content {
    position: absolute;
    z-index: 2;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(560px, 100%);
    padding: 56px 56px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.hp-hero-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hp-hero-badge .hp-i { color: #ffd166; }

.hp-hero-content h1 {
    margin-top: 18px;
    color: #fff;
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.35;
}

.hp-hero-content h1 span {
    background: linear-gradient(135deg, #ffd1e2, #ffb3d0 40%, #e3c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hp-hero-content p {
    margin-top: 14px;
    font-size: 17px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    max-width: 460px;
}

.hp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hp-hero-dots.carousel-indicators {
    z-index: 3;
    margin: 0;
    inset-inline-end: 32px;
    inset-inline-start: auto;
    /* Clear of the highlights strip, which overlaps the hero's lower 38px. */
    bottom: 56px;
    justify-content: flex-end;
    gap: 8px;
}

.hp-hero-dots.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    transition: width .3s ease, background .3s ease;
}

.hp-hero-dots.carousel-indicators .active { width: 30px; background: #fff; }

/* The four things the school is proud of, as a strip resting on the hero's lower edge,
   centred under it. ".hp" in front because the strip is a <ul>, and ".hp ul" - which clears
   every list's margin and padding - would otherwise win, leaving the strip flush against one
   side, below the hero rather than over its edge, and with no room inside it. */
.hp .hp-highlights {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: -38px auto 0;
    width: calc(100% - 64px);
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--hp-shadow);
}

.hp-highlights li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 14px;
    background: var(--hp-blush);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--hp-ink-2);
}

.hp-highlights .hp-i { color: var(--hp-rose); width: 1.3em; height: 1.3em; }

/* ── about ──────────────────────────────────────────────────────────── */

.hp-about {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hp-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0 0;
}

.hp-pillars div {
    padding: 16px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
    text-align: center;
}

.hp-pillars dt { font-weight: 900; font-size: 17px; color: var(--hp-plum); }
.hp-pillars dd { margin: 2px 0 0; font-size: 13px; color: var(--hp-muted); }

.hp-about-media {
    position: relative;
    min-height: 440px;
}

.hp-about-ring {
    position: absolute;
    inset: 8% 4% 4% 14%;
    border-radius: 44% 56% 48% 52% / 52% 46% 54% 48%;
    background: linear-gradient(135deg, #fde7ef, #efe4fd);
}

.hp-about-main {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 78%;
    height: 330px;
    object-fit: cover;
    border-radius: 200px 200px 28px 28px;
    box-shadow: var(--hp-shadow);
}

.hp-about-placeholder { background: var(--hp-grad-deep); }

.hp-about-small {
    position: absolute;
    inset-block-end: 0;
    inset-inline-end: 0;
    width: 46%;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
    border: 6px solid #fff;
    box-shadow: var(--hp-shadow);
}

.hp-about-seal {
    position: absolute;
    inset-block-end: 40px;
    inset-inline-start: 6%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--hp-shadow-sm);
    font-weight: 800;
    font-size: 13px;
    color: var(--hp-plum);
}

.hp-about-seal img { width: 40px; height: 40px; }

/* ── services ───────────────────────────────────────────────────────── */

.hp-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-service {
    position: relative;
    padding: 32px 28px 28px;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hp-service::after {
    content: '';
    position: absolute;
    inset-block-start: -60px;
    inset-inline-end: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 72, 127, 0.1), rgba(224, 72, 127, 0) 70%);
}

.hp-service:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); }

.hp-service-icon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: var(--hp-grad);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 14px 28px -14px rgba(185, 69, 184, 0.9);
}

.hp-service h3 { margin-top: 22px; font-size: 19px; font-weight: 800; }
.hp-service p { margin-top: 10px; color: var(--hp-muted); font-size: 14.5px; line-height: 2; }

.hp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.hp-tags span {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hp-rose-soft);
    color: var(--hp-rose);
    font-size: 12.5px;
    font-weight: 700;
}

/* ── why Minoo ──────────────────────────────────────────────────────── */

.hp-why {
    position: relative;
    padding: 56px;
    border-radius: 36px;
    /* The page's own blush and lilac, with a warm peach glow - light and cheerful, in keeping
       with the sections around it rather than a dark block in the middle of the page. */
    background:
        radial-gradient(circle at 34% 12%, rgba(214, 51, 108, 0.45) 0 3px, transparent 3.5px),
        radial-gradient(circle at 52% 6%, rgba(240, 138, 60, 0.5) 0 2.5px, transparent 3px),
        radial-gradient(circle at 6% 34%, rgba(31, 165, 151, 0.4) 0 3px, transparent 3.5px),
        radial-gradient(circle at 22% 88%, rgba(139, 79, 216, 0.4) 0 2.5px, transparent 3px),
        radial-gradient(circle at 64% 94%, rgba(214, 51, 108, 0.35) 0 2px, transparent 2.5px),
        radial-gradient(circle at 97% 58%, rgba(240, 138, 60, 0.45) 0 3px, transparent 3.5px),
        radial-gradient(circle at 12% 110%, rgba(255, 196, 150, 0.45) 0%, rgba(255, 196, 150, 0) 42%),
        radial-gradient(circle at 92% -10%, rgba(255, 170, 205, 0.55) 0%, rgba(255, 170, 205, 0) 45%),
        linear-gradient(135deg, #fff3f7 0%, #ffe8f1 45%, #f3ecff 100%);
    color: var(--hp-ink);
    overflow: hidden;
    border: 1px solid rgba(214, 51, 108, 0.12);
    box-shadow: 0 40px 80px -48px rgba(214, 51, 108, 0.45);
}

/* Two soft rings in the corners - movement without pictures. */
.hp-why::before,
.hp-why::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(214, 51, 108, 0.14);
    pointer-events: none;
}

.hp-why::before { width: 420px; height: 420px; inset-block-start: -210px; inset-inline-end: -120px; box-shadow: 0 0 0 40px rgba(214, 51, 108, 0.035); }
.hp-why::after { width: 300px; height: 300px; inset-block-end: -170px; inset-inline-start: -90px; box-shadow: 0 0 0 30px rgba(139, 79, 216, 0.035); }

.hp-why-head { position: relative; max-width: 720px; }
.hp-why .hp-eyebrow-light { color: var(--hp-rose); }
.hp-why-head h2 { color: var(--hp-ink); font-size: clamp(1.55rem, 2.7vw, 2.25rem); font-weight: 900; line-height: 1.55; }
.hp-why-head h2::after {
    content: '';
    display: block;
    width: 72px;
    height: 5px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--hp-grad);
}
.hp-why-head p { margin-top: 12px; color: var(--hp-ink-2); font-size: 16px; line-height: 2.05; }

.hp-why-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.hp-why-item {
    --why-tone: #e0487f;
    --why-wash: #ffe3ee;
    padding: 22px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 3px 0 var(--why-tone), 0 16px 34px -24px rgba(123, 42, 107, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-why-item:hover { transform: translateY(-4px); box-shadow: inset 0 3px 0 var(--why-tone), 0 22px 40px -22px rgba(214, 51, 108, 0.45); }

/* Each reason its own cheerful colour: rose, peach, mint, lilac. */
.hp-why-item:nth-child(4n + 2) { --why-tone: #f08a3c; --why-wash: #ffecdc; }
.hp-why-item:nth-child(4n + 3) { --why-tone: #1fa597; --why-wash: #dcf5f1; }
.hp-why-item:nth-child(4n + 4) { --why-tone: #8b4fd8; --why-wash: #efe6fd; }

.hp-why-item .hp-i {
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 14px;
    color: var(--why-tone);
    background: var(--why-wash);
}

.hp-why-item h3 { margin-top: 14px; color: var(--hp-ink); font-size: 17px; font-weight: 800; }
.hp-why-item p { margin-top: 6px; color: var(--hp-muted); font-size: 13.5px; line-height: 1.95; }

.hp-why-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px dashed rgba(214, 51, 108, 0.22);
}

.hp-why-cta strong { display: block; font-size: 18px; font-weight: 800; color: var(--hp-plum); }
.hp-why-cta span { display: block; margin-top: 4px; color: var(--hp-ink-2); font-size: 14px; line-height: 1.95; max-width: 640px; }

/* ── videos ─────────────────────────────────────────────────────────── */

.hp-videos {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    align-items: start;
}

.hp-videos.is-single { grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }

.hp-player {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: #1c0f22;
    box-shadow: var(--hp-shadow);
}

.hp-player video,
.hp-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: #1c0f22;
}

.hp-player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(to top, rgba(28, 15, 34, 0.75) 0%, rgba(28, 15, 34, 0.05) 55%);
    transition: opacity .3s ease;
}

.hp-player-cover.is-bare { background: var(--hp-grad-deep); }

.hp-player-crest { position: absolute; width: 96px; height: 96px; opacity: 0.25; inset-block-start: 24px; inset-inline-end: 24px; display: none; }
.hp-player-cover.is-bare .hp-player-crest { display: block; }

.hp-play {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hp-rose);
    cursor: pointer;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.22), 0 20px 40px -12px rgba(0, 0, 0, 0.5);
    transition: transform .2s ease;
}

.hp-play:hover { transform: scale(1.06); }
.hp-play .hp-i { width: 34px; height: 34px; margin-inline-start: -4px; fill: currentColor; }

.hp-player-title {
    position: absolute;
    inset-inline: 24px;
    inset-block-end: 20px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hp-player.is-playing .hp-player-cover { opacity: 0; pointer-events: none; }

.hp-player-missing {
    display: none;
    position: absolute;
    inset-block-start: 20px;
    inset-inline-start: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hp-plum);
    font-size: 13px;
    font-weight: 700;
}

.hp-player.is-missing .hp-player-missing { display: block; }
.hp-player.is-missing .hp-play { opacity: 0.4; cursor: not-allowed; }

.hp-video-list { display: grid; gap: 14px; }

.hp-video-pick {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--hp-line);
    background: #fff;
    text-align: right;
    font: inherit;
    color: var(--hp-ink);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hp-video-pick:hover { transform: translateY(-2px); box-shadow: var(--hp-shadow-sm); }
.hp-video-pick.is-active { border-color: rgba(214, 51, 108, 0.55); box-shadow: 0 0 0 3px rgba(214, 51, 108, 0.12); }

.hp-video-thumb {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 132px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: var(--hp-grad-deep);
    color: #fff;
}

.hp-video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-video-thumb .hp-i { position: relative; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--hp-rose); fill: currentColor; }

.hp-video-name { font-weight: 700; font-size: 14.5px; line-height: 1.8; }

/* ── news ───────────────────────────────────────────────────────────── */

.hp-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-news-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    overflow: hidden;
    color: inherit;
    box-shadow: var(--hp-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hp-news-card:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); color: inherit; }

.hp-news-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hp-lilac);
}

.hp-news-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hp-news-card:hover .hp-news-photo { transform: scale(1.05); }

.hp-news-media:not(.is-empty) .hp-news-crest,
.hp-news-media:not(.is-empty) .hp-news-kind-icon { display: none; }

/* The stand-in for a post with no picture: the school's colours, its crest, and the kind of post. */
.hp-news-media.is-empty { background: linear-gradient(135deg, #fde7ef 0%, #f3e8ff 100%); }
.hp-news-media.is-empty.is-video { background: linear-gradient(135deg, #f9d5e5 0%, #e4d4fb 100%); }
.hp-news-media.is-empty.is-album { background: linear-gradient(135deg, #fce3ea 0%, #fff0dd 100%); }

.hp-news-media.is-empty .hp-news-crest {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0.13;
    inset-block-end: -28px;
    inset-inline-start: -24px;
    transform: none;
}

.hp-news-kind-icon {
    width: 64px;
    height: 64px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    color: var(--hp-rose);
    box-shadow: var(--hp-shadow-sm);
}

.hp-chip {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hp-plum);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.35);
}

.hp-news-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 20px 22px 22px;
}

.hp-news-date { display: flex; align-items: center; gap: 6px; color: var(--hp-muted); font-size: 13px; }
.hp-news-date .hp-i { color: var(--hp-rose); }

.hp-news-body strong {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-news-excerpt {
    color: var(--hp-muted);
    font-size: 14px;
    line-height: 1.95;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-news-more {
    margin-top: auto;
    padding-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-rose);
    font-weight: 800;
    font-size: 14px;
}

/* ── gallery ────────────────────────────────────────────────────────── */

.hp-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
    grid-auto-flow: dense;
    gap: 14px;
}

.hp-gallery a {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hp-shadow-sm);
}

.hp-gallery a:first-child { grid-column: span 2; grid-row: span 2; }

.hp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hp-gallery a:hover img { transform: scale(1.06); }

.hp-gallery a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123, 42, 107, 0.35), rgba(123, 42, 107, 0) 50%);
    opacity: 0;
    transition: opacity .3s ease;
}

.hp-gallery a:hover::after { opacity: 1; }

/* ── facilities ─────────────────────────────────────────────────────── */

.hp-facilities {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.hp-facility {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 14px 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--hp-line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hp-facility:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-sm); border-color: rgba(214, 51, 108, 0.3); }

.hp-facility-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fde7ef, #efe4fd);
    color: var(--hp-plum);
    font-size: 24px;
}

.hp-facility h3 { margin-top: 14px; font-size: 15px; font-weight: 800; line-height: 1.7; }
.hp-facility p { margin-top: 6px; color: var(--hp-muted); font-size: 12.5px; line-height: 1.9; flex: 1; }

.hp-facility-kind {
    margin-top: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--hp-blush);
    color: var(--hp-rose);
    font-size: 11.5px;
    font-weight: 700;
}

/* ── registration ───────────────────────────────────────────────────── */

.hp-cta {
    position: relative;
    padding: 64px 40px;
    border-radius: 36px;
    background: var(--hp-grad);
    color: #fff;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(214, 51, 108, 0.8);
}

.hp-cta-crest {
    position: absolute;
    width: 320px;
    height: 320px;
    inset-block-start: -60px;
    inset-inline-start: -60px;
    opacity: 0.1;
    pointer-events: none;
}

.hp-cta-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 32px;
}

.hp-cta h2 { position: relative; margin-top: 18px; color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; }
.hp-cta p { position: relative; margin: 10px auto 26px; max-width: 560px; color: rgba(255, 255, 255, 0.9); font-size: 16.5px; }
.hp-cta .hp-btn { position: relative; }

.hp-jobs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--hp-line);
    color: var(--hp-muted);
    font-size: 14px;
    line-height: 1.9;
    transition: box-shadow .2s ease;
}

.hp-jobs:hover { box-shadow: var(--hp-shadow-sm); color: var(--hp-muted); }
.hp-jobs strong { display: block; color: var(--hp-ink); font-size: 15.5px; }

.hp-jobs-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--hp-rose-soft);
    color: var(--hp-rose);
    font-size: 22px;
}

.hp-jobs-go {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-rose);
    font-weight: 800;
    white-space: nowrap;
}

/* ── appearing as the reader scrolls ────────────────────────────────── */

/* Only once the script has said it is running, so without it everything is simply there. */
.hp-js .hp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.hp-js .hp-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .hp-js .hp-reveal { opacity: 1; transform: none; transition: none; }
    .hp *, .hp *::before, .hp *::after { transition: none !important; }
    .hp-hero-slides .carousel-item img { transform: none; }
}

/* ── narrower screens ───────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .hp-facilities { grid-template-columns: repeat(4, 1fr); }
    .hp-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hp-section { padding: 44px 0; }
    .hp-about { grid-template-columns: 1fr; gap: 40px; }
    .hp-about-media { min-height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
    .hp-services { grid-template-columns: 1fr; }
    .hp-videos { grid-template-columns: 1fr; }
    .hp .hp-highlights { grid-template-columns: repeat(2, 1fr); width: calc(100% - 32px); }
    .hp-news { grid-template-columns: repeat(2, 1fr); }
    .hp-facilities { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hp-container { padding-inline: 16px; }
    .hp-section { padding: 36px 0; }
    .hp-head { margin-bottom: 28px; }
    .hp-head-row { flex-direction: column; align-items: flex-start; }
    .hp-lead { font-size: 15px; }

    /* ── Hero Section (Mobile/Tablet: Clean Split Layout - No Zoom or Crop) ── */
    .hp-hero-frame {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        border-radius: 28px;
        overflow: hidden;
        background: linear-gradient(165deg, #350f2f 0%, #1c051a 100%);
        box-shadow: 0 24px 50px -18px rgba(46, 8, 39, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Slider: natural 16:9 aspect-ratio showing complete photos without extreme crop/zoom */
    .hp .hp-hero-slides {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 320px;
        border-radius: 27px 27px 0 0;
        overflow: hidden;
        background: #1c051a;
        flex-shrink: 0;
    }

    .hp .hp-hero-slides .carousel-inner {
        position: relative;
        inset: auto;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hp .hp-hero-slides .carousel-item {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        float: none;
    }

    .hp-hero-slides .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: none !important;
        transition: opacity .5s ease;
        border-radius: 27px 27px 0 0;
    }

    .hp-hero-slides .carousel-item.active img {
        transform: none !important;
    }

    /* Remove heavy dark overlay over photo in mobile */
    .hp-hero-shade {
        display: none;
    }

    /* Sleek frosted glass indicator dots over the bottom of the slider */
    .hp-hero-dots.carousel-indicators {
        position: absolute;
        bottom: 12px;
        inset-inline: 0;
        margin: 0 auto;
        width: fit-content;
        justify-content: center;
        z-index: 5;
        gap: 6px;
        padding: 5px 12px;
        border-radius: 999px;
        background: rgba(20, 4, 18, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

    .hp-hero-dots.carousel-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.65);
        border: 0;
        margin: 0;
        opacity: 1;
        transition: width .25s ease, background .25s ease;
    }

    .hp-hero-dots.carousel-indicators .active {
        width: 22px;
        background: #ffffff;
    }

    /* Content block sitting cleanly beneath the slider */
    .hp-hero-content {
        position: relative;
        inset: auto;
        width: 100%;
        padding: 24px 20px 28px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
        justify-content: flex-start;
        z-index: 3;
        color: #fff;
    }

    .hp-hero-badge {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .hp-hero-content h1 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
        font-weight: 800;
        line-height: 1.35;
        margin: 0 0 10px 0;
        color: #fff;
    }

    .hp-hero-content h1 span {
        background: linear-gradient(135deg, #ffd1e2, #ffb3d0 40%, #e3c6ff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .hp-hero-content p {
        font-size: 13.5px;
        line-height: 1.85;
        color: rgba(255, 255, 255, 0.88);
        margin: 0 0 20px 0;
        max-width: 100%;
    }

    .hp-hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 0;
    }

    .hp-hero-actions .hp-btn {
        width: 100%;
        min-height: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 14.5px;
    }

    /* Highlights strip cleanly positioned under the hero card */
    .hp .hp-highlights {
        width: calc(100% - 16px);
        margin: 16px auto 0;
        padding: 10px;
        gap: 8px;
    }
    .hp-highlights li { font-size: 13px; padding: 10px 6px; gap: 6px; }

    .hp-pillars { gap: 8px; }
    .hp-pillars div { padding: 12px 6px; }
    .hp-pillars dt { font-size: 15px; }
    .hp-pillars dd { font-size: 12px; }

    .hp-about-media { min-height: 320px; }
    .hp-about-main { height: 250px; }
    .hp-about-small { height: 140px; }

    .hp-why { padding: 32px 20px; border-radius: 28px; }
    .hp-why-grid { gap: 10px; margin-top: 24px; }
    .hp-why-item { padding: 16px 14px; }
    .hp-why-item p { font-size: 12.5px; }
    .hp-why-cta { flex-direction: column; align-items: stretch; text-align: center; }

    /* News as a row to swipe through, rather than six tall cards one under another. */
    .hp-news {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 4px 16px 18px;
        margin-inline: -16px;
        scrollbar-width: none;
    }
    .hp-news::-webkit-scrollbar { display: none; }
    .hp-news-card { scroll-snap-align: center; }

    /* Cards waiting off to the side of the row are already on the page; they should not fade
       in a second time as they are swiped across. */
    .hp-js .hp-news .hp-reveal { opacity: 1; transform: none; }

    .hp-video-thumb { width: 108px; }

    .hp-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 10px; }
    .hp-gallery a:nth-child(n + 6) { display: none; }

    /* Twelve facilities as a compact two-column grid: a third of the old length. */
    .hp-facilities { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hp-facility { padding: 16px 10px 14px; }
    .hp-facility-icon { width: 46px; height: 46px; border-radius: 15px; font-size: 21px; }
    .hp-facility h3 { font-size: 14px; margin-top: 10px; }
    .hp-facility p { font-size: 12px; }
    .hp-facility-kind { display: none; }

    .hp-cta { padding: 44px 20px; border-radius: 28px; }
    .hp-jobs { flex-wrap: wrap; }
    .hp-jobs-go { margin-inline-start: 64px; }
}

/* ── the shared header and footer, on this page only ────────────────── */

/* The menu stays within reach while reading, and firms up once the page has moved under it.
   body-qualified because home-theme.css, loaded after this file, sets .theme-navbar relative. */
body .theme-navbar { position: sticky; top: 0; }
body .theme-navbar .navbar-glass { transition: background .3s ease, box-shadow .3s ease; }
.theme-navbar.is-scrolled .navbar-glass {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px -18px rgba(123, 42, 107, 0.45);
}

/* The menu floats inside a band of the header's own padding, and that band is transparent: once
   the page had scrolled under it, text and photographs showed crisply above the menu and on
   either side of it. Behind the whole band, a frosted layer of the same glass as the menu, which
   fades out along its lower edge so the page slides under it rather than being cut off by a
   line. Only once the page has moved; at the top there is nothing under the band to hide. The
   header is its own stacking context (sticky, z-index 100), so -1 keeps the layer behind the
   menu, the open mobile menu and its backdrop. */
body .theme-navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

body .theme-navbar.is-scrolled::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    body .theme-navbar::before { transition: none; }
}

/* ── the "about" strip and the footer, lined up with the page ─────────
   Both are shared with other pages, which is why their own widths differ from this page's
   1152px column: the strip's stylesheet (Views/Home/_AboutSchool.cshtml) makes it 1200px inside
   16px of padding - 24px a side wider on a wide screen, 8px between 640 and 1200px - and the
   footer's panel is 1200px, 24px a side wider on a wide screen. Here, and only here, they take
   this page's edges: 24px of gutter (16px on a phone), no wider than the column. ".hp ~" limits every rule to this page and is
   also what lets them win over the strip's own <style>, which comes later in the page.

   Vertically, the strip sits half a step (56px, 44px, 36px) below the last section and above
   the footer. The footer's own 40px (24px on a phone) margin is part of that distance. */
.hp ~ .about-more-section { padding: 0 24px 16px; }
.hp ~ .about-more-section .about-more { max-width: 1152px; }
.hp ~ .mf .mf-wrap { max-width: 1200px; }

@media (max-width: 900px) {
    .hp ~ .about-more-section { padding-bottom: 4px; }
}

@media (max-width: 640px) {
    .hp ~ .about-more-section { padding: 0 16px 12px; }
}

/* On a phone the featured video's play button and its title shared the same few pixels. */
@media (max-width: 575px) {
    .hp-play { width: 62px; height: 62px; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22), 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
    .hp-play .hp-i { width: 26px; height: 26px; }
    .hp-player-title { inset-inline: 16px; inset-block-end: 12px; font-size: 14.5px; }
    .hp-player-crest { width: 60px; height: 60px; inset-block-start: 14px; inset-inline-end: 14px; }
}
