/* =====================================================
   SCHOLARPATH PH
   MAIN STYLESHEET
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: #14213d;

    background: #ffffff;

    line-height: 1.6;

    overflow-x: hidden;
}


a {
    text-decoration: none;

    color: inherit;
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


img {
    max-width: 100%;

    display: block;
}


.hidden {
    display: none !important;
}



/* =====================================================
   VARIABLES
===================================================== */

:root {

    --navy: #0b1f3a;

    --navy-light: #17365d;

    --blue: #1769e0;

    --blue-dark: #0f55bd;

    --blue-light: #eaf3ff;

    --green: #15803d;

    --green-light: #eaf8ef;

    --yellow: #f59e0b;

    --red: #dc2626;

    --text: #14213d;

    --muted: #667085;

    --border: #e5eaf1;

    --background: #f7f9fc;

    --white: #ffffff;

    --shadow:
        0 12px 35px rgba(11, 31, 58, 0.08);

    --radius: 18px;

}



/* =====================================================
   CONTAINER
===================================================== */

.section-container,
.nav-container,
.hero-container,
.stats-container {

    width: min(1180px, 92%);

    margin: auto;

}



/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

}


.nav-container {

    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;

}


.logo-icon {

    width: 42px;

    height: 42px;

    border-radius: 11px;

    background: var(--navy);

    color: white;

    display: grid;

    place-items: center;

    font-size: 13px;

    font-weight: 800;

}


.logo-text {

    display: flex;

    align-items: baseline;

    gap: 3px;

    font-size: 19px;

}


.logo-text strong {

    color: var(--navy);

}


.logo-text span {

    color: var(--blue);

    font-weight: 800;

}


.nav-menu {

    display: flex;

    align-items: center;

    gap: 30px;

}


.nav-menu a {

    color: #475467;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s ease;

}


.nav-menu a:hover {

    color: var(--blue);

}


.mobile-menu-button {

    display: none;

    background: none;

    border: none;

    font-size: 25px;

    color: var(--navy);

}



/* =====================================================
   HERO
===================================================== */

.hero {

    background:
        radial-gradient(
            circle at 85% 20%,
            #dbeafe 0,
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #f7faff 0%,
            #ffffff 100%
        );

    padding: 90px 0 80px;

    overflow: hidden;

}


.hero-container {

    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    align-items: center;

    gap: 70px;

}


.hero-content {

    max-width: 650px;

}


.hero-badge {

    display: inline-flex;

    padding: 8px 13px;

    border-radius: 50px;

    background: var(--blue-light);

    color: var(--blue);

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 22px;

}


.hero h1 {

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;

    color: var(--navy);

    margin-bottom: 25px;

}


.hero h1 span {

    display: block;

    color: var(--blue);

}


.hero-content > p {

    max-width: 600px;

    font-size: 18px;

    color: var(--muted);

    margin-bottom: 32px;

}


.hero-buttons {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}


.primary-button {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    padding: 14px 22px;

    border-radius: 11px;

    background: var(--blue);

    color: white;

    border: none;

    font-weight: 800;

    transition: 0.25s ease;

}


.primary-button:hover {

    background: var(--blue-dark);

    transform: translateY(-2px);

}


.secondary-button {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    padding: 14px 22px;

    border-radius: 11px;

    border: 1px solid var(--border);

    background: white;

    color: var(--navy);

    font-weight: 800;

}


.secondary-button:hover {

    border-color: var(--blue);

    color: var(--blue);

}


.hero-trust {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

    margin-top: 28px;

    color: #475467;

    font-size: 13px;

    font-weight: 600;

}



/* =====================================================
   HERO VISUAL
===================================================== */

.hero-visual {

    min-height: 430px;

    position: relative;

    display: grid;

    place-items: center;

}


.hero-card-main {

    width: min(410px, 100%);

    padding: 30px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 24px;

    box-shadow:
        0 30px 70px rgba(11, 31, 58, 0.13);

    position: relative;

    z-index: 2;

}


.hero-card-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.mini-label {

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 900;

    color: var(--muted);

}


.verified {

    color: var(--green);

    font-size: 11px;

    font-weight: 800;

}


.hero-scholarship-icon {

    width: 70px;

    height: 70px;

    border-radius: 18px;

    background: var(--blue-light);

    display: grid;

    place-items: center;

    font-size: 35px;

    margin: 35px 0 20px;

}


.hero-card-main h2,
.hero-card-main h3 {

    font-size: 26px;

    line-height: 1.2;

    margin-bottom: 10px;

    color: var(--navy);

}


.hero-card-main p {

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 25px;

}


.hero-search-preview {

    display: flex;

    gap: 10px;

    align-items: center;

    padding: 14px;

    border: 1px solid var(--border);

    border-radius: 10px;

    color: #98a2b3;

    font-size: 13px;

}


.hero-tags {

    display: flex;

    gap: 8px;

    margin-top: 14px;

    flex-wrap: wrap;

}


.hero-tags span {

    padding: 6px 9px;

    background: #f2f4f7;

    border-radius: 7px;

    font-size: 10px;

    font-weight: 700;

    color: #475467;

}


.floating-card {

    position: absolute;

    background: white;

    border: 1px solid var(--border);

    border-radius: 13px;

    padding: 12px 14px;

    box-shadow: var(--shadow);

    display: flex;

    gap: 10px;

    align-items: center;

    z-index: 3;

}


.floating-card > span {

    width: 35px;

    height: 35px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    background: var(--blue-light);

}


.floating-card strong {

    display: block;

    font-size: 12px;

}


.floating-card small {

    color: var(--muted);

    font-size: 10px;

}


.floating-one {

    right: 0;

    top: 55px;

}


.floating-two {

    left: 0;

    bottom: 45px;

}



/* =====================================================
   STATS
===================================================== */

.stats-section {

    background: var(--navy);

    color: white;

}


.stats-container {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

}


.stat-item {

    padding: 30px 15px;

    text-align: center;

    border-right: 1px solid rgba(255,255,255,0.1);

}


.stat-item:last-child {

    border-right: none;

}


.stat-item strong {

    display: block;

    font-size: 24px;

    margin-bottom: 2px;

}


.stat-item span {

    color: #b9c6d8;

    font-size: 12px;

}



/* =====================================================
   GENERAL SECTION
===================================================== */

.section {

    padding: 100px 0;

}


.section-heading {

    margin-bottom: 45px;

}


.section-heading.center {

    text-align: center;

    max-width: 750px;

    margin-left: auto;

    margin-right: auto;

}


.section-label {

    color: var(--blue);

    font-size: 11px;

    letter-spacing: 1.5px;

    font-weight: 900;

    display: block;

    margin-bottom: 12px;

}


.section-heading h2 {

    font-size: clamp(30px, 4vw, 43px);

    line-height: 1.15;

    letter-spacing: -1px;

    color: var(--navy);

    margin-bottom: 14px;

}


.section-heading p {

    color: var(--muted);

    font-size: 16px;

}



/* =====================================================
   FINDER
===================================================== */

.finder-section {

    background: #f8fafc;

}


.finder-panel {

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 25px;

    box-shadow: var(--shadow);

}


.search-wrapper {

    display: flex;

    align-items: center;

    border: 1px solid var(--border);

    border-radius: 11px;

    padding: 0 15px;

    height: 55px;

    margin-bottom: 20px;

}


.search-icon {

    margin-right: 10px;

}


.search-wrapper input {

    border: none;

    outline: none;

    width: 100%;

    color: var(--navy);

}


.search-wrapper input::placeholder {

    color: #98a2b3;

}


.filters {

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        auto;

    gap: 14px;

    align-items: end;

}


.filter-group label {

    display: block;

    font-size: 11px;

    font-weight: 800;

    color: #475467;

    margin-bottom: 7px;

}


.filter-group select {

    width: 100%;

    height: 45px;

    border: 1px solid var(--border);

    border-radius: 9px;

    padding: 0 11px;

    color: var(--navy);

    background: white;

    outline: none;

}


.filter-group select:focus {

    border-color: var(--blue);

}


.clear-button {

    height: 45px;

    border: none;

    background: transparent;

    color: var(--blue);

    font-weight: 800;

    padding: 0 10px;

}


.results-header {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    align-items: center;

    margin: 30px 0 20px;

}


.results-count {

    font-size: 14px;

    color: var(--muted);

}


.results-count strong {

    color: var(--navy);

}


.results-note {

    font-size: 11px;

    color: #667085;

}



/* =====================================================
   SCHOLARSHIP GRID
===================================================== */

.scholarship-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.scholarship-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 17px;

    padding: 23px;

    display: flex;

    flex-direction: column;

    min-height: 390px;

    transition: 0.25s ease;

}


.scholarship-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow);

    border-color: #cbd5e1;

}


.card-top {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    align-items: center;

    margin-bottom: 18px;

}


.provider {

    font-size: 11px;

    font-weight: 700;

    color: var(--muted);

    display: -webkit-box;

    overflow: hidden;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    line-clamp: 2;

}


.status {

    display: inline-flex;

    padding: 5px 8px;

    border-radius: 50px;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.4px;

}


.status.open {

    color: var(--green);

    background: var(--green-light);

}


.status.upcoming {

    color: #92400e;

    background: #fff7ed;

}


.status.ongoing {

    color: #1d4ed8;

    background: #eff6ff;

}


.scholarship-card h3 {

    font-size: 20px;

    line-height: 1.25;

    margin-bottom: 10px;

    color: var(--navy);

    display: -webkit-box;

    min-height: 2.5em;

    overflow: hidden;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    line-clamp: 2;

}


.scholarship-description {

    font-size: 13px;

    color: var(--muted);

    margin-bottom: 20px;

    display: -webkit-box;

    min-height: 4.95em;

    overflow: hidden;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    line-clamp: 3;

}


.card-meta {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: auto;

    margin-bottom: 20px;

}


.meta-box {

    padding: 10px;

    background: #f8fafc;

    border-radius: 9px;

    min-height: 88px;

    overflow: hidden;

}


.meta-box small {

    display: block;

    font-size: 9px;

    color: #98a2b3;

    margin-bottom: 2px;

}


.meta-box strong {

    font-size: 11px;

    color: var(--navy);

    display: -webkit-box;

    overflow: hidden;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    line-clamp: 3;

}


.card-actions {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

}


.card-button {

    border-radius: 9px;

    padding: 10px;

    text-align: center;

    font-size: 11px;

    font-weight: 800;

    border: 1px solid var(--border);

    background: white;

    color: var(--navy);

}


.card-button:hover {

    border-color: var(--blue);

    color: var(--blue);

}


.card-button.primary {

    background: var(--blue);

    border-color: var(--blue);

    color: white;

}


.card-button.primary:hover {

    background: var(--blue-dark);

    color: white;

}



/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state {

    text-align: center;

    padding: 60px 20px;

    background: white;

    border: 1px dashed #cbd5e1;

    border-radius: var(--radius);

}


.empty-icon {

    font-size: 40px;

    margin-bottom: 12px;

}


.empty-state h3 {

    color: var(--navy);

    margin-bottom: 6px;

}


.empty-state p {

    color: var(--muted);

    margin-bottom: 20px;

}


.center-button {

    text-align: center;

    margin-top: 35px;

}


.outline-button {

    border: 1px solid var(--navy);

    color: var(--navy);

    background: white;

    padding: 13px 20px;

    border-radius: 10px;

    font-weight: 800;

}


.outline-button:hover {

    background: var(--navy);

    color: white;

}



/* =====================================================
   PROCESS
===================================================== */

.process-section {

    background: white;

}


.process-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}


.process-card {

    position: relative;

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: 17px;

    background: white;

}


.process-number {

    color: #d9e3f0;

    font-size: 35px;

    font-weight: 900;

    position: absolute;

    right: 20px;

    top: 12px;

}


.process-icon {

    width: 52px;

    height: 52px;

    border-radius: 13px;

    background: var(--blue-light);

    display: grid;

    place-items: center;

    font-size: 22px;

    margin-bottom: 22px;

}


.process-card h3 {

    margin-bottom: 8px;

    color: var(--navy);

}


.process-card p {

    font-size: 13px;

    color: var(--muted);

}



/* =====================================================
   CATEGORIES
===================================================== */

.categories-section {

    background: #f8fafc;

}


.categories-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 17px;

}


.category-card {

    text-align: left;

    border: 1px solid var(--border);

    background: white;

    padding: 24px;

    border-radius: 15px;

    transition: 0.2s ease;

}


.category-card:hover {

    transform: translateY(-3px);

    border-color: var(--blue);

    box-shadow: var(--shadow);

}


.category-icon {

    font-size: 28px;

    margin-bottom: 15px;

}


.category-card h3 {

    color: var(--navy);

    margin-bottom: 5px;

}


.category-card p {

    color: var(--muted);

    font-size: 12px;

    margin-bottom: 15px;

}


.category-card span {

    color: var(--blue);

    font-size: 11px;

    font-weight: 900;

}



/* =====================================================
   QUIZ
===================================================== */

.quiz-section {

    background: white;

}


.quiz-wrapper {

    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 60px;

    align-items: center;

    padding: 60px;

    border-radius: 24px;

    background: var(--navy);

    color: white;

}


.quiz-content h2 {

    font-size: 40px;

    line-height: 1.15;

    margin-bottom: 15px;

}


.quiz-content p {

    color: #b9c6d8;

    margin-bottom: 25px;

    max-width: 550px;

}


.quiz-preview {

    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.1);

    padding: 20px;

    border-radius: 17px;

}


.quiz-preview-item {

    display: flex;

    gap: 12px;

    align-items: center;

    padding: 13px 0;

    border-bottom: 1px solid rgba(255,255,255,0.08);

}


.quiz-preview-item:last-child {

    border-bottom: none;

}


.quiz-preview-item span {

    width: 28px;

    height: 28px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.1);

}


.quiz-preview-item p {

    margin: 0;

    font-size: 13px;

}



/* =====================================================
   RESOURCES
===================================================== */

.resources-section {

    background: #f8fafc;

}


.resources-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.resource-card {

    padding: 27px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 17px;

    display: block;

    color: inherit;

    text-decoration: none;

    cursor: pointer;

    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;

}

.search-submit-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}
.search-submit-button:hover { background: var(--blue-dark); }
.search-submit-button:active { transform: scale(.96); }
.search-submit-button svg { width: 20px; height: 20px; }
.search-button-loader { display: none; width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: search-spin 650ms linear infinite; }
.search-submit-button.is-loading svg { display: none; }
.search-submit-button.is-loading .search-button-loader { display: block; }
.mobile-filter-toggle { display: none; }
@keyframes search-spin { to { transform: rotate(360deg); } }

.resource-card:hover { transform: translateY(-4px); border-color: #91b6ec; box-shadow: 0 16px 34px rgba(16, 42, 79, .09); }
.resource-card:active { transform: translateY(-1px) scale(.99); }
.resource-card:focus-visible { outline: 4px solid rgba(37, 99, 235, .22); outline-offset: 3px; }

.category-card { color: inherit; text-decoration: none; }
.category-card:focus-visible { outline: 4px solid rgba(37,99,235,.22); outline-offset: 3px; }
.category-results-page { min-height: 100vh; background: #f5f8fc; color: #10213b; }
.category-results-hero { min-height: 360px; display: grid; align-items: center; padding: clamp(58px,9vw,100px) 24px; background: linear-gradient(90deg,rgba(246,250,255,.98) 0%,rgba(246,250,255,.83) 46%,rgba(246,250,255,.18) 74%),url('../images/student-hero-optimized.webp') center 35%/cover; }
.category-results-hero > div { width: min(1180px,100%); margin: auto; }.category-results-hero h1 { max-width: 720px; margin: 16px 0; color: #0d213e; font-size: clamp(38px,6vw,62px); line-height: 1.06; }.category-results-hero p { max-width: 620px; color: #4d6078; font-size: 18px; line-height: 1.65; }
.category-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 22px; color: #145bc2; font-weight: 750; text-decoration: none; }.category-back svg { width: 18px; height: 18px; }
.category-results-section { width: min(1180px,calc(100% - 48px)); margin: auto; padding: 52px 0 90px; }.category-results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }.category-results-toolbar p { margin: 0; font-size: 17px; }.category-results-toolbar label { display: grid; gap: 7px; color: #33465f; font-size: 13px; font-weight: 750; }.category-results-toolbar input { width: min(340px,70vw); min-height: 48px; padding: 0 14px; border: 1px solid #c7d4e5; border-radius: 11px; background: #fff; font: inherit; }
.category-results-section .scholarship-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }.category-result-card { position: relative; display: flex; flex-direction: column; min-height: 430px; padding: 22px; }.category-result-provider { display: flex; align-items: center; gap: 12px; padding-right: 64px; }.category-result-provider .card-program-logo { width: 48px; height: 48px; flex-basis: 48px; }.category-result-provider div { display: grid; gap: 3px; min-width: 0; }.category-result-provider span { color: #243953; font-size: 13px; font-weight: 750; }.category-result-provider small { color: #718198; font-size: 11px; }.category-result-card .status-badge { position: absolute; top: 22px; right: 22px; }.category-result-card h3 { margin-top: 22px; }.category-result-card > p { flex: 1; }.category-result-card .details-link { margin-top: 18px; }
@media (max-width: 900px) { .category-results-section .scholarship-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .category-results-hero { min-height: 320px; background-position: 62% center; }.category-results-section { width: calc(100% - 30px); padding-top: 34px; }.category-results-toolbar { align-items: stretch; flex-direction: column; }.category-results-toolbar input { width: 100%; }.category-results-section .scholarship-grid { grid-template-columns: 1fr; } }


.resource-icon {

    font-size: 30px;

    margin-bottom: 20px;

}


.resource-card h3 {

    color: var(--navy);

    margin-bottom: 8px;

}


.resource-card p {

    color: var(--muted);

    font-size: 13px;

    margin-bottom: 20px;

}


.resource-card .resource-link {

    color: var(--blue);

    font-size: 12px;

    font-weight: 900;

}



/* =====================================================
   OFFICIAL SECTION
===================================================== */

.official-section {

    padding: 70px 0;

    background: var(--blue-light);

}


.official-content {

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 25px;

    align-items: start;

}


.official-icon {

    width: 70px;

    height: 70px;

    border-radius: 17px;

    background: white;

    display: grid;

    place-items: center;

    font-size: 30px;

}


.official-content h2 {

    font-size: 32px;

    color: var(--navy);

    margin-bottom: 10px;

}


.official-content p {

    color: #475467;

    max-width: 850px;

    font-size: 14px;

    margin-bottom: 10px;

}



/* =====================================================
   ABOUT
===================================================== */

.about-section {

    background: white;

}


.about-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 0;

}


.about-content h2 {

    font-size: 40px;

    line-height: 1.15;

    color: var(--navy);

    margin-bottom: 20px;

}


.about-content p {

    color: var(--muted);

    margin-bottom: 15px;

}


.about-point {

    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 15px;

    padding: 20px 0;

    border-bottom: 1px solid var(--border);

}


.about-point > span {

    font-size: 13px;

    color: var(--blue);

    font-weight: 900;

}


.about-point h3 {

    font-size: 16px;

    color: var(--navy);

    margin-bottom: 4px;

}


.about-point p {

    font-size: 13px;

    color: var(--muted);

}



/* =====================================================
   DISCLAIMER
===================================================== */

.disclaimer-section {

    padding: 25px 0;

    background: #fff7ed;

    border-top: 1px solid #fed7aa;

    border-bottom: 1px solid #fed7aa;

}


.disclaimer-section p {

    font-size: 11px;

    color: #7c4a03;

    text-align: center;

}



/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: var(--navy);

    color: white;

    padding: 65px 0 20px;

}


.footer-grid {

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    gap: 50px;

    padding-bottom: 45px;

}


.footer-logo .logo-icon {

    background: white;

    color: var(--navy);

}


.footer-logo .logo-text strong {

    color: white;

}


.footer-brand p {

    margin-top: 7px;

    color: #9fb0c5;

    font-size: 13px;

    max-width: 300px;
    line-height: 1.4;

}


.footer-links {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.footer-links h4 {

    margin-bottom: 7px;

}


.footer-links a {

    color: #9fb0c5;

    font-size: 12px;

}


.footer-links a:hover {

    color: white;

}


.footer-bottom {

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.1);

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #8193a9;

    font-size: 10px;

}



/* =====================================================
   MODAL
===================================================== */

.modal {

    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

}


.modal.active {

    display: flex;

}


.modal-overlay {

    position: absolute;

    inset: 0;

    background: rgba(5, 15, 30, 0.72);

    backdrop-filter: blur(5px);

}


.modal-content {

    position: relative;

    z-index: 2;

    width: min(720px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 22px;

    padding: 35px;

    box-shadow:
        0 30px 100px rgba(0,0,0,0.25);

}


.modal-close {

    position: absolute;

    right: 18px;

    top: 15px;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    border: none;

    background: #f2f4f7;

    color: #475467;

    font-size: 25px;

    line-height: 1;

}


.modal-header {

    padding-right: 45px;

    margin-bottom: 18px;

}


.modal-badge {

    display: inline-block;

    padding: 5px 9px;

    background: var(--blue-light);

    color: var(--blue);

    border-radius: 6px;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;

    margin-bottom: 12px;

}


.modal-header h2 {

    font-size: 30px;

    line-height: 1.15;

    color: var(--navy);

    margin-bottom: 6px;

}


.modal-header p {

    color: var(--muted);

    font-size: 13px;

}


.modal-status-row {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

}


.official-label {

    color: var(--green);

    font-size: 11px;

    font-weight: 800;

}


.modal-description {

    background: #f8fafc;

    border-radius: 11px;

    padding: 15px;

    margin-bottom: 20px;

}


.modal-description p {

    color: #475467;

    font-size: 13px;

}


.modal-information {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-bottom: 25px;

}


.info-box {

    display: flex;

    gap: 12px;

    align-items: center;

    background: #f8fafc;

    border-radius: 10px;

    padding: 13px;

}


.info-box > span {

    font-size: 20px;

}


.info-box small {

    display: block;

    font-size: 9px;

    color: #98a2b3;

}


.info-box strong {

    display: block;

    color: var(--navy);

    font-size: 11px;

}


.modal-section {

    margin-top: 23px;

}


.modal-section h3 {

    color: var(--navy);

    font-size: 16px;

    margin-bottom: 10px;

}


.modal-section ul {

    padding-left: 20px;

}


.modal-section li {

    color: #475467;

    font-size: 13px;

    margin-bottom: 7px;

}


.modal-warning {

    display: flex;

    gap: 12px;

    padding: 15px;

    background: #fff7ed;

    border: 1px solid #fed7aa;

    border-radius: 11px;

    margin-top: 25px;

}


.modal-warning span {

    font-size: 20px;

}


.modal-warning p {

    color: #7c4a03;

    font-size: 11px;

}


.modal-actions {

    margin-top: 25px;

}


.modal-apply-button {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

    padding: 15px;

    border-radius: 10px;

    background: var(--blue);

    color: white;

    font-weight: 900;

    font-size: 13px;

}


.modal-apply-button:hover {

    background: var(--blue-dark);

}



/* =====================================================
   QUIZ MODAL
===================================================== */

.quiz-modal {

    max-width: 650px;

}


.quiz-question {

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 17px;

    margin-bottom: 12px;

}


.quiz-question h3 {

    font-size: 14px;

    color: var(--navy);

    margin-bottom: 12px;

}


.quiz-options {

    display: flex;

    gap: 8px;

}


.quiz-options button {

    flex: 1;

    padding: 9px;

    border-radius: 8px;

    border: 1px solid var(--border);

    background: white;

    color: var(--navy);

    font-weight: 700;

    font-size: 12px;

}


.quiz-options button:hover {

    border-color: var(--blue);

    color: var(--blue);

}


.quiz-result {

    padding: 25px;

    border-radius: 13px;

    background: var(--blue-light);

    margin-top: 20px;

    text-align: center;

}


.quiz-result h3 {

    color: var(--navy);

    margin-bottom: 8px;

}


.quiz-result p {

    color: #475467;

    font-size: 13px;

}



/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {


    .hero-container {

        grid-template-columns: 1fr;

        text-align: center;

    }


    .hero-content {

        margin: auto;

    }


    .hero-buttons,
    .hero-trust {

        justify-content: center;

    }


    .hero-visual {

        max-width: 600px;

        width: 100%;

        margin: auto;

    }


    .scholarship-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .process-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .categories-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .quiz-wrapper {

        grid-template-columns: 1fr;

        gap: 35px;

    }


    .about-grid {

        grid-template-columns: 1fr;

        gap: 40px;

    }

}



@media (max-width: 750px) {


    .nav-menu {

        position: absolute;

        top: 76px;

        left: 0;

        width: 100%;

        background: white;

        border-bottom: 1px solid var(--border);

        display: none;

        flex-direction: column;

        align-items: flex-start;

        padding: 20px 5%;

        gap: 18px;

    }


    .nav-menu.active {

        display: flex;

    }


    .mobile-menu-button {

        display: block;

    }


    .stats-container {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .stat-item:nth-child(2) {

        border-right: none;

    }


    .filters {

        grid-template-columns: 1fr;

    }


    .results-header {

        flex-direction: column;

        align-items: flex-start;

    }


    .scholarship-grid {

        grid-template-columns: 1fr;

    }


    .categories-grid {

        grid-template-columns: 1fr;

    }


    .resources-grid {

        grid-template-columns: 1fr;

    }


    .process-grid {

        grid-template-columns: 1fr;

    }


    .footer-grid {

        grid-template-columns: 1fr;

        gap: 30px;

    }


    .footer-bottom {

        flex-direction: column;

    }


    .official-content {

        grid-template-columns: 1fr;

    }


    .quiz-wrapper {

        padding: 35px 25px;

    }

}



@media (max-width: 500px) {


    .hero {

        padding: 60px 0;

    }


    .hero h1 {

        font-size: 42px;

    }


    .hero-card-main {

        padding: 22px;

    }


    .floating-card {

        display: none;

    }


    .section {

        padding: 70px 0;

    }


    .modal-content {

        padding: 25px 18px;

    }


    .modal-header h2 {

        font-size: 24px;

    }


    .modal-information {

        grid-template-columns: 1fr;

    }


    .card-actions {

        grid-template-columns: 1fr;

    }

}

/* Researched student resource guides */
.guide-hero { padding-block: clamp(58px,8vw,92px); }
.guide-document { width: min(860px,calc(100% - 48px)); margin: 52px auto 88px; }
.guide-document > section { position: relative; margin-top: 18px; padding: clamp(25px,5vw,42px); border: 1px solid #dce5ef; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(18,42,75,.05); }
.guide-document h2 { margin: 0 0 14px; color: #10213b; font-size: clamp(22px,3vw,28px); }
.guide-document p, .guide-document li { color: #465a74; font-size: 16px; line-height: 1.72; }
.guide-step { display: inline-grid; place-items: center; min-width: 42px; height: 30px; margin-bottom: 16px; border-radius: 999px; background: #e8f1ff; color: #1767df; font-size: 13px; font-weight: 850; }
.guide-checklist, .guide-numbered { display: grid; gap: 13px; margin: 18px 0 0; padding: 0; list-style: none; }
.guide-checklist li { position: relative; padding-left: 32px; }
.guide-checklist li::before { content: ""; position: absolute; top: .43em; left: 3px; width: 8px; height: 14px; border-right: 2px solid #138459; border-bottom: 2px solid #138459; transform: rotate(45deg); }
.guide-numbered { counter-reset: guide-item; }.guide-numbered li { position: relative; padding-left: 44px; counter-increment: guide-item; }.guide-numbered li::before { content: counter(guide-item); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #edf3fc; color: #145bc2; font-size: 13px; font-weight: 800; }
.danger-list li::before { border-color: #c2413b; }
.guide-notice { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; padding: 18px 20px; border: 1px solid #bad3f5; border-radius: 14px; background: #eef6ff; }.guide-notice.warning { border-color: #f1c99c; background: #fff8ec; }.guide-notice svg { width: 23px; height: 23px; flex: 0 0 23px; color: #1767df; }.guide-notice.warning svg { color: #b65a18; }.guide-notice p { margin: 0; }
.guide-sources { background: #f5f8fc !important; }.guide-sources p { margin-bottom: 16px; }.guide-sources a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; margin-top: 9px; padding: 11px 14px; border: 1px solid #cddaea; border-radius: 10px; background: #fff; color: #145bc2; font-weight: 750; text-decoration: none; transition: border-color 170ms ease, transform 170ms ease; }.guide-sources a:hover { transform: translateX(3px); border-color: #7ca9e8; }.guide-sources a svg { width: 18px; height: 18px; flex: 0 0 18px; }
@media (max-width: 600px) { .guide-document { width: calc(100% - 30px); margin-block: 30px 60px; }.guide-document > section { padding: 23px 19px; }.guide-notice { margin-inline: 0; }.guide-document p,.guide-document li { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .resource-card,.guide-sources a { transition: none; } }

.about-content {
    max-width: 780px;
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* =====================================================
   ACCESSIBILITY, RESPONSIVE POLISH, AND LOADING STATES
===================================================== */

html {
    scrollbar-gutter: stable;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease-out;
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #2f6fe4;
    outline-offset: 3px;
}

button,
.button,
.primary-button,
.outline-button,
.card-button,
.nav-menu a {
    min-height: 44px;
    touch-action: manipulation;
}

.scholarship-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.scholarship-card,
.filter-group,
.search-wrapper,
.card-meta > *,
.modal-content {
    min-width: 0;
}

p,
h1,
h2,
h3,
h4,
.scholarship-card,
.meta-box {
    overflow-wrap: anywhere;
}

.scholarship-card h3,
.section-heading h2,
.hero h1 {
    text-wrap: balance;
}

.scholarship-description,
.section-heading p {
    text-wrap: pretty;
}

.scholarship-skeleton {
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.skeleton-line,
.skeleton-block {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #e9eef5;
}

.skeleton-line::after,
.skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.75) 50%, transparent 75%);
    transform: translateX(-100%);
    animation: scholarship-shimmer 1.25s ease-in-out infinite;
}

.skeleton-card-body { padding: 24px; }
.skeleton-line { height: 14px; margin-bottom: 14px; }
.skeleton-line.short { width: 42%; }
.skeleton-line.medium { width: 72%; }
.skeleton-line.title { width: 88%; height: 23px; margin: 24px 0 18px; }
.skeleton-block { height: 112px; margin-top: 26px; }

@keyframes scholarship-shimmer {
    to { transform: translateX(100%); }
}

@media (max-width: 750px) {
    .finder-panel { padding: 20px; }
    .search-wrapper input,
    .filter-group select { font-size: 16px; }
    .modal-content { max-height: calc(100dvh - 24px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =====================================================
   2026 EXPERIENCE REFRESH
===================================================== */

body {
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
    font-size: 16px;
}

h1, h2, h3, h4, .logo-text, button, .button, .primary-button,
.secondary-button, .card-button {
    font-family: "Plus Jakarta Sans", "Source Sans 3", sans-serif;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 6px 10px rgba(11, 31, 58, .14));
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.logo:hover .brand-mark { transform: translateY(-2px) rotate(-2deg); }

.hero {
    position: relative;
    min-height: 650px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(247,250,255,.99) 0%, rgba(247,250,255,.94) 42%, rgba(247,250,255,.2) 72%, rgba(255,255,255,.05) 100%),
        url("../images/student-hero-optimized.webp") 68% center / cover no-repeat;
}

.hero-container { grid-template-columns: minmax(0, 650px) 1fr; }
.hero-visual { visibility: hidden; pointer-events: none; }
.hero-badge { font-size: 14px; }

.primary-button,
.secondary-button,
.card-button {
    min-height: 48px;
    transition: transform 180ms ease-out, box-shadow 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}

.primary-button:active,
.secondary-button:active,
.card-button:active { transform: scale(.98); }

.scholarship-card {
    opacity: 0;
    animation: card-reveal 360ms cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: calc(var(--reveal-index, 0) * 45ms);
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, border-color 220ms ease;
}

.provider { font-size: 13px; }
.provider-with-logo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.provider-with-logo img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.scholarship-description { font-size: 15px; line-height: 1.65; }
.meta-box small { font-size: 11px; }
.meta-box strong { font-size: 13px; line-height: 1.35; }
.card-actions { grid-template-columns: 1fr; }
.card-button { padding: 12px 16px; font-size: 14px; }
.details-link span,
.apply-final-button span { display: inline-block; margin-left: 7px; transition: transform 180ms ease-out; }
.details-link:hover span,
.details-link:focus-visible span,
.apply-final-button:hover span,
.apply-final-button:focus-visible span { transform: translateX(4px); }

@keyframes card-reveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dedicated scholarship details */
.details-page { background: var(--background); }
.detail-back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
}

.detail-back-link::before { content: "←"; margin-right: 8px; transition: transform 180ms ease-out; }
.detail-back-link:hover::before { transform: translateX(-4px); }
.detail-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; outline: none; }
.detail-loading { min-height: 55vh; display: grid; place-items: center; }

.system-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 16px; width: min(100%, 430px); min-height: 138px; margin: 0 auto; padding: 24px; border: 1px solid #dce6f2; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(21,47,83,.08); color: var(--navy); text-align: left; }
.system-loading-indicator { position: relative; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid #d8e6fa; border-radius: 14px; background: #f2f7ff; }
.system-loading-indicator::before { content: ""; position: absolute; inset: 10px; border: 3px solid #cfe0f7; border-top-color: var(--blue); border-radius: 50%; animation: system-loader-spin .8s linear infinite; }
.system-loading-indicator::after { content: ""; position: absolute; top: 20px; left: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47,111,228,.1); }
.system-loading-copy { min-width: 0; }
.system-loading-copy strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.35; }
.system-loading-copy p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@keyframes system-loader-spin { to { transform: rotate(360deg); } }

.detail-layout { display: grid; gap: 24px; animation: detail-enter 320ms ease-out both; }
@keyframes detail-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.detail-hero-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #eef5ff 100%);
    box-shadow: var(--shadow);
}
.detail-provider-logo { width: 84px; height: 84px; flex: 0 0 84px; padding: 9px; border: 1px solid var(--border); border-radius: 20px; background: #fff; object-fit: contain; }
.detail-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 650; }
.status.closed { color: #b42335; background: #fff0f2; }
.detail-hero-card h1 { max-width: 20ch; color: var(--navy); font-size: clamp(30px, 5vw, 52px); line-height: 1.08; letter-spacing: -1.5px; text-wrap: balance; }
.detail-hero-card p { margin-top: 10px; color: var(--muted); font-size: 18px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-facts div { padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.detail-facts span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.detail-facts strong { color: var(--navy); font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; }
.scholarship-social { position: relative; display: grid; grid-template-columns: minmax(260px, .85fr) minmax(420px, 1.15fr); align-items: center; gap: 24px 34px; padding: 22px 24px; overflow: hidden; border: 1px solid #ccd9ef; border-radius: 18px; background: #f5f8fd; }
.scholarship-social::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #1877f2; }
.scholarship-social-copy { display: flex; align-items: center; gap: 15px; min-width: 0; }
.social-student-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: #e1ebfb; color: var(--blue-dark); }
.social-student-mark svg { width: 21px; height: 21px; }
.scholarship-social h2 { color: var(--navy); font-size: 17px; line-height: 1.3; }
.scholarship-social p { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.scholarship-social-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-width: 0; }
.facebook-like-shell { min-width: 110px; min-height: 28px; display: flex; align-items: center; }
.facebook-share-button, .social-send-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; font-weight: 750; cursor: pointer; }
.facebook-share-button { background: #1877f2; color: #fff; }
.facebook-share-button:hover { background: #1168d9; }
.social-send-button { border-color: #cbd5e3; background: #fff; color: var(--navy); }
.social-send-button:hover { border-color: #9db0c8; background: #f9fbfe; }
.facebook-share-button svg, .social-send-button svg { width: 17px; height: 17px; }
.facebook-share-button:focus-visible, .social-send-button:focus-visible { outline: 3px solid rgba(24,119,242,.25); outline-offset: 2px; }
.social-share-status { grid-column: 1 / -1; min-height: 0; margin: -16px 0 0 57px !important; color: #176b3a !important; font-size: 13px !important; font-weight: 700; }
.social-share-status:empty { display: none; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.detail-main-copy { display: grid; gap: 20px; }
.detail-section, .official-source-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.section-eyebrow { margin-bottom: 7px; color: var(--blue); font-family: "Plus Jakarta Sans", sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-section h2, .official-source-card h2, .apply-final-card h2 { color: var(--navy); font-size: clamp(21px, 3vw, 27px); line-height: 1.25; }
.detail-description { margin-top: 16px; color: #475467; font-size: 17px; line-height: 1.75; white-space: pre-line; }
.detail-list { display: grid; gap: 12px; margin: 18px 0 0; list-style: none; }
.detail-list > li { position: relative; padding: 13px 14px 13px 42px; border-radius: 12px; background: #f7f9fc; color: #344054; font-size: 16px; }
.detail-list > li::before { content: "✓"; position: absolute; left: 15px; top: 12px; color: var(--green); font-weight: 900; }
.detail-rich-content { white-space: pre-wrap; }
.detail-rich-content ul, .detail-rich-content ol { margin: 8px 0; padding-left: 24px; white-space: normal; }
.detail-rich-content ul { list-style: disc; }
.detail-rich-content ol { list-style: decimal; }
.detail-rich-content [data-list-style="circle"] { list-style-type: circle; }
.detail-rich-content [data-list-style="square"] { list-style-type: square; }
.detail-rich-content [data-list-style="decimal"] { list-style-type: decimal; }
.detail-rich-content [data-list-style="upper-roman"] { list-style-type: upper-roman; }
.detail-rich-content [data-list-style="lower-roman"] { list-style-type: lower-roman; }
.detail-rich-content [data-list-style="upper-alpha"] { list-style-type: upper-alpha; }
.detail-rich-content [data-list-style="lower-alpha"] { list-style-type: lower-alpha; }
.detail-rich-content [data-list-style="check"], .detail-rich-content [data-list-style="asterisk"] { list-style: none; padding-left: 24px; }
.detail-rich-content [data-list-style="check"] > li::before { content: "✓"; margin-left: -21px; margin-right: 10px; color: var(--green); font-weight: 800; }
.detail-rich-content [data-list-style="asterisk"] > li::before { content: "*"; margin-left: -18px; margin-right: 10px; font-weight: 800; }
.detail-rich-content li { padding: 0 0 0 3px; background: transparent; color: inherit; font: inherit; }
.detail-rich-content li::before { content: none; }
.official-source-card { position: sticky; top: 100px; }
.source-shield { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 13px; background: var(--green-light); color: var(--green); font-weight: 900; }
.official-source-card p { margin: 12px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--blue); font-weight: 750; }
.text-link::after { content: "↗"; margin-left: 7px; }
.is-disabled { opacity: .55; pointer-events: none; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.gallery-button { min-height: 0; overflow: hidden; padding: 0; border: 0; border-radius: 14px; background: #eaf0f8; aspect-ratio: 4 / 3; }
.gallery-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease-out, opacity 180ms ease-out; }
.gallery-button:hover img { transform: scale(1.035); }
.apply-final-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 16px; padding: clamp(26px, 5vw, 44px); border-radius: 22px; background: var(--navy); color: #fff; }
.apply-final-card h2 { color: #fff; }
.apply-final-card p:not(.section-eyebrow) { margin-top: 9px; color: #c9d6e7; }
.physical-submission-card { margin-top: 16px; padding: clamp(26px, 5vw, 40px); border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(16, 33, 59, .08); }
.physical-submission-card h2 { margin-top: 6px; color: var(--navy); font-size: clamp(21px, 3vw, 27px); }
.physical-submission-card > p:not(.section-eyebrow) { margin-top: 10px; color: var(--muted); line-height: 1.7; }
.physical-location { padding: 12px 14px; border-radius: 12px; background: var(--light-blue); }
.physical-submission-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.physical-submission-actions .secondary-button { border: 1px solid var(--border); background: #fff; color: var(--navy); }
.physical-submission-note { font-size: 13px; }
.physical-submission-status { padding: 10px 12px; border-radius: 10px; background: #e8f7ee; color: #176b3a !important; font-weight: 700; }
.apply-final-button { flex: 0 0 auto; background: #fff; color: var(--navy); }
.apply-final-button:hover { background: #eaf3ff; color: var(--blue-dark); }
.detail-error { max-width: 640px; margin: 80px auto; padding: 44px; border: 1px solid var(--border); border-radius: 22px; background: #fff; text-align: center; }
.detail-error p { margin: 12px 0 22px; color: var(--muted); }
.image-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 56px 20px 20px; background: rgba(2, 12, 27, .88); }
.image-lightbox img { max-width: min(1100px, 100%); max-height: calc(100dvh - 80px); border-radius: 16px; object-fit: contain; }
.image-lightbox button { position: fixed; top: 14px; right: 18px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; }
.detail-footer { padding: 28px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; text-align: center; }

@media (max-width: 1000px) {
    .hero { min-height: 620px; background-position: 68% center; }
    .hero-container { grid-template-columns: minmax(0, 620px) 1fr; text-align: left; }
    .hero-content { margin: 0; }
    .hero-buttons, .hero-trust { justify-content: flex-start; }
    .detail-columns { grid-template-columns: 1fr; }
    .official-source-card { position: static; }
}

@media (max-width: 750px) {
    .hero {
        min-height: 680px;
        align-items: end;
        padding: 240px 0 54px;
        background:
            linear-gradient(0deg, rgba(247,250,255,1) 0%, rgba(247,250,255,.97) 44%, rgba(247,250,255,.25) 78%, rgba(247,250,255,.05) 100%),
            url("../images/student-hero-optimized.webp") 69% top / auto 390px no-repeat,
            #f7faff;
    }
    .hero-container { display: block; text-align: left; }
    .hero-content { max-width: none; }
    .hero h1 { font-size: clamp(38px, 12vw, 52px); letter-spacing: -1.4px; }
    .hero-content > p { font-size: 17px; }
    .hero-buttons { display: grid; }
    .hero-buttons a { width: 100%; }
    .hero-trust { gap: 10px 16px; }
    .hero-visual { display: none; }
    .detail-shell { width: min(100% - 28px, 1120px); padding-top: 28px; }
    .detail-hero-card { align-items: flex-start; gap: 16px; }
    .detail-provider-logo { width: 62px; height: 62px; flex-basis: 62px; border-radius: 15px; }
    .detail-kicker { align-items: flex-start; flex-direction: column; }
    .detail-hero-card h1 { font-size: clamp(27px, 8vw, 38px); }
    .detail-facts { grid-template-columns: 1fr 1fr; }
    .scholarship-social { grid-template-columns: 1fr; }
    .scholarship-social-actions { justify-content: flex-start; padding-left: 57px; }
    .detail-gallery { grid-template-columns: 1fr; }
    .apply-final-card { align-items: stretch; flex-direction: column; }
    .apply-final-button { width: 100%; }
}

@media (max-width: 420px) {
    .logo-text { font-size: 17px; }
    .detail-back-link { font-size: 14px; }
    .detail-facts { grid-template-columns: 1fr; }
    .detail-hero-card { flex-direction: column; }
    .scholarship-social { padding: 19px 17px 19px 20px; }
    .scholarship-social-copy { align-items: flex-start; }
    .scholarship-social-actions { display: grid; grid-template-columns: 1fr; padding-left: 0; }
    .facebook-like-shell { min-height: 30px; }
    .facebook-share-button, .social-send-button { width: 100%; }
    .social-share-status { margin: -12px 0 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
    .scholarship-card, .detail-layout { opacity: 1; animation: none; }
    .gallery-button img, .brand-mark, .details-link span, .apply-final-button span { transition: none; }
}

/* Program logos and compact scholarship photo grid */
.card-top { align-items: flex-start; }

.card-provider-group {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 11px;
}

.card-top .status { flex: 0 0 auto; }

.card-program-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(21, 43, 75, .06);
    object-fit: contain;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.card-program-logo.has-uploaded-logo {
    padding: 0;
    object-fit: contain;
}

.scholarship-card:hover .card-program-logo {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(21, 43, 75, .1);
}

.card-provider-group .provider {
    display: -webkit-box;
    overflow: hidden;
    color: #475467;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.detail-gallery {
    display: block;
    width: min(100%, 720px);
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.detail-provider-logo.has-uploaded-logo {
    padding: 0;
    object-fit: contain;
}

.helpful-links-card { margin-top: 22px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(18,43,75,.07); }
.helpful-links-card > h2 { margin: 5px 0 0; color: var(--navy); font-size: clamp(24px, 3vw, 32px); }
.helpful-links-intro { margin: 8px 0 0; color: var(--muted); }
.helpful-links-list { display: grid; gap: 12px; margin-top: 20px; }
.helpful-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #f8fafc;
}
.helpful-link-item > div { min-width: 0; }
.helpful-link-item h3 { margin: 0; color: var(--navy); font-size: 17px; line-height: 1.3; }
.helpful-link-item p { max-width: 65ch; margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.helpful-link-button { flex: 0 0 auto; min-width: 150px; }

@media (max-width: 620px) {
    .helpful-link-item { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
    .helpful-link-button { width: 100%; }
}

.carousel-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #e8edf5;
    aspect-ratio: 16 / 10;
    touch-action: pan-y;
}

.carousel-image-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .88;
    transition: opacity 180ms ease-out;
}

.carousel-image.is-visible { opacity: 1; }

.carousel-image-button:focus-visible,
.carousel-thumbnail:focus-visible,
.carousel-navigation:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: -3px;
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: #0d213e;
    box-shadow: 0 8px 24px rgba(4,14,30,.2);
    font-size: 30px;
    transform: translateY(-50%);
    transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.carousel-navigation:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.carousel-navigation:disabled { opacity: .35; cursor: not-allowed; }
.carousel-previous { left: 14px; }
.carousel-next { right: 14px; }

.carousel-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    z-index: 2;
    min-width: 58px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(4,14,30,.68);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transform: translateX(-50%);
}

.carousel-thumbnails {
    display: flex;
    gap: 4px;
    margin-top: 9px;
    padding: 2px 1px 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.carousel-thumbnails::-webkit-scrollbar { display: none; }

.carousel-thumbnail {
    flex: 0 0 42px;
    width: 42px;
    height: 76px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #e8edf5;
    opacity: .7;
    transition: flex-basis 260ms ease-out, width 260ms ease-out, opacity 160ms ease-out, border-color 160ms ease-out;
}

.carousel-thumbnail.is-active {
    flex-basis: 120px;
    width: 120px;
    border-color: var(--blue);
    opacity: 1;
}

.carousel-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

body.dark-mode .details-page .carousel-stage,
body.dark-mode .details-page .carousel-thumbnail {
    border-color: #344a66;
    background: #0b1829;
}

body.dark-mode .details-page .carousel-thumbnail.is-active { border-color: #4e9bff; }

.image-lightbox #closeLightbox {
    top: 14px;
    right: 18px;
    left: auto;
}

.image-lightbox .lightbox-navigation {
    top: 50%;
    right: auto;
    z-index: 2;
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
    transition: background-color 180ms ease-out, transform 120ms ease-out;
}

.image-lightbox .lightbox-navigation:active { transform: translateY(-50%) scale(.96); }
.image-lightbox .lightbox-previous { left: 18px; }
.image-lightbox .lightbox-next { right: 18px; left: auto; }

.lightbox-counter {
    position: fixed;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 2;
    min-width: 70px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .48);
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transform: translateX(-50%);
}

@media (max-width: 520px) {
    .card-program-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .detail-gallery {
        width: 100%;
    }

    .carousel-stage { border-radius: 14px; aspect-ratio: 4 / 3; }
    .carousel-navigation { width: 38px; height: 38px; }
    .carousel-previous { left: 8px; }
    .carousel-next { right: 8px; }
    .carousel-thumbnail { height: 66px; }
    .image-lightbox { padding-inline: 56px; }
    .image-lightbox .lightbox-navigation { width: 44px; height: 56px; border-radius: 12px; }
    .image-lightbox .lightbox-previous { left: 6px; }
    .image-lightbox .lightbox-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .card-program-logo, .carousel-image, .carousel-navigation, .carousel-thumbnail, .image-lightbox .lightbox-navigation { transition: none; }
}

/* Shared Lucide icon language */
.sp-icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -0.18em;
    stroke: currentColor;
}

.mobile-menu-button .sp-icon { width: 25px; height: 25px; }
.hero-badge, .hero-trust span, .verified, .official-label { display: inline-flex; align-items: center; gap: 7px; }
.hero-badge .sp-icon, .hero-trust .sp-icon { width: 18px; height: 18px; }
.hero-scholarship-icon .sp-icon { width: 38px; height: 38px; }
.search-icon .sp-icon, .hero-search-preview .sp-icon { width: 20px; height: 20px; }
.floating-card > .sp-icon { width: 22px; height: 22px; }
.process-icon .sp-icon, .category-icon .sp-icon, .resource-icon .sp-icon, .official-icon .sp-icon, .empty-icon .sp-icon {
    width: 32px;
    height: 32px;
}
.quiz-preview-item > .sp-icon { width: 19px; height: 19px; }
.info-box > .sp-icon, .modal-warning > .sp-icon { width: 24px; height: 24px; }
.source-shield .sp-icon { width: 22px; height: 22px; }

/* Standalone About and Disclaimer pages */
.info-page { min-height: 100vh; margin: 0; background: #f6f8fc; color: #10213b; }
.info-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 12px max(24px, calc((100% - 1180px) / 2)); border-bottom: 1px solid #dce4ef; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.info-brand { display: inline-flex; align-items: center; gap: 11px; color: #0e2343; text-decoration: none; }
.info-brand > img { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; transition: transform 180ms ease; }
.info-brand:hover > img { transform: translateY(-1px) rotate(-2deg); }
.info-header nav, .info-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.info-header nav a, .info-footer nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; color: #3f5069; font-weight: 700; text-decoration: none; transition: background-color 180ms ease, color 180ms ease; }
.info-header nav a:hover, .info-header nav a[aria-current="page"] { background: #e9f1ff; color: #145bc2; }
.info-hero { padding: clamp(64px, 10vw, 112px) 24px; background: linear-gradient(135deg,#edf4ff 0%,#f8fbff 55%,#edf9f4 100%); }
.info-hero > div { width: min(860px,100%); margin: auto; text-align: center; }
.info-hero h1 { max-width: 820px; margin: 14px auto 20px; font-size: clamp(36px,6vw,64px); line-height: 1.08; letter-spacing: -.045em; }
.info-hero p { max-width: 680px; margin: auto; color: #52647d; font-size: clamp(17px,2vw,20px); line-height: 1.7; }
.creator-section { width: min(1180px,calc(100% - 48px)); margin: 0 auto; padding: 80px 0 96px; }
.info-section-heading { margin-bottom: 30px; }
.info-section-heading h2 { margin: 9px 0 0; font-size: clamp(30px,4vw,44px); }
.creator-grid { display: grid; gap: 24px; }
.creator-card { display: grid; grid-template-columns: 220px minmax(0,1fr); overflow: hidden; border: 1px solid #dbe4f0; border-radius: 22px; background: #fff; box-shadow: 0 14px 40px rgba(16,33,59,.07); }
.creator-photo { display: grid; place-items: center; min-height: 260px; background: linear-gradient(145deg,#dceaff,#eef4ff); color: #165dbf; font-size: 52px; font-weight: 800; }
.creator-photo img { width: 100%; height: 100%; object-fit: cover; }
.creator-body { padding: clamp(26px,5vw,46px); }
.creator-body h3 { margin: 0; font-size: clamp(25px,3vw,34px); }
.creator-role { margin: 7px 0 20px; color: #1767df; font-weight: 750; }
.creator-bio { max-width: 76ch; margin: 0; color: #465a74; font-size: 16px; line-height: 1.75; white-space: pre-line; }
.creator-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e2e8f1; }
.creator-contacts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #ccdaeb; border-radius: 10px; color: #174f9e; font-weight: 700; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.creator-contacts a:hover { transform: translateY(-2px); border-color: #79a7e9; background: #f2f7ff; }
.creator-contacts svg { width: 18px; height: 18px; }
.creator-empty { grid-column: 1/-1; padding: 44px; border: 1px dashed #b8c8dc; border-radius: 20px; background: #fff; text-align: center; }
.creator-empty h3 { margin: 0 0 8px; }.creator-empty p { margin: 0; color: #64758c; }
.legal-document { width: min(840px,calc(100% - 48px)); margin: 56px auto 88px; padding: clamp(28px,6vw,64px); border: 1px solid #dbe4f0; border-radius: 22px; background: #fff; box-shadow: 0 16px 46px rgba(16,33,59,.07); }
.legal-document section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid #e5eaf1; }
.legal-document h2 { margin: 0 0 12px; font-size: clamp(21px,3vw,27px); }.legal-document p { margin: 0; color: #455970; font-size: 16px; line-height: 1.75; }.legal-document a { color: #1767df; font-weight: 700; }.legal-updated { margin-bottom: 34px !important; padding: 13px 16px; border-radius: 10px; background: #f0f5fc; }
.info-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px max(24px,calc((100% - 1180px) / 2)); background: #0d203d; color: #fff; }
.info-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.info-footer-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }
.info-footer-brand span { display: grid; gap: 2px; }.info-footer-brand small { color: #aebbd0; font-size: 13px; line-height: 1.35; }
.info-footer nav a { color: #b8c5d8; }
.info-footer nav a:hover, .info-footer nav a[aria-current="page"] { background: rgba(255,255,255,.09); color: #fff; }
.legal-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 38px; }
.legal-summary div { padding: 18px; border: 1px solid #dbe6f4; border-radius: 14px; background: #f6f9fe; }
.legal-summary strong { display: block; margin-bottom: 6px; color: #15365f; font-size: 15px; }
.legal-summary p { font-size: 14px; line-height: 1.55; }
.legal-document ul { margin: 14px 0 0; padding-left: 22px; color: #455970; }
.legal-document li { padding-left: 4px; line-height: 1.7; }
.legal-document li + li { margin-top: 8px; }
@media (max-width: 700px) { .info-header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 18px; }.info-header nav { width: 100%; }.info-header nav a { flex: 1; justify-content: center; padding-inline: 8px; }.creator-section { width: min(100% - 30px,1180px); padding: 55px 0 70px; }.creator-card { grid-template-columns: 1fr; }.creator-photo { min-height: 0; aspect-ratio: 4/3; }.creator-body { padding: 24px 20px; }.creator-contacts { display: grid; grid-template-columns: 1fr 1fr; }.creator-contacts a { justify-content: center; }.legal-document { width: calc(100% - 30px); margin-block: 30px 60px; padding: 25px 20px; }.legal-summary { grid-template-columns: 1fr; }.info-footer { align-items: center; flex-direction: column; padding: 35px 20px; }.info-footer nav { justify-content: center; } }
@media (max-width: 420px) { .creator-contacts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .creator-contacts a, .info-brand > img { transition: none; } }

@media (max-width: 750px) {
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-logo { justify-content: center; }
    .footer-brand p { margin-inline: auto; }
    .info-footer { align-items: center; text-align: center; }
    .info-footer-brand { justify-content: center; }
}

/* Mobile usability consolidation */
html { -webkit-text-size-adjust: 100%; }
img, svg, video, canvas { max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }

@media (max-width: 750px) {
    body { overflow-x: clip; font-size: 16px; }
    .header { position: sticky; top: 0; z-index: 1000; }
    .nav-container { min-height: 68px; padding-inline: 16px; }
    .brand-mark { width: 40px; height: 40px; }
    .logo-text strong { font-size: 16px; }
    .logo-text span { font-size: 10px; }
    .mobile-menu-button { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 11px; }
    .nav-menu { top: 68px; z-index: 1001; max-height: calc(100dvh - 68px); overflow-y: auto; padding: 12px 16px 20px; gap: 4px; box-shadow: 0 16px 30px rgba(10,31,59,.12); }
    .nav-menu a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 13px; border-radius: 9px; font-size: 15px; }
    .nav-menu a:hover, .nav-menu a:focus-visible { background: var(--blue-light); }
    .section-container, .hero-container, .stats-container { width: min(100% - 30px, var(--container)); }
    .hero { min-height: 0; padding: 44px 0 50px; background-position: 62% center; }
    .hero::before { background: linear-gradient(90deg,rgba(248,251,255,.98) 0%,rgba(248,251,255,.92) 58%,rgba(248,251,255,.45) 100%); }
    .hero-container { display: block; }
    .hero-content { max-width: 100%; }
    .hero h1 { max-width: 12ch; font-size: clamp(38px,11vw,52px); line-height: 1.04; }
    .hero-description { max-width: 34ch; font-size: 16px; line-height: 1.6; }
    .hero-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .hero-buttons > * { width: 100%; min-height: 50px; justify-content: center; }
    .hero-trust { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .stats-section { padding: 0; }
    .stats-container { width: 100%; }
    .stat-item { min-height: 104px; padding: 20px 10px; }
    .section { padding-block: 56px; }
    .section-heading { margin-bottom: 28px; }
    .section-heading h2, .about-content h2 { font-size: clamp(29px,8.5vw,38px); }
    .finder-container { padding: 22px 16px; border-radius: 17px; }
    .search-box input, .filters select, .category-results-toolbar input { min-height: 50px; font-size: 16px; }
    .results-header { gap: 10px; }
    .scholarship-card, .category-card, .resource-card { min-width: 0; padding: 21px 18px; }
    .scholarship-card h3 { font-size: 20px; overflow-wrap: anywhere; }
    .card-details { grid-template-columns: 1fr 1fr; gap: 8px; }
    .card-details > div { min-width: 0; padding: 11px; }
    .card-details strong { overflow-wrap: anywhere; }
    .details-link, .show-all-button { min-height: 50px; }
    .category-card, .resource-card { min-height: 0; }
    .process-grid, .categories-grid, .resources-grid { gap: 13px; }
    .about-section { padding-block: 56px; }
    .disclaimer-section { padding-block: 22px; }
    .disclaimer-section p { font-size: 13px; line-height: 1.65; }
    .footer { padding-top: 48px; }
    .footer-grid { gap: 26px; }
    .footer-links a { min-height: 44px; display: flex; align-items: center; }
    .modal { padding: 12px; }
    .modal-content { width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 17px; }
    .modal-close { width: 46px; height: 46px; }
    .detail-hero { padding: 28px 0; }
    .detail-hero-card { padding: 22px 18px; }
    .detail-title { font-size: clamp(28px,9vw,40px); overflow-wrap: anywhere; }
    .detail-section { padding: 22px 18px; }
    .detail-columns { gap: 16px; }
    .apply-final-button { width: 100%; min-height: 54px; }
}

@media (max-width: 430px) {
    .stats-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-item {
        min-height: 82px;
        display: grid;
        place-content: center;
        padding: 14px 8px;
        border-right: 1px solid rgba(255,255,255,.13);
        border-bottom: 1px solid rgba(255,255,255,.13);
    }
    .stat-item:nth-child(2n) { border-right: 0; }
    .stat-item:nth-last-child(-n + 2) { border-bottom: 0; }
    .stat-item strong { margin-bottom: 2px; font-size: 1.1rem; line-height: 1.15; }
    .stat-item span { font-size: .7rem; line-height: 1.35; }
    .card-details { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(36px,12vw,46px); }
    .hero-badge { max-width: 100%; font-size: 12px; }
    .info-header { position: static; padding: 12px 15px; }
    .info-brand { width: 100%; }
    .info-header nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
    .info-header nav a { min-width: 0; padding-inline: 5px; font-size: 12px; text-align: center; }
    .info-hero { padding: 52px 16px; }
    .info-hero h1 { font-size: clamp(32px,10vw,42px); }
    .creator-photo { aspect-ratio: 1; }
    .creator-body { padding: 21px 17px; }
    .legal-document, .guide-document { width: calc(100% - 22px); }
    .category-result-provider { padding-right: 0; }
}

/* 2026 responsive and accessibility foundation */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(29, 111, 235, .32);
    outline-offset: 3px;
}

:where(p, li, label, input, select, textarea, button) { line-height: 1.55; }
:where(h1, h2, h3, h4, p) { overflow-wrap: break-word; }

@media (max-width: 750px) {
    .section-label,
    .eyebrow,
    .card-provider,
    .status-badge,
    .detail-label,
    .meta-box small,
    .category-result-provider small,
    .logo-text span {
        font-size: 12px !important;
        line-height: 1.4;
    }

    .nav-menu.active { display: flex; }
    .filters { grid-template-columns: 1fr !important; }
    .scholarship-grid,
    .process-grid,
    .categories-grid,
    .resources-grid,
    .footer-grid { grid-template-columns: 1fr !important; }
    .results-header { align-items: flex-start; flex-direction: column; }
    .card-top { align-items: flex-start; gap: 12px; }
    .detail-meta-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
    .section-container, .hero-container { width: min(100% - 22px, var(--container)); }
    .hero { padding-block: 34px 40px; background-position: 68% center; }
    .hero::before { background: linear-gradient(90deg,rgba(248,251,255,.99),rgba(248,251,255,.94) 72%,rgba(248,251,255,.68)); }
    .hero h1 { font-size: clamp(34px, 11.5vw, 43px); }
    .detail-meta-grid { grid-template-columns: 1fr; }
    .scholarship-card, .category-card, .resource-card { padding-inline: 16px; }
}

/* Final cross-device consistency pass */
@media (max-width: 750px) {
    :root { --mobile-gutter: 16px; }
    body { min-width: 0; }
    main, section, article, header, footer, nav, form { min-width: 0; }
    .section > .section-container { width: calc(100% - (var(--mobile-gutter) * 2)); margin-inline: auto; }
    .disclaimer-section > .section-container { width: calc(100% - (var(--mobile-gutter) * 2)); margin-inline: auto; }

    .header-search-button,
    .mobile-menu-button {
        border: 1px solid #d9e3ef !important;
        background: #fff !important;
        box-shadow: 0 3px 10px rgba(15,38,70,.06);
    }
    .header-search-button:active,
    .mobile-menu-button:active { background: #eaf2ff !important; transform: scale(.96); }

    .results-filter-panel {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }
    .results-filter-panel label {
        display: grid;
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-height: 46px;
        padding-left: 10px;
        border: 1px solid #dce5f0;
        border-radius: 10px;
        background: #f9fbfd;
        font-size: .72rem;
    }
    .results-filter-panel select {
        min-height: 44px;
        border-width: 0 0 0 1px;
        border-radius: 0 9px 9px 0;
        background-color: #fff;
        font-size: .82rem;
    }
    .results-filter-panel button { min-height: 42px; font-size: .78rem; }

    .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .category-card { position: relative; cursor: pointer; }
}

@media (max-width: 340px) {
    :root { --mobile-gutter: 12px; }
    .category-card { grid-template-columns: 30px minmax(0,1fr); column-gap: 7px; padding: 11px !important; }
    .category-icon { width: 30px; }
    .category-card h3 { font-size: .82rem; }
    .category-card p { font-size: .68rem; }
}

@media (max-width: 390px) {
    .category-card {
        grid-template-columns: 26px minmax(0, 1fr);
        column-gap: 6px;
        padding: 10px !important;
    }
    .category-icon { width: 26px; font-size: 1.15rem; }
    .category-card h3 {
        font-size: .75rem;
        line-height: 1.28;
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: normal;
    }
    .category-card p { font-size: .66rem; line-height: 1.35; overflow-wrap: normal; word-break: normal; }
    .category-card span { font-size: .66rem; }
}

.shared-public-footer { width: 100%; }

/* Semantic scholarship status colors */
.status,
.status-badge {
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}
.status.open,
.status-badge.open { border-color: #9ed9bd; background: #e5f7ee; color: #087451; }
.status.ongoing,
.status-badge.ongoing { border-color: #9fc5f8; background: #e8f2ff; color: #1555a3; }
.status.upcoming,
.status-badge.upcoming { border-color: #efd080; background: #fff5cc; color: #7a4d00; }
.status.closed,
.status-badge.closed { border-color: #efaaaa; background: #ffe8e8; color: #a61b1b; }
.status.draft,
.status-badge.draft { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }

@media (min-width: 751px) {
    .category-card,
    .resource-card,
    .details-link,
    .primary-button,
    .secondary-button { cursor: pointer; }
    .category-card > span,
    .resource-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}

/* Mobile category and scholarship-detail repair */
@media (max-width: 700px) {
    .category-results-page .info-header {
        position: sticky;
        top: 0;
        align-items: stretch;
        gap: 6px;
        padding: 8px 14px;
    }
    .category-results-page .info-brand { gap: 9px; min-height: 38px; }
    .category-results-page .info-brand > img { width: 36px; height: 36px; }
    .category-results-page .info-brand strong { font-size: .95rem; }
    .category-results-page .info-header nav {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .category-results-page .info-header nav::-webkit-scrollbar { display: none; }
    .category-results-page .info-header nav a {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 7px 10px;
        font-size: .75rem;
        white-space: nowrap;
    }

    .category-results-hero {
        min-height: 0;
        padding: 34px 20px 38px;
        background:
            linear-gradient(90deg,rgba(246,250,255,.99) 0%,rgba(246,250,255,.94) 58%,rgba(246,250,255,.28) 100%),
            url('../images/student-hero-optimized.webp') 68% center / cover;
    }
    .category-results-hero > div { width: 100%; }
    .category-back { width: max-content; min-height: 38px; margin-bottom: 8px; font-size: .82rem; }
    .category-results-hero .eyebrow { display: block; margin-bottom: 8px; font-size: .68rem !important; }
    .category-results-hero h1 { max-width: 72%; margin: 0 0 12px; font-size: clamp(1.85rem, 8.5vw, 2.4rem); line-height: 1.07; overflow-wrap: normal; word-break: normal; }
    .category-results-hero p { max-width: 24ch; margin: 0; font-size: .95rem; line-height: 1.55; }
    .category-results-section { width: calc(100% - 28px); padding: 28px 0 58px; }
    .category-results-toolbar { gap: 14px; margin-bottom: 18px; }
    .category-results-toolbar p { font-size: .95rem; }
    .category-results-toolbar label { font-size: .75rem; }

    .category-result-card {
        min-height: 0;
        padding: 16px !important;
    }
    .category-result-provider { align-items: flex-start; padding-right: 0; }
    .category-result-provider .card-program-logo { width: 42px; height: 42px; flex-basis: 42px; }
    .category-result-provider span { display: block; padding-right: 50px; font-size: .82rem; line-height: 1.35; }
    .category-result-provider small { display: block; margin-top: 2px; font-size: .72rem !important; }
    .category-result-card .status-badge { top: 16px; right: 16px; padding: 4px 7px; font-size: .65rem !important; }
    .category-result-card h3 { margin: 16px 0 8px; font-size: 1.15rem; line-height: 1.25; text-align: left; }
    .category-result-card > p { margin-bottom: 14px; font-size: .88rem; line-height: 1.5; }
    .category-result-card .card-details { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .category-result-card .card-details > div { padding: 10px; border-radius: 10px; background: #f6f8fb; }
    .category-result-card .card-details span { display: block; margin-bottom: 4px; color: #65758c; font-size: .68rem; line-height: 1.3; }
    .category-result-card .card-details strong { display: block; font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
    .category-result-card .details-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        margin-top: 14px;
        padding: 10px 14px;
        border-radius: 10px;
        background: var(--blue);
        color: #fff;
        font-family: "Plus Jakarta Sans", sans-serif;
        font-size: .82rem;
        font-weight: 800;
        text-decoration: none;
    }

    .detail-shell { width: calc(100% - 24px); padding: 18px 0 48px; }
    .detail-layout { gap: 12px; }
    .detail-hero-card { align-items: center; flex-direction: row; gap: 12px; padding: 16px 14px; border-radius: 16px; }
    .detail-provider-logo { width: 52px; height: 52px; flex-basis: 52px; padding: 6px; border-radius: 13px; }
    .detail-kicker { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: .7rem; }
    .detail-hero-card h1 { font-size: clamp(1.45rem, 7vw, 2rem); line-height: 1.12; letter-spacing: -.03em; }
    .detail-hero-card p { margin-top: 5px; font-size: .9rem; }
    .detail-facts { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px; }
    .detail-facts div { min-height: 88px; padding: 12px; border-radius: 12px; }
    .detail-facts span { margin-bottom: 5px; font-size: .72rem; }
    .detail-facts strong { font-size: .82rem; line-height: 1.4; }
    .detail-section, .official-source-card { padding: 18px 15px; border-radius: 15px; }
    .detail-description, .detail-list > li { font-size: .9rem; }
    .detail-list > li { padding: 11px 12px 11px 38px; }
    .apply-final-card { gap: 18px; padding: 22px 16px; border-radius: 16px; }
}

/* Connect the four desktop cards into one visible process sequence. */
@media (min-width: 1001px) {
    .process-card:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 53px;
        right: -21px;
        z-index: 2;
        width: 20px;
        height: 2px;
        background: #9bb7db;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .75);
    }

    [data-theme="dark"] .process-card:not(:last-child)::after {
        background: #6f98c9;
        box-shadow: 0 0 0 1px rgba(111, 152, 201, .12);
    }
}

/* Resource symbols stand on their own without decorative icon tiles. */
.resource-icon,
[data-theme="dark"] .resource-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    justify-self: start;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Prevent the shared header from widening very narrow phone layouts. */
@media (max-width: 320px) {
    .navbar .logo-text {
        display: none;
    }

    .nav-container {
        width: 100%;
        gap: 8px;
    }

    .nav-actions {
        margin-left: auto;
    }
}

/* High-contrast resource notices for dark mode. */
[data-theme="dark"] .guide-notice {
    border-color: #4d79ad;
    background: #142d4b;
    color: #e8f2ff;
}

[data-theme="dark"] .guide-notice p {
    color: #d8e7fa;
}

[data-theme="dark"] .guide-notice strong {
    color: #ffffff;
}

[data-theme="dark"] .guide-notice svg {
    color: #75b4ff;
}

[data-theme="dark"] .guide-notice.warning {
    border-color: #a86c32;
    background: #352617;
}

[data-theme="dark"] .guide-notice.warning p {
    color: #f6dfc2;
}

[data-theme="dark"] .guide-notice.warning svg {
    color: #ffb765;
}

[data-theme="dark"] .guide-document li {
    color: #cfdef2;
}

[data-theme="dark"] .guide-checklist li::before {
    border-color: #54d3a1;
}

[data-theme="dark"] .danger-list li::before {
    border-color: #ff8b85;
}

/* Keep creator contact actions in the same two-column phone layout. */
@media (max-width: 700px) {
    .creator-contacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .creator-contacts a {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        gap: 6px;
        padding-inline: 7px;
        overflow-wrap: anywhere;
        font-size: clamp(.68rem, 3.2vw, .82rem);
        line-height: 1.2;
        text-align: center;
    }

    .creator-contacts svg {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }
}

/* Keep uploaded portraits inside a predictable frame and away from profile text. */
.creator-photo {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.creator-photo img {
    display: block;
    min-width: 0;
    min-height: 0;
    object-position: center top;
}

.creator-body {
    position: relative;
    z-index: 1;
    min-width: 0;
    background: inherit;
}

.creator-body h3,
.creator-role,
.creator-bio {
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .creator-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .creator-photo {
        width: 100%;
        max-height: 430px;
        aspect-ratio: 4 / 5;
    }

    .creator-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .creator-body {
        width: 100%;
    }
}

@media (max-width: 350px) {
    .category-result-card .card-details { grid-template-columns: 1fr; }
    .detail-facts div { min-height: 82px; padding: 10px; }
}

@media (hover: none) {
    .scholarship-card:hover,
    .category-card:hover,
    .resource-card:hover,
    .creator-card:hover { transform: none; }
}

/* Mobile composition: clean content flow, dedicated photography, compact footer */
@media (max-width: 750px) {
    body.mobile-nav-open { overflow: hidden; }

    .navbar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.98); }
    .nav-container { min-height: 64px; }
    .nav-menu {
        position: fixed;
        inset: 64px 0 auto;
        width: 100%;
        max-height: calc(100dvh - 64px);
        padding: 12px 16px max(22px, env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid #e3eaf3;
        border-radius: 0 0 18px 18px;
        background: #fff;
        box-shadow: 0 24px 45px rgba(13, 33, 62, .18);
    }

    .hero {
        min-height: clamp(590px, 150vw, 720px);
        display: grid;
        align-items: center;
        padding: 32px 0;
        background:
            linear-gradient(90deg, rgba(245,249,255,.99) 0%, rgba(245,249,255,.98) 48%, rgba(245,249,255,.84) 64%, rgba(245,249,255,.08) 88%),
            url("../images/student-hero-optimized.webp") 66% center / cover no-repeat;
        overflow: hidden;
    }
    .hero::before { display: none; }
    .hero-container { display: block; width: min(100% - 28px, var(--container)); }
    .hero-content { width: 72%; max-width: 410px; margin: 0; }
    .hero-badge { max-width: 100%; margin-bottom: 20px; padding: 7px 10px; font-size: .7rem !important; }
    .hero h1 {
        max-width: none;
        margin-bottom: 18px;
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        line-height: 1.03;
        letter-spacing: -.045em;
        text-wrap: balance;
    }
    .hero-content > p { max-width: 31ch; margin-bottom: 22px; font-size: clamp(.84rem, 3.6vw, 1rem); line-height: 1.55; }
    .hero-buttons { grid-template-columns: 1fr; }
    .hero-buttons > * { padding-inline: 12px; font-size: .82rem; }
    .hero-trust { display: grid; gap: 8px; margin-top: 18px; }
    .hero-trust span { font-size: .7rem; }
    .hero-visual { display: none; }
    .hero-visual > * { display: none !important; }

    .footer { padding: 40px 0 max(22px, env(safe-area-inset-bottom)); }
    .footer .section-container { width: min(100% - 32px, var(--container)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 30px 22px; padding-bottom: 30px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 28ch; margin-top: 7px; font-size: .875rem; line-height: 1.4; }
    .footer-links { gap: 2px; }
    .footer-links h4 { margin-bottom: 8px; font-size: .875rem; }
    .footer-links a { min-height: 40px; padding: 8px 0; font-size: .8125rem; line-height: 1.3; }
    .footer-bottom { gap: 8px; padding-top: 20px; font-size: .75rem; line-height: 1.5; }

    .about-section { padding-block: 52px; }
    .about-section > .section-container {
        width: min(calc(100% - 40px), var(--container));
        margin-inline: auto;
    }
    .about-content { max-width: 100%; }
    .about-content h2 {
        margin-top: 10px;
        font-size: clamp(1.8rem, 8vw, 2.35rem);
        line-height: 1.12;
        letter-spacing: -.025em;
    }
    .about-content p { font-size: 1rem; line-height: 1.65; }

    .finder-section { padding-block: 48px; }
    .finder-section .section-heading { margin-bottom: 20px; text-align: left; }
    .finder-section .section-heading h2 { max-width: 18ch; margin-top: 8px; font-size: clamp(1.65rem, 7.5vw, 2.15rem); line-height: 1.12; }
    .finder-section .section-heading p { max-width: 34ch; font-size: .9rem; line-height: 1.55; }
    .finder-panel { padding: 12px; border-radius: 16px; box-shadow: 0 10px 30px rgba(20,48,86,.08); }
    .search-wrapper { height: 52px; margin: 0; padding: 4px 4px 4px 12px; }
    .search-wrapper .search-icon { display: none; }
    .search-wrapper input { min-height: 42px; padding-inline: 2px 8px; }
    .search-submit-button { width: 44px; height: 44px; }
    .mobile-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: 10px; background: #edf4ff; color: #145bc2; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
    .mobile-filter-toggle svg { width: 18px; height: 18px; }
    .finder-panel .filters { display: none; margin-top: 10px; padding-top: 12px; border-top: 1px solid #e5ebf3; }
    .finder-panel .filters.mobile-open { display: grid; }
    .finder-panel .filter-group label { font-size: .75rem; }
    .finder-panel .clear-button { width: 100%; min-height: 44px; border-radius: 9px; background: #f5f7fa; }
    .finder-section .results-header,
    .finder-section #scholarshipContainer,
    .finder-section #emptyState,
    .finder-section .center-button { display: none !important; }
}

.results-search-form { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; max-width: 680px; min-height: 56px; margin-top: 28px; padding: 5px 5px 5px 16px; border: 1px solid #d5e0ec; border-radius: 13px; background: #fff; box-shadow: 0 12px 28px rgba(21,47,83,.08); }
.results-search-form svg { width: 20px; height: 20px; color: #52647d; }
.results-search-form input { min-width: 0; border: 0; outline: 0; color: var(--navy); font: inherit; font-size: 1rem; }
.results-search-form button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.search-results-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.search-results-summary p { margin: 0; color: #52647d; }
.search-results-summary a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--blue); font-weight: 800; text-decoration: none; }
.search-results-summary svg { width: 18px; height: 18px; }
.results-loading { grid-column: 1/-1; padding: 36px 20px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 620px) {
    .search-results-hero { min-height: 0; padding: 32px 18px 24px; background: linear-gradient(135deg,#edf4ff,#f8fbff); }
    .search-results-hero h1 { max-width: 100%; font-size: clamp(1.75rem, 7.8vw, 2rem); line-height: 1.08; }
    .results-search-form { margin-top: 14px; }
    .results-search-form button { width: 46px; padding: 0; }
    .results-search-form button span { display: none; }
    .search-results-summary { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .search-button-loader, .system-loading-indicator::before { animation-duration: 1.5s; }
}

/* Compact mobile information sections */
@media (max-width: 750px) {
    .process-section,
    .categories-section,
    .resources-section { padding-block: 48px; }

    .process-section .section-heading,
    .categories-section .section-heading,
    .resources-section .section-heading { margin-bottom: 24px; text-align: left; }

    .process-section .section-heading h2,
    .categories-section .section-heading h2,
    .resources-section .section-heading h2 {
        max-width: 19ch;
        margin-top: 8px;
        font-size: clamp(1.65rem, 7.5vw, 2.1rem);
        line-height: 1.12;
        letter-spacing: -.025em;
    }

    .process-section .section-heading p,
    .resources-section .section-heading p { max-width: 35ch; font-size: .9rem; line-height: 1.55; }

    .process-grid {
        position: relative;
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 0;
        padding-left: 4px;
    }
    .process-grid::before {
        content: "";
        position: absolute;
        top: 22px;
        bottom: 22px;
        left: 23px;
        width: 2px;
        background: #dbe7f5;
    }
    .process-card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas: "number title" "number copy";
        column-gap: 15px;
        padding: 14px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .process-number {
        position: relative;
        inset: auto;
        z-index: 1;
        grid-area: number;
        display: grid;
        place-items: center;
        align-self: start;
        width: 40px;
        height: 40px;
        border: 2px solid #cfe0f5;
        border-radius: 50%;
        background: #f7fbff;
        color: #1767df;
        font-size: .72rem;
        font-weight: 850;
    }
    .process-icon { display: none; }
    .process-card h3 { grid-area: title; align-self: end; margin: 1px 0 3px; font-size: 1rem; line-height: 1.3; }
    .process-card p { grid-area: copy; margin: 0; font-size: .82rem; line-height: 1.5; }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .category-card {
        min-height: 0;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-content: start;
        column-gap: 10px;
        padding: 14px !important;
        border-radius: 13px;
    }
    .category-icon { grid-row: 1 / span 3; width: 34px; margin: 0; font-size: 1.35rem; }
    .category-card h3 { margin: 1px 0 4px; font-size: .92rem; line-height: 1.25; }
    .category-card p { margin: 0 0 7px; font-size: .72rem; line-height: 1.4; }
    .category-card span { font-size: .7rem; }

    .resources-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .resource-card {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        grid-template-areas: "icon title link" "icon copy link";
        column-gap: 12px;
        align-items: center;
        padding: 15px !important;
        border-radius: 13px;
    }
    .resource-icon { grid-area: icon; display: grid; place-items: center; width: 42px; height: 42px; margin: 0; border-radius: 11px; background: #edf4ff; }
    .resource-card h3 { grid-area: title; margin: 0 0 3px; font-size: .95rem; line-height: 1.3; }
    .resource-card p { grid-area: copy; margin: 0; font-size: .75rem; line-height: 1.45; }
}

/* Header search and popular scholarship home section */
.nav-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle,
.header-search-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}
.theme-toggle:hover,
.header-search-button:hover,
.header-search-button[aria-expanded="true"] { background: #eaf2ff; color: var(--blue); }
.theme-toggle svg,
.header-search-button svg { width: 21px; height: 21px; }
.visitor-account-button { display:inline-grid;place-items:center;width:44px;height:44px;padding:0;overflow:hidden;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--navy);cursor:pointer;transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease; }
.visitor-notification-button{position:relative;display:inline-grid;width:42px;height:42px;place-items:center;border-radius:50%;color:var(--navy)}.visitor-notification-button:hover,.visitor-notification-button:focus-visible{background:var(--blue-light);color:var(--blue)}.visitor-notification-button svg{width:22px;height:22px}.visitor-notification-button[hidden]{display:none!important}
.visitor-account-button:hover,.visitor-account-button:focus-visible { background:#eaf2ff; }
.visitor-account-button.is-authenticated { border-color:#fff; background:#fff; box-shadow:0 0 0 2px #d7e4f5; }
.visitor-account-placeholder{position:relative;display:grid;width:38px;height:38px;overflow:hidden;place-items:center;border:1px solid #b8cce5;border-radius:50%;background:#f8fbff;color:#0d2b4d}.visitor-account-placeholder::after{content:"";position:absolute;left:50%;bottom:-8px;width:27px;height:20px;translate:-50% 0;border-radius:50% 50% 0 0;background:#2f7425}.visitor-account-placeholder svg{position:relative;z-index:1;width:22px;height:22px;transform:translateY(-4px)}.visitor-account-button.is-authenticated .visitor-account-placeholder,.visitor-account-button:not(.is-authenticated) img{display:none!important}.visitor-account-button img{display:block;width:40px;height:40px;border-radius:50%;object-fit:cover}.visitor-account-initials{display:grid;width:40px;height:40px;place-items:center;border-radius:50%;background:#1767df;color:#fff;font-size:13px;font-weight:850}.mobile-account-action{display:none}
/* =====================================================
   VISITOR AUTH DIALOGS (OAuth-only)
   ===================================================== */

.visitor-account-dialog,
.visitor-login-dialog {
  position: fixed;
  inset: 0;
  width: min(calc(100% - 28px), 440px);
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid #d5e1ef;
  border-radius: 20px;
  background: #fff;
  color: #102a4e;
  box-shadow: 0 28px 80px rgba(8, 35, 75, 0.28);
  overflow: hidden;
}
.visitor-account-dialog::backdrop,
.visitor-login-dialog::backdrop {
  background: rgba(8, 27, 52, 0.52);
  backdrop-filter: blur(3px);
}

/* Dialog animation */
.visitor-account-dialog[open],
.visitor-login-dialog[open] {
  animation: dialog-enter 180ms ease-out;
}
@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.visitor-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #102a4e;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
  z-index: 10;
}
.visitor-dialog-close:hover,
.visitor-dialog-close:focus-visible {
  background: #e2e8f0;
  color: #0b1f3a;
  outline: none;
}
.visitor-dialog-close:focus-visible {
  box-shadow: 0 0 0 2px #2864dc;
}
.visitor-dialog-close svg { width: 20px; height: 20px; }

/* =====================================================
   AUTH DIALOG (Sign In)
   ===================================================== */

.visitor-login-dialog { text-align: center; }

.visitor-auth-header {
  padding: 28px 28px 8px;
}
.visitor-auth-brand { display: grid; gap: 8px; }
.visitor-auth-kicker {
  display: block;
  color: #2864dc;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.visitor-auth-header h1 {
  margin: 0;
  color: #102a4e;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}
.visitor-auth-copy {
  margin: 0;
  color: #60728a;
  font-size: 14px;
  line-height: 1.5;
}

/* OAuth section */
.visitor-oauth-section { padding: 8px 24px 16px; }
.visitor-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #7b8ca3;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.visitor-oauth-divider::before,
.visitor-oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dce5f0;
}
.visitor-oauth-divider span { padding: 0 4px; }

.visitor-oauth-buttons {
  display: grid;
  gap: 10px;
}
.visitor-oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #c8d5e5;
  border-radius: 12px;
  background: #fff;
  color: #26354a;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 80ms ease;
}
.visitor-oauth-button:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #b5c7db;
}
.visitor-oauth-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 100, 220, 0.25);
  border-color: #2864dc;
}
.visitor-oauth-button:active:not(:disabled) { transform: scale(0.99); }
.visitor-oauth-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.visitor-oauth-button--google { border-color: #e3e6ea; color: #68717d; box-shadow: 0 7px 18px rgba(20, 34, 53, .06); }
.visitor-oauth-button--google:hover:not(:disabled) { background: #f9fafb; border-color: #cbd1d8; color: #394454; }
.visitor-oauth-button--facebook { border-color: #1877f2; background: #1877f2; color: #fff; box-shadow: 0 8px 20px rgba(24, 119, 242, .22); }
.visitor-oauth-button--facebook:hover:not(:disabled) { border-color: #1168d9; background: #1168d9; }
.visitor-oauth-button--facebook:focus-visible { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,.3), 0 8px 20px rgba(24,119,242,.2); }

.visitor-oauth-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Loading spinner */
.visitor-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(38, 53, 74, 0.2);
  border-top-color: #26354a;
  border-radius: 50%;
  animation: visitor-spin 600ms linear infinite;
}
@keyframes visitor-spin { to { transform: rotate(360deg); } }

/* Footer */
.visitor-auth-footer { padding: 8px 24px 20px; }
.visitor-auth-footnote {
  margin: 0;
  color: #7a8ba2;
  font-size: 11px;
  line-height: 1.5;
}
.visitor-auth-footnote a {
  color: #2864dc;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.visitor-auth-footnote a:hover { color: #1a4db8; }

/* Status message */
.visitor-login-status {
  min-height: 20px;
  margin: 12px 24px 20px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #b42335;
  background: #fff1f2;
  text-align: left;
}
.visitor-login-status:empty { display: none; }
.visitor-login-status.is-success {
  color: #12633e;
  background: #eef8f2;
}

/* =====================================================
   ACCOUNT DIALOG (Signed In)
   ===================================================== */

.visitor-account-dialog { text-align: center; }
.visitor-account-dialog { width: min(calc(100% - 28px), 520px); overflow-y: auto; }

/* Header */
.visitor-account-header {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 52px 20px;
  text-align: center;
}
.visitor-account-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eaf2ff;
  color: #1767df;
  font-size: 28px;
  font-weight: 800;
  flex-shrink: 0;
}
.visitor-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visitor-account-info { display: grid; justify-items: center; gap: 5px; min-width: 0; }
.visitor-account-header h1 {
  margin: 0;
  color: #102a4e;
  font-size: 23px;
  font-weight: 800;
}
.visitor-account-provider { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: #55708f; font-size: 12px; font-weight: 750; }
.visitor-account-provider .visitor-oauth-icon, .visitor-account-provider svg { width: 16px; height: 16px; }
.visitor-account-provider .visitor-oauth-icon circle { fill: #1877f2; }
.visitor-account-provider .visitor-oauth-icon path[fill="#1877F2"] { fill: #fff; }
.visitor-account-email { margin: 0; color: #60728a; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.visitor-student-badge { display: inline-flex; min-height: 27px; align-items: center; margin: -8px auto 18px; padding: 0 11px; border-radius: 999px; background: #e9f3ff; color: #1767df; font-size: 11px; font-weight: 850; }
.visitor-profile-menu { display: grid; margin: 0 24px 18px; overflow: hidden; border: 1px solid #e0e8f2; border-radius: 14px; background: #fff; text-align: left; }
.visitor-profile-menu a, .visitor-profile-menu button { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 1px solid #edf2f7; background: #fff; color: #243a56; font: inherit; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; }
.visitor-profile-menu a, .visitor-profile-menu button { text-align: left; }
.visitor-profile-menu > :last-child { border-bottom: 0; }
.visitor-profile-menu a:hover, .visitor-profile-menu button:hover { background: #f6f9fd; }
.visitor-profile-menu svg { width: 18px; height: 18px; color: #1767df; }
.visitor-profile-menu strong { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 999px; background: #eaf2ff; color: #1767df; font-size: 11px; }
.visitor-recommendations { margin: 0 24px 20px; text-align: left; }
.visitor-recommendations > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.visitor-recommendations h2 { margin: 0; color: #102a4e; font-size: 15px; }
.visitor-recommendations > div:first-child a { color: #1767df; font-size: 11px; font-weight: 800; }
.visitor-recommendation-basis { margin: 5px 0 10px; color: #718198; font-size: 11px; line-height: 1.45; }
.visitor-recommendation-list { display: grid; gap: 7px; }
.visitor-recommendation-list > a { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e0e8f2; border-radius: 11px; background: #f8fbff; color: inherit; text-decoration: none; }
.visitor-recommendation-list > a:hover { border-color: #b9d2f0; }
.visitor-recommendation-list strong, .visitor-recommendation-list small { display: block; }
.visitor-recommendation-list strong { color: #1d3553; font-size: 12px; line-height: 1.35; }
.visitor-recommendation-list small { margin-top: 3px; color: #718198; font-size: 10px; line-height: 1.4; }
.visitor-recommendation-list svg { width: 17px; height: 17px; color: #1767df; }
.visitor-recommendation-list > p { margin: 0; padding: 16px; border-radius: 11px; background: #f6f9fd; color: #60728a; font-size: 12px; line-height: 1.5; }

.visitor-survey-dialog { width: min(calc(100% - 28px), 620px); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #d5e1ef; border-radius: 22px; background: #fff; color: #102a4e; box-shadow: 0 28px 80px rgba(8,35,75,.28); overflow-y: auto; }
.visitor-survey-dialog::backdrop { background: rgba(8,27,52,.56); backdrop-filter: blur(3px); }
.visitor-survey-header { padding: 30px 54px 14px 30px; text-align: left; }
.visitor-survey-header span { color: #1767df; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.visitor-survey-header h1 { margin: 6px 0; font-size: 25px; line-height: 1.2; }
.visitor-survey-header p { margin: 0; color: #60728a; font-size: 13px; line-height: 1.5; }
.visitor-survey-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 8px 30px 28px; text-align: left; }
.visitor-survey-form > label { display: grid; gap: 6px; color: #2d425d; font-size: 12px; font-weight: 800; }
.visitor-survey-form > label:nth-of-type(3) { grid-column: 1 / -1; }
.visitor-survey-form input, .visitor-survey-form select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #cbd7e5; border-radius: 11px; background: #fff; color: #102a4e; font: inherit; font-size: 13px; }
.visitor-survey-form fieldset, .visitor-survey-note, .visitor-survey-actions, .visitor-survey-form .visitor-login-status { grid-column: 1 / -1; }
.visitor-survey-form fieldset { margin: 0; padding: 0; border: 0; }
.visitor-survey-form legend { margin-bottom: 7px; color: #2d425d; font-size: 12px; font-weight: 800; }
.visitor-survey-options { display: flex; flex-wrap: wrap; gap: 7px; }
.visitor-survey-options label { cursor: pointer; }
.visitor-survey-options input { position: absolute; opacity: 0; pointer-events: none; }
.visitor-survey-options span { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid #cdd9e7; border-radius: 999px; color: #526980; font-size: 11px; font-weight: 750; }
.visitor-survey-options input:checked + span { border-color: #1767df; background: #eaf2ff; color: #1158bd; }
.visitor-survey-options input:focus-visible + span { box-shadow: 0 0 0 3px rgba(40,100,220,.2); }
.visitor-survey-note { display: flex; gap: 9px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #f3f8ff; color: #51677e; font-size: 11px; line-height: 1.45; }
.visitor-survey-note svg { width: 18px; height: 18px; flex: 0 0 auto; color: #1767df; }
.visitor-survey-actions { display: flex; justify-content: flex-end; gap: 9px; }
.visitor-survey-actions button { min-height: 43px; padding: 0 17px; border: 1px solid #ccd8e6; border-radius: 10px; background: #fff; color: #40566f; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.visitor-survey-actions button[type="submit"] { border-color: #0d2b4d; background: #0d2b4d; color: #fff; }
.visitor-account-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #60728a;
  font-size: 13px;
  line-height: 1.5;
}
.visitor-account-separator {
  color: #c9d5e5;
  font-weight: 400;
}
.visitor-account-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 24px 22px; padding: 14px; border: 1px solid #e1e9f2; border-radius: 13px; background: #f7faff; text-align: left; }
.visitor-account-summary div { min-width: 0; }
.visitor-account-summary span { display: block; margin-bottom: 4px; color: #7a8ba2; font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.visitor-account-summary strong { display: block; color: #243a56; font-size: 13px; line-height: 1.35; }

/* Inquiry section */
.visitor-inquiry-section { padding: 0 24px 8px; text-align: left; }
.visitor-section-title {
  margin: 0 0 16px;
  color: #102a4e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.visitor-inquiry-history {
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.visitor-history-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #60728a;
  font-size: 13px;
}
.visitor-history-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 28px 16px;
  color: #6c7d93;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.visitor-history-empty svg { width: 22px; height: 22px; color: #a5b4c7; flex-shrink: 0; }
.visitor-history-error { color: #b42335; }
.visitor-history-error svg { color: #fca5a5; }

.visitor-history-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #e0e8f2;
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.visitor-history-item:hover {
  border-color: #c9d9ee;
  box-shadow: 0 2px 8px rgba(8, 35, 75, 0.06);
}
.visitor-history-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.visitor-history-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.visitor-history-status.is-open {
  background: #eef8f2;
  color: #12633e;
}
.visitor-history-status.is-closed {
  background: #f1f5f9;
  color: #64748b;
}
.visitor-history-meta time {
  color: #8291a4;
  font-size: 11px;
  font-weight: 500;
}
.visitor-history-preview {
  margin: 0;
  color: #304862;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Footer */
.visitor-account-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #eef2f7;
}
.visitor-signout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #efb8c0;
  border-radius: 10px;
  background: #fff7f7;
  color: #a82438;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.visitor-signout-button:hover:not(:disabled) {
  background: #fff1f1;
  border-color: #e899a0;
}
.visitor-signout-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 36, 56, 0.25);
}
.visitor-signout-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.visitor-signout-button svg { width: 18px; height: 18px; }

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 480px) {
  .visitor-account-dialog,
  .visitor-login-dialog {
    width: calc(100% - 16px);
    border-radius: 16px;
  }
  .visitor-account-header {
    gap: 12px;
    padding: 26px 44px 18px;
  }
  .visitor-account-avatar { width: 72px; height: 72px; font-size: 24px; }
  .visitor-auth-header { padding: 24px 20px 4px; }
  .visitor-oauth-section { padding: 8px 20px 12px; }
  .visitor-oauth-button { min-height: 48px; font-size: 13px; }
  .visitor-auth-footer { padding: 8px 20px 16px; }
  .visitor-inquiry-section { padding: 0 20px 4px; }
  .visitor-account-footer { padding: 12px 20px 20px; }
  .visitor-survey-header { padding: 26px 48px 12px 20px; }
  .visitor-survey-form { grid-template-columns: 1fr; padding: 6px 20px 22px; }
  .visitor-survey-actions { flex-direction: column-reverse; }
  .visitor-survey-actions button { width: 100%; }
}
.card-top-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.card-save-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 14px;border:1px solid #cbd8e7;border-radius:10px;background:#fff;color:var(--navy);font-family:"Plus Jakarta Sans",sans-serif;font-size:13px;font-weight:750;cursor:pointer}.card-save-button.card-save-icon{width:40px;min-height:40px;padding:0;border-radius:50%}.card-save-button svg{width:18px;height:18px;color:#d92d4c}.card-save-button:hover,.card-save-button.is-saved{border-color:#f2b8c0;background:#fff2f4;color:#b4233b}.card-save-button.is-saved svg{fill:currentColor}[data-theme="dark"] .card-save-button{border-color:#3a506d;background:#162337;color:#dce8f7}[data-theme="dark"] .card-save-button:hover,[data-theme="dark"] .card-save-button.is-saved{border-color:#8e4051;background:#321d28;color:#ff8fa1}.detail-save-button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 11px;border:1px solid #cbd8e7;border-radius:999px;background:#fff;color:var(--navy);font-size:12px;font-weight:800}.detail-save-button svg{width:17px;height:17px;color:#d92d4c}.detail-save-button:hover,.detail-save-button.is-saved{border-color:#f2b8c0;background:#fff2f4;color:#b4233b}.detail-save-button.is-saved svg{fill:currentColor}[data-theme="dark"] .detail-save-button{border-color:#3a506d;background:#162337;color:#dce8f7}[data-theme="dark"] .detail-save-button.is-saved{border-color:#8e4051;background:#321d28;color:#ff8fa1}

.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
.header-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: max(5%, calc((100% - var(--container)) / 2));
    z-index: 1010;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    visibility: hidden;
    width: min(520px, calc(100% - 32px));
    min-height: 58px;
    padding: 6px 6px 6px 16px;
    border: 1px solid #d4dfed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(13,33,62,.18);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.header-search-panel.active { visibility: visible; opacity: 1; transform: none; }
.header-search-panel > svg { width: 20px; height: 20px; color: #60728a; }
.header-search-panel input { min-width: 0; min-height: 44px; border: 0; outline: 0; color: var(--navy); font: inherit; font-size: 1rem; }
.header-search-panel button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.header-search-panel button.is-loading { color: transparent; pointer-events: none; }
.header-search-panel button.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: search-spin 650ms linear infinite; }
.finder-section .finder-panel { display: none; }

.results-filter-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; gap: 12px; margin-bottom: 22px; padding: 16px; border: 1px solid #d9e3ef; border-radius: 14px; background: #fff; }
.results-filter-panel label { display: grid; gap: 6px; color: #40536b; font-size: .75rem; font-weight: 800; }
.results-filter-panel select { width: 100%; min-height: 46px; padding: 0 11px; border: 1px solid #cbd8e7; border-radius: 9px; background: #fff; color: var(--navy); font: inherit; font-size: .9rem; }
.results-filter-panel button { align-self: end; min-height: 46px; padding: 0 14px; border: 0; border-radius: 9px; background: #edf3fb; color: #174f9e; font: inherit; font-weight: 800; cursor: pointer; }

@media (max-width: 750px) {
    .nav-container { position: relative; }
    .header-search-button { width: 44px; height: 44px; }
    .header-search-panel { position: fixed; top: 68px; right: 12px; left: 12px; width: auto; }
    .header-search-panel button { width: 46px; padding: 0; }
    .header-search-panel button span { display: none; }

    .finder-section .section-heading { text-align: center; }
    .finder-section .section-heading h2,
    .finder-section .section-heading p { margin-inline: auto; }
    .finder-section .results-header { display: flex !important; }
    .finder-section #scholarshipContainer { display: grid !important; }
    .finder-section .center-button { display: flex !important; }
    .finder-section .results-note { display: none; }
    .finder-section .scholarship-grid {
        grid-template-columns: none !important;
        grid-auto-flow: column;
        grid-auto-columns: min(82vw, 320px);
        gap: 10px;
        overflow-x: auto;
        padding: 2px 2px 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }
    .finder-section .scholarship-card { min-height: 100%; padding: 16px; scroll-snap-align: start; }

    .results-filter-panel { grid-template-columns: 1fr; gap: 10px; padding: 13px; }
    .results-filter-panel button { width: 100%; }
}
@media (max-width:900px){.visitor-account-button{display:none}.mobile-account-action{display:flex!important;width:100%;min-height:46px;align-items:center;gap:10px;padding:0 13px;border:0;border-top:1px solid #dbe4ef;border-radius:0;background:transparent;color:#174f9e;font:inherit;font-size:14px;font-weight:800;text-align:left;cursor:pointer}.mobile-account-action.is-authenticated{color:#174f9e}.mobile-account-action img,.mobile-account-initials{width:30px;height:30px;flex:0 0 30px;border-radius:50%;object-fit:cover}.mobile-account-initials{display:grid;place-items:center;background:#1767df;color:#fff;font-size:10px}}

@media (max-width: 390px) {
    .logo-text strong { font-size: 14px; }
    .nav-actions { gap: 2px; }
    .theme-toggle, .header-search-button, .mobile-menu-button { width: 42px !important; height: 42px !important; }
}

/* =====================================================
   LIGHT / DARK THEME
===================================================== */

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body,
.navbar,
.info-header,
.scholarship-card,
.category-card,
.resource-card,
.process-card,
.modal-content,
.finder-panel,
.creator-card,
.creator-empty,
.legal-document,
.guide-document > section,
.detail-hero-card,
.detail-facts div,
.detail-section,
.official-source-card,
.scholarship-social,
.results-search-form,
.results-filter-panel,
.header-search-panel {
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

[data-theme="dark"] {
    --navy: #e8f1ff;
    --navy-light: #c8dcfa;
    --blue: #69a7ff;
    --blue-dark: #8bbaff;
    --blue-light: #162d4d;
    --green: #55d38a;
    --green-light: #123824;
    --yellow: #f9bd4b;
    --red: #ff7373;
    --text: #e8eef7;
    --muted: #a8b5c7;
    --border: #2b3d55;
    --background: #0b1422;
    --white: #111d2e;
    --shadow: 0 14px 38px rgba(0, 0, 0, .3);
}

[data-theme="dark"] body,
[data-theme="dark"] .info-page,
[data-theme="dark"] .category-results-page,
[data-theme="dark"] .details-page {
    background: #0b1422;
    color: var(--text);
}

[data-theme="dark"] .navbar,
[data-theme="dark"] .info-header {
    border-color: var(--border);
    background: rgba(11, 20, 34, .94);
}

[data-theme="dark"] .nav-menu {
    border-color: var(--border);
    background: #111d2e;
    box-shadow: 0 24px 45px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .logo-text strong,
[data-theme="dark"] .info-brand strong,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] strong,
[data-theme="dark"] .header-search-panel input,
[data-theme="dark"] .results-filter-panel select {
    color: var(--text);
}

[data-theme="dark"] p,
[data-theme="dark"] .nav-menu a,
[data-theme="dark"] .info-header nav a,
[data-theme="dark"] .legal-document p,
[data-theme="dark"] .category-results-toolbar label,
[data-theme="dark"] .results-filter-panel label {
    color: var(--muted);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .header-search-button,
[data-theme="dark"] .visitor-notification-button,
[data-theme="dark"] .mobile-menu-button {
    color: var(--text);
}

@media (max-width: 750px) {
    [data-theme="dark"] .header-search-button,
    [data-theme="dark"] .mobile-menu-button {
        border-color: #344a66 !important;
        background: #162337 !important;
        color: #dce8f7;
        box-shadow: none;
    }

    [data-theme="dark"] .header-search-button:active,
    [data-theme="dark"] .mobile-menu-button:active {
        background: #1c3557 !important;
    }
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .header-search-button:hover,
[data-theme="dark"] .header-search-button[aria-expanded="true"],
[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .info-header nav a:hover,
[data-theme="dark"] .info-header nav a[aria-current="page"] {
    background: #162d4d;
    color: #8bbaff;
}

[data-theme="dark"] .hero {
    background:
        linear-gradient(90deg, rgba(7,16,29,.99) 0%, rgba(7,16,29,.96) 38%, rgba(7,16,29,.64) 58%, rgba(7,16,29,.18) 78%, rgba(7,16,29,.08) 100%),
        linear-gradient(180deg, rgba(9,25,46,.24), rgba(5,14,27,.48)),
        url("../images/student-hero-optimized.webp") 68% center / cover no-repeat;
}

[data-theme="dark"] .info-hero,
[data-theme="dark"] .search-results-hero {
    background: radial-gradient(circle at 85% 20%, #18365d 0, transparent 34%), linear-gradient(180deg, #101f34 0%, #0b1422 100%);
}
[data-theme="dark"] .search-results-hero {
  background:
    linear-gradient(
      90deg,
      rgba(5, 15, 28, 1) 0%,
      rgba(5, 15, 28, 1) 24%,
      rgba(5, 15, 28, 0.97) 31%,
      rgba(5, 15, 28, 0.84) 40%,
      rgba(5, 15, 28, 0.60) 49%,
      rgba(5, 15, 28, 0.34) 59%,
      rgba(5, 15, 28, 0.12) 70%,
      rgba(5, 15, 28, 0) 80%
    ),
    url("../images/student-hero-optimized.webp") 68% center / cover no-repeat !important;
}

@media (max-width: 750px) {
    [data-theme="dark"] .hero {
        background:
            linear-gradient(90deg, rgba(7,16,29,.99) 0%, rgba(7,16,29,.96) 48%, rgba(7,16,29,.76) 66%, rgba(7,16,29,.20) 90%),
            linear-gradient(180deg, rgba(9,25,46,.18), rgba(5,14,27,.52)),
            url("../images/student-hero-optimized.webp") 66% center / cover no-repeat;
    }
}

[data-theme="dark"] .finder-section,
[data-theme="dark"] .process-section,
[data-theme="dark"] .categories-section,
[data-theme="dark"] .resources-section,
[data-theme="dark"] .about-section,
[data-theme="dark"] .category-results-section,
[data-theme="dark"] .creator-section {
    background: #0b1422;
}

[data-theme="dark"] .stats-section,
[data-theme="dark"] .quiz-content {
    background: #07101d;
    color: #e8eef7;
}

[data-theme="dark"] .stat-item strong,
[data-theme="dark"] .stat-item span {
    color: #d9e5f4;
}

[data-theme="dark"] .hero-trust {
    color: #9bacc1;
}

[data-theme="dark"] .secondary-button,
[data-theme="dark"] .outline-button,
[data-theme="dark"] .apply-final-button {
    border-color: #3a506d;
    background: #162337;
    color: #dce8f7;
}

[data-theme="dark"] .hero::before,
[data-theme="dark"] .category-results-hero::before {
    background: linear-gradient(90deg, rgba(11,20,34,.97), rgba(11,20,34,.84) 58%, rgba(11,20,34,.28));
}

[data-theme="dark"] .category-results-hero {
    background: linear-gradient(90deg,rgba(11,20,34,.98) 0%,rgba(11,20,34,.86) 48%,rgba(11,20,34,.35) 76%),url('../images/student-hero-optimized.webp') center 35%/cover;
}

[data-theme="dark"] .scholarship-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .process-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .finder-panel,
[data-theme="dark"] .creator-card,
[data-theme="dark"] .creator-empty,
[data-theme="dark"] .legal-document,
[data-theme="dark"] .guide-document > section,
[data-theme="dark"] .detail-hero-card,
[data-theme="dark"] .detail-facts div,
[data-theme="dark"] .detail-section,
[data-theme="dark"] .official-source-card,
[data-theme="dark"] .scholarship-social,
[data-theme="dark"] .physical-submission-card,
[data-theme="dark"] .system-loading,
[data-theme="dark"] .results-search-form,
[data-theme="dark"] .results-filter-panel,
[data-theme="dark"] .header-search-panel {
    border-color: var(--border);
    background: #111d2e;
    color: var(--text);
    box-shadow: 0 14px 36px rgba(0,0,0,.2);
}

[data-theme="dark"] .social-student-mark { background: #17365f; color: #8bbaff; }
[data-theme="dark"] .social-send-button { border-color: #3a506d; background: #162337; color: #dce8f7; }
[data-theme="dark"] .social-send-button:hover { border-color: #58769d; background: #1b2d45; }

[data-theme="dark"] .system-loading-indicator { border-color: #344a66; background: #162337; }
[data-theme="dark"] .system-loading-copy strong { color: var(--text); }

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .results-filter-panel select,
[data-theme="dark"] .category-results-toolbar input {
    border-color: #344a66;
    background: #0d1929;
    color: var(--text);
}

[data-theme="dark"] .info-box,
[data-theme="dark"] .meta-box,
[data-theme="dark"] .detail-list > li,
[data-theme="dark"] .category-result-card .card-details > div,
[data-theme="dark"] .guide-sources,
[data-theme="dark"] .guide-sources a,
[data-theme="dark"] .legal-updated,
[data-theme="dark"] .creator-photo {
    border-color: var(--border) !important;
    background: #162337 !important;
    color: var(--text);
}

[data-theme="dark"] .physical-location,
[data-theme="dark"] .physical-submission-actions .secondary-button {
    border-color: var(--border);
    background: #162337;
    color: var(--text);
}

[data-theme="dark"] .meta-box small {
    color: #9fb0c7;
}

[data-theme="dark"] .meta-box strong {
    color: #edf4ff;
}

[data-theme="dark"] .provider {
    color: #aebdd0;
}

[data-theme="dark"] .modal-close,
[data-theme="dark"] .clear-button,
[data-theme="dark"] .results-filter-panel button {
    background: #1b2b42;
    color: #b9c9dc;
}

[data-theme="dark"] .footer,
[data-theme="dark"] .info-footer,
[data-theme="dark"] .disclaimer-section,
[data-theme="dark"] .apply-final-card {
    background: #07101d;
    color: #e8eef7;
}

[data-theme="dark"] .footer p,
[data-theme="dark"] .footer a,
[data-theme="dark"] .footer span,
[data-theme="dark"] .info-footer * {
    color: #c4d0df;
}

/* Accessible semantic contrast across public cards and both themes. */
.meta-box small,
.card-meta small { color: #52637a; }
.process-number { color: #667b96; }
.footer-logo .logo-text span,
.footer .section-eyebrow { color: #8fc2ff; }
#shareFacebookButton { background: #0b5fcc; }

[data-theme="dark"] {
    --blue: #2d7eea;
}
[data-theme="dark"] .primary-button,
[data-theme="dark"] .card-button.primary,
[data-theme="dark"] .results-search-form button { background: #1c64c7; color: #fff; }
[data-theme="dark"] .creator-contacts a,
[data-theme="dark"] .creator-contacts a span { color: #86baff; }
[data-theme="dark"] .legal-summary div { border-color: #344a66; background: #162337; }
[data-theme="dark"] .legal-summary strong { color: #edf4ff; }
[data-theme="dark"] .legal-summary p { color: #b8c6d8; }
[data-theme="dark"] .legal-document li { color: #c6d2e1; }
[data-theme="dark"] .legal-document a { color: #86baff; }
[data-theme="dark"] .legal-document a:hover { color: #b5d4ff; }
[data-theme="dark"] .legal-document a:focus-visible { outline-color: #86baff; }

@media (prefers-reduced-motion: reduce) {
    body,
    .navbar,
    .info-header,
    .scholarship-card,
    .category-card,
    .resource-card,
    .process-card,
    .modal-content { transition: none; }
}

@media (max-width: 390px) {
    .hero {
        min-height: 600px;
        padding-block: 28px;
        background-position: 64% center;
    }
    .hero-container { width: calc(100% - 22px); }
    .hero-content { width: 74%; }
    .hero h1 { font-size: clamp(1.75rem, 8.3vw, 2.1rem); }
    .hero-content > p { font-size: .82rem; }
    .footer .section-container { width: calc(100% - 28px); }
    .about-section > .section-container { width: calc(100% - 40px); }
}

@media (max-width: 750px) {
    body.search-results-page .results-filter-panel {
        display: flex;
        grid-template-columns: none;
        align-items: flex-end;
        gap: 8px;
        padding: 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }
    body.search-results-page .results-filter-panel label {
        display: grid;
        grid-template-columns: 1fr;
        flex: 0 0 154px;
        gap: 5px;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: .7rem;
        scroll-snap-align: start;
    }
    body.search-results-page .results-filter-panel select {
        min-height: 42px;
        padding: 0 28px 0 10px;
        border: 1px solid #cbd8e7;
        border-radius: 9px;
        font-size: .8rem;
    }
    body.search-results-page .results-filter-panel button {
        width: auto;
        min-width: 112px;
        min-height: 42px;
        flex: 0 0 112px;
        white-space: nowrap;
        scroll-snap-align: end;
    }
}

/* Final compact two-filter arrangement */
body.search-results-page .results-filter-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 10px 12px;
    overflow: visible;
    padding: 12px;
}
body.search-results-page .results-filter-panel label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
body.search-results-page .results-filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd8e7;
    border-radius: 9px;
}
body.search-results-page .results-filter-panel button {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(180px, 100%);
    min-height: 40px;
}

@media (max-width: 380px) {
    body.search-results-page .results-filter-panel { gap: 8px; padding: 10px; }
    body.search-results-page .results-filter-panel label { font-size: .66rem; }
    body.search-results-page .results-filter-panel select { padding-inline: 8px 24px; font-size: .74rem; }
}

@media (max-width: 750px) {
    body.search-results-page .search-results-hero { padding-bottom: 18px; }
    body.search-results-page .category-results-section { padding-top: 12px; }
}

/* Use the compact menu before the desktop links run out of room. */
@media (max-width: 900px) {
    body.mobile-nav-open { overflow: hidden; }
    .nav-container { min-height: 68px; padding-inline: 16px; }
    .nav-menu {
        position: fixed;
        inset: 68px 0 auto;
        z-index: 1001;
        display: none;
        width: 100%;
        max-height: calc(100dvh - 68px);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px max(20px, env(safe-area-inset-bottom));
        overflow-y: auto;
        border: 0;
        border-top: 1px solid var(--border);
        border-radius: 0 0 16px 16px;
        background: #fff;
        box-shadow: 0 20px 40px rgba(13, 33, 62, .16);
    }
    .nav-menu.active { display: flex; }
    .nav-menu a {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        padding: 0 13px;
        border-radius: 9px;
    }
    .mobile-menu-button { display: inline-grid; place-items: center; }
    [data-theme="dark"] .nav-menu {
        border-color: var(--border);
        background: #111d2e;
    }
}

/* Keep the desktop navigation surface evenly padded with soft corners. */
@media (min-width: 901px) {
    .nav-menu {
        gap: 6px;
        padding: 5px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(247, 249, 252, .86);
        box-shadow: none;
    }

    .nav-menu a {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        padding: 0 12px;
        border-radius: 9px;
        white-space: nowrap;
    }

    .nav-menu a:hover,
    .nav-menu a:focus-visible,
    .nav-menu a[aria-current="page"] {
        background: var(--blue-light);
    }

    [data-theme="dark"] .nav-menu {
        border-color: #2b3c53;
        background: #111d2e;
        box-shadow: none;
    }
}

/* Let scholarship photos use the full phone viewport when opened. */
@media (max-width: 520px) {
    .image-lightbox {
        width: auto;
        height: auto;
        padding: 0;
        overflow: hidden;
    }

    .image-lightbox img {
        width: auto;
        height: auto;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        object-fit: contain;
    }

    .image-lightbox #closeLightbox {
        top: max(8px, env(safe-area-inset-top));
        right: 8px;
        background: rgba(2, 12, 27, .72);
    }

    .image-lightbox .lightbox-navigation {
        background: rgba(2, 12, 27, .68);
    }
}

/* Final whole-card link behavior: no directional badge is needed. */
.category-card::after,
.resource-card .resource-link::after {
    content: none !important;
}

.resource-card .resource-link {
    display: none !important;
}

.category-card,
.resource-card {
    position: relative;
    transform-origin: center;
    transition:
        transform 190ms cubic-bezier(.2, .8, .2, 1),
        background-color 190ms ease,
        border-color 190ms ease,
        box-shadow 190ms ease;
}

.card-direction {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #c9d9ee;
    border-radius: 10px;
    background: #f3f7fc;
    color: #245fae;
    padding: 0 !important;
    text-decoration: none !important;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.card-direction svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
}

.primary-button,
.outline-button,
.modal-apply-button,
.details-link,
.apply-final-button,
.results-search-form button {
    gap: 8px;
}

.primary-button svg,
.outline-button svg,
.modal-apply-button svg,
.details-link svg,
.apply-final-button svg,
.results-search-form button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.results-search-form button svg {
    color: currentColor;
}

.resource-card:hover .card-direction,
.resource-card:focus-visible .card-direction {
    transform: translateX(2px);
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

[data-theme="dark"] .card-direction {
    border-color: #78adf5;
    background: #245b9f;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}

[data-theme="dark"] .resource-icon {
    border: 1px solid #496d98;
    background: #203a5c;
    color: #e8f2ff;
}

[data-theme="dark"] .resource-icon svg,
[data-theme="dark"] .category-icon svg {
    color: #e8f2ff;
    stroke-width: 2.4;
}

[data-theme="dark"] .category-icon {
    color: #e8f2ff;
}

@media (hover: hover) and (pointer: fine) {
    .category-card:hover,
    .resource-card:hover {
        transform: translateY(-3px) scale(1.018);
        border-color: #79aaf0;
        background: #f7fbff;
        box-shadow: 0 15px 32px rgba(16, 42, 79, .12);
    }

    [data-theme="dark"] .category-card:hover,
    [data-theme="dark"] .resource-card:hover {
        border-color: #5687ca;
        background: #162943;
    }
}

.category-card:active,
.resource-card:active {
    transform: scale(.985);
}

.category-card:focus-visible,
.resource-card:focus-visible {
    transform: translateY(-2px) scale(1.012);
    border-color: var(--blue);
    background: #f7fbff;
}

[data-theme="dark"] .category-card:focus-visible,
[data-theme="dark"] .resource-card:focus-visible {
    background: #162943;
}

@media (max-width: 700px) {
    .resource-card {
        padding-right: 48px !important;
    }

    .resource-card {
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-areas: "icon title" "icon copy";
    }

    .card-direction {
        right: 10px;
        top: 50%;
        bottom: auto;
        width: 30px;
        height: 30px;
        transform: translateY(-50%);
        border-radius: 9px;
    }

    .resource-card:hover .card-direction,
    .resource-card:focus-visible .card-direction {
        transform: translate(2px, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-card,
    .resource-card {
        transition: background-color 120ms ease, border-color 120ms ease;
    }

    .category-card:hover,
    .category-card:active,
    .category-card:focus-visible,
    .resource-card:hover,
    .resource-card:active,
    .resource-card:focus-visible {
        transform: none;
    }

    .card-direction,
    .resource-card:hover .card-direction,
    .resource-card:focus-visible .card-direction {
        transform: none;
        transition: none;
    }
}

/* Preserve the connected mobile process timeline in dark mode. */
@media (max-width: 700px) {
    [data-theme="dark"] .process-grid::before {
        background: #557aa8;
        box-shadow: 0 0 0 1px rgba(139, 186, 255, .08);
    }

    [data-theme="dark"] .process-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    [data-theme="dark"] .process-number {
        border-color: #7eace6;
        background: #16355b;
        color: #ffffff;
    }
}

/* Final resource-icon reset after mobile and theme component rules. */
.resource-icon,
[data-theme="dark"] .resource-icon {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
/* Public website inquiry launcher and panel. */
.inquiry-launcher { position: fixed; right: max(22px,env(safe-area-inset-right)); bottom: max(22px,env(safe-area-inset-bottom)); z-index: 1100; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 11px 16px; border: 0; border-radius: 999px; background: #1565c0; color: #fff; box-shadow: 0 12px 30px rgba(8,35,75,.24); font: inherit; font-weight: 800; cursor: pointer; }
.inquiry-launcher svg { width: 20px; }
.inquiry-panel { position: fixed; right: max(22px,env(safe-area-inset-right)); bottom: max(82px,calc(env(safe-area-inset-bottom) + 64px)); z-index: 1200; width: min(calc(100vw - 32px),390px); padding: 0; border: 1px solid #d9e2ef; border-radius: 18px; background: #fff; color: #102a4e; box-shadow: 0 24px 64px rgba(8,35,75,.25); }
.inquiry-panel:not([hidden]) { display: block; }
.inquiry-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px; border-bottom: 1px solid #e2e8f0; }
.inquiry-panel-head > div { display: grid; gap: 4px; }
.inquiry-panel-head strong { font-size: 18px; }
.inquiry-panel-head span { color: #5f718d; font-size: 12px; line-height: 1.45; }
.inquiry-panel-head button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 0; border-radius: 9px; background: #f1f5f9; color: #102a4e; }
.inquiry-panel form { display: grid; gap: 13px; padding: 18px; }
.inquiry-panel label { display: grid; gap: 6px; color: #17365f; font-size: 13px; font-weight: 750; }
.inquiry-panel input, .inquiry-panel textarea, .inquiry-panel select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9d5e5; border-radius: 9px; background: #fff; color: #102a4e; font: inherit; }
.inquiry-panel input:focus,.inquiry-panel textarea:focus,.inquiry-panel select:focus{border-color:#4f8fe5;outline:3px solid rgba(23,105,224,.12)}
.inquiry-panel textarea { min-height: 110px; resize: vertical; }
.inquiry-panel input[readonly]{background:#f3f7fc;color:#526987}.inquiry-login-gate{display:grid;justify-items:center;gap:10px;padding:26px 20px;text-align:center}.inquiry-login-gate[hidden]{display:none}.inquiry-login-gate>svg{width:34px;height:34px;color:#1767df}.inquiry-login-gate>strong{color:#102a4e;font-size:17px}.inquiry-login-gate>p{margin:0;color:#60728a;font-size:13px;line-height:1.55}.inquiry-login-gate>button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin-top:5px;border:1px solid #c8d5e5;border-radius:10px;background:#fff;color:#26354a;font:inherit;font-weight:800;cursor:pointer}.google-mark{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;color:#4285f4;font-family:Arial,sans-serif;font-size:18px;font-weight:900}
.inquiry-status { min-height: 18px; margin: 0; color: #12633e; font-size: 12px; }
@media (max-width: 520px) { .inquiry-launcher { right: 14px; bottom: 14px; } .inquiry-launcher span { display: none; } .inquiry-panel { inset: auto 10px 72px; width: auto; } }

/* Final support inbox direction: a calm, split-pane student support desk. */
.messages-panel { display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;width: min(860px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 96px)); border-color: #cddbea; border-radius: 18px; background: #f4f7fb; box-shadow: 0 28px 80px rgba(7, 36, 72, .28); }
.messages-panel:not([hidden]) { display:grid; }
.messages-panel[hidden] { display: none !important; }
.messages-panel [hidden] { display: none !important; }
.messages-panel .inquiry-panel-head { min-height: 88px; padding: 18px 22px; background: #0d3568; }
.messages-panel .inquiry-panel-head strong { font-size: 22px; letter-spacing: -.35px; }
.messages-panel .inquiry-panel-head span:last-child { max-width: 40ch; color: #d8e6f7; }
.messages-panel .inquiry-panel-head button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; }
.messages-panel .inquiry-panel-body { position:relative;display: grid; min-height:0;overflow:hidden;grid-template-columns: minmax(260px, 31%) minmax(0, 1fr); background: #f4f7fb; }
.messages-panel:not(.is-thread-open) .messages-list-view { grid-column: 1 / -1; }
.messages-panel .messages-list-view { min-width: 0; min-height: 0; border-right: 1px solid #dbe4ee; background: #fff; }
.messages-panel .messages-toolbar { padding: 20px 18px 12px; }
.messages-panel .messages-toolbar h2 { font-size: 21px; letter-spacing: -.35px; }
.messages-panel .messages-search { margin: 0 18px 13px; min-height: 42px; border-color: #d3dfeb; background: #f4f7fb; }
.messages-panel .messages-search input { font-size: 13px; }
.messages-panel .messages-list { padding: 0 10px 14px; }
.messages-panel .message-conversation-item { padding: 13px 10px; border: 1px solid transparent; border-radius: 11px; background: transparent; }
.messages-panel .message-conversation-item + .message-conversation-item { margin-top: 3px; }
.messages-panel .message-conversation-item:hover, .messages-panel .message-conversation-item:focus-visible { border-color: #d8e5f2; background: #f5f9fe; }
.messages-panel .message-conversation-item.is-unread { border-left: 3px solid #1769e0; background: #edf5ff; }
.messages-panel .message-conversation-icon { width: 36px; height: 36px; border-radius: 11px; }
.messages-panel .message-conversation-copy strong { font-size: 13px; }
.messages-panel .message-conversation-copy small { color: #526987; font-size: 11px; line-height: 1.35; }
.messages-panel .message-conversation-copy time { font-size: 10px; }
.messages-launcher-badge { display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border: 2px solid #123f77; border-radius: 999px; background: #e24d5c; color: #fff; font-size: 10px; line-height: 1; }
.messages-launcher-badge[hidden] { display: none !important; }
.messages-panel .messages-thread-view { min-width: 0; background: #f7f9fc; }
.messages-panel .message-thread-header { min-height: 78px; padding: 13px 18px; }
.messages-panel .message-thread-header h2 { font-size: 17px; }
.messages-panel .message-thread-header > div > span:last-child { color: #167447; font-size: 10px; letter-spacing: .3px; text-transform: uppercase; }
.messages-panel .message-thread-body { padding: 22px 20px; background: #f7f9fc; }
.messages-panel .support-message { max-width: 78%; padding: 11px 13px; border-radius: 14px 14px 14px 5px; box-shadow: 0 3px 9px rgba(19, 52, 91, .04); }
.messages-panel .support-message.is-user { border-radius: 14px 14px 5px 14px; background: #dcecff; }
.messages-panel .support-message p { font-size: 13px; line-height: 1.6; }
.messages-panel .message-reply-composer { padding: 13px 16px 7px; background: #fff; }
.messages-panel .message-reply-composer textarea { min-height: 44px; border-radius: 11px; background: #f6f8fb; font-size: 13px; }
.messages-panel .message-reply-composer textarea:focus { border-color: #6a9de0; outline: 3px solid rgba(36,99,235,.12); }
.messages-panel .message-reply-composer button { width: 44px; height: 44px; border-radius: 11px; }
.messages-panel .message-reply-status { padding: 0 16px 8px; }
.messages-panel .messages-new-view { display:flex;min-height:0;overflow:hidden;grid-column: 1 / -1;flex-direction:column;background: #fff; }
.messages-panel .messages-new-view>.inquiry-back-button{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;min-height:36px;margin:12px 16px 0;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#42617f;font:inherit;font-size:12px;font-weight:750;cursor:pointer}.messages-panel .messages-new-view>.inquiry-back-button:hover{background:#edf4fc;color:#1769e0}.messages-panel .messages-new-view>.inquiry-back-button svg{width:16px}
.messages-panel .messages-new-layout{display:grid;min-height:0;flex:1 1 auto;grid-template-columns:minmax(0,1fr) 260px;gap:18px;padding:0 18px 18px}.messages-panel .messages-new-main{display:flex;min-width:0;min-height:0;flex-direction:column}.messages-panel .messages-new-heading { max-width: 540px; margin-inline: auto; padding:10px 0 8px;align-self: stretch; width: min(100%, 540px); }.messages-panel .messages-new-heading h2{color:#0d3568;font-size:24px;letter-spacing:-.4px}.messages-panel .messages-new-heading>p{margin-top:3px;color:#61758f;font-size:12px}
.messages-panel .inquiry-sending-as{display:grid;grid-template-columns:38px minmax(0,1fr) 20px;align-items:center;gap:10px;margin-top:12px;padding:9px 11px;border:1px solid #d8e5f2;border-radius:11px;background:#f5f9fe}.messages-panel .inquiry-sending-as[hidden]{display:none!important}.inquiry-sending-as>img,.inquiry-sending-as>span:first-child{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:#1769e0;color:#fff;object-fit:cover;font-size:11px;font-weight:850}.inquiry-sending-as>span:nth-child(2){display:grid;min-width:0;gap:1px}.inquiry-sending-as small{color:#687b94;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.inquiry-sending-as strong,.inquiry-sending-as em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inquiry-sending-as strong{color:#17365f;font-size:12px}.inquiry-sending-as em{color:#687b94;font-size:10px;font-style:normal}.inquiry-sending-as>svg{width:18px;color:#178451}
.messages-panel .messages-new-view form { width: min(100%, 540px); margin-inline: auto; }
.messages-panel .messages-new-view form { position: relative; min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 0 0 78px; }
.messages-panel .messages-new-view .button-primary { position: absolute; right: 0; bottom: 0; left: 0; display:flex;align-items:center;justify-content:center;gap:8px;width: 100%; min-height:48px;margin: 0; border: 1px solid #1769e0; border-radius: 10px; background: #1769e0; color: #fff; box-shadow: 0 8px 18px rgba(23,105,224,.2);font:inherit;font-size:14px;font-weight:800;cursor:pointer;transition:background-color 150ms ease,transform 120ms ease,box-shadow 150ms ease; }
.messages-panel .messages-new-view .button-primary:hover { background: #1059bf;box-shadow:0 10px 22px rgba(23,105,224,.27) }.messages-panel .messages-new-view .button-primary:active{transform:scale(.992)}.messages-panel .messages-new-view .button-primary:focus-visible{outline:3px solid rgba(23,105,224,.25);outline-offset:2px}.messages-panel .messages-new-view .button-primary svg{width:18px}
.messages-panel .inquiry-guidance{position:relative;display:flex;min-height:0;overflow:hidden;flex-direction:column;justify-content:flex-end;padding:22px;border:1px solid #dce9f6;border-radius:16px;background:linear-gradient(155deg,#eef7ff 0%,#e2f1ff 64%,#fff6d8 100%);color:#17365f}.inquiry-guidance:before,.inquiry-guidance:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.5)}.inquiry-guidance:before{width:160px;height:160px;top:-64px;right:-50px}.inquiry-guidance:after{width:100px;height:100px;right:26px;bottom:-48px}.inquiry-guidance-art{position:relative;display:grid;width:148px;height:148px;margin:auto;place-items:center}.inquiry-art-orbit{position:absolute;inset:14px;border-radius:50%;background:rgba(255,255,255,.58);box-shadow:inset 0 0 0 1px rgba(23,105,224,.08)}.inquiry-guidance-art>svg{position:relative;z-index:1;width:64px;height:64px;padding:14px;border-radius:17px;background:#1769e0;color:#fff;filter:drop-shadow(0 10px 14px rgba(23,105,224,.22))}.inquiry-guidance-art>svg:last-child{position:absolute;width:42px;height:42px;top:24px;right:7px;padding:9px;border:3px solid #eef7ff;border-radius:14px;background:#4b8ff0}.inquiry-guidance h3,.inquiry-guidance p,.inquiry-guidance ul{position:relative;z-index:1}.inquiry-guidance h3{font-size:18px;letter-spacing:-.25px}.inquiry-guidance>p{margin-top:4px;color:#516b89;font-size:12px;line-height:1.5}.inquiry-guidance ul{display:grid;gap:8px;margin-top:16px;padding:13px 0 0;border-top:1px solid rgba(23,105,224,.12);list-style:none}.inquiry-guidance li{display:flex;align-items:center;gap:8px;color:#315675;font-size:11px;font-weight:650;line-height:1.35}.inquiry-guidance li svg{width:16px;flex:0 0 16px;color:#1769e0}
.messages-panel .messages-new-view .button-primary.is-sending{color:#fff;opacity:.76}.messages-panel .messages-new-view .button-primary.is-sent{border-color:#bfe8d0;background:#eefaf4;color:#137047;box-shadow:0 7px 18px rgba(19,112,71,.12)}.messages-panel .messages-new-view .button-primary.is-sent svg{animation:inquiry-check-in 380ms cubic-bezier(.2,.8,.2,1)}
.messages-panel .inquiry-status.is-draft,.messages-panel .inquiry-status.is-restored{color:#245f9f}.messages-panel .inquiry-status.is-success{color:#137047;font-weight:750}.messages-new-view.is-draft-restored{animation:inquiry-draft-return 650ms ease-out}
.inquiry-auth-notice{position:absolute;inset:0;z-index:5;align-content:center;justify-items:center;padding:28px;background:rgba(13,35,66,.54);backdrop-filter:blur(3px);text-align:center}.inquiry-auth-notice:not([hidden]){display:grid}.inquiry-auth-notice>*{position:relative;width:min(100%,430px);margin-inline:auto}.inquiry-auth-notice:before{content:"";position:absolute;width:min(calc(100% - 36px),470px);height:min(calc(100% - 36px),410px);border:1px solid #d8e4f1;border-radius:18px;background:#fff;box-shadow:0 24px 60px rgba(8,35,75,.24)}.inquiry-auth-icon{display:grid!important;width:58px!important;height:58px!important;margin-bottom:14px!important;place-items:center;border-radius:50%;background:#eaf3ff;color:#1769e0}.inquiry-auth-icon svg{width:25px}.inquiry-auth-notice>strong{color:#102a4e;font-size:21px;line-height:1.25}.inquiry-auth-notice>p:not(.inquiry-draft-note){margin-top:10px;color:#5a6f8b;font-size:13px;line-height:1.55}.inquiry-draft-note{display:flex;align-items:center;gap:9px;margin-top:15px!important;padding:10px 12px;border-radius:10px;background:#edf5ff;color:#215b9d;font-size:12px;font-weight:700;text-align:left}.inquiry-draft-note svg{width:18px;flex:0 0 18px}.inquiry-auth-actions{display:grid;gap:8px;margin-top:17px!important}.inquiry-auth-actions button{min-height:44px;border-radius:9px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.inquiry-auth-signup{border:1px solid #1769e0;background:#1769e0;color:#fff}.inquiry-auth-signup:hover{background:#1059bf}.inquiry-auth-cancel{border:1px solid #cbd8e8;background:#fff;color:#315174}.inquiry-auth-notice.is-visible>*{animation:inquiry-notice-in 260ms ease-out}
@keyframes inquiry-notice-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@keyframes inquiry-check-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.16)}100%{transform:scale(1);opacity:1}}@keyframes inquiry-draft-return{from{box-shadow:inset 0 0 0 2px rgba(23,105,224,.3)}to{box-shadow:inset 0 0 0 2px transparent}}
@media (max-width:760px){.messages-panel .messages-new-layout{grid-template-columns:1fr}.messages-panel .inquiry-guidance{display:none}}
@media (max-width: 620px) {
    .messages-panel { inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); width: auto; height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom))); }
    .messages-panel .inquiry-panel-head { min-height: 78px; padding: 14px 15px; }
    .messages-panel .inquiry-panel-head strong { font-size: 19px; }
    .messages-panel .inquiry-panel-body { display: grid; grid-template-columns: 1fr; }
    .messages-panel.is-thread-open .messages-list-view { display: none; }
    .messages-panel.is-thread-open .messages-thread-view { display: flex; height: 100%; }
    .messages-panel .messages-thread-view { min-height: 0; }
    .messages-panel .message-thread-body { padding: 15px 13px; }
    .messages-panel .support-message { max-width: 88%; }
    .messages-panel .messages-toolbar { padding: 15px 13px 10px; }
    .messages-panel .messages-search { margin-inline: 13px; }
    .messages-panel .messages-list { padding-inline: 9px; }
    .messages-panel .messages-new-layout{padding:0 13px 13px}.messages-panel .messages-new-heading{padding-top:7px}.messages-panel .messages-new-heading h2{font-size:21px}
    .inquiry-auth-notice{padding:18px}.inquiry-auth-notice:before{width:calc(100% - 20px);height:calc(100% - 20px)}
}
@media (prefers-reduced-motion:reduce){.inquiry-auth-notice.is-visible>*,.messages-panel .messages-new-view .button-primary.is-sent svg,.messages-new-view.is-draft-restored{animation:none}}

/* Finished public support layout. */
.visitor-support-section{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;margin:0 24px 22px;padding:15px;border:1px solid #dce7f3;border-radius:14px;background:linear-gradient(135deg,#f5f9ff,#eef6ff);text-align:left}
.visitor-support-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#1769e0;color:#fff;box-shadow:0 7px 16px rgba(23,105,224,.18)}.visitor-support-icon svg{width:20px}
.visitor-support-section h2{margin:1px 0 3px;color:#102a4e;font-size:15px;line-height:1.25}.visitor-support-section p{margin:0;color:#60728a;font-size:12px;line-height:1.45}
.visitor-support-section button{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin-top:2px;border:1px solid #1769e0;border-radius:9px;background:#1769e0;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:background-color 150ms ease,transform 120ms ease}.visitor-support-section button:hover{background:#1059bf}.visitor-support-section button:active{transform:scale(.99)}.visitor-support-section button:focus-visible{outline:3px solid rgba(23,105,224,.22);outline-offset:2px}.visitor-support-section button svg{width:16px}
.messages-panel .messages-list-view{overflow-y:auto}.messages-panel .messages-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px}.messages-panel .inquiry-new-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 13px;border:1px solid #1769e0;border-radius:9px;background:#1769e0;color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.messages-panel .inquiry-new-button:hover{background:#1059bf}.messages-panel .inquiry-new-button svg{width:17px}
.messages-panel .messages-search{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:8px;padding:0 12px;border:1px solid #d3dfeb;border-radius:10px;color:#55708f}.messages-panel .messages-search svg{width:19px}.messages-panel .messages-search input{min-width:0;min-height:42px;padding:0;border:0;background:transparent;color:#102a4e;font:inherit;outline:0}
.messages-panel .messages-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-inline:18px}.messages-panel .messages-skeleton{grid-column:1/-1;display:grid;gap:9px}.messages-panel .messages-skeleton i{height:72px;border-radius:11px;background:linear-gradient(90deg,#f2f5f9,#e8eef6,#f2f5f9);background-size:200% 100%;animation:messages-shimmer 1.2s linear infinite}
.messages-panel .message-conversation-item{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:10px;min-width:0;border-color:#e1e9f2;color:#102a4e;text-align:left;font:inherit;cursor:pointer}.messages-panel .message-conversation-icon{display:grid;place-items:center;background:#eaf3ff;color:#1769e0}.messages-panel .message-conversation-icon svg{width:18px}.messages-panel .message-conversation-copy{display:grid;min-width:0;gap:2px}.messages-panel .message-conversation-copy strong,.messages-panel .message-conversation-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.messages-panel .message-conversation-copy time{color:#8291a4}.messages-panel .message-conversation-arrow{width:17px;color:#7890aa}.messages-panel .message-unread-badge{width:max-content;margin-top:3px;padding:3px 6px;border-radius:999px;background:#dcecff;color:#175ca9;font-size:8px;letter-spacing:.04em}.messages-panel .messages-empty{grid-column:1/-1;margin:0;padding:42px 18px;color:#687b94;text-align:center;font-size:13px}
.inquiry-notice-label{display:block;width:max-content!important;margin-bottom:15px!important;padding:7px 14px;border:1px solid #b9d5fb;border-radius:999px;background:#eaf3ff;color:#1769e0;font-size:11px;font-weight:900;letter-spacing:.12em}
@keyframes messages-shimmer{to{background-position:-200% 0}}
@media(max-width:620px){.visitor-support-section{margin:0 20px 18px}.messages-panel .messages-toolbar{align-items:center}.messages-panel .messages-list{grid-template-columns:1fr;padding-inline:9px}.messages-panel .message-conversation-item+.message-conversation-item{margin-top:0}}

/* Compact, auto-growing public message composer. */
.messages-panel .message-composer-form{display:grid;align-content:start;gap:12px}.messages-panel .message-composer{display:grid;grid-template-columns:42px minmax(0,1fr) 44px;align-items:end;align-self:start;gap:8px;width:100%;padding:7px;border:1px solid #cad8e8;border-radius:16px;background:#f7f9fc;transition:border-color 150ms ease,box-shadow 150ms ease}.messages-panel .message-composer:focus-within{border-color:#6d9fe4;box-shadow:0 0 0 3px rgba(23,105,224,.1)}
.messages-panel .message-composer-field{display:block;min-width:0;font-size:0}.messages-panel .message-composer textarea{display:block;box-sizing:border-box;min-height:42px!important;max-height:132px!important;padding:10px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:13px!important;line-height:1.55!important;resize:none!important;outline:0!important}
.messages-panel .message-composer .message-attach-button,.messages-panel .message-composer .button-primary,.messages-panel .message-reply-composer .message-attach-button{position:static!important;display:grid!important;width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;place-items:center;border:0;border-radius:12px;background:#e8eef6;color:#43617e;box-shadow:none!important}.messages-panel .message-composer .button-primary{width:44px!important;background:#1769e0;color:#fff}.messages-panel .message-composer button:disabled{opacity:.5;cursor:not-allowed}.messages-panel .message-composer button svg{width:18px}
.messages-panel .message-composer .button-primary span{display:none}
.messages-panel .message-attach-button{background:transparent!important;color:#55708e!important}.messages-panel .message-attach-button:hover{background:#e8f1fc!important;color:#1769e0!important}.messages-panel .message-attachment-preview{display:flex;align-items:center;gap:9px;margin-top:-5px;padding:8px 10px;border:1px solid #d7e4f2;border-radius:11px;background:#f4f8fd;color:#294d72;font-size:12px}.messages-panel .message-attachment-preview[hidden]{display:none}.messages-panel .message-attachment-preview>svg{width:18px;color:#1769e0}.messages-panel .message-attachment-preview span{display:grid;min-width:0;flex:1}.messages-panel .message-attachment-preview strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.messages-panel .message-attachment-preview small{color:#74879c}.messages-panel .message-attachment-preview button{display:grid;width:28px;height:28px;padding:0;place-items:center;border:0;border-radius:8px;background:transparent;color:#60778f}.messages-panel .message-attachment-preview button:hover{background:#e2ebf5}.messages-panel .message-attachment-preview button svg{width:15px}.messages-panel .message-attachment-preview.is-error{border-color:#efb8bf;background:#fff5f6;color:#a52232}
.messages-panel .message-reply-composer.message-composer-form{display:grid;grid-template-columns:1fr;padding:12px 15px 7px}.messages-panel .message-reply-composer .message-composer{width:100%}.messages-panel .message-reply-status{background:#fff}
@media(max-width:520px){.messages-panel .message-composer{grid-template-columns:40px minmax(0,1fr) 42px;padding:6px}.messages-panel .message-composer .message-attach-button{width:40px!important;height:40px!important}.messages-panel .message-composer .button-primary{width:42px!important;height:42px!important}}

/* Furnished recent-conversation states. */
.messages-panel .messages-list-view{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}.messages-panel .messages-toolbar{border-bottom:1px solid #eef3f8}.messages-panel .messages-list{align-content:start;padding-top:14px}.messages-panel .message-conversation-item{position:relative;min-height:94px;padding:14px;border-color:#dce6f1;background:rgba(255,255,255,.9);box-shadow:0 3px 12px rgba(16,42,78,.035);transition:transform 140ms ease,border-color 140ms ease,box-shadow 140ms ease,background-color 140ms ease}.messages-panel .message-conversation-item:hover{transform:translateY(-1px);border-color:#bcd2ed;background:#fff;box-shadow:0 9px 22px rgba(16,42,78,.08)}.messages-panel .message-conversation-item.is-unread{border:1px solid #b9d4f7;background:linear-gradient(135deg,#eef6ff,#fff)}.messages-panel .message-conversation-copy{gap:4px}.messages-panel .message-conversation-copy strong{color:#12345d;font-size:14px}.messages-panel .message-conversation-copy small{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.4}.messages-panel .message-conversation-copy time{margin-top:2px;color:#6e8199;font-weight:700}.messages-panel .message-conversation-arrow{transition:transform 140ms ease,color 140ms ease}.messages-panel .message-conversation-item:hover .message-conversation-arrow{transform:translateX(2px);color:#1769e0}.messages-panel .inquiry-status.is-draft{display:flex;align-items:center;min-height:22px;color:#42688f;font-weight:700}.messages-panel .message-composer{background:#fff;box-shadow:0 5px 16px rgba(16,42,78,.05)}
@media(prefers-reduced-motion:reduce){.messages-panel .message-conversation-item,.messages-panel .message-conversation-arrow{transition:none}.messages-panel .message-conversation-item:hover{transform:none}}
.messages-panel .message-file-card{display:flex;align-items:center;gap:8px;margin-top:8px;padding:9px 10px;border:1px solid rgba(23,105,224,.18);border-radius:10px;background:rgba(255,255,255,.82);color:inherit;text-decoration:none}.messages-panel .message-file-card>svg{width:17px;flex:0 0 auto}.messages-panel .message-file-card span{display:grid;min-width:0;flex:1}.messages-panel .message-file-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.messages-panel .message-file-card small{font-size:10px;opacity:.7}

/* Reference-aligned chat composer: message above, actions below. */
.messages-panel .message-composer{grid-template-columns:44px minmax(0,1fr) 44px!important;grid-template-rows:minmax(62px,auto) 42px;gap:4px 8px!important;padding:10px 11px!important;border:1.5px solid #9db8d7!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}.messages-panel .message-composer:focus-within{border-color:#1769e0!important;box-shadow:0 0 0 1px #1769e0!important}.messages-panel .message-composer-field{grid-column:1/-1;grid-row:1}.messages-panel .message-composer textarea{min-height:62px!important;max-height:132px!important;padding:2px 4px!important;font-size:14px!important;line-height:1.5!important}.messages-panel .message-composer textarea::placeholder{color:#8b99aa}.messages-panel .message-composer .message-attach-button{grid-column:1;grid-row:2;align-self:end;width:40px!important;height:40px!important;min-height:40px!important;border-radius:50%!important}.messages-panel .message-composer .button-primary{grid-column:3;grid-row:2;align-self:end;width:40px!important;height:40px!important;min-height:40px!important;border-radius:50%!important}.messages-panel .message-composer .button-primary:disabled{background:#edf0f4!important;color:#cbd1d8!important;opacity:1!important}.messages-panel .message-composer+.message-attachment-preview{margin-top:-5px}.messages-panel .message-reply-composer.message-composer-form{padding-top:10px}
@media(max-width:520px){.messages-panel .message-composer{grid-template-columns:42px minmax(0,1fr) 42px!important;grid-template-rows:minmax(56px,auto) 40px;padding:9px!important}.messages-panel .message-composer textarea{min-height:56px!important}.messages-panel .message-composer .message-attach-button,.messages-panel .message-composer .button-primary{width:38px!important;height:38px!important;min-height:38px!important}}

/* Single continuous support chat, following the supplied MUI reference. */
.messages-panel .messages-list-view,.messages-panel .messages-new-view .inquiry-back-button,.messages-panel .messages-new-heading,.messages-panel .inquiry-guidance{display:none!important}.messages-panel .messages-new-view{display:flex!important;min-height:0;flex:1}.messages-panel .messages-new-view[hidden]{display:none!important}.messages-panel .messages-new-layout.is-direct-chat{display:flex;min-height:0;width:100%;padding:0!important}.messages-panel .messages-new-main{display:grid;width:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto;padding:18px 14px 14px}.messages-panel .direct-chat-welcome{display:flex;align-self:start;align-items:flex-start;gap:10px;max-width:82%;margin-top:4px}.messages-panel .direct-chat-welcome>span{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border-radius:50%;background:#1769e0;color:#fff;font-size:11px;font-weight:800}.messages-panel .direct-chat-welcome>div{padding:9px 12px;border-radius:4px;background:#f1f2f4;color:#172b45}.messages-panel .direct-chat-welcome small{display:block;margin-bottom:4px;color:#53677e;font-size:11px}.messages-panel .direct-chat-welcome p{margin:0;font-size:13px;line-height:1.45}.messages-panel .messages-new-main>form{align-self:end;width:100%;max-width:none!important;margin:0!important}.messages-panel .message-thread-header .inquiry-back-button{display:none}.messages-panel .message-thread-header{padding-left:18px}.messages-panel .message-thread-body{padding:18px 14px}.messages-panel .support-message{max-width:82%;border:0!important;border-radius:4px!important;background:#f1f2f4!important;box-shadow:none!important}.messages-panel .support-message.is-user{margin-left:auto;background:#1976d2!important;color:#fff!important}.messages-panel .support-message.is-user .support-message-meta,.messages-panel .support-message.is-user time{color:rgba(255,255,255,.84)!important}.messages-panel .message-reply-composer.message-composer-form{padding:10px 14px 8px!important;border-top:0!important}
@media(max-width:520px){.messages-panel .messages-new-main{padding:14px 10px 10px}.messages-panel .direct-chat-welcome,.messages-panel .support-message{max-width:90%}.messages-panel .message-thread-body{padding:14px 10px}.messages-panel .message-reply-composer.message-composer-form{padding:8px!important}}

/* WCAG repair: preserve the compact hero badge while keeping readable dark-mode contrast. */
html[data-theme="dark"] .hero-badge,
body.dark-mode .hero-badge { color: #78b7ff; }

/* Keep empty and error cards on the same dark surface as their text tokens. */
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .detail-error,
body.dark-mode .empty-state,
body.dark-mode .detail-error {
    background: #162d4d;
    border-color: #345070;
}

.hero-search-preview,
.search-wrapper input::placeholder,
.info-box small,
.process-number { color: #52637a; }

/* Scholarship details: one readable document flow instead of competing card heights. */
.details-page .detail-facts {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.details-page .detail-facts > div {
    min-height: 0;
    border: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.details-page .detail-facts > div:nth-child(3n) { border-right: 0; }
.details-page .detail-facts > div:nth-child(n + 4) { border-bottom: 0; }

.details-page .detail-main-copy {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
}

.details-page .detail-main-copy .detail-section {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.details-page .detail-main-copy .detail-section + .detail-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.details-page .helpful-links-card {
    margin-top: 0;
    box-shadow: none;
}

.details-page .helpful-link-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    background: #f5f8fc;
}

.details-page .helpful-link-button {
    width: max-content;
    max-width: min(320px, 42vw);
    min-width: 0;
    white-space: normal;
    text-align: center;
}

.details-page .scholarship-social { margin-top: 8px; }

/* Account content always remains readable inside its light modal surface. */
html[data-theme="dark"] .visitor-account-dialog,
body.dark-mode .visitor-account-dialog {
    border-color: #344a66;
    background: #111d2e;
    color: #edf4ff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .visitor-account-dialog .visitor-login-close,
body.dark-mode .visitor-account-dialog .visitor-login-close {
    border-color: #405774;
    background: #1a2a40;
    color: #edf4ff;
}

html[data-theme="dark"] .visitor-account-dialog .visitor-account-provider,
html[data-theme="dark"] .visitor-account-dialog .visitor-account-email,
html[data-theme="dark"] .visitor-account-dialog .visitor-support-section p,
body.dark-mode .visitor-account-dialog .visitor-account-provider,
body.dark-mode .visitor-account-dialog .visitor-account-email,
body.dark-mode .visitor-account-dialog .visitor-support-section p {
    color: #b8c7da;
}

html[data-theme="dark"] .visitor-account-dialog .visitor-account-header h1,
html[data-theme="dark"] .visitor-account-dialog .visitor-account-summary strong,
html[data-theme="dark"] .visitor-account-dialog .visitor-support-section h2,
body.dark-mode .visitor-account-dialog .visitor-account-header h1,
body.dark-mode .visitor-account-dialog .visitor-account-summary strong,
body.dark-mode .visitor-account-dialog .visitor-support-section h2 {
    color: #edf4ff;
}

html[data-theme="dark"] .visitor-account-dialog .visitor-account-summary,
body.dark-mode .visitor-account-dialog .visitor-account-summary {
    border-color: #344a66;
    background: #162337;
}

html[data-theme="dark"] .visitor-account-dialog .visitor-account-summary span,
body.dark-mode .visitor-account-dialog .visitor-account-summary span { color: #aebed2; }

html[data-theme="dark"] .visitor-account-dialog .visitor-support-section,
body.dark-mode .visitor-account-dialog .visitor-support-section {
    border-color: #344a66;
    background: linear-gradient(135deg, #162337, #192a42);
}

html[data-theme="dark"] .visitor-account-dialog .visitor-account-footer,
body.dark-mode .visitor-account-dialog .visitor-account-footer { border-color: #344a66; }

html[data-theme="dark"] .visitor-account-dialog .visitor-account-signout,
body.dark-mode .visitor-account-dialog .visitor-account-signout {
    border-color: #a8505b;
    background: #2e1d27;
    color: #ffb8c0;
}

/* Admin-supplied resource links use the same accessible palette in both themes. */
html[data-theme="dark"] .details-page .detail-facts,
html[data-theme="dark"] .details-page .detail-main-copy,
html[data-theme="dark"] .details-page .helpful-links-card,
body.dark-mode .details-page .detail-facts,
body.dark-mode .details-page .detail-main-copy,
body.dark-mode .details-page .helpful-links-card {
    border-color: #344a66;
    background: #111d2e;
    color: #e8eef7;
}

html[data-theme="dark"] .details-page .detail-facts > div,
html[data-theme="dark"] .details-page .detail-main-copy .detail-section + .detail-section,
body.dark-mode .details-page .detail-facts > div,
body.dark-mode .details-page .detail-main-copy .detail-section + .detail-section { border-color: #344a66; }

html[data-theme="dark"] .details-page .helpful-link-item,
body.dark-mode .details-page .helpful-link-item {
    border-color: #344a66;
    background: #162337;
}

html[data-theme="dark"] .details-page .helpful-link-item h3,
body.dark-mode .details-page .helpful-link-item h3 { color: #edf4ff; }

html[data-theme="dark"] .details-page .helpful-link-item p,
body.dark-mode .details-page .helpful-link-item p { color: #b8c7da; }

html[data-theme="dark"] .details-page .helpful-link-button,
body.dark-mode .details-page .helpful-link-button {
    border-color: #58769d;
    background: #1b2d45;
    color: #e2ecf9;
}

html[data-theme="dark"] .details-page .helpful-link-button:hover,
body.dark-mode .details-page .helpful-link-button:hover {
    border-color: #78b7ff;
    background: #213955;
    color: #fff;
}

@media (max-width: 750px) {
    .details-page .detail-facts > div:nth-child(3n) { border-right: 1px solid var(--border); }
    .details-page .detail-facts > div:nth-child(2n) { border-right: 0; }
    .details-page .detail-facts > div:nth-child(n + 4) { border-bottom: 1px solid var(--border); }
    .details-page .detail-facts > div:nth-child(n + 5) { border-bottom: 0; }
}

@media (max-width: 620px) {
    .details-page .detail-main-copy { padding: 22px 18px; }
    .details-page .detail-main-copy .detail-section + .detail-section {
        margin-top: 24px;
        padding-top: 24px;
    }
    .details-page .helpful-link-item { grid-template-columns: 1fr; }
    .details-page .helpful-link-button { width: 100%; max-width: none; }
}

@media (max-width: 420px) {
    .details-page .detail-facts { grid-template-columns: 1fr !important; }
    .details-page .detail-facts > div,
    .details-page .detail-facts > div:nth-child(2n),
    .details-page .detail-facts > div:nth-child(3n),
    .details-page .detail-facts > div:nth-child(n + 5) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .details-page .detail-facts > div:last-child { border-bottom: 0; }
}
/* Search results hero background image */
.search-results-hero {
    background:
        linear-gradient(
            90deg,
            rgba(247,250,255,.99) 0%,
            rgba(247,250,255,.94) 42%,
            rgba(247,250,255,.25) 72%,
            rgba(255,255,255,.08) 100%
        ),
        url("../images/student-hero-optimized.webp") 68% center / cover no-repeat;
}

/* Mobile */
@media (max-width: 620px) {
    .search-results-hero {
        min-height: 0;
        padding: 32px 18px 24px;

        background:
            linear-gradient(
                90deg,
                rgba(247,250,255,.98) 0%,
                rgba(247,250,255,.90) 55%,
                rgba(247,250,255,.25) 100%
            ),
            url("../images/student-hero-optimized.webp") 66% center / cover no-repeat;
    }
}
<link rel="style/* FINAL OVERRIDE — SEARCH RESULTS HERO DARK MODE */
[data-theme="dark"] body.search-results-page .search-results-hero,
body.search-results-page[data-theme="dark"] .search-results-hero,
[data-theme="dark"] .search-results-page .search-results-hero {
    background:
        linear-gradient(
            90deg,
            rgba(7,16,29,1) 0%,
            rgba(7,16,29,1) 35%,
            rgba(7,16,29,.97) 45%,
            rgba(7,16,29,.88) 55%,
            rgba(7,16,29,.72) 64%,
            rgba(7,16,29,.52) 73%,
            rgba(7,16,29,.32) 82%,
            rgba(7,16,29,.16) 92%,
            rgba(7,16,29,.06) 100%
        ),
        url("../images/student-hero-optimized.webp") 68% center / cover no-repeat !important;
}sheet" href="css/style.css?v=20260919-hero2">
@media (max-width: 620px) {
    [data-theme="dark"] body.search-results-page .search-results-hero,
    body.search-results-page[data-theme="dark"] .search-results-hero,
    [data-theme="dark"] .search-results-page .search-results-hero {
        background:
            linear-gradient(
                90deg,
                rgba(7,16,29,.97) 0%,
                rgba(7,16,29,.90) 50%,
                rgba(7,16,29,.45) 75%,
                rgba(7,16,29,.15) 100%
            ),
            url("../images/student-hero-optimized.webp") 66% center / cover no-repeat !important;
    }
}
/* =====================================================
   SEARCH RESULTS HERO — DESKTOP IMAGE ZOOM OUT
   Keep mobile unchanged
===================================================== */

@media (min-width: 621px) {

    body.search-results-page .search-results-hero {
        background-size:
            100% 100%,
            auto 100% !important;

        background-position:
            center,
            right center !important;

        background-repeat:
            no-repeat,
            no-repeat !important;
    }

    [data-theme="dark"] body.search-results-page .search-results-hero,
    body.search-results-page[data-theme="dark"] .search-results-hero,
    [data-theme="dark"] .search-results-page .search-results-hero {
        background-size:
            100% 100%,
            auto 100% !important;

        background-position:
            center,
            right center !important;

        background-repeat:
            no-repeat,
            no-repeat !important;
    }
}
/* =====================================================
   MOBILE HERO — LOCK SAME IMAGE SIZE/POSITION
   Prevent image shift when switching themes
===================================================== */

@media (max-width: 750px) {

    .hero,
    [data-theme="dark"] .hero {
        background-size:
            100% 100%,
            cover !important;

        background-position:
            center,
            66% center !important;

        background-repeat:
            no-repeat,
            no-repeat !important;
    }

    .hero {
        background-image:
            linear-gradient(
                90deg,
                rgba(245,249,255,.99) 0%,
                rgba(245,249,255,.98) 48%,
                rgba(245,249,255,.84) 64%,
                rgba(245,249,255,.08) 88%
            ),
            url("../images/student-hero-optimized.webp") !important;
    }

    [data-theme="dark"] .hero {
        background-image:
            linear-gradient(
                90deg,
                rgba(7,16,29,.99) 0%,
                rgba(7,16,29,.96) 48%,
                rgba(7,16,29,.76) 66%,
                rgba(7,16,29,.20) 90%
            ),
            url("../images/student-hero-optimized.webp") !important;
    }
}
/* =====================================================
   FINAL MOBILE HOME HERO — LOCKED PHOTO FRAME
===================================================== */

@media (max-width: 750px) {

    .hero,
    [data-theme="dark"] .hero {
        position: relative !important;
        isolation: isolate;
        overflow: hidden !important;

        height: 560px !important;
        min-height: 560px !important;
        max-height: 560px !important;

        padding: 0 !important;
        background: transparent !important;
    }

    /* Same photo frame in BOTH themes */
    .hero::after,
    [data-theme="dark"] .hero::after {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: -2 !important;

        background-image:
            url("../images/student-hero-optimized.webp") !important;

        background-size:
            auto 560px !important;

        background-position:
            66% center !important;

        background-repeat:
            no-repeat !important;

        transform: none !important;
        transition: none !important;

        pointer-events: none;
    }

    /* Light overlay */
    .hero::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: -1 !important;

        background:
            linear-gradient(
                90deg,
                rgba(245,249,255,.99) 0%,
                rgba(245,249,255,.98) 48%,
                rgba(245,249,255,.84) 64%,
                rgba(245,249,255,.08) 88%
            ) !important;

        pointer-events: none;
    }

    /* Dark overlay only */
    [data-theme="dark"] .hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(7,16,29,.99) 0%,
                rgba(7,16,29,.96) 48%,
                rgba(7,16,29,.76) 66%,
                rgba(7,16,29,.20) 90%
            ) !important;
    }

    .hero-container,
    [data-theme="dark"] .hero-container {
        position: relative !important;
        z-index: 1 !important;

        height: 560px !important;
        min-height: 560px !important;

        display: flex !important;
        align-items: center !important;
    }
}
/* FINAL SEARCH RESULTS HERO FIX */
body.search-results-page .search-results-hero {
    background-color: #f7faff !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(247,250,255,1) 0%,
            rgba(247,250,255,.98) 38%,
            rgba(247,250,255,.90) 48%,
            rgba(247,250,255,.66) 60%,
            rgba(247,250,255,.28) 76%,
            rgba(247,250,255,.06) 100%
        ),
        url("../images/student-hero-optimized.webp") !important;

    background-size:
        100% 100%,
        auto 100% !important;

    background-position:
        center,
        right center !important;

    background-repeat:
        no-repeat,
        no-repeat !important;
}

.details-page .detail-main-copy .detail-section,
.details-page .detail-list,
.details-page .detail-gallery,
.details-page .carousel-thumbnails {
    min-width: 0;
    max-width: 100%;
}

.details-page .detail-list { width: 100%; }

html[data-theme="dark"] body.search-results-page .search-results-hero {
    background-color: #07101d !important;
    background-image:
        linear-gradient(
            90deg,
            rgba(7,16,29,1) 0%,
            rgba(7,16,29,1) 38%,
            rgba(7,16,29,.96) 45%,
            rgba(7,16,29,.82) 52%,
            rgba(7,16,29,.60) 60%,
            rgba(7,16,29,.36) 69%,
            rgba(7,16,29,.16) 80%,
            rgba(7,16,29,.05) 100%
        ),
        url("../images/student-hero-optimized.webp") !important;
}

@media (max-width: 620px) {
    body.search-results-page .search-results-hero {
        background-size: 100% 100%, cover !important;
        background-position: center, 66% center !important;
    }
}

/* Split visitor authentication experience */
.visitor-login-dialog {
  width: min(calc(100% - 32px), 980px);
  height: min(640px, calc(100dvh - 24px));
  max-height: none;
  border-radius: 24px;
  text-align: left;
  overflow: hidden;
}
.visitor-auth-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr); height: 100%; min-height: 0; }
.visitor-auth-visual { position: relative; min-height: 100%; overflow: hidden; background: #0d2b4d; }
.visitor-auth-visual::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(6, 29, 55, .88)); pointer-events: none; }
.visitor-auth-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.visitor-auth-visual-copy { position: absolute; z-index: 1; right: 32px; bottom: 34px; left: 32px; display: grid; gap: 8px; color: #fff; }
.visitor-auth-visual-copy span { color: #b9d7ff; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.visitor-auth-visual-copy strong { max-width: 300px; font-size: 28px; line-height: 1.14; letter-spacing: -.02em; }
.visitor-auth-panel { align-self: center; min-height: 0; padding: 22px 40px 18px; }
.visitor-login-dialog .visitor-auth-header { padding: 0 0 14px; }
.visitor-auth-switch-copy { margin: 4px 0 0; color: #60728a; font-size: 13px; }
.visitor-auth-switch-copy button, .visitor-forgot-password { padding: 0; border: 0; background: transparent; color: #1767df; font: inherit; font-weight: 800; cursor: pointer; }
.visitor-auth-switch-copy button:hover, .visitor-forgot-password:hover { text-decoration: underline; text-underline-offset: 3px; }
.visitor-email-form { display: grid; gap: 6px; }
.visitor-email-form label { margin-top: 3px; color: #2d425d; font-size: 12px; font-weight: 800; }
.visitor-email-form input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #cbd7e5; border-radius: 12px; background: #fff; color: #102a4e; font: inherit; font-size: 14px; outline: none; }
.visitor-email-form input:focus { border-color: #2864dc; box-shadow: 0 0 0 3px rgba(40,100,220,.14); }
.visitor-password-field { position: relative; }
.visitor-password-field input { padding-right: 48px; }
.visitor-password-field button { position: absolute; top: 2px; right: 3px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #66768a; cursor: pointer; }
.visitor-password-field button:hover { background: #f0f5fb; }
.visitor-password-field svg { width: 19px; height: 19px; }
.visitor-forgot-password { justify-self: end; margin: 2px 0 3px; font-size: 12px; }
.visitor-email-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 44px; margin-top: 3px; border: 0; border-radius: 12px; background: #0d2b4d; color: #fff; font: inherit; font-size: 14px; font-weight: 850; cursor: pointer; transition: background-color 120ms ease, transform 80ms ease; }
.visitor-email-submit:hover:not(:disabled) { background: #173f6d; }
.visitor-email-submit:active:not(:disabled) { transform: scale(.99); }
.visitor-email-submit:disabled { opacity: .68; cursor: wait; }
.visitor-login-dialog .visitor-oauth-section { padding: 12px 0 6px; }
.visitor-login-dialog .visitor-oauth-divider { margin-bottom: 12px; text-transform: none; }
.visitor-login-dialog .visitor-oauth-buttons { grid-template-columns: 1fr 1fr; gap: 10px; }
.visitor-login-dialog .visitor-oauth-button { min-height: 42px; padding: 0 10px; font-size: 12px; font-weight: 750; }
.visitor-login-dialog .visitor-oauth-button--facebook { border-color: #d4dce6; background: #fff; color: #34445a; box-shadow: none; }
.visitor-login-dialog .visitor-oauth-button--facebook:hover:not(:disabled) { border-color: #b9c7d7; background: #f8fafc; }
.visitor-login-dialog .visitor-auth-footer { padding: 8px 0 0; }
.visitor-login-dialog .visitor-login-status { margin: 12px 0 0; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-auth-panel { padding-top: 14px; padding-bottom: 12px; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-auth-header { padding-bottom: 9px; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-auth-brand { gap: 5px; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-auth-header h1 { font-size: 22px; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-auth-copy { font-size: 13px; line-height: 1.35; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-email-form { gap: 4px; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-email-form label { margin-top: 1px; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-oauth-section { padding-top: 8px; padding-bottom: 2px; }
.visitor-login-dialog[data-auth-mode="signup"] .visitor-auth-footer { padding-top: 5px; }

@media (max-width: 760px) {
  .visitor-login-dialog { width: min(calc(100% - 16px), 500px); height: auto; max-height: calc(100dvh - 16px); border-radius: 18px; overflow-y: auto; }
  .visitor-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 140px auto; height: auto; min-height: 0; }
  .visitor-auth-visual { display: block; min-height: 140px; }
  .visitor-auth-visual::after { inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(6, 29, 55, .35)); }
  .visitor-auth-visual img { height: 140px; object-position: 66% 30%; }
  .visitor-auth-visual-copy { display: none; }
  .visitor-auth-panel { padding: 22px 24px 20px; }
}
@media (max-width: 420px) {
  .visitor-auth-layout { grid-template-rows: 96px auto; }
  .visitor-auth-visual { min-height: 96px; }
  .visitor-auth-visual img { height: 96px; }
  .visitor-auth-panel { padding: 28px 18px 20px; }
  .visitor-login-dialog .visitor-oauth-buttons { grid-template-columns: 1fr; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .visitor-auth-layout { grid-template-rows: 88px auto; }
  .visitor-auth-visual { min-height: 88px; }
  .visitor-auth-visual img { height: 88px; }
}

/* Shared five-item navigation for every public page on phones. */
.site-mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  body.has-site-mobile-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 6px max(5px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 -8px 24px rgba(11, 31, 58, .08);
  }
  .site-mobile-bottom-nav a {
    display: grid;
    align-content: center;
    justify-items: center;
    min-width: 0;
    min-height: 54px;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 10px;
    color: #63758b;
    font-family: "Plus Jakarta Sans", "Source Sans 3", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .site-mobile-bottom-nav a:active { background: var(--blue-light); }
  .site-mobile-bottom-nav a.is-active { color: var(--blue); }
  .site-mobile-bottom-nav svg { width: 21px; height: 21px; }
  [data-theme="dark"] .site-mobile-bottom-nav {
    border-color: var(--border);
    background: var(--white);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
  }
  [data-theme="dark"] .site-mobile-bottom-nav a { color: #94a8c0; }
  [data-theme="dark"] .site-mobile-bottom-nav a.is-active { color: #68a3ff; }
}

@media (max-width: 360px) {
  .site-mobile-bottom-nav a { font-size: 9px; }
}

/* Mobile header mirrors the desktop account control without duplicating bottom-nav actions. */
@media (max-width: 768px) {
  .header-search-button,
  .visitor-notification-button,
  .mobile-menu-button { display: none !important; }
  .visitor-account-button {
    display: inline-grid !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .nav-actions { margin-left: auto; gap: 7px; }
  .header-search-panel { display: none !important; }
}

/* Keep student support reachable above the fixed mobile navigation. */
@media (max-width: 768px) {
  .inquiry-launcher {
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 1300;
  }

  .inquiry-panel {
    z-index: 1300;
  }
}
