
: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;
    --header-height: 74px;
}


/* 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;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 3px;
}

section[id] {
    scroll-margin-top: var(--header-height);
}

h1,h2,blockquote {
    text-wrap: balance;
}

/* BUTTONS */

.primary-button,
.secondary-button,
.ghost-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);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: var(--white);
}

.ghost-button:hover {
    border-color: var(--blue-300);
    color: var(--blue-300);
    transform: translateY(-3px);
}


/* SECTIONS */

.page-section,
.page-college {
    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);
}

/* GAP FILL: .page-college had no styles. It is a white section
   (so it alternates between two tint sections) and gets a faint
   circle on the LEFT, mirroring the tint sections' top-right circle. */
.page-college::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -250px;
    left: -180px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.06);
}

.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;
}

/* GAP FILL: intros without a paragraph no longer leave a double gap */
.section-intro h2:last-child {
    margin-bottom: 0;
}

/* GAP FILL: small note under a section (e.g. the scholarship disclaimer).
   The "!important" on color lets it also fix the old inline style="color: black". */
.section-note,
.page-college > p {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    color: var(--text-medium) !important;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}


/* CARDS
   Add any number of .info-card articles inside a .card-grid.
   Cards keep one size, wrap onto new rows, and each row stays centered. */

.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);
    counter-reset: card;
}

.card-grid > .info-card {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    min-width: 0;
}

.info-card {
    position: relative;
    min-height: 250px;
    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);
    counter-increment: card;
    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: var(--blue-500);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.info-card > div {
    position: relative;
}

/* GAP FILL: cards with no badge used to float at the top with empty space
   below. The text now anchors to the bottom like every other card. */
.info-card > div:only-child {
    margin-top: auto;
}

/* GAP FILL: cards with no badge get an automatic numbered one
   (BENEFIT 01, STRAND 02, SCHEDULE 03...). Nothing to add in the HTML. */
.info-card:not(:has(.card-value))::after {
    content: "CARD " counter(card, decimal-leading-zero);
    order: -1;
    position: relative;
    align-self: flex-start;
    color: var(--blue-500);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 3px;
}

#grid-shs-benefits > .info-card:not(:has(.card-value))::after {
    content: "BENEFIT " counter(card, decimal-leading-zero);
}

#grid-academic > .info-card:not(:has(.card-value))::after,
#grid-tvl > .info-card:not(:has(.card-value))::after {
    content: "STRAND " counter(card, decimal-leading-zero);
}

#grid-schedules > .info-card:not(:has(.card-value))::after {
    content: "SCHEDULE " counter(card, decimal-leading-zero);
}

.info-card h3 {
    color: var(--navy-800);
    font-size: 30px;
    line-height: 1;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
}

.info-card h3 em {
    display: block;
    margin-top: 12px;
    color: var(--text-medium);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.info-card p {
    margin-top: 16px;
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.8;
}

/* GAP FILL: optional highlighted card, e.g. the 100% scholarship.
   Usage: <article class="info-card featured"> */
.info-card.featured {
    background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
    border-color: var(--border-blue);
    box-shadow: 0 20px 55px rgba(11, 31, 58, 0.28);
}

.info-card.featured::before {
    background: rgba(59, 167, 255, 0.14);
}

.info-card.featured .card-value,
.info-card.featured:not(:has(.card-value))::after {
    color: var(--blue-300);
}

.info-card.featured h3 {
    color: var(--white);
}

.info-card.featured h3 em {
    color: #b7ccdd;
}

.info-card.featured p {
    color: var(--text-light);
}


/* TRACK BLOCKS */

.track-block {
    position: relative;
    width: min(var(--max-width), 100%);
    margin: 0 auto 70px;
}

.track-block:last-child {
    margin-bottom: 0;
}

.track-header {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.track-line {
    flex-shrink: 0;
    width: 40px;
    height: 3px;
    background: var(--blue-400);
    border-radius: 5px;
}

.track-header h3 {
    color: var(--navy-800);
    font-size: 22px;
    letter-spacing: -0.5px;
}


/* QUOTE */

.quote-section {
    position: relative;
    padding: 140px 5%;
    background: var(--navy-800);
    overflow: hidden;
}

.quote-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 30%, rgba(59, 167, 255, 0.18), transparent 30%);
}

.quote-decoration {
    position: absolute;
    width: 420px;
    height: 420px;
    left: -240px;
    bottom: -220px;
    border: 1px solid rgba(112, 196, 255, 0.12);
    border-radius: 50%;
}

.quote-content {
    position: relative;
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.quote-content .section-label {
    color: var(--blue-300);
}

.quote-content blockquote {
    color: var(--white);
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -2px;
}

.quote-line {
    width: 55px;
    height: 3px;
    margin: 35px auto 20px;
    background: var(--blue-400);
    border-radius: 5px;
}

.quote-author {
    color: #88a7c0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
}


/* 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;
}

/* GAP FILL: closing section without a paragraph keeps the buttons close */
.closing-content h2 + .closing-actions {
    margin-top: 45px;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .card-grid {
        --cols: 3;
    }

}

@media (max-width: 950px) {


    .info-card {
        min-height: 220px;
    }



}


@media (max-width: 800px) {

    .card-grid {
        --cols: 2;
    }

}

@media (max-width: 650px) {


    .page-section,
    .page-college {
        padding: 90px 20px 100px;
    }

    .section-intro {
        margin-bottom: 55px;
    }

    .section-intro h2 {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .section-intro p {
        font-size: 14px;
    }

    .info-card {
        padding: 28px;
    }

    .track-header h3 {
        font-size: 18px;
    }

    .quote-section {
        padding: 100px 20px;
    }

    .quote-content blockquote {
        font-size: 32px;
    }

    .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,
    .ghost-button {
        width: 100%;
    }


}

@media (max-width: 560px) {

    .card-grid {
        --cols: 1;
    }

    .info-card {
        min-height: 200px;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

}


/* =========================================
   FINAL MOBILE OPTIMIZATION
   Append to the END of your existing CSS.
   Keeps all existing class names unchanged.
========================================= */

/* Prevent accidental horizontal overflow */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
video {
    max-width: 100%;
}



/* Tablets and larger phones */
@media (max-width: 720px) {
    :root {
        --header-height: 68px;
    }

    section[id] {
        scroll-margin-top: 100px;
    }


    .page-section,
    .page-college {
        padding: 75px 20px;
    }

    .section-intro {
        margin-bottom: 42px;
    }

    .section-intro h2 {
        font-size: clamp(32px, 7vw, 42px);
        line-height: 1.08;
        letter-spacing: -1.5px;
    }

    .section-intro p {
        font-size: 14px;
        line-height: 1.8;
    }

    .section-label {
        font-size: 9px;
        letter-spacing: 2px;
        line-height: 1.7;
    }

    .section-note,
    .page-college > p {
        margin-top: 28px;
        font-size: 12px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .card-grid {
        --cols: 2;
        --gap: 16px;
        width: 100%;
    }

    .card-grid > .info-card {
        flex-basis: calc((100% - var(--gap)) / 2);
    }

    .info-card {
        min-height: 210px;
        padding: 22px;
        gap: 28px;
        border-radius: 16px;
    }

    .info-card h3 {
        font-size: clamp(21px, 4vw, 28px);
        line-height: 1.1;
        letter-spacing: -0.8px;
        overflow-wrap: anywhere;
    }

    .info-card h3 em {
        font-size: 12px;
    }

    .info-card p {
        font-size: 13px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    .card-value,
    .info-card:not(:has(.card-value))::after {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .track-block {
        margin-bottom: 48px;
    }

    .track-header {
        align-items: flex-start;
        gap: 12px;
    }

    .track-line {
        width: 26px;
        margin-top: 9px;
    }

    .track-header h3 {
        font-size: 17px;
        line-height: 1.5;
    }

    .quote-section {
        padding: 85px 20px;
    }

    .quote-content blockquote {
        font-size: clamp(27px, 6vw, 36px);
        line-height: 1.25;
        letter-spacing: -1px;
    }

    .closing-section {
        padding: 85px 20px;
    }

    .closing-content h2 {
        font-size: clamp(36px, 8vw, 48px);
        line-height: 1.05;
        letter-spacing: -1.5px;
    }

    .closing-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .closing-actions {
        gap: 12px;
    }

    .primary-button,
    .secondary-button,
    .ghost-button {
        min-width: 0;
        max-width: 100%;
        padding: 14px 18px;
        white-space: normal;
    }

}

/* Small phones */
@media (max-width: 560px) {


    .hero-actions,
    .closing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions > *,
    .closing-actions > * {
        width: 100%;
    }

    .page-section,
    .page-college {
        padding: 60px 16px;
    }

    .card-grid {
        --cols: 1;
        --gap: 18px;
    }

    .card-grid > .info-card {
        flex-basis: 100%;
    }

    .info-card {
        min-height: 190px;
        padding: 24px;
        gap: 24px;
    }

    .info-card h3 {
        font-size: 27px;
    }

    .quote-section,
    .closing-section {
        padding: 70px 16px;
    }

    .quote-content blockquote {
        font-size: 28px;
    }

    .closing-content h2 {
        font-size: 37px;
    }


}

/* Extra-small phones */
@media (max-width: 360px) {

    .eyebrow {
        letter-spacing: 1.5px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 24px;
    }

    .quote-content blockquote {
        font-size: 25px;
    }
}

/* Avoid hover movement on touchscreens */
@media (hover: none) {
    .info-card:hover {
        transform: none;
    }

    .primary-button:hover,
    .secondary-button:hover,
    .ghost-button:hover {
        transform: none;
    }
}

