/* =========================================================
   KIAMAIKO PRIMARY SCHOOL
   HOMEPAGE ONLY
========================================================= */


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.home-hero {
    position: relative;

    background:
        radial-gradient(
            circle at 86% 15%,
            rgba(199, 224, 243, .16),
            transparent 32%
        ),
        linear-gradient(
            120deg,
            #171a28 0%,
            #222638 42%,
            #2c3148 100%
        );
}

.hero-shape {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.hero-shape-one {
    width: 500px;
    height: 500px;

    right: -170px;
    top: -150px;

    border:
        1px solid rgba(199, 224, 243, .12);
}

.hero-shape-two {
    width: 720px;
    height: 720px;

    right: -360px;
    top: -240px;

    border:
        1px solid rgba(199, 224, 243, .08);
}

.hero-pill {
    padding: 8px 12px;

    border:
        1px solid rgba(199, 224, 243, .20);

    border-radius: 99px;

    background:
        rgba(255, 255, 255, .05);

    color: #dbe8f3;

    font-size: 12px;
    font-weight: 700;

    backdrop-filter: blur(8px);
}

.hero-primary-btn,
.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 15px 21px;

    border-radius: 12px;

    font-weight: 800;
    font-size: 14px;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.hero-primary-btn {
    background: var(--brand-200);
    color: var(--brand-900);
}

.hero-primary-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.hero-secondary-btn {
    background:
        rgba(255, 255, 255, .06);

    border:
        1px solid rgba(255, 255, 255, .18);

    color: #fff;

    backdrop-filter: blur(8px);
}

.hero-secondary-btn:hover {
    background:
        rgba(255, 255, 255, .12);

    border-color:
        rgba(255, 255, 255, .35);

    transform: translateY(-2px);
}

.hero-check {
    width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(199, 224, 243, .13);

    color: var(--brand-200);

    font-size: 11px;
    font-weight: 900;
}

.hero-logo-card {
    position: relative;

    width: min(100%, 500px);

    padding: 28px 24px 32px;

    border:
        1px solid rgba(255, 255, 255, .10);

    border-radius: 38px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .10),
            rgba(255, 255, 255, .025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 30px 80px rgba(0,0,0,.15);

    backdrop-filter: blur(14px);
}

.hero-logo-glow {
    position: absolute;

    width: 70%;
    height: 70%;

    left: 15%;
    top: 12%;

    border-radius: 50%;

    background:
        rgba(199, 224, 243, .14);

    filter: blur(65px);
}


/* ---------------------------------------------------------
   QUICK LINKS
--------------------------------------------------------- */

.quick-link-card {
    display: flex;

    gap: 16px;

    padding: 25px 22px;

    background: #fff;

    border-right:
        1px solid #edf0f4;

    transition:
        background .2s ease,
        transform .2s ease;
}

.quick-link-card:last-child {
    border-right: 0;
}

.quick-link-card:hover {
    background: var(--brand-50);
}

.quick-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--brand-900);
    color: var(--brand-200);

    font-size: 11px;
    font-weight: 900;
}

.quick-link-card h2 {
    color: var(--brand-900);

    font-size: 16px;
    font-weight: 800;
}

.quick-link-card p {
    color: var(--brand-500);

    font-size: 13px;
    line-height: 1.55;

    margin-top: 4px;
}


/* ---------------------------------------------------------
   WELCOME
--------------------------------------------------------- */

.welcome-visual {
    position: relative;

    min-height: 500px;

    border-radius: 34px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #dbe8f3,
            #edf4f9
        );

    border: 1px solid #e2e9f0;
}

.welcome-logo-wrap {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255,255,255,.9),
            transparent 45%
        );
}

.mini-feature {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 17px 18px;

    border-radius: 15px;

    background: var(--brand-50);

    border: 1px solid #e7ebef;
}

.mini-feature strong {
    color: var(--brand-900);

    font-size: 14px;
}

.mini-feature span {
    color: var(--brand-500);

    font-size: 13px;
}


/* ---------------------------------------------------------
   DIFFERENCE
--------------------------------------------------------- */

.difference-card {
    position: relative;

    min-height: 230px;

    padding: 25px;

    border: 1px solid #e0e6ec;

    border-radius: 20px;

    background: #fff;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.difference-card:hover {
    transform: translateY(-5px);

    border-color: #cad5df;

    box-shadow:
        0 18px 45px rgba(44,49,72,.10);
}

.difference-number {
    color: var(--brand-400);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .14em;
}

.difference-card h3 {
    margin-top: 34px;

    color: var(--brand-900);

    font-size: 18px;
    font-weight: 800;

    line-height: 1.3;
}

.difference-card p {
    margin-top: 11px;

    color: var(--brand-500);

    font-size: 14px;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   LEARNING JOURNEY
--------------------------------------------------------- */

.learning-stage {
    min-height: 410px;

    display: flex;
    flex-direction: column;

    padding: 32px;

    border-radius: 28px;
}

.stage-light {
    background:
        linear-gradient(
            145deg,
            #e6f0f7,
            #c7e0f3
        );

    color: var(--brand-900);
}

.stage-dark {
    background:
        linear-gradient(
            145deg,
            #222638,
            #343a54
        );

    color: #fff;
}

.stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    font-size: 11px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .14em;
}

.stage-light .stage-top {
    color: var(--brand-500);
}

.stage-dark .stage-top {
    color: var(--brand-200);
}

.learning-stage h3 {
    margin-top: 70px;

    max-width: 500px;

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.05;

    font-weight: 800;
    letter-spacing: -.04em;
}

.learning-stage p {
    margin-top: 20px;

    max-width: 560px;

    font-size: 15px;
    line-height: 1.8;
}

.stage-light p {
    color: var(--brand-600);
}

.stage-dark p {
    color: #c5ccda;
}

.stage-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 26px;
}

.stage-tags span {
    padding: 7px 11px;

    border-radius: 99px;

    font-size: 11px;
    font-weight: 700;
}

.stage-light .stage-tags span {
    background:
        rgba(255,255,255,.55);

    color: var(--brand-700);
}

.stage-dark .stage-tags span {
    background:
        rgba(255,255,255,.07);

    color: #d9e0eb;

    border:
        1px solid rgba(255,255,255,.09);
}

.stage-link {
    margin-top: auto;
    padding-top: 32px;

    font-size: 14px;
    font-weight: 850;
}


/* ---------------------------------------------------------
   ACADEMICS
--------------------------------------------------------- */

.academic-bg-pattern {
    position: absolute;

    width: 700px;
    height: 700px;

    right: -350px;
    top: -300px;

    border-radius: 50%;

    border:
        1px solid rgba(199, 224, 243, .08);
}

.academic-card {
    position: relative;

    min-height: 260px;

    padding: 25px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, .055);

    border:
        1px solid rgba(255, 255, 255, .09);

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.academic-card:hover {
    transform: translateY(-5px);

    background:
        rgba(255, 255, 255, .09);

    border-color:
        rgba(199, 224, 243, .25);
}

.academic-card-number {
    color: var(--brand-300);

    font-size: 11px;
    font-weight: 900;
}

.academic-card h3 {
    margin-top: 38px;

    color: #fff;

    font-size: 19px;
    font-weight: 800;
}

.academic-card p {
    color: #b8c0ce;

    font-size: 14px;
    line-height: 1.7;

    margin-top: 10px;
}

.academic-arrow {
    position: absolute;

    right: 20px;
    bottom: 18px;

    color: var(--brand-200);

    font-size: 20px;

    transition: transform .2s ease;
}

.academic-card:hover
.academic-arrow {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   LEARNER DEVELOPMENT
--------------------------------------------------------- */

.development-card {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    padding: 23px;

    border: 1px solid #e4e8ed;

    border-radius: 18px;

    background: #fff;

    transition:
        background .2s ease,
        transform .2s ease;
}

.development-card:hover {
    background: var(--brand-50);
    transform: translateY(-3px);
}

.development-card > span {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--brand-900);
    color: var(--brand-200);

    font-size: 10px;
    font-weight: 900;
}

.development-card h3 {
    color: var(--brand-900);

    font-size: 17px;
    font-weight: 800;
}

.development-card p {
    margin-top: 5px;

    color: var(--brand-500);

    font-size: 13px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   SCHOOL LIFE
--------------------------------------------------------- */

.school-life-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    grid-auto-rows: 230px;

    gap: 16px;
}

.life-card {
    position: relative;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 23px;

    border-radius: 22px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #5c677d,
            #32384f
        );

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.life-card:nth-child(3) {
    background:
        linear-gradient(
            145deg,
            #68758d,
            #40495e
        );
}

.life-card:nth-child(4) {
    background:
        linear-gradient(
            145deg,
            #3c4258,
            #222638
        );
}

.life-card:nth-child(5) {
    background:
        linear-gradient(
            145deg,
            #829db8,
            #4d576c
        );
}

.life-card::after {
    content: "";

    position: absolute;

    width: 200px;
    height: 200px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 50%;

    right: -90px;
    bottom: -100px;
}

.life-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(44,49,72,.16);
}

.life-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.life-index {
    color: #dfeaf3;

    font-size: 11px;
    font-weight: 900;
}

.life-card p {
    color: #dbe1ea;

    font-size: 12px;

    margin-bottom: 5px;
}

.life-card h3 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);

    font-weight: 800;
    letter-spacing: -.035em;
}


/* ---------------------------------------------------------
   SAFETY
--------------------------------------------------------- */

.safety-panel {
    position: relative;

    overflow: hidden;

    display: grid;
    grid-template-columns:
        1.1fr .9fr;

    gap: 60px;

    align-items: center;

    padding: 56px;

    border-radius: 34px;

    background:
        linear-gradient(
            135deg,
            #222638,
            #353b55
        );
}

.safety-panel::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    border:
        1px solid rgba(199,224,243,.10);

    right: -180px;
    top: -200px;
}

.safety-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}

.safety-grid div {
    min-height: 145px;

    padding: 19px;

    border-radius: 16px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid rgba(255,255,255,.08);
}

.safety-grid strong {
    display: block;

    color: #fff;

    font-size: 14px;
}

.safety-grid span {
    display: block;

    color: #aeb7c7;

    font-size: 12px;
    line-height: 1.6;

    margin-top: 8px;
}


/* ---------------------------------------------------------
   FACILITIES
--------------------------------------------------------- */

.facility-card {
    min-height: 165px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 20px;

    border-radius: 18px;

    background: #fff;

    border: 1px solid #e2e7ec;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.facility-card:hover {
    transform: translateY(-4px);

    background: var(--brand-900);

    box-shadow:
        0 16px 40px rgba(44,49,72,.12);
}

.facility-card span {
    color: var(--brand-400);

    font-size: 10px;
    font-weight: 900;
}

.facility-card h3 {
    color: var(--brand-900);

    font-size: 16px;
    font-weight: 800;

    transition: color .2s ease;
}

.facility-card:hover h3 {
    color: #fff;
}


/* ---------------------------------------------------------
   E-LIBRARY
--------------------------------------------------------- */

.elibrary-panel {
    position: relative;

    min-height: 470px;

    overflow: hidden;

    display: grid;
    grid-template-columns:
        1fr .65fr;

    gap: 40px;

    align-items: center;

    padding: 54px;

    border-radius: 34px;

    background:
        linear-gradient(
            135deg,
            #2c3148,
            #171a28
        );
}

.elibrary-panel::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -210px;
    top: -200px;

    border-radius: 50%;

    background:
        rgba(199,224,243,.055);
}

.library-grade {
    min-width: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 10px;

    border-radius: 99px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid rgba(255,255,255,.10);

    color: #d9e3ed;

    font-size: 11px;
    font-weight: 850;
}

.library-art {
    position: relative;

    height: 300px;
}

.library-book {
    position: absolute;

    bottom: 30px;

    width: 220px;

    border-radius:
        12px 18px 18px 12px;

    box-shadow:
        0 24px 55px rgba(0,0,0,.22);
}

.book-1 {
    height: 70px;

    right: 20px;

    background: var(--brand-200);

    transform:
        rotate(-6deg);
}

.book-2 {
    height: 70px;

    right: 58px;
    bottom: 104px;

    background: var(--brand-500);

    transform:
        rotate(5deg);
}

.book-3 {
    height: 70px;

    right: 15px;
    bottom: 178px;

    background: #fff;

    transform:
        rotate(-2deg);
}


/* ---------------------------------------------------------
   NEWS
--------------------------------------------------------- */

.news-card {
    overflow: hidden;

    border-radius: 19px;

    background: #fff;

    border:
        1px solid #e2e7ed;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 42px rgba(44,49,72,.10);
}

.news-placeholder {
    min-height: 170px;

    display: flex;
    align-items: flex-end;

    padding: 16px;

    background:
        linear-gradient(
            135deg,
            #2c3148,
            #66728a
        );
}

.news-placeholder span {
    color:
        rgba(255,255,255,.55);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.news-category {
    color: var(--brand-400);

    font-size: 10px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.news-card h3 {
    color: var(--brand-900);

    font-size: 17px;
    font-weight: 800;

    line-height: 1.35;

    margin-top: 10px;
}

.news-card p {
    color: var(--brand-500);

    font-size: 13px;
    line-height: 1.7;

    margin-top: 10px;
}

.news-card a {
    display: inline-block;

    margin-top: 17px;

    color: var(--brand-800);

    font-size: 12px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   EVENTS
--------------------------------------------------------- */

.event-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.event-item {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 15px;

    border-radius: 16px;

    background: #fff;

    border: 1px solid #e2e7ed;
}

.event-date {
    width: 62px;
    min-width: 62px;
    height: 66px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--brand-900);
    color: #fff;
}

.event-date strong {
    font-size: 20px;
    line-height: 1;
}

.event-date span {
    color: var(--brand-200);

    font-size: 9px;
    font-weight: 900;

    margin-top: 4px;
}

.event-label {
    color: var(--brand-400);

    font-size: 9px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.event-item h3 {
    color: var(--brand-900);

    font-size: 14px;
    font-weight: 800;

    margin-top: 3px;
}

.event-item p {
    color: var(--brand-500);

    font-size: 11px;

    margin-top: 3px;
}


/* ---------------------------------------------------------
   ADMISSIONS CTA
--------------------------------------------------------- */

.admissions-cta {
    position: relative;

    overflow: hidden;

    padding: 100px 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(199,224,243,.14),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #171a28,
            #2c3148
        );
}

.admissions-cta::before,
.admissions-cta::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.06);
}

.admissions-cta::before {
    width: 600px;
    height: 600px;

    left: -300px;
    top: -360px;
}

.admissions-cta::after {
    width: 500px;
    height: 500px;

    right: -250px;
    bottom: -330px;
}


/* ---------------------------------------------------------
   SUPPORT
--------------------------------------------------------- */

.support-card {
    min-height: 205px;

    display: flex;
    flex-direction: column;

    padding: 23px;

    border-radius: 19px;

    border: 1px solid #e2e7ed;

    background: var(--brand-50);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.support-card:hover {
    background: #fff;

    transform: translateY(-4px);

    box-shadow:
        0 16px 40px rgba(44,49,72,.10);
}

.support-card > span {
    color: var(--brand-400);

    font-size: 10px;
    font-weight: 900;
}

.support-card h3 {
    margin-top: auto;

    color: var(--brand-900);

    font-size: 17px;
    font-weight: 800;
}

.support-card p {
    margin-top: 7px;

    color: var(--brand-500);

    font-size: 12px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   CONTACT STRIP
--------------------------------------------------------- */

.contact-info-card {
    display: flex;
    align-items: center;

    gap: 15px;
}

.contact-info-card > span {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--brand-900);
    color: var(--brand-200);

    border-radius: 12px;

    font-size: 10px;
    font-weight: 900;
}

.contact-info-card small {
    display: block;

    color: var(--brand-400);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.contact-info-card strong {
    display: block;

    color: var(--brand-900);

    font-size: 13px;

    margin-top: 4px;

    overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .quick-link-card:nth-child(2) {
        border-right: 0;
    }

    .quick-link-card:nth-child(-n+2) {
        border-bottom:
            1px solid #edf0f4;
    }

    .school-life-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .life-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .safety-panel {
        grid-template-columns: 1fr;

        padding: 42px;
    }

    .elibrary-panel {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .library-art {
        display: none;
    }

}


@media (max-width: 640px) {

    .hero-logo-card {
        border-radius: 28px;

        padding: 22px 16px 25px;
    }

    .quick-link-card {
        border-right: 0;

        border-bottom:
            1px solid #edf0f4;
    }

    .quick-link-card:last-child {
        border-bottom: 0;
    }

    .welcome-visual {
        min-height: 390px;

        border-radius: 25px;
    }

    .learning-stage {
        min-height: 370px;

        padding: 25px;

        border-radius: 22px;
    }

    .learning-stage h3 {
        margin-top: 48px;
    }

    .school-life-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 190px;
    }

    .life-card-large {
        grid-column: span 1;
    }

    .safety-panel {
        padding: 28px 22px;

        border-radius: 24px;
    }

    .safety-grid {
        grid-template-columns: 1fr;
    }

    .safety-grid div {
        min-height: 110px;
    }

    .elibrary-panel {
        padding: 32px 23px;

        border-radius: 25px;
    }

    .admissions-cta {
        padding: 75px 0;
    }

}


@media (max-width: 430px) {

    .facility-card {
        min-height: 135px;

        padding: 16px;
    }

    .facility-card h3 {
        font-size: 14px;
    }

}



/* =========================================================
   KIAMAIKO — FIVE-SLIDE HERO CAROUSEL
========================================================= */

.school-hero-slider {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 650px;
    height: min(790px, 88vh);
    overflow: hidden;
    background: #171a28;
    color: #fff;
}

.school-hero-slider .hero-slides,
.school-hero-slider .hero-slide {
    position: absolute;
    inset: 0;
}

.school-hero-slider .hero-slide {
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 800ms ease,
        visibility 800ms ease;
}

.school-hero-slider .hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.school-hero-slider .hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 7s ease;
}

.school-hero-slider .hero-slide.is-active .hero-slide-image {
    transform: scale(1);
}

/* Dark gradient keeps the text readable over photographs */
.school-hero-slider .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(23, 26, 40, 0.94) 0%,
            rgba(34, 38, 56, 0.84) 42%,
            rgba(34, 38, 56, 0.48) 72%,
            rgba(23, 26, 40, 0.35) 100%
        ),
        linear-gradient(
            0deg,
            rgba(23, 26, 40, 0.45),
            transparent 55%
        );
}

.school-hero-slider .hero-content-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 64px 32px 100px;
}

.school-hero-slider .hero-content {
    width: 100%;
    max-width: 790px;
    animation: heroContentIn 650ms ease both;
}

.school-hero-slider .hero-slide:not(.is-active) .hero-content {
    animation: none;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.school-hero-slider .hero-eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    color: #c7e0f3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.8;
    text-transform: uppercase;
}

.school-hero-slider .hero-title {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 5.2vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-wrap: balance;
}

.school-hero-slider .hero-title span {
    display: block;
    margin-top: 8px;
    color: #c7e0f3;
}

.school-hero-slider .hero-description {
    max-width: 660px;
    margin-top: 24px;
    color: #e8edf4;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.85;
}

.school-hero-slider .hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}

.school-hero-slider .hero-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.school-hero-slider .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.school-hero-slider .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition:
        background 200ms ease,
        color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.school-hero-slider .hero-btn:hover {
    transform: translateY(-2px);
}

.school-hero-slider .hero-btn-primary {
    background: #c7e0f3;
    color: #222638;
}

.school-hero-slider .hero-btn-primary:hover {
    background: #fff;
}

.school-hero-slider .hero-btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(23, 26, 40, 0.22);
    color: #fff;
}

.school-hero-slider .hero-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

/* Navigation arrows */
.school-hero-slider .hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    background: rgba(23, 26, 40, 0.48);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 200ms ease;
}

.school-hero-slider .hero-arrow:hover {
    background: rgba(23, 26, 40, 0.9);
}

.school-hero-slider .hero-arrow-prev {
    left: 18px;
}

.school-hero-slider .hero-arrow-next {
    right: 18px;
}

/* Indicators and slide counter */
.school-hero-slider .hero-slider-bottom {
    position: absolute;
    z-index: 5;
    right: 32px;
    bottom: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1216px;
    margin-inline: auto;
}

.school-hero-slider .hero-slide-indicators {
    display: flex;
    align-items: center;
    gap: 9px;
}

.school-hero-slider .hero-indicator {
    width: 27px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition:
        width 250ms ease,
        background 250ms ease;
}

.school-hero-slider .hero-indicator.is-active {
    width: 48px;
    background: #c7e0f3;
}

.school-hero-slider .hero-slide-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.school-hero-slider .hero-counter-divider {
    color: rgba(255, 255, 255, 0.5);
}

/* Decorative shapes */
.school-hero-slider .hero-shape {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(199, 224, 243, 0.15);
    border-radius: 50%;
}

.school-hero-slider .hero-shape-one {
    top: -190px;
    right: 8%;
    width: 430px;
    height: 430px;
}

.school-hero-slider .hero-shape-two {
    right: -100px;
    bottom: -260px;
    width: 500px;
    height: 500px;
}

/* Tablet */
@media (max-width: 1023px) {
    .school-hero-slider {
        height: 720px;
        min-height: 650px;
    }

    .school-hero-slider .hero-content-wrap {
        padding: 60px 60px 100px;
    }

    .school-hero-slider .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(23, 26, 40, 0.91),
                rgba(23, 26, 40, 0.65)
            ),
            linear-gradient(
                0deg,
                rgba(23, 26, 40, 0.42),
                transparent
            );
    }

    .school-hero-slider .hero-arrow-prev {
        left: 10px;
    }

    .school-hero-slider .hero-arrow-next {
        right: 10px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .school-hero-slider {
        height: 760px;
        min-height: 680px;
        max-height: 90svh;
    }

    .school-hero-slider .hero-slide-image {
        object-position: center;
    }

    .school-hero-slider .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(23, 26, 40, 0.88),
                rgba(23, 26, 40, 0.69)
            ),
            linear-gradient(
                0deg,
                rgba(23, 26, 40, 0.72),
                rgba(23, 26, 40, 0.12)
            );
    }

    .school-hero-slider .hero-content-wrap {
        padding: 48px 24px 100px;
    }

    .school-hero-slider .hero-content {
        max-width: 100%;
    }

    .school-hero-slider .hero-eyebrow {
        margin-bottom: 18px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .school-hero-slider .hero-title {
        font-size: clamp(2.25rem, 10vw, 3.4rem);
        line-height: 1.1;
    }

    .school-hero-slider .hero-description {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.75;
    }

    .school-hero-slider .hero-pills {
        gap: 7px;
        margin-top: 20px;
    }

    .school-hero-slider .hero-pills span {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .school-hero-slider .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 25px;
    }

    .school-hero-slider .hero-btn {
        width: 100%;
        min-height: 49px;
        padding: 12px 15px;
    }

    .school-hero-slider .hero-arrow {
        top: auto;
        bottom: 20px;
        width: 38px;
        height: 38px;
        font-size: 29px;
        transform: none;
    }

    .school-hero-slider .hero-arrow-prev {
        left: 20px;
    }

    .school-hero-slider .hero-arrow-next {
        right: 20px;
    }

    .school-hero-slider .hero-slider-bottom {
        right: 70px;
        bottom: 36px;
        left: 70px;
        justify-content: center;
    }

    .school-hero-slider .hero-slide-indicators {
        gap: 6px;
    }

    .school-hero-slider .hero-indicator {
        width: 14px;
        height: 5px;
    }

    .school-hero-slider .hero-indicator.is-active {
        width: 27px;
    }

    .school-hero-slider .hero-slide-counter {
        display: none;
    }
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    .school-hero-slider .hero-slide,
    .school-hero-slider .hero-slide-image,
    .school-hero-slider .hero-content,
    .school-hero-slider .hero-btn,
    .school-hero-slider .hero-indicator {
        animation: none !important;
        transition: none !important;
    }

    .school-hero-slider .hero-slide-image {
        transform: none !important;
    }
}











/* =========================================================
   DIFFERENCE CARDS — FULL IMAGE BACKGROUNDS
========================================================= */

.difference-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    /* Preserve existing card dimensions and layout */
    background-color: #222638;
    background-image:
        linear-gradient(
            180deg,
            rgba(23, 26, 40, 0.25) 0%,
            rgba(23, 26, 40, 0.72) 48%,
            rgba(23, 26, 40, 0.96) 100%
        ),
        var(--card-image);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}

/* Keep card content above the background */
.difference-card > * {
    position: relative;
    z-index: 1;
}

.difference-card .difference-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-bottom: 22px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;

    font-weight: 800;
    backdrop-filter: blur(6px);
}

.difference-card h3 {
    color: #ffffff;
}

.difference-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Subtle hover effect without changing the grid */
.difference-card {
    transition:
        background-size 300ms ease,
        transform 250ms ease,
        box-shadow 250ms ease;
}

.difference-card:hover {
    box-shadow: 0 16px 35px rgba(23, 26, 40, 0.2);
}

/* Keyboard accessibility */
.difference-card:focus-within {
    outline: 3px solid #c7e0f3;
    outline-offset: 3px;
}
