@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
    --cream: #F2EDE3;
    --cream-dark: #E8E2D5;
    --navy: #1E2C6B;
    --navy-light: #2A3A8A;
    --amber: #D4880F;
    --amber-light: #E8A020;
    --white: #FFFFFF;
    --text-body: #3A3A3A;
    --text-muted: #6B6B6B;
    --border: rgba(30, 44, 107, 0.15);
    --shadow: 0 4px 20px rgba(30, 44, 107, 0.10);
    --shadow-hover: 0 8px 32px rgba(30, 44, 107, 0.18);
    --radius: 18px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text-body);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: 'DM Serif Display', serif;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    color: var(--text-body);
}

a {
    color: var(--amber);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.highlight {
    color: var(--amber);
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* LAYOUT */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 72px 0;
}

/* NAV */
nav {
    background: rgba(30, 44, 107, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--amber);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(30, 44, 107, 1);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.32);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 24px;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    color: var(--white);
    font-size: 1.15rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.nav-logo span {
    color: var(--amber);
}

.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 1.5px;
    background: var(--amber);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links .divider-dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 2px;
}

.nav-cta {
    background: var(--amber);
    color: var(--navy) !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: var(--amber-light) !important;
    transform: translateY(-1px);
    text-decoration: none !important;
    color: var(--navy) !important;
    opacity: 1 !important;
}

.nav-cta::after {
    display: none !important;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    nav {
        padding: 0 20px;
    }
}

/* ALERT BADGE */
.alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--amber);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 24px 72px;
    background: var(--cream);
}

.hero .badge-wrap {
    margin-bottom: 28px;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero p.sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--white);
}

.btn-amber {
    background: var(--amber);
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-amber:hover {
    background: var(--amber-light);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--navy);
}

.hero-note {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* SECTION LABEL */
.section-label {
    display: inline-block;
    background: var(--amber);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ASCII BOX */
.ascii-box {
    background: var(--cream-dark);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--navy);
    overflow-x: auto;
    white-space: pre;
    position: relative;
}

.ascii-box::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(30, 44, 107, 0.18);
    border-radius: 6px;
    pointer-events: none;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.25s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.card.featured {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.card.featured h3,
.card.featured h4,
.card.featured p,
.card.featured .pill {
    color: var(--white);
}

.card.featured .pill.amber {
    background: var(--amber);
    color: var(--navy);
}

.card.amber-card {
    background: var(--amber);
    border-color: var(--amber);
}

.card.amber-card h3,
.card.amber-card h4,
.card.amber-card p,
.card.amber-card li {
    color: var(--navy);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card-icon.amber-bg {
    background: rgba(212, 136, 15, 0.15);
}

.card-icon.navy-bg {
    background: rgba(255, 255, 255, 0.15);
}

.card .pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.pill.navy {
    background: var(--navy);
    color: var(--white);
}

.pill.amber {
    background: var(--amber);
    color: var(--navy);
}

.pill.green {
    background: #2D7D5A;
    color: var(--white);
}

.pill.red {
    background: #C0392B;
    color: var(--white);
}

.card .tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.card .card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card.featured .card-meta {
    color: rgba(255, 255, 255, 0.7);
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: 5px 0 5px 20px;
    position: relative;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(30, 44, 107, 0.06);
}

.card ul li:last-child {
    border-bottom: none;
}

.card ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: 700;
}

.card.featured ul li::before {
    color: var(--amber-light);
}

.card.amber-card ul li::before {
    color: var(--navy);
}

.card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    padding: 8px 16px;
    background: var(--cream);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.card .card-link:hover {
    background: var(--cream-dark);
    text-decoration: none;
}

.card.featured .card-link {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.card.featured .card-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.card.amber-card .card-link {
    background: var(--navy);
    color: var(--white);
}

/* SCHOLARSHIP COVERAGE TABLE */
.coverage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: 0.88rem;
}

.coverage-table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}

.coverage-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.coverage-table tr:nth-child(even) td {
    background: rgba(30, 44, 107, 0.04);
}

.coverage-table tr:hover td {
    background: rgba(212, 136, 15, 0.08);
}

.check {
    color: #2D7D5A;
    font-weight: 700;
}

.cross {
    color: #C0392B;
}

.urgency-now {
    color: #C0392B;
    font-weight: 700;
}

.urgency-soon {
    color: var(--amber);
    font-weight: 700;
}

.urgency-later {
    color: #2D7D5A;
    font-weight: 600;
}

/* 2-COL LAYOUT */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 640px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* TIMELINE SECTION */
.timeline-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px 24px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-row:last-child {
    border-bottom: none;
}

.timeline-month {
    font-family: 'DM Serif Display', serif;
    color: var(--amber);
    font-size: 0.9rem;
    padding-top: 2px;
}

.timeline-month .year {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* COURSE LIST */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.course-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: var(--cream-dark);
    border-radius: 8px;
    font-size: 0.85rem;
}

.course-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--amber);
    font-weight: 500;
    white-space: nowrap;
    min-width: 70px;
}

/* SCHOLARSHIP AMOUNT */
.amount-big {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--navy);
    line-height: 1;
}

.amount-unit {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    padding: 40px 24px;
    font-size: 0.85rem;
}

footer strong {
    color: var(--white);
}

footer a {
    color: var(--amber-light);
}

/* STEP CONNECTOR */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    position: relative;
}

.step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--amber);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 44px;
    width: 2px;
    bottom: 0;
    background: var(--border);
}

.step-body {
    flex: 1;
    padding-top: 4px;
}

.step-body strong {
    display: block;
    color: var(--navy);
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    margin-bottom: 2px;
}

.step-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* SECTION DIVIDER */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

/* URGENCY STRIP */
.urgency-strip {
    background: var(--navy);
    color: var(--white);
    padding: 14px 24px;
    text-align: center;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.urgency-strip .tag {
    background: var(--amber);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 48px 0;
    }

    .ascii-box {
        font-size: 0.7rem;
        padding: 16px;
    }
}

/* SECTION BG ALTERNATES */
.bg-white {
    background: var(--white);
}

.bg-navy {
    background: var(--navy);
}

.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
    color: var(--white);
}

.bg-navy p,
.bg-navy li {
    color: rgba(255, 255, 255, 0.8);
}

.bg-navy .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* STAT ROW */
.stat-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat .num {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--navy);
}

.stat .lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}