*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --green-deep: #14532D;
    --green-mid: #22863A;
    --green-lime: #A3E635;
    --green-pale: #ECFCCB;
    --coral: #F87171;
    --coral-hover: #EF4444;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --font-display: 'Nunito', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-card: 0 1px 4px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.07);
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }

/* ===== HEADER ===== */
.header { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header-logo { text-decoration: none; }
.header-logo img { height: 36px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--gray-800); text-decoration: none; padding: 8px 16px; border-radius: var(--radius-pill); transition: background 0.15s; }
.header-nav a:hover { background: var(--gray-100); }
.header-nav .nav-cta { background: var(--coral); color: var(--white); margin-left: 8px; }
.header-nav .nav-cta:hover { background: var(--coral-hover); }

/* ===== SPLIT LAYOUT ===== */
.split-layout { display: grid; grid-template-columns: 420px 1fr; min-height: 0; max-width: 100%; overflow: hidden; }

/* ===== LEFT PANEL ===== */
.left-panel {
    background: linear-gradient(175deg, #FAFDF6 0%, #ECFCCB 50%, #D9F99D 100%);
    position: relative;
    overflow: hidden;
    padding: 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 15%, rgba(163,230,53,0.25) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(248,113,113,0.15) 0%, transparent 45%);
    pointer-events: none;
}
.left-panel-bg { display: none; }
.left-content { position: relative; z-index: 1; }
.left-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #5A6350; margin-bottom: 16px; }
.left-breadcrumb a { color: #3D5C2E; text-decoration: none; transition: color 0.15s; }
.left-breadcrumb a:hover { color: var(--green-deep); }
.left-breadcrumb svg { width: 10px; height: 10px; }
.left-category { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--green-deep); line-height: 1.1; margin-bottom: 12px; }
.left-desc { font-size: 0.85rem; color: #4B5563; line-height: 1.6; max-width: 340px; }

/* ===== RIGHT PANEL ===== */
.right-panel { background: var(--gray-50); padding: 48px 48px 64px; overflow-y: auto; overflow-x: hidden; min-width: 0; }
.right-header { margin-bottom: 32px; }
.right-header h1 { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; color: var(--green-deep); line-height: 1.2; margin-bottom: 8px; }
.right-header p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.6; max-width: 520px; }

/* ===== MOBILE BENEFITS STRIP (mobile only) ===== */
.benefits-strip { display: none; }
.benefits-strip-hook {
    font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
    color: var(--green-deep); line-height: 1.3; margin-bottom: 6px;
}
/* Grid, not flex-wrap: flex packs by natural width, which left the second
   column's checkmarks unaligned row to row. minmax(0, max-content) keeps the
   columns aligned but lets them shrink rather than overflow if the font
   renders wider than expected. */
.benefits-list {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, max-content);
    gap: 5px 12px; list-style: none;
}
.benefits-list li {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.76rem; font-weight: 500; color: #364152; line-height: 1.45;
}
.benefits-list svg { width: 13px; height: 13px; flex-shrink: 0; color: #3F7A0C; stroke-width: 3.5; }

/* ===== SCHOOL CARD ===== */
.school-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}
.school-card.featured { border-color: var(--green-lime); border-width: 2px; }
.card-ribbon {
    display: inline-block;
    background: var(--coral); color: var(--white);
    font-family: var(--font-display); font-weight: 800; font-size: 0.68rem;
    letter-spacing: 0.04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 0 0 8px 0; margin-bottom: 12px;
}
.card-ribbon.green { background: var(--green-deep); }
.card-ribbon.lime { background: #65A30D; }
.school-card-inner { padding: 20px 22px 18px; }
/* Cards without a ribbon need their own top breathing room */
.school-card.no-ribbon .school-card-inner { padding-top: 26px; }
.card-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.card-stars svg { width: 18px; height: 18px; color: #F59E0B; }
.card-body { display: grid; grid-template-columns: 180px 1fr; gap: 20px; margin-bottom: 16px; align-items: start; }
.card-logo { width: 180px; height: 80px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-logo img { max-width: 115%; max-height: 115%; object-fit: contain; margin: -8px; }
.card-logo.purdue-logo { background: #000; border-radius: var(--radius-sm); padding: 8px 10px; }
.card-logo.purdue-logo img { max-width: 100%; max-height: 100%; margin: 0; }
.card-info h2 { font-family: var(--font-display); font-weight: 900; font-size: 1rem; color: var(--green-deep); margin-bottom: 6px; line-height: 1.3; word-wrap: break-word; }
.card-info p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.55; margin-bottom: 8px; }
.card-online { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--gray-600); font-weight: 500; }
.card-online svg { width: 16px; height: 16px; color: var(--green-mid); }
.card-cta { display: block; width: 100%; padding: 12px 20px; box-sizing: border-box; background: var(--green-lime); color: var(--green-deep); font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-align: center; text-decoration: none; border-radius: var(--radius-pill); transition: all 0.2s ease; }
.card-cta:hover { background: #8FCF1A; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(163,230,53,0.4); }
.card-tcpa { font-size: 0.68rem; color: #9CA3AF; line-height: 1.5; margin-bottom: 14px; text-align: left; }
.card-tcpa a { color: #9CA3AF; text-decoration: underline; }
.card-disclosure { text-align: center; font-size: 0.7rem; color: var(--gray-400); padding: 10px 0 0; }
.card-disclosure a { color: var(--gray-400); text-decoration: underline; }

/* ===== OTHER AREAS ===== */
.other-areas { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.other-areas h3 { font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 14px; }
.areas-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.area-pill { padding: 8px 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-pill); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--green-deep); transition: all 0.15s; }
.area-pill:hover { border-color: var(--green-lime); background: var(--green-pale); }
.area-pill.current { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); pointer-events: none; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-800); padding: 28px 32px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand img { height: 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-links a:hover { color: var(--green-lime); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ===== TABLET ===== */
@media (max-width: 900px) {
    .split-layout { grid-template-columns: 1fr; }
    .left-panel { min-height: 180px; padding: 28px 24px 24px; justify-content: flex-end; }
    .left-breadcrumb { margin-bottom: 12px; }
    .left-category { font-size: 2rem; margin-bottom: 8px; }
    .left-desc { font-size: 0.9rem; }
    .right-panel { padding: 28px 24px 48px; }
    .right-header { margin-bottom: 20px; }
    .right-header h1 { font-size: 1.4rem; }
    .card-body { grid-template-columns: 160px 1fr; gap: 16px; }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    /* Header: smaller logo, hide all nav */
    .header-inner { padding: 0 16px; height: 48px; }
    .header-logo img { height: 24px; }
    .header-nav { display: none; }

    /* Left panel: ultra-compact banner */
    .left-panel { min-height: auto; padding: 14px 16px 12px; }
    .left-panel::before { display: none; }
    .left-breadcrumb { font-size: 0.7rem; margin-bottom: 6px; gap: 4px; flex-wrap: wrap; }
    .left-category { font-size: 1.5rem; margin-bottom: 0; }
    .left-desc { display: none; }

    /* Right panel: tight, card-first */
    .right-panel { padding: 14px 16px 32px; }
    .right-header { margin-bottom: 10px; }
    .right-header h1 { font-size: 1.1rem; margin-bottom: 0; }
    .right-header p { display: none; }

    /* Benefits strip: replaces the hidden intro paragraph. Full-bleed so the
       two columns get the panel's side padding back - inside a rounded box
       there isn't room for both columns without the longest item wrapping. */
    .benefits-strip {
        display: block;
        background: linear-gradient(158deg, #F9FDF0 0%, #EDF9D5 100%);
        border-top: 1px solid #DCEEB4;
        border-bottom: 1px solid #DCEEB4;
        padding: 12px 16px 13px;
        margin: 0 -16px 14px;
    }

    /* Card: logo + title on one row, description across full width */
    .school-card { border-radius: 12px; margin-bottom: 12px; }
    .school-card-inner { padding: 14px 14px 14px; }
    .school-card.no-ribbon .school-card-inner { padding-top: 18px; }
    .card-stars { margin-bottom: 12px; }
    .card-stars svg { width: 16px; height: 16px; }
    .card-body {
        grid-template-columns: 100px 1fr;
        grid-template-areas: "logo title" "desc desc" "online online";
        gap: 9px 12px;
        margin-bottom: 12px;
    }
    .card-logo { grid-area: logo; width: 100px; height: 54px; align-self: center; }
    .card-info { display: contents; }
    .card-info h2 { grid-area: title; align-self: center; font-size: 0.95rem; margin-bottom: 0; }
    .card-info p { grid-area: desc; font-size: 0.8rem; line-height: 1.5; margin-bottom: 0; }
    .card-online { grid-area: online; font-size: 0.8rem; }
    .card-cta { padding: 13px 20px; font-size: 1rem; border-radius: 999px; }

    .other-areas { margin-top: 24px; padding-top: 20px; }
    .areas-grid { gap: 6px; }
    .area-pill { padding: 7px 13px; font-size: 0.78rem; }

    .footer { padding: 20px 16px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-links { flex-wrap: wrap; gap: 12px; }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 380px) {
    .left-category { font-size: 1.3rem; }
    .right-header h1 { font-size: 1rem; }
    .card-body { grid-template-columns: 88px 1fr; gap: 8px 10px; }
    .card-logo { width: 88px; height: 48px; }
    .card-info h2 { font-size: 0.9rem; }
    .card-info p { font-size: 0.78rem; }
}

/* Below ~390px there is no room for two aligned columns without the longest
   item wrapping, so stack them. One per row reads as deliberate. */
@media (max-width: 380px) {
    .benefits-list { grid-template-columns: 1fr; gap: 4px; }
}


