/* =========================================================
   JUNIOR HIGH SCHOOL PAGE
========================================================= */

.junior-high-page {
    background: var(--white);
}


/* =========================================================
   HERO
========================================================= */

.jhs-hero {

    min-height: 450px;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--navy-dark) 0%,
            var(--navy) 62%,
            var(--navy-light) 100%
        );
}

.jhs-hero::before {

    content: "";

    position: absolute;

    width: 620px;
    height: 620px;

    right: -250px;
    top: -350px;

    border:
        1px solid
        rgba(242,182,50,.18);

    border-radius: 50%;
}

.jhs-hero::after {

    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: 180px;
    bottom: -285px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 50%;
}

.jhs-hero .container {

    position: relative;

    z-index: 2;
}

.jhs-hero-content {

    max-width: 850px;
}

.jhs-hero-label {

    color: var(--gold-light);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.jhs-hero h1 {

    margin: 17px 0 20px;

    color: var(--white);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            3.2rem,
            6vw,
            5.4rem
        );

    font-weight: 500;

    line-height: 1.02;

    letter-spacing: -1px;
}

.jhs-hero p {

    max-width: 650px;

    margin: 0;

    color:
        rgba(255,255,255,.78);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   INTRO
========================================================= */

.jhs-intro {

    padding: 90px 0;

    background: var(--white);
}

.jhs-intro-grid {

    display: grid;

    grid-template-columns:
        .8fr
        1.2fr;

    gap: 85px;

    align-items: start;
}

.jhs-intro-label {

    color: var(--gold);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.jhs-intro h2 {

    margin: 15px 0 0;

    color: var(--navy);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            2.5rem,
            4vw,
            3.8rem
        );

    font-weight: 500;

    line-height: 1.08;
}

.jhs-intro-content {

    color: var(--gray-500);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 15px;

    line-height: 1.85;
}

.jhs-intro-content p {

    margin: 0 0 20px;
}


/* =========================================================
   SECTION
========================================================= */

.jhs-program-section {

    padding: 100px 0;

    background: var(--light-blue);
}

.jhs-program-section.elective-section {

    background: var(--cream);
}

.jhs-section-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;

    margin-bottom: 55px;
}

.jhs-section-label {

    color: var(--gold);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.jhs-section-header h2 {

    margin: 14px 0 0;

    color: var(--navy);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            2.7rem,
            5vw,
            4.4rem
        );

    font-weight: 500;

    line-height: 1.05;
}

.jhs-section-description {

    max-width: 430px;

    margin: 0;

    color: var(--gray-500);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   GRADE BLOCK
========================================================= */

.jhs-grade {

    margin-bottom: 65px;
}

.jhs-grade:last-child {

    margin-bottom: 0;
}

.jhs-grade-heading {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.jhs-grade-number {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    background: var(--navy);

    color: var(--gold-light);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 11px;

    font-weight: 700;
}

.jhs-grade-heading h3 {

    margin: 0;

    color: var(--navy);

    font-family:
        "Playfair Display",
        serif;

    font-size: 30px;

    font-weight: 500;
}


/* =========================================================
   COURSE GRID
========================================================= */

.jhs-course-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 16px;
}


/* =========================================================
   COURSE CARD
========================================================= */

.jhs-course-card {

    position: relative;

    padding: 30px 32px;

    background: var(--white);

    border:
        1px solid
        var(--gray-200);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.jhs-course-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(217,154,0,.45);

    box-shadow:
        0 16px 35px
        rgba(0,27,61,.08);
}

.jhs-course-card::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background: var(--gold);
}

.jhs-course-number {

    display: block;

    margin-bottom: 18px;

    color: var(--gold);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.jhs-course-card h4 {

    margin: 0 0 12px;

    color: var(--navy);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.35;
}

.jhs-course-card p {

    margin: 0;

    color: var(--gray-500);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   FEATURED GRADE STYLE
========================================================= */

.jhs-grade-intro {

    margin-bottom: 25px;

    color: var(--gray-500);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   ELECTIVE CARDS
========================================================= */

.elective-section .jhs-course-grid {

    grid-template-columns:
        repeat(2, 1fr);
}

.elective-section .jhs-course-card {

    min-height: 180px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}


/* =========================================================
   PROGRAM SUMMARY
========================================================= */

.jhs-summary {

    padding: 100px 0;

    background: var(--navy);
}

.jhs-summary-header {

    max-width: 700px;

    margin-bottom: 50px;
}

.jhs-summary-label {

    color: var(--gold-light);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.jhs-summary-header h2 {

    margin: 15px 0 18px;

    color: var(--white);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            2.6rem,
            5vw,
            4.2rem
        );

    font-weight: 500;

    line-height: 1.08;
}

.jhs-summary-header p {

    margin: 0;

    color:
        rgba(255,255,255,.70);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 14px;

    line-height: 1.8;
}

.jhs-summary-grid {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 16px;
}

.jhs-summary-card {

    padding: 35px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid
        rgba(255,255,255,.10);
}

.jhs-summary-card span {

    display: block;

    margin-bottom: 14px;

    color: var(--gold-light);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.jhs-summary-card h3 {

    margin: 0 0 10px;

    color: var(--white);

    font-family:
        "Playfair Display",
        serif;

    font-size: 28px;

    font-weight: 500;
}

.jhs-summary-card p {

    margin: 0;

    color:
        rgba(255,255,255,.65);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.jhs-cta {

    padding: 105px 0;

    background: var(--white);

    text-align: center;
}

.jhs-cta-label {

    color: var(--gold);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.jhs-cta h2 {

    max-width: 760px;

    margin: 18px auto 20px;

    color: var(--navy);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            2.7rem,
            5vw,
            4.5rem
        );

    font-weight: 500;

    line-height: 1.08;
}

.jhs-cta p {

    max-width: 620px;

    margin: 0 auto 30px;

    color: var(--gray-500);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 14px;

    line-height: 1.8;
}

.jhs-cta-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding:
        15px
        25px;

    background: var(--gold);

    color: var(--navy);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-decoration: none;
}

.jhs-cta-button:hover {

    background:
        var(--gold-light);

    color: var(--navy);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .jhs-intro-grid {

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .jhs-section-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

}


@media (max-width: 700px) {

    .jhs-hero {

        min-height: 390px;
    }

    .jhs-hero h1 {

        font-size: 3.1rem;
    }

    .jhs-intro,
    .jhs-program-section,
    .jhs-summary,
    .jhs-cta {

        padding:
            70px
            0;
    }

    .jhs-course-grid,
    .elective-section .jhs-course-grid {

        grid-template-columns: 1fr;
    }

    .jhs-summary-grid {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 450px) {

    .jhs-hero h1 {

        font-size: 2.7rem;
    }

    .jhs-grade-heading {

        gap: 14px;
    }

    .jhs-grade-number {

        width: 42px;
        height: 42px;
    }

    .jhs-grade-heading h3 {

        font-size: 26px;
    }

    .jhs-course-card {

        padding:
            27px
            28px;
    }

}
