/* ==========================================================================
   MERITERS NEET MDS 2027 Scholarship — design system
   Plain CSS on top of Bootstrap 5 (grid, utilities, forms, modal, dropdown).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens and base
   -------------------------------------------------------------------------- */
:root {
    --navy: #14284b;
    --navy-deep: #0d1c37;
    --ink-soft: #4a5468;
    --ink-muted: #6b7280;
    --ivory: #faf6ec;
    --ivory-deep: #f2ebda;
    --ivory-card: #fffcf4;
    --line: #e2d8c1;
    --gold: #b8924a;
    --gold-deep: #8c6a2a;
    --gold-light: #dcc28b;
    --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--navy);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    color: #14284b;
    background: #ead9ae;
}

:focus-visible {
    outline: 3px solid rgba(184, 146, 74, 0.55);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.font-display {
    font-family: var(--font-display);
}

.scholarship-page {
    min-height: 100dvh;
    overflow-x: clip;
    background: var(--ivory);
    color: var(--navy);
}

/* Shared widths ------------------------------------------------------------ */
.shell {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 640px) {
    .shell {
        padding-inline: 24px;
    }
}

@media (min-width: 768px) {
    .shell {
        padding-inline: 40px;
    }
}

/* Shared text helpers ------------------------------------------------------ */
.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.eyebrow-light {
    color: var(--gold-light);
}

.text-navy {
    color: var(--navy) !important;
}

.text-soft {
    color: var(--ink-soft);
}

.text-ink-muted {
    color: var(--ink-muted);
}

.text-gold-deep {
    color: var(--gold-deep);
}

.section-title {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--navy);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.7rem;
    }
}

.ornament {
    display: flex;
    align-items: center;
    width: 120px;
    height: 9px;
}

.ornament::before,
.ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gold);
}

.ornament span {
    width: 7px;
    height: 7px;
    margin: 0 8px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

.ornament-light::before,
.ornament-light::after {
    background: var(--gold-light);
}

.ornament-light span {
    border-color: var(--gold-light);
}

.diamond {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    background: var(--gold);
    transform: rotate(45deg);
}

.page-enter {
    animation: rise-in 0.45s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .page-enter {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.academic-rule-top {
    height: 4px;
    background: linear-gradient(90deg, var(--navy) 0 70%, var(--gold) 70% 100%);
}

.academic-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 246, 236, 0.96);
    backdrop-filter: blur(6px);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    height: 68px;
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 640px) {
    .header-bar {
        padding-inline: 24px;
    }
}

@media (min-width: 768px) {
    .header-bar {
        height: 80px;
        padding-inline: 40px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.crest {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 2px;
    overflow: hidden;
}

.crest img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    color: var(--navy);
}

.brand-tag {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-deep);
    white-space: nowrap;
}

.academic-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 500;
}

@media (min-width: 1280px) {
    .academic-nav {
        gap: 32px;
        font-size: 14px;
    }
}

.academic-nav a {
    position: relative;
    padding: 4px 0;
    color: var(--ink-soft);
    transition: color 0.2s;
}

.academic-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0;
    transition: transform 0.25s;
}

.academic-nav a:hover,
.academic-nav a[aria-current="page"] {
    color: var(--navy);
}

.academic-nav a:hover::after,
.academic-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The navigation switches at 1024px, matching the original design. */
.nav-desktop {
    display: none !important;
}

.nav-mobile {
    display: block;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex !important;
    }

    .btn-apply.nav-desktop {
        display: inline-flex !important;
    }

    .nav-mobile {
        display: none !important;
    }
}

.min-w-0 {
    min-width: 0;
}

.nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--navy);
}

.nav-toggle[aria-expanded="true"] {
    background: var(--ivory-deep);
}

.nav-dropdown {
    width: min(280px, calc(100vw - 32px));
    min-width: 0;
    margin-top: 12px !important;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fffcf4;
    box-shadow: 0 20px 25px -5px rgba(20, 40, 75, 0.12), 0 8px 10px -6px rgba(20, 40, 75, 0.1);
}

.nav-dropdown li+li a {
    border-top: 0;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.nav-dropdown li:last-child a {
    border-bottom: 0;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    background: var(--ivory-deep);
}

/* Shared button skins ------------------------------------------------------ */
.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--ivory);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-apply:hover {
    background: var(--navy-deep);
    box-shadow: inset 0 -2px 0 var(--gold);
    color: var(--ivory);
}

.btn-apply:active {
    transform: translateY(1px);
}

.btn-apply.is-header {
    min-height: 40px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 12px;
}

@media (min-width: 640px) {
    .btn-apply.is-header {
        font-size: 14px;
    }
}

.btn-hero-apply {
    min-height: 54px;
    padding: 0 32px;
    border-radius: 14px;
    font-size: 15px;
}

.btn-final-apply {
    min-height: 44px;
    padding: 0 28px;
    border-radius: 14px;
    background: var(--gold-light);
    color: var(--navy-deep);
}

.btn-final-apply:hover {
    background: var(--ivory);
    color: var(--navy-deep);
    box-shadow: none;
}

.text-link {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--gold-deep);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-wash {
    background: radial-gradient(at 8% 10%, rgba(220, 194, 139, 0.18), transparent 45%), var(--ivory);
}

.hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 66%;
    height: 430px;
}

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 40%;
    filter: saturate(0.75) sepia(0.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #faf6ec 30%, rgba(250, 246, 236, 0.55), rgba(250, 246, 236, 0) 66%),
        linear-gradient(rgba(250, 246, 236, 0) 300px, #faf6ec 430px);
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 24px 20px 48px;
}

.hero-stack {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: left;
}

.hero-intro {
    display: block;
}

.hero-exam {
    display: inline-block;
    padding: 6px 12px;
    background: var(--navy);
    color: #f3e3bd;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: inset 0 -2px 0 var(--gold);
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.hero-kicker span {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    display: flex;
    flex-direction: column;
    max-width: 62%;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 9.4vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--navy);
}

.hero-title-amount {
    color: var(--gold-deep);
    font-weight: 700;
    font-size: 45px;
}

.hero-title-mid {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--navy-deep);
}

.hero-title-end {
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 32px;
}

.hero-title-end-note {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--navy-deep);
}

.hero-award-summary {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 2.1rem);
    font-style: italic;
    line-height: 1.25;
    color: var(--gold-deep);
}

.hero-lead {
    max-width: 60%;
    margin-top: 12px;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.hero-lead strong {
    color: var(--navy);
}

.prize-card {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 560px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 244, 0.94);
    box-shadow: 0 14px 34px rgba(20, 40, 75, 0.08);
}

.prize-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--ivory);
    color: var(--gold-deep);
}

.prize-card .eyebrow {
    font-size: 11px;
}

.prize-title {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.375;
    color: var(--navy);
}

.prize-title span {
    font-size: 15px;
    font-weight: 400;
}

.prize-note {
    margin-top: 4px;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-soft);
}

.prize-note strong {
    color: var(--navy);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 560px;
    margin-top: 20px;
    font-size: 11px;
    line-height: 16px;
    color: var(--ink-soft);
}

@media (min-width: 640px) {
    .hero-facts {
        font-size: 12px;
    }
}

.hero-facts>div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-inline: 8px;
}

.hero-facts>div:first-child {
    padding-left: 0;
}

.hero-facts>div:last-child {
    padding-right: 0;
}

.hero-facts>div+div {
    border-left: 1px solid var(--line);
}

.hero-facts svg {
    flex-shrink: 0;
    color: var(--gold-deep);
}

.hero-facts strong {
    color: var(--navy);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.hero-how {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 20px;
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .hero-photo {
        top: 0;
        bottom: 0;
        height: 100%;
        width: 58%;
    }

    .hero-overlay {
        background: linear-gradient(90deg, #faf6ec 38%, rgba(250, 246, 236, 0.85) 50%, rgba(250, 246, 236, 0) 72%);
    }

    .hero-content {
        min-height: 680px;
        padding: 80px 40px;
    }

    .hero-stack {
        max-width: 620px;
    }

    .hero-exam {
        font-size: 14px;
        line-height: 20px;
    }

    .hero-kicker {
        font-size: 12px;
        line-height: 16px;
    }

    .hero-lead {
        font-size: 16px;
        line-height: 24px;
    }

    .hero-title-amount {
        font-size: clamp(3rem, 4.2vw, 4.5rem);
    }

    .hero-title-mid {
        font-size: clamp(1rem, 1.35vw, 1.35rem);
    }

    .hero-title-end {
        font-size: clamp(2.25rem, 3.2vw, 3.5rem);
    }

    .hero-title-end-note {
        font-size: clamp(0.9375rem, 1.2vw, 1.25rem);
    }

    .hero-cta {
        flex-direction: row;
        gap: 16px;
    }
}

@media (min-width: 640px) and (max-width: 767.98px) {
    .hero-photo {
        height: 480px;
    }
}

@media (min-width: 640px) {
    .hero-title {
        max-width: none;
    }

    .hero-lead {
        max-width: 480px;
    }

    .prize-card {
        padding: 20px;
    }
}

/* Mobile hero: viewport-height composition (ported from the original) */
@media (max-width: 767px) {
    .scholarship-page {
        --m-header: 73px;
        --m-bar: calc(73px + env(safe-area-inset-bottom));
        padding-bottom: var(--m-bar);
    }

    .page-shell-offset {
        padding-bottom: var(--m-bar);
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - var(--m-header) - var(--m-bar));
        min-height: calc(100svh - var(--m-header) - var(--m-bar));
    }

    .hero-content {
        flex: auto;
        align-items: stretch;
        padding-top: clamp(12px, 2.6svh, 28px);
        padding-bottom: clamp(4px, 1svh, 12px);
    }

    .hero-stack {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 52px;
    }

    .hero-intro {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-intro>* {
        flex-shrink: 0;
    }

    .hero-intro .hero-award-summary {
        align-self: stretch;
    }

    .hero-exam {
        align-self: flex-start;
    }

    .hero-kicker {
        margin-top: clamp(8px, 1.8svh, 18px);
    }

    .hero-title {
        margin-top: clamp(8px, 1.6svh, 18px);
        font-size: clamp(1.85rem, min(9.4vw, 5.6svh), 3rem);
    }

    .hero-award-summary {
        margin-top: clamp(6px, 1.3svh, 14px);
        padding: clamp(4px, 0.8svh, 8px) 10px;
        font-size: clamp(1.05rem, min(5vw, 3.1svh), 1.6rem);
        border-radius: 3px;
        margin-left: -10px;
    }

    .hero-lead {
        margin-top: clamp(6px, 1.2svh, 14px);
        font-size: clamp(13px, 2.1svh, 15px);
        line-height: 1.45;
    }

    .hero-stack .prize-card {
        gap: 12px;
        margin-top: clamp(32px, 7svh, 64px);
        padding: clamp(10px, 1.8svh, 18px) 14px;
    }

    .hero-stack .prize-icon {
        width: clamp(40px, 6.5svh, 56px);
        height: clamp(40px, 6.5svh, 56px);
    }

    .hero-stack .prize-title {
        font-size: 18px;
    }

    .hero-stack .prize-note {
        font-size: 14px;
    }

    .hero-facts {
        margin-top: clamp(10px, 2svh, 24px);
    }

    .hero-cta {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: 0;
        padding-top: 0;
    }

    .hero-how {
        min-height: 44px;
    }
}

@media (max-width: 767px) and (max-height: 900px) {
    .scholarship-page {
        --m-header: 65px;
    }

    .header-bar {
        height: 61px;
    }

    .hero-content {
        padding: 12px 16px 4px;
    }

    .hero-title {
        font-size: clamp(28px, 4.2svh, 36px);
    }

    .hero-kicker {
        margin-top: 8px;
        font-size: 10px;
    }

    .hero-award-summary {
        margin-top: 6px;
        padding-top: 4px;
        padding-bottom: 4px;
        font-size: 18px;
    }

    .hero-lead {
        max-width: 70%;
        margin-top: 15px;
        font-size: 13px;
        line-height: 1.4;
    }

    .hero-stack .prize-card {
        gap: 10px;
        margin-top: clamp(24px, 6svh, 54px);
        padding: 10px 12px;
    }

    .hero-stack .prize-icon {
        width: 40px;
        height: 40px;
    }

    .hero-stack .prize-card .eyebrow {
        font-size: 9px;
    }

    .hero-stack .prize-title {
        font-size: 16px;
        line-height: 1.2;
    }

    .hero-stack .prize-note {
        font-size: 12px;
        line-height: 1.3;
    }

    .hero-facts {
        margin-top: 10px;
        font-size: 10.5px;
        line-height: 14px;
    }

    .hero-facts>div {
        gap: 5px;
    }

    .hero-facts svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 767px) and (max-height: 700px) {
    .scholarship-page {
        --m-header: 57px;
    }

    .header-bar {
        height: 53px;
    }

    .academic-header .crest {
        width: 32px;
        height: 32px;
    }

    .hero-content {
        padding-top: 6px;
        padding-bottom: 0;
    }

    .hero-exam {
        padding: 4px 9px;
        font-size: 11px;
    }

    .hero-kicker {
        margin-top: 5px;
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .hero-title {
        max-width: 62%;
        margin-top: 8px;
        font-size: 34px;
        line-height: 1.03;
    }

    .hero-intro .hero-award-summary {
        max-width: none;
        margin-top: 7px;
        padding-top: 3px;
        padding-bottom: 3px;
        font-size: 16px;
        line-height: 1.15;
    }

    .hero-lead {
        max-width: 75%;
        margin-top: 15px;
        font-size: 12px;
        line-height: 1.3;
    }

    .hero-stack .prize-card {
        margin-top: 22px;
        padding: 10px;
    }

    .hero-stack .prize-icon {
        width: 36px;
        height: 36px;
    }

    .hero-stack .prize-title {
        font-size: 15px;
    }

    .hero-stack .prize-title span {
        font-size: 12px;
    }

    .hero-stack .prize-note {
        margin-top: 3px;
        font-size: 12px;
    }

    .hero-facts {
        margin-top: 10px;
        gap: 0;
        font-size: 10px;
        line-height: 13px;
    }

    .hero-facts>div {
        gap: 4px;
    }

    .hero-photo {
        width: 66%;
        height: 390px;
    }

    .hero-background {
        object-position: 86% 35%;
    }

    .hero-overlay {
        background: linear-gradient(90deg, #faf6ec 22%, rgba(250, 246, 236, 0.94) 43%, rgba(250, 246, 236, 0.55) 62%, rgba(250, 246, 236, 0.03) 82%),
            linear-gradient(rgba(250, 246, 236, 0) 230px, #faf6ec 390px);
    }
}

@media (max-width: 767px) and (max-height: 600px) {
    .hero-title {
        max-width: 70%;
        margin-top: 5px;
        font-size: 24px;
    }

    .hero-intro .hero-award-summary {
        font-size: 15px;
    }

    .hero-stack .prize-card {
        margin-top: 14px;
        padding: 8px 10px;
    }

    .hero-stack .prize-icon {
        width: 30px;
        height: 30px;
    }

    .hero-facts {
        font-size: 9px;
        line-height: 11px;
    }

    .hero-facts svg {
        width: 11px;
        height: 11px;
    }
}

@media (max-width: 359px) {
    .hero-stack .prize-title {
        font-size: 16px;
    }

    .hero-facts {
        font-size: 10.5px;
    }

    .hero-exam {
        font-size: 12px;
    }
}

@media (max-width: 359px) and (max-height: 600px) {
    .hero-stack .prize-title {
        font-size: 14px;
    }

    .hero-stack .prize-note {
        font-size: 11px;
    }

    .hero-facts {
        font-size: 9px;
    }
}

@media (max-width: 767px) and (max-height: 520px) {
    .hero-section {
        min-height: 0;
    }

    .hero-title {
        font-size: 1.85rem;
    }
}

/* --------------------------------------------------------------------------
   Award progress
   -------------------------------------------------------------------------- */
.award-progress {
    padding: 32px 16px;
    background: var(--ivory);
    border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
    .award-progress {
        padding-inline: 24px;
    }
}

@media (min-width: 768px) {
    .award-progress {
        padding: 40px;
    }
}

.award-card {
    width: 100%;
    max-width: 1024px;
    margin-inline: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy);
    background: var(--ivory-card);
    box-shadow: 0 14px 34px rgba(20, 40, 75, 0.07);
}

@media (min-width: 640px) {
    .award-card {
        padding: 28px;
    }
}

.award-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.award-top .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.award-live {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.award-grid {
    display: grid;
    gap: 24px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .award-grid {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}

.award-amount {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy);
}

.award-amount span {
    font-size: 0.6em;
    font-style: italic;
    font-weight: 400;
    color: var(--gold-deep);
}

.award-meter {
    position: relative;
    height: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ivory-deep);
}

.award-meter-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy), #24406f);
    box-shadow: inset 0 -2px 0 var(--gold);
    transform-origin: 0;
}

.award-meter-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(184, 146, 74, 0.5);
}

.award-meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--ink-muted);
}

.award-meter-labels strong {
    color: var(--navy);
}

.award-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    text-align: center;
}

@media (min-width: 768px) {
    .award-stats {
        min-width: 260px;
    }
}

.stat-cell {
    padding: 12px;
}

.stat-cell+.stat-cell {
    border-left: 1px solid var(--line);
}

.stat-cell dt {
    font-size: 10px;
    color: var(--ink-muted);
}

.stat-cell dd {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: var(--navy);
}

.award-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 20px;
    color: var(--ink-soft);
}

.award-foot .text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 640px) {
    .award-foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section-ivory-deep {
    padding-block: 56px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ivory-deep);
}

.section-benefits,
.section-eligibility {
    padding-block: 56px;
}

.section-panel {
    padding-bottom: 56px;
}

.section-faqs {
    padding-block: 56px;
}

.section-final {
    padding: 40px 16px;
}

@media (min-width: 640px) {
    .section-final {
        padding-inline: 24px;
    }
}

@media (min-width: 768px) {
    .section-ivory-deep {
        padding-block: 80px;
    }

    .section-benefits,
    .section-eligibility {
        padding-block: 96px;
    }

    .section-panel {
        padding-bottom: 96px;
    }

    .section-final {
        padding-block: 56px;
    }
}

.scholarship-page section[id],
.scholarship-page #contact {
    scroll-margin-top: 96px;
}

/* How it works ------------------------------------------------------------- */
.how-heading {
    max-width: 768px;
    margin-inline: auto;
    text-align: center;
}

.how-heading .section-title {
    margin-top: 12px;
}

.how-heading .ornament {
    margin: 20px auto 0;
}

.how-heading .section-title {
    line-height: 36px;
}

@media (min-width: 768px) {
    .how-heading .section-title {
        line-height: 51.84px;
    }
}

.how-heading>p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.step-panel {
    display: grid;
    margin-top: 40px;
    border: 1px solid var(--line);
    background: var(--ivory-card);
}

@media (min-width: 768px) {
    .step-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 48px;
    }
}

.step-card {
    padding: 24px;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s;
}

.step-card:last-child {
    border-bottom: 0;
}

.step-card:hover {
    background: #fff8e8;
}

@media (min-width: 768px) {
    .step-card {
        padding: 32px;
        border-bottom: 0;
        border-left: 1px solid var(--line);
    }

    .step-card:first-child {
        border-left: 0;
    }
}

.step-numeral {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: var(--gold);
}

.step-card h3 {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.375;
    color: var(--navy);
}

.step-card ul {
    margin-top: 16px;
    padding-left: 16px;
    list-style: disc;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.step-card li {
    margin-top: 12px;
}

.step-card li:first-child {
    margin-top: 0;
}

.step-card li::marker {
    color: var(--gold-deep);
}

/* Benefit summary card ----------------------------------------------------- */
.benefit-summary {
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    background: var(--ivory-card);
}

@media (min-width: 640px) {
    .benefit-summary {
        padding: 24px;
    }
}

.benefit-summary .prize-icon {
    width: 48px;
    height: 48px;
}

.benefit-summary-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-summary-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.375;
    color: var(--navy);
}

.benefit-summary p+p {
    margin-top: 4px;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.benefit-summary strong {
    color: var(--navy);
}

/* Benefits ----------------------------------------------------------------- */
.benefits-intro {
    display: grid;
    gap: 32px;
}

.benefits-intro .section-title {
    line-height: 1.25;
}

.benefits-intro .ornament {
    margin-top: 20px;
}

@media (min-width: 768px) {
    .benefits-intro {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: end;
        gap: 64px;
    }
}

.benefit-grid {
    margin-top: 40px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--navy);
    background: var(--ivory-card);
}

@media (min-width: 768px) {
    .benefit-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 48px;
    }
}

.benefit-group {
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.benefit-group:last-child {
    border-bottom: 0;
}

@media (min-width: 768px) {
    .benefit-group {
        padding: 32px;
    }

    .benefit-group:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .benefit-group:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

.benefit-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--ivory-deep);
    color: var(--gold-deep);
}

.benefit-head .rule-icon {
    width: 40px;
    height: 40px;
}

.benefit-head h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--navy);
}

.benefit-group ul {
    margin-top: 20px;
}

.benefit-group li {
    display: flex;
    gap: 12px;
}

.benefit-group li+li {
    margin-top: 16px;
}

.benefit-group .diamond {
    margin-top: 8px;
}

.benefit-group li span:last-child {
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.benefit-group li strong {
    display: block;
    color: var(--navy);
}

.benefit-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.benefit-foot p {
    max-width: 672px;
    font-size: 11px;
    line-height: 20px;
    color: var(--ink-muted);
}

.benefit-foot .text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 640px) {
    .benefit-foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Eligibility two-column --------------------------------------------------- */
.eligibility-grid {
    display: grid;
    gap: 36px;
}

@media (min-width: 768px) {
    .eligibility-grid {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 80px;
    }
}

.eligibility-copy .section-title {
    max-width: 448px;
}

@media (min-width: 768px) {
    .eligibility-copy .section-title {
        font-size: 3rem;
    }
}

.eligibility-copy .section-title {
    line-height: 1.25;
}

.eligibility-copy>p:not(.eyebrow) {
    max-width: 512px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.eligibility-list {
    margin-top: 28px;
    padding-left: 20px;
    border-left: 1px solid var(--gold);
}

.eligibility-list p {
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.eligibility-list p+p {
    margin-top: 16px;
}

.eligibility-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold-deep);
}

.eligibility-list strong {
    color: var(--navy);
}

.document-card {
    position: relative;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--ivory-card);
    box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(20, 40, 75, 0.06);
}

.document-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184, 146, 74, 0.22);
    pointer-events: none;
}

@media (min-width: 640px) {
    .document-card {
        padding: 32px;
    }
}

.document-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.document-head h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--navy);
}

.tag-gold {
    padding: 6px 12px;
    border: 1px solid var(--gold);
    background: var(--ivory);
    color: var(--gold-deep);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mechanics-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
    border: 1px solid var(--line);
}

.mechanics-stats>div {
    padding: 16px 8px;
    text-align: center;
}

.mechanics-stats>div+div {
    border-left: 1px solid var(--line);
}

.mechanics-stats p:first-child {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: var(--navy);
}

.mechanics-stats p:last-child {
    margin-top: 4px;
    font-size: 10px;
    line-height: 16px;
    color: var(--ink-muted);
}

.document-note {
    margin-top: 16px;
    padding: 16px;
    background: var(--ivory-deep);
    font-size: 12px;
    line-height: 20px;
    color: var(--ink-soft);
}

.document-note strong {
    color: var(--navy);
}

.note-gold {
    margin-top: 12px;
    padding: 16px;
    border-left: 3px solid var(--gold);
    background: #fbf3df;
    font-size: 12px;
    line-height: 20px;
    color: var(--ink-soft);
}

.note-gold strong {
    color: var(--gold-deep);
}

.document-fine {
    margin-top: 16px;
    font-size: 10px;
    line-height: 16px;
    color: var(--ink-muted);
}

/* Navy eligibility panel --------------------------------------------------- */
.panel-shell {
    width: 100%;
    max-width: 896px;
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 640px) {
    .panel-shell {
        padding-inline: 24px;
    }
}

@media (min-width: 768px) {
    .panel-shell {
        padding-inline: 40px;
    }
}

.eligibility-panel {
    position: relative;
    padding: 24px;
    background: var(--navy);
    color: var(--ivory);
    box-shadow: 0 24px 50px rgba(13, 28, 55, 0.18);
}

.eligibility-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(201, 168, 98, 0.35);
    pointer-events: none;
}

@media (min-width: 640px) {
    .eligibility-panel {
        padding: 40px;
    }
}

.eligibility-panel h2 {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 36px;
    color: var(--ivory);
}

.eligibility-panel>p:not(.eyebrow):not(.eligibility-fine) {
    margin-top: 12px;
    font-size: 14px;
    line-height: 24px;
    color: #cdd6e2;
}

.eligibility-rules {
    margin-top: 28px;
}

.rule-item {
    display: flex;
    gap: 16px;
}

.rule-item+.rule-item {
    margin-top: 20px;
}

.rule-item .rule-icon {
    margin-top: 2px;
    width: 32px;
    height: 32px;
    border-color: var(--gold-light);
    background: transparent;
    color: var(--gold-light);
}

.rule-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ivory);
}

.rule-detail {
    margin-top: 4px;
    font-size: 14px;
    line-height: 24px;
    color: #cdd6e2;
}

.eligibility-fine {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 168, 98, 0.35);
    font-size: 12px;
    line-height: 20px;
    color: #cdd6e2;
}

.rule-title {
    line-height: 25.5px;
}

.eligibility-fine strong {
    color: var(--gold-light);
}

/* FAQs --------------------------------------------------------------------- */
.faq-shell {
    width: 100%;
    max-width: 896px;
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 640px) {
    .faq-shell {
        padding-inline: 24px;
    }
}

.faq-heading {
    margin-bottom: 32px;
    text-align: center;
}

.faq-heading .section-title {
    margin-top: 8px;
    font-size: 1.875rem;
    line-height: 36px;
}

@media (min-width: 768px) {
    .faq-heading .section-title {
        font-size: 2.25rem;
        line-height: 40px;
    }
}

.faq-heading .ornament {
    margin: 20px auto 0;
}

.faq-list {
    border-top: 2px solid var(--navy);
    border-bottom: 1px solid var(--line);
}

.faq-row+.faq-row {
    border-top: 1px solid var(--line);
}

.faq-row summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.faq-row summary::-webkit-details-marker {
    display: none;
}

.faq-row summary::marker {
    content: "";
}

.faq-row summary:focus-visible {
    outline: 3px solid rgba(184, 146, 74, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

.faq-open {
    display: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--gold-deep);
}

.faq-closed {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--gold-deep);
}

.faq-row[open] .faq-open {
    display: inline;
}

.faq-row[open] .faq-closed {
    display: none;
}

.faq-row>p {
    max-width: 768px;
    padding: 0 32px 20px 0;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--ivory-card);
}

@media (min-width: 640px) {
    .help-card {
        padding: 24px;
    }
}

@media (min-width: 768px) {
    .help-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.help-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--navy);
}

.help-card p {
    max-width: 576px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 20px;
    color: var(--ink-soft);
}

.help-actions {
    display: grid;
    gap: 8px;
}

@media (min-width: 640px) {
    .help-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding-inline: 16px;
    border: 1px solid var(--line);
    background: var(--ivory);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s;
}

.contact-link:hover {
    border-color: var(--gold);
    color: var(--navy);
}

/* Final call to action ----------------------------------------------------- */
.final-band {
    position: relative;
    max-width: 1280px;
    margin-inline: auto;
    padding: 48px 20px;
    background: var(--navy);
    text-align: center;
}

.final-band::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(201, 168, 98, 0.4);
    pointer-events: none;
}

.final-band>* {
    position: relative;
}

@media (min-width: 640px) {
    .final-band {
        padding-inline: 40px;
    }
}

@media (min-width: 768px) {
    .final-band {
        padding-block: 56px;
    }
}

.final-band h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 32px;
    color: var(--ivory);
}

@media (min-width: 640px) {
    .final-band h2 {
        font-size: 2.1rem;
        line-height: 44.8px;
    }
}

.final-band .ornament {
    margin: 16px auto 0;
}

.final-band p {
    margin-top: 16px;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.final-band .btn-apply {
    margin-top: 28px;
}

.final-band .btn-wrap {
    display: none;
}

@media (min-width: 768px) {
    .final-band .btn-wrap {
        display: block;
    }
}

/* Footer ------------------------------------------------------------------- */
.academic-footer {
    padding-block: 32px;
    border-top: 1px solid var(--line);
    background: var(--ivory-deep);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #14284b;
}

.footer-brand .brand-name {
    font-size: 15px;
    letter-spacing: 0.13em;
}

.footer-inner p {
    max-width: 672px;
    font-size: 11px;
    line-height: 20px;
    color: var(--ink-muted);
}

.footer-inner .text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile apply bar --------------------------------------------------------- */
.mobile-apply-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 12px;
    padding: 12px;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(250, 246, 236, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 -8px 24px rgba(20, 40, 75, 0.08);
}

.mobile-apply-bar .contact-link {
    min-height: 48px;
    border-radius: 3px;
    font-size: 14px;
}

.mobile-apply-bar .btn-apply {
    min-height: 48px;
    padding: 0;
    border-radius: 14px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Contact modal
   -------------------------------------------------------------------------- */
.contact-modal .modal-dialog {
    width: calc(100% - 2rem);
    max-width: 28rem;
    margin: 1rem auto;
}

.contact-modal .modal-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #e2d8c1;
    border-radius: 8px;
    background: #faf6ec;
    color: #14284b;
}

.contact-modal h2 {
    padding-right: 24px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.01em;
}

.contact-modal .contact-intro {
    font-size: 14px;
    line-height: 24px;
    color: #4a5468;
}

.contact-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 2px;
    color: #14284b;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.contact-close:hover {
    opacity: 1;
}

.callback-form {
    display: grid;
    gap: 12px;
}

.callback-form label {
    font-size: 14px;
    font-weight: 600;
}

.phone-field {
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid #cbbd9f;
    border-radius: 4px;
    background: #fff;
}

.phone-field:focus-within {
    box-shadow: 0 0 0 2px rgba(184, 146, 74, 0.55);
}

.phone-field span {
    padding: 0 12px;
    border-right: 1px solid #e2d8c1;
    font-size: 14px;
}

.phone-field input {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    border: 0;
    background: transparent;
    font-size: 16px;
    line-height: 24px;
    outline: none;
}

.callback-consent {
    font-size: 12px;
    line-height: 20px;
    color: #4a5468;
}

.callback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 16px;
    border-radius: 4px;
    background: #14284b;
    color: #faf6ec;
    font-size: 14px;
    font-weight: 600;
}

.callback-submit:disabled {
    cursor: not-allowed;
}

.callback-success {
    padding: 16px;
    border: 1px solid #e2d8c1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
}

.callback-success svg {
    margin-bottom: 8px;
    color: #8c6a2a;
}

.callback-success h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}

.callback-success p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 24px;
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8c6a2a;
}

.contact-divider::before,
.contact-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2d8c1;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 12px;
    border: 1px solid #b0cbb4;
    border-radius: 4px;
    background: #edf5ee;
    color: #215936;
    font-size: 14px;
    font-weight: 600;
}

.whatsapp-link:hover {
    color: #215936;
    border-color: #7fae86;
}

.contact-note {
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    color: #4a5468;
}

/* --------------------------------------------------------------------------
   Winners page
   -------------------------------------------------------------------------- */
.winners-main {
    width: 100%;
    max-width: 1024px;
    margin-inline: auto;
    padding: 32px 16px 64px;
}

@media (min-width: 640px) {
    .winners-main {
        padding-inline: 24px;
    }
}

@media (min-width: 768px) {
    .winners-main {
        padding: 48px 40px 64px;
    }
}

.winners-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.winners-body {
    margin-top: 24px;
}

.winners-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.winners-meta span {
    font-size: 12px;
    color: var(--gold-deep);
}

.winners-title {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.winners-body>.ornament {
    margin-top: 20px;
}

.winners-intro {
    max-width: 672px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.winners-summary {
    display: grid;
    margin-top: 32px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy);
    background: var(--ivory-card);
    box-shadow: 0 14px 34px rgba(20, 40, 75, 0.07);
}

@media (min-width: 640px) {
    .winners-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.winner-stat {
    padding: 20px;
}

.winner-stat+.winner-stat {
    border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
    .winner-stat+.winner-stat {
        border-top: 0;
        border-left: 1px solid var(--line);
    }
}

.winner-stat dt {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.winner-stat dd {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    color: var(--navy);
}

.winners-meter {
    margin-top: 12px;
}

.winners-meter-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-muted);
}

.results-section {
    margin-top: 48px;
}

.results-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--navy);
}

@media (min-width: 640px) {
    .results-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.results-head h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
}

.results-empty {
    margin-top: 24px;
    padding: 32px;
    text-align: center;
}

@media (min-width: 640px) {
    .results-empty {
        padding: 48px;
    }
}

.results-empty .prize-icon {
    width: 48px;
    height: 48px;
    margin-inline: auto;
}

.results-empty h3 {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--navy);
}

.results-empty p {
    max-width: 448px;
    margin: 8px auto 0;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Application flow
   -------------------------------------------------------------------------- */
.apply-shell {
    padding-bottom: 0 !important;
}

.apply-header {
    border-bottom: 1px solid var(--line);
}

.apply-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    height: 56px;
    margin-inline: auto;
    padding-inline: 16px;
}

.apply-exit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 14px;
    color: var(--ink-soft);
    transition: color 0.2s;
}

.apply-exit:hover {
    color: var(--navy);
}

.apply-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.13em;
    color: var(--navy);
    text-decoration: none;
}

.apply-wordmark .crest {
    width: 28px;
    height: 28px;
}

.apply-main {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    padding: 24px 16px 48px;
}

@media (min-width: 768px) {
    .apply-main {
        padding-top: 40px;
    }
}

.apply-steps {
    display: flex;
    gap: 6px;
}

.ap-seg {
    flex: 1;
    height: 3px;
    background: var(--line);
    transition: background 0.3s;
}

.ap-seg.is-on {
    background: var(--navy);
}

.apply-step-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-muted);
}

.apply-step-label strong {
    font-weight: 600;
    color: var(--navy);
}

.apply-body {
    margin-top: 24px;
}

.ap-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.apply-heading {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy);
}

@media (min-width: 768px) {
    .apply-heading {
        font-size: 32px;
    }
}

.apply-subhead {
    margin-top: 8px;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
}

.apply-intro {
    margin-bottom: 24px;
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 20px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ap-btn:disabled {
    cursor: not-allowed;
}

.ap-btn-primary {
    background: var(--navy);
    color: var(--ivory);
}

.ap-btn-primary:hover:not(:disabled) {
    background: var(--navy-deep);
    box-shadow: inset 0 -2px 0 var(--gold);
    color: var(--ivory);
}

.ap-btn-primary:disabled {
    background: #c9ccd3;
    color: #f4f2ec;
}

.ap-btn-ghost {
    background: transparent;
    color: var(--navy);
}

.ap-btn-ghost:hover:not(:disabled) {
    background: var(--ivory-deep);
    color: var(--navy);
}

.ap-btn-ghost:disabled {
    color: #9aa0ab;
}

.ap-btn-preview {
    border: 1px dashed var(--gold);
    background: var(--ivory-card);
    color: var(--gold-deep);
}

.ap-btn-preview:hover {
    background: #fbf3df;
    color: var(--gold-deep);
}

.ap-btn-outline {
    border: 1px solid var(--line);
}

button.ap-google {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #3c4043;
    border-radius: 4px;
    background: #ffffff;
    color: #1f1f1f;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15px;
    cursor: pointer;
    box-shadow: none;
}

button.ap-google:hover:not(:disabled) {
    background: #f8f9fa;
    color: #1f1f1f;
}

button.ap-google:active:not(:disabled) {
    background: #eeeeee;
    color: #1f1f1f;
}

button.ap-google:disabled {
    cursor: wait;
    opacity: 1;
    background: #ffffff;
    color: #1f1f1f;
}

button.ap-google .ap-google-icon {
    display: flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

button.ap-google .ap-google-label {
    color: #1f1f1f;
    line-height: 1;
}

.ap-notice {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.ap-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ap-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.ap-divider::before,
.ap-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.apply-form .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.apply-form .form-control,
.apply-form .form-select {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background-color: var(--ivory-card);
    color: var(--navy);
    font-size: 16px;
    line-height: 46px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.apply-form .form-control:focus,
.apply-form .form-select:focus {
    border-color: var(--navy);
    background-color: var(--ivory-card);
    color: var(--navy);
    box-shadow: none;
}

.apply-form .form-control::placeholder {
    color: #a6a59c;
}

.apply-form .form-control:disabled,
.apply-form .form-select:disabled {
    background-color: var(--ivory-deep);
    color: #9aa0ab;
    opacity: 1;
}

.apply-form .form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 20px;
    color: var(--ink-muted);
}

.college-field {
    position: relative;
}

.college-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 40, 75, 0.08);
}

.college-results li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-bottom: 1px solid #eceae3;
    cursor: pointer;
}

.college-results li:last-child {
    border-bottom: 0;
}

.college-results li:hover,
.college-results li:focus {
    background: #f7f5ef;
    outline: none;
}

.college-results-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--navy);
}

.college-results-meta {
    font-size: 12px;
    line-height: 1.35;
    color: var(--ink-muted);
}

.college-results-empty {
    padding: 14px;
    font-size: 13px;
    color: var(--ink-muted);
    cursor: default;
}

.apply-form .form-select {
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314284b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid .span-2 {
        grid-column: span 2;
    }
}

.phone-input {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--ivory-card);
    transition: border-color 0.2s;
}

.phone-input:focus-within {
    border-color: var(--navy);
}

.phone-input span {
    padding-left: 14px;
    font-size: 14px;
    color: var(--ink-muted);
}

.phone-input input {
    height: 100%;
    flex: 1;
    min-width: 0;
    padding: 0 12px 0 12px;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: var(--navy);
    outline: none;
}

.apply-field-note {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-soft);
}

.phone-input input::placeholder {
    color: #a6a59c;
}

.otp-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 16px;
}

.otp-row input {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--ivory-card);
    color: var(--navy);
    font-size: 16px;
    outline: none;
}

.otp-row input:focus {
    border-color: var(--navy);
}

.otp-row input::placeholder {
    color: #a6a59c;
}

.otp-row input:disabled {
    background: var(--ivory-deep);
    color: #9aa0ab;
}

.otp-row .ap-btn {
    border: 1px solid var(--line);
}

.apply-note {
    margin-top: 20px;
    font-size: 12px;
    line-height: 20px;
    color: var(--ink-muted);
}

.apply-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 32px;
}

.apply-actions .ap-btn {
    width: 100%;
}

.apply-actions-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-muted);
}

@media (min-width: 640px) {
    .apply-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .apply-actions .ap-btn {
        width: auto;
    }

    .apply-actions-note {
        text-align: right;
    }
}

.apply-disclosure {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 20px;
    color: var(--ink-muted);
}

/* Document upload ---------------------------------------------------------- */
.upload-stack {
    display: grid;
    gap: 12px;
}

.ap-drop {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #cdbf9f;
    background: var(--ivory-card);
    cursor: pointer;
    transition: border-color 0.2s;
}

.ap-drop:hover,
.ap-drop:focus-within {
    border-color: var(--navy);
}

.ap-drop svg {
    flex-shrink: 0;
    color: var(--gold-deep);
}

.ap-drop strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.ap-drop small {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
}

.ap-drop>span {
    min-width: 0;
    flex: 1;
}

.ap-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px 10px 10px;
    border: 1px solid var(--line);
    background: var(--ivory-card);
}

.ap-file-thumb,
.ap-file-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.ap-file-thumb {
    object-fit: cover;
}

.ap-file-icon {
    display: grid;
    place-items: center;
    background: var(--ivory-deep);
    color: var(--navy);
}

.ap-file-body {
    min-width: 0;
    flex: 1;
}

.ap-file-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.ap-file-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: var(--navy);
}

.ap-file-meta {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
}

.ap-file-meta label {
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.ap-file-remove {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--ink-muted);
}

.ap-file-remove:hover {
    color: #9a3b2e;
}

.ap-error {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-left: 3px solid #c0634f;
    background: #fbefe9;
    color: #9a3b2e;
    font-size: 13px;
}

/* Review ------------------------------------------------------------------- */
.ap-group {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.ap-group:last-of-type {
    border-bottom: 1px solid var(--line);
}

.review-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-group-head h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.review-edit {
    min-height: 36px;
    padding-inline: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 6px;
    font-size: 14px;
}

.review-row dt {
    flex-shrink: 0;
    color: var(--ink-muted);
}

.review-row dd {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    color: var(--navy);
}

.consent-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.form-check.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-soft);
    cursor: pointer;
}

.form-check.consent .form-check-input,
.form-check.consent .form-check-label {
    cursor: pointer;
}

.form-check.consent .form-check-input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 4px 0 0;
    border-color: #b8b3a5;
    border-radius: 2px;
    accent-color: var(--navy);
}

.form-check.consent .form-check-input:checked {
    background-color: var(--navy);
    border-color: var(--navy);
}

.consent-muted {
    color: var(--ink-muted);
}

.apply-submit {
    width: 100%;
    margin-top: 24px;
}

.apply-section-title {
    margin-top: 32px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
}

.ap-college {
    margin-top: 24px;
}

.apply-back-overview {
    width: 100%;
    margin-top: 12px;
}

/* Next steps --------------------------------------------------------------- */
.ap-steps li {
    position: relative;
    padding: 0 0 14px 34px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    counter-increment: step;
}

.ap-steps {
    counter-reset: step;
    margin-top: 12px;
}

.ap-steps li strong {
    display: block;
    font-weight: 600;
    color: var(--navy);
}

.ap-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--gold-deep);
}

.ap-steps li:last-child {
    padding-bottom: 0;
}

.ap-share {
    margin-top: 28px;
    padding: 18px;
    border-left: 3px solid var(--gold);
    background: var(--ivory-deep);
}

.ap-share p:first-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.ap-share p+p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 20px;
    color: var(--ink-soft);
}

.ap-share .ap-btn {
    width: 100%;
    margin-top: 16px;
}

.ap-group-label {
    font-size: 12px;
    color: var(--ink-muted);
}

.ap-group-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}