/* ROOT */

:root {
    --navy-950: #06111f;
    --navy-900: #08182b;
    --navy-800: #0b1f3a;
    --navy-700: #10345a;
    --blue-600: #145da0;
    --blue-500: #1e88e5;
    --blue-400: #3ba7ff;
    --blue-300: #70c4ff;
    --white: #ffffff;
    --white-soft: #eaf4fc;
    --text-dark: #172b40;
    --text-medium: #526b82;
    --text-light: #9db4c8;
    --border-light: rgba(255, 255, 255, 0.12);
    --border-blue: rgba(59, 167, 255, 0.25);
    --shadow-dark: rgba(0, 0, 0, 0.35);
    --max-width: 1180px;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--white);
    color: var(--text-dark);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 3px;
}


/* BUTTONS */

.primary-button,
.secondary-button {
    min-width: 170px;
    padding: 15px 22px;
    display: inline-block;
    text-align: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.primary-button {
    border: 1px solid var(--blue-500);
    background: var(--blue-500);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.22);
}

.primary-button:hover {
    background: var(--blue-600);
    border-color: var(--blue-600);
    transform: translateY(-3px);
}

.secondary-button {
    border: 1px solid #cbdbe8;
    background: var(--white);
    color: var(--navy-800);
}

.secondary-button:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
    transform: translateY(-3px);
}


/* SECTIONS */

.page-section {
    position: relative;
    padding: 120px 5% 130px;
    background: var(--white);
    overflow: hidden;
}

.page-section.tint {
    background: #f5f9fd;
}

.page-section.tint::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -250px;
    right: -180px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.07);
}

.page-section.dark {
    background: #061526;
    color: var(--white);
}

.page-section.history {
    background: var(--navy-800);
}

.dark-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(30, 136, 229, 0.18), transparent 24%),
        radial-gradient(circle at 90% 70%, rgba(59, 167, 255, 0.10), transparent 26%);
    pointer-events: none;
}

.section-intro {
    position: relative;
    width: min(720px, 100%);
    margin: 0 auto 70px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blue-600);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-intro h2 {
    margin-bottom: 25px;
    color: var(--navy-800);
    font-size: clamp(40px, 6vw, 64px);
    line-height: 0.98;
    letter-spacing: -3px;
}

.section-intro h2 span {
    display: block;
    color: var(--blue-500);
}

.section-intro p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.9;
}

.dark .section-label {
    color: var(--blue-300);
}

.dark .section-intro h2 {
    color: var(--white);
}

.dark .section-intro h2 span {
    color: var(--blue-400);
}

.dark .section-intro p {
    color: #9eb7cb;
}


/* SPLIT LAYOUT (text + image) */

.split {
    position: relative;
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.split.reverse {
    grid-template-columns: 1.2fr 0.8fr;
}

.split-text p {
    max-width: 560px;
    margin-bottom: 22px;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.9;
}

.split-text p:last-of-type {
    margin-bottom: 0;
}

.split-text h2 {
    margin-bottom: 28px;
    color: var(--white);
    font-size: clamp(44px, 6vw, 68px);
    line-height: 0.95;
    letter-spacing: -3px;
}

.split-text h2 span {
    display: block;
    color: var(--blue-400);
}

.history .section-label {
    color: var(--blue-300);
}

.history .split-text p {
    color: #9eb7cb;
}

.text-line {
    width: 55px;
    height: 3px;
    margin-top: 34px;
    background: var(--blue-500);
    border-radius: 5px;
}

.image-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 12%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f9fd;
    border: 1px solid #dfeaf3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(17, 52, 84, 0.12);
}

.image-frame::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -100px;
    right: -90px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.08);
}

.image-frame img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.history .image-frame {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(112, 196, 255, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.history .image-frame::before {
    background: rgba(59, 167, 255, 0.12);
}


/* PROSE BLOCK */

.prose-block {
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto 70px;
}

.prose-block h3 {
    margin-bottom: 24px;
    color: var(--navy-800);
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.prose-block p {
    margin-bottom: 20px;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.9;
}

.prose-block p:last-child {
    margin-bottom: 0;
}


/* CARD GRID
   Add any number of cards inside a .card-grid. Cards keep one size,
   wrap onto new rows, and every row stays centered.
   .grid-4 = 4 per row, .grid-3 = 3 per row (fewer on smaller screens). */

.card-grid {
    --cols: 4;
    --gap: 22px;
    position: relative;
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

.card-grid.grid-4 {
    --cols: 4;
}

.card-grid.grid-3 {
    --cols: 3;
}

.card-grid > * {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    min-width: 0;
}


/* INFO CARDS (offers) */

.info-card {
    position: relative;
    min-height: 290px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    background: var(--white);
    border: 1px solid #dfeaf3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(17, 52, 84, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.info-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -80px;
    right: -70px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.07);
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 136, 229, 0.25);
    box-shadow: 0 25px 60px rgba(17, 52, 84, 0.12);
}

.card-value {
    position: relative;
    align-self: flex-start;
    color: #b6cadb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.info-card > div,
.reason-card > div {
    position: relative;
}

.info-card h3 {
    margin-bottom: 16px;
    color: var(--navy-800);
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -1.2px;
    overflow-wrap: anywhere;
}

.info-card p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.8;
}


/* REASON CARDS (dark) */

.reason-card {
    position: relative;
    min-height: 250px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(112, 196, 255, 0.14);
    border-radius: 20px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(112, 196, 255, 0.32);
}

.reason-card .card-value {
    color: var(--blue-400);
}

.reason-card h3 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.reason-card p {
    color: #9eb7cb;
    font-size: 14px;
    line-height: 1.8;
}


/* PEOPLE: TEACHERS */

.person-card {
    background: var(--white);
    border: 1px solid #dfeaf3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(17, 52, 84, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.person-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 136, 229, 0.25);
    box-shadow: 0 25px 60px rgba(17, 52, 84, 0.12);
}

.person-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
    overflow: hidden;
}

.person-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 11, 22, 0.45), transparent 50%);
    pointer-events: none;
}

.person-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.person-info {
    padding: 24px 26px 28px;
}

.person-info h3 {
    margin-bottom: 8px;
    color: var(--navy-800);
    font-size: 22px;
    letter-spacing: -0.8px;
}

.person-info p {
    color: var(--blue-500);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* PEOPLE: ADMINISTRATORS */

.admin-card {
    position: relative;
    padding: 40px 30px 38px;
    text-align: center;
    background: var(--white);
    border: 1px solid #dfeaf3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(17, 52, 84, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.admin-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -80px;
    right: -70px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.07);
}

.admin-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 136, 229, 0.25);
    box-shadow: 0 25px 60px rgba(17, 52, 84, 0.12);
}

.admin-photo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
    border: 4px solid var(--white);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 1px #d8edfc, 0 15px 35px rgba(17, 52, 84, 0.18);
}

.admin-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.admin-photo.placeholder svg {
    width: 62%;
    height: 62%;
    fill: rgba(255, 255, 255, 0.75);
}

.admin-card h3 {
    position: relative;
    margin-bottom: 8px;
    color: var(--navy-800);
    font-size: 24px;
    letter-spacing: -1px;
}

.admin-card p {
    position: relative;
    color: var(--blue-500);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* CLOSING SECTION */

.closing-section {
    position: relative;
    padding: 150px 5%;
    background: #f5f9fd;
    overflow: hidden;
}

.closing-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -300px;
    right: -150px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.08);
}

.closing-content {
    position: relative;
    width: min(850px, 100%);
    margin: 0 auto;
    text-align: center;
}

.closing-content h2 {
    margin-bottom: 25px;
    color: var(--navy-800);
    font-size: clamp(46px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -4px;
}

.closing-content h2 span {
    display: block;
    color: var(--blue-500);
}

.closing-content p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.8;
}

.closing-actions {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}




/* RESPONSIVE */

@media (max-width: 1050px) {

    .card-grid.grid-4 {
        --cols: 3;
    }

}

@media (max-width: 950px) {

    .split,
    .split.reverse {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .split.reverse .image-frame {
        order: -1;
    }

    .image-frame {
        max-width: 340px;
    }

    .split-text p {
        max-width: 100%;
    }

}

@media (max-width: 800px) {

    .card-grid.grid-4,
    .card-grid.grid-3 {
        --cols: 2;
    }

}

@media (max-width: 650px) {



    .page-section {
        padding: 90px 20px 100px;
    }

    .section-intro {
        margin-bottom: 55px;
    }

    .section-intro h2 {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .section-intro p,
    .split-text p,
    .prose-block p {
        font-size: 14px;
    }

    .split-text h2 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .prose-block {
        margin-bottom: 55px;
    }

    .prose-block h3 {
        font-size: 26px;
    }

    .info-card,
    .reason-card {
        padding: 28px;
        min-height: 230px;
    }

    .closing-section {
        padding: 100px 20px;
    }

    .closing-content h2 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .closing-content p {
        font-size: 14px;
    }

    .closing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }


}

@media (max-width: 560px) {

    .card-grid.grid-4,
    .card-grid.grid-3 {
        --cols: 1;
    }

    .social-links {
        display: none;
    }

}



@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

}

/* CONTACT */

    .contact-section {
        position: relative;
        padding: 130px 5% 140px;
        background: var(--white);
        overflow: hidden;
    }

    .contact-cards {
        position: relative;
        width: min(900px, 100%);
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .contact-card {
        flex: 1 1 240px;
        padding: 28px 26px;
        background: #f5f9fd;
        border: 1px solid #dfeaf3;
        border-radius: 16px;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .contact-card:hover {
        transform: translateY(-5px);
        border-color: rgba(30, 136, 229, 0.3);
    }

    .contact-card strong {
        display: block;
        margin-bottom: 10px;
        color: var(--blue-500);
        font-size: 10px;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .contact-card span {
        color: var(--navy-800);
        font-size: 15px;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .contact-actions {
        margin-top: 42px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }


/* =========================================================
   ADDITIONAL PHONE RESPONSIVENESS
   Append this block to the bottom of your existing CSS.
   Existing class names are preserved.
========================================================= */

/* TABLETS AND SMALL LAPTOPS */
@media (max-width: 950px) {


    .split,
    .split.reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .split.reverse .image-frame {
        order: initial;
    }

    .split-text,
    .split-text p,
    .prose-block {
        min-width: 0;
        max-width: 100%;
    }

    .image-frame {
        width: min(100%, 380px);
    }

    .card-grid > * {
        flex-basis: calc(
            (100% - (var(--cols) - 1) * var(--gap)) /
            var(--cols)
        );
    }

    .info-card,
    .reason-card,
    .person-card,
    .admin-card {
        min-width: 0;
    }

    .contact-section {
        padding: 100px 24px;
    }
}


/* PHONES */
@media (max-width: 650px) {

    /* Buttons */
    .primary-button,
    .secondary-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 13px 16px;
        line-height: 1.5;
    }

    /* General sections */
    .page-section {
        padding: 75px 18px 85px;
    }

    .section-intro {
        margin-bottom: 42px;
    }

    .section-label {
        font-size: 9px;
        line-height: 1.8;
        letter-spacing: 2px;
    }

    .section-intro h2 {
        font-size: clamp(31px, 8.5vw, 42px);
        line-height: 1.08;
        letter-spacing: -1.5px;
        overflow-wrap: anywhere;
    }

    .section-intro p,
    .split-text p,
    .prose-block p {
        font-size: 14px;
        line-height: 1.8;
    }

    /* Split layouts */
    .split,
    .split.reverse {
        gap: 25px;
    }

    .split-text h2 {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.05;
        letter-spacing: -1.8px;
        overflow-wrap: anywhere;
    }

    .image-frame {
        width: 100%;
        max-width: 330px;
        padding: 10%;
        border-radius: 16px;
    }

    /* Text blocks */
    .prose-block {
        margin-bottom: 42px;
    }

    .prose-block h3 {
        font-size: 25px;
        line-height: 1.2;
        letter-spacing: -0.8px;
        overflow-wrap: anywhere;
    }

    /* Card grids */
    .card-grid,
    .card-grid.grid-4,
    .card-grid.grid-3 {
        --cols: 1;
        --gap: 18px;
        width: 100%;
    }

    .card-grid > * {
        flex: 0 0 100%;
        width: 100%;
    }

    .info-card,
    .reason-card {
        min-height: 0;
        padding: 25px;
        gap: 28px;
        border-radius: 16px;
    }

    .info-card h3 {
        font-size: 25px;
        line-height: 1.15;
        letter-spacing: -0.7px;
    }

    .info-card p,
    .reason-card p {
        font-size: 14px;
        line-height: 1.8;
    }

    .reason-card h3 {
        font-size: 24px;
        line-height: 1.15;
    }

    /* Teachers */
    .person-card {
        width: 100%;
    }

    .person-photo {
        aspect-ratio: 4 / 4.2;
    }

    .person-info {
        padding: 20px;
    }

    .person-info h3 {
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .person-info p {
        font-size: 10px;
        line-height: 1.8;
        letter-spacing: 1.5px;
        overflow-wrap: anywhere;
    }

    /* Administrators */
    .admin-card {
        padding: 30px 22px;
    }

    .admin-photo {
        width: 125px;
        height: 125px;
        margin-bottom: 22px;
    }

    .admin-card h3 {
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    .admin-card p {
        font-size: 10px;
        line-height: 1.8;
        letter-spacing: 1.5px;
    }

    /* Closing section */
    .closing-section {
        padding: 75px 18px;
    }

    .closing-content h2 {
        font-size: clamp(33px, 9vw, 44px);
        line-height: 1.08;
        letter-spacing: -1.8px;
        overflow-wrap: anywhere;
    }

    .closing-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .closing-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }


    .copyright {
        margin-top: 30px;
        padding-top: 20px;
    }

    .copyright p {
        line-height: 1.8;
    }

    /* Contact section */
    .contact-section {
        padding: 75px 18px;
    }

    .contact-cards {
        width: 100%;
        gap: 14px;
    }

    .contact-card {
        flex: 1 1 100%;
        min-width: 0;
        padding: 23px 20px;
    }

    .contact-card span {
        display: block;
        font-size: 14px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .contact-actions {
        margin-top: 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* Prevent long text from widening the page */
    .page-section,
    .closing-section,
    .contact-section,
    .prose-block,
    .split-text,
    .section-intro {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}


/* EXTRA-SMALL PHONES */
@media (max-width: 380px) {


    .value-card {
        padding: 22px;
    }

    .photo-carousel {
        height: 350px;
    }

    .photo-carousel .carousel-slide.center {
        width: 62% !important;
    }

    .photo-carousel .carousel-slide.second,
    .photo-carousel .carousel-slide.third {
        width: 68% !important;
    }

    .photo-carousel .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .club-card-content {
        padding: 19px;
    }
}


/* =========================================================
   WELCOME INTRO
   HTML:
   <div class="section-intro welcome-intro">
       <span class="section-label">WELCOME</span>
       <h2>
           <small>Welcome To</small>
           <span>West Prime Horizon Institute INC.</span>
       </h2>
   </div>
   Colors: label + "Welcome To" in blue, school name fades from
   navy into blue (so it is not all blue). Always centered.
========================================================= */

.welcome-intro h2 {
    font-size: clamp(36px, 5.2vw, 60px);
    line-height: 1.1;
    letter-spacing: -2px;
    text-wrap: balance;
}

.welcome-intro h2 small {
    display: block;
    margin-bottom: 16px;
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* school name: navy, fading into blue */
.welcome-intro h2 span {
    display: inline;
    color: var(--navy-800);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}


/* small accent bar under the heading */
.welcome-intro h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    margin: 28px auto 0;
    background: var(--blue-400);
    border-radius: 5px;
}


/* TABLET (centered) */

@media (max-width: 900px) {

    .welcome-intro {
        width: min(560px, 100%);
    }

    .welcome-intro h2 {
        font-size: clamp(32px, 6.2vw, 46px);
        letter-spacing: -1.5px;
    }

    .welcome-intro h2 small {
        font-size: 11px;
        letter-spacing: 5px;
    }
}


/* PHONE (centered, smaller) */

@media (max-width: 560px) {

    .welcome-intro h2 {
        font-size: 31px;
        line-height: 1.12;
        letter-spacing: -1px;
    }

    .welcome-intro h2 small {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 4px;
    }

    .welcome-intro h2::after {
        width: 44px;
        margin: 22px auto 0;
    }
}

/* =========================================================
   BENEFITS SECTIONS (Senior High + College) - RESTYLE
   Paste at the VERY END of ProgramsOfYourFuture.css.
   Desktop  : bento grid, big highlight cards, icon tiles on top
   Tablet   : 2-column rows, icon on the left
   Phone    : single-column rows, icon on the left
========================================================= */

#shs-benefits,
#college-benefits {
    isolation: isolate;
}

/* soft circle, bottom left (sits behind the content) */
#shs-benefits::after,
#college-benefits::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    bottom: -220px;
    left: -160px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.06);
    pointer-events: none;
}


/* ---------- GRID (desktop): 4 columns, gaps filled automatically ---------- */

#grid-shs-benefits,
#grid-college-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 22px;
}


/* ---------- CARDS (desktop) ---------- */

:is(#grid-shs-benefits, #grid-college-benefits) > .info-card {
    min-height: 275px;
    padding: 28px;
    gap: 14px;
    justify-content: flex-start;
    background: linear-gradient(160deg, #ffffff 0%, #f1f8ff 100%);
    border-color: #d6e6f3;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

:is(#grid-shs-benefits, #grid-college-benefits) > .info-card:hover {
    border-color: rgba(30, 136, 229, 0.45);
    box-shadow:
        0 25px 60px rgba(17, 52, 84, 0.14),
        inset 0 -4px 0 var(--blue-400);
}

/* text sits at the bottom, icon + tag at the top */
:is(#grid-shs-benefits, #grid-college-benefits) > .info-card > div {
    margin-top: auto;
}

:is(#grid-shs-benefits, #grid-college-benefits) .info-card h3 {
    font-size: 28px;
    letter-spacing: -1.2px;
}

:is(#grid-shs-benefits, #grid-college-benefits) .info-card p {
    margin-top: 12px;
}

/* icon tile */
.benefit-icon {
    position: relative;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 28px;
    line-height: 1;
    background: linear-gradient(145deg, #e8f3ff, #d3e8fb);
    border: 1px solid #cfe3f5;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.15);
    transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.info-card:hover .benefit-icon {
    transform: translateY(-4px) rotate(-8deg) scale(1.1);
}

/* category tag becomes a pill */
:is(#grid-shs-benefits, #grid-college-benefits) .card-value {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 136, 229, 0.09);
    color: var(--blue-600);
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 1.8px;
}


/* ---------- HIGHLIGHT CARDS (class "wide", plus "featured" for dark) ---------- */

.info-card.wide {
    grid-column: span 2;
}

.info-card.wide:not(.featured) {
    background: linear-gradient(135deg, #e6f2ff 0%, #ffffff 70%);
    border-color: rgba(30, 136, 229, 0.28);
}

.info-card.wide h3 {
    font-size: 38px;
    letter-spacing: -1.8px;
}

.info-card.wide p {
    max-width: 440px;
    font-size: 15px;
}

.info-card.wide .benefit-icon {
    width: 68px;
    height: 68px;
    font-size: 34px;
}

/* dark highlight card: yellow icon, white pill, light sweep on hover */
.info-card.featured .benefit-icon {
    background: rgba(255, 212, 59, 0.14);
    border-color: rgba(255, 212, 59, 0.35);
    box-shadow: 0 0 34px rgba(255, 212, 59, 0.2);
}

.info-card.featured .card-value {
    background: rgba(255, 255, 255, 0.09);
    color: var(--blue-300);
}

.info-card.featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.1) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.9s ease;
    pointer-events: none;
}

.info-card.featured:hover::after {
    transform: translateX(120%);
}


/* ---------- SCROLL REVEAL (supported browsers only) ---------- */

@supports (animation-timeline: view()) {

    @keyframes benefitRise {
        from {
            opacity: 0;
            translate: 0 40px;
            scale: 0.96;
        }
        to {
            opacity: 1;
            translate: 0 0;
            scale: 1;
        }
    }

    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card {
        animation: benefitRise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }
}


/* ---------- COLLEGE: DARK VERSION ---------- */

#college-benefits {
    background: var(--navy-800);
}

#college-benefits::before {
    background: rgba(59, 167, 255, 0.1);
}

#college-benefits::after {
    background: rgba(59, 167, 255, 0.06);
}

#college-benefits .section-label {
    color: var(--blue-300);
}

#college-benefits .section-intro h2 {
    color: var(--white);
}

#college-benefits .section-intro h2 span {
    color: var(--blue-300);
}

#college-benefits .section-intro p {
    color: #9eb7cb;
}

#college-benefits .info-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
    box-shadow: none;
}

#college-benefits .info-card::before {
    background: rgba(59, 167, 255, 0.1);
}

#college-benefits .info-card:hover {
    border-color: rgba(112, 196, 255, 0.45);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35),
        inset 0 -4px 0 var(--blue-400);
}

#college-benefits .info-card h3 {
    color: var(--white);
}

#college-benefits .info-card h3 em {
    color: #b7ccdd;
}

#college-benefits .info-card p {
    color: var(--text-light);
}

#college-benefits .card-value {
    background: rgba(112, 196, 255, 0.12);
    color: var(--blue-300);
}

#college-benefits .benefit-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

#college-benefits .info-card.featured {
    background: linear-gradient(145deg, var(--blue-600), var(--blue-500));
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

#college-benefits .info-card.featured h3 em,
#college-benefits .info-card.featured p {
    color: #e3f1ff;
}

#college-benefits .info-card.featured .card-value {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

/* the note under the cards (its inline style says white) */
#college-benefits > p {
    color: #9eb7cb !important;
}


/* ---------- TABLET: 2 columns, icon on the left ---------- */

@media (max-width: 950px) {

    #grid-shs-benefits,
    #grid-college-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card {
        min-height: 0;
        padding: 22px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 10px;
        align-items: start;
        align-content: start;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card > .benefit-icon,
    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card.wide > .benefit-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 54px;
        height: 54px;
        font-size: 26px;
        border-radius: 50%;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card > .card-value {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card > div {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) .info-card h3,
    :is(#grid-shs-benefits, #grid-college-benefits) .info-card.wide h3 {
        font-size: 23px;
        line-height: 1.1;
        letter-spacing: -0.8px;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) .info-card p,
    :is(#grid-shs-benefits, #grid-college-benefits) .info-card.wide p {
        max-width: none;
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.7;
    }

    /* highlight cards take the full row */
    .info-card.wide {
        grid-column: span 2;
    }
}


/* ---------- PHONE: 1 column ---------- */

@media (max-width: 560px) {

    #grid-shs-benefits,
    #grid-college-benefits {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .info-card.wide {
        grid-column: auto;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card {
        padding: 20px 18px;
        column-gap: 16px;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card > .benefit-icon,
    :is(#grid-shs-benefits, #grid-college-benefits) > .info-card.wide > .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    :is(#grid-shs-benefits, #grid-college-benefits) .info-card h3,
    :is(#grid-shs-benefits, #grid-college-benefits) .info-card.wide h3 {
        font-size: 21px;
    }
}


/* no hover motion on touchscreens */
@media (hover: none) {

    .info-card:hover .benefit-icon {
        transform: none;
    }
}

/* CONTACT DOCK (icons that open a pop-up) */

.contact-dock {
    position: relative;
    margin-top: 55px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* outline icon button, same blue as the labels */
.contact-btn {
    width: 60px;
    height: 60px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(30, 136, 229, 0.4);
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.06);
    color: var(--blue-500);
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-btn svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* hover, and the icon that is currently open: filled blue */
.contact-btn:hover,
.contact-btn[aria-expanded="true"] {
    background: var(--blue-500);
    border-color: var(--blue-500);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.25);
}

/* pop-up container */
.contact-popups {
    position: relative;
    width: min(340px, 100%);
    margin: 22px auto 0;
}

.contact-popups .contact-card {
    position: relative;
    padding: 24px 22px;
    text-align: center;
    background: var(--white);
    border-color: rgba(30, 136, 229, 0.3);
    box-shadow: 0 20px 50px rgba(17, 52, 84, 0.14);
    animation: contactPop 0.25s ease;
}

.contact-popups .contact-card[hidden] {
    display: none;
}

.contact-popups .contact-card:hover {
    transform: none;
}

.contact-popups .contact-card a {
    display: block;
    transition: color 0.25s ease;
}

.contact-popups .contact-card a:hover span {
    color: var(--blue-500);
}

/* little arrow pointing at the icon that was clicked */
.contact-popups .contact-card::before {
    content: "";
    position: absolute;
    top: -8px;
    left: var(--arrow-x, 50%);
    width: 14px;
    height: 14px;
    background: var(--white);
    border-top: 1px solid rgba(30, 136, 229, 0.3);
    border-left: 1px solid rgba(30, 136, 229, 0.3);
    transform: translateX(-50%) rotate(45deg);
}

@keyframes contactPop {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {

    .contact-btn {
        width: 54px;
        height: 54px;
    }

    .contact-btn svg {
        width: 24px;
        height: 24px;
    }
}