/* ==========================================================================
   Education Loan page (education-loan.html)
   A title band + a list of lending partners — no hero CTAs, no marketing
   sections, but with real color: a maroon/gold gradient band up top, and
   each partner given its own accent color so the list doesn't read as one
   flat monochrome block.
   ========================================================================== */

:root {
    --el-maroon: #7e0606;
    --el-maroon-light: #a30d0d;
    --el-gold: #b8860b;
    --el-gold-light: #d4a017;
    --el-ink: #241a1a;
    --el-muted: #6b5f5f;
    --el-paper: #fffdf9;
    --el-line: #ecdfd2;

    --el-c-maroon: #a30d0d;
    --el-c-maroon-soft: #fbeceb;
    --el-c-blue: #0f5fa8;
    --el-c-blue-soft: #e8f1fa;
    --el-c-teal: #0e7d6b;
    --el-c-teal-soft: #e6f5f1;
    --el-c-violet: #6a3aad;
    --el-c-violet-soft: #f1eafa;
    --el-c-amber: #b8720c;
    --el-c-amber-soft: #fbf0e0;
}

.el-page {
    background: var(--el-paper);
    color: var(--el-ink);
    font-family: 'Lato', sans-serif;
    /* padding-bottom: 80px; */
}

.el-page * {
    box-sizing: border-box;
}

.el-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 4px;
}

/* ---------- Header band ---------- */
.el-head {
    /* The bare `header` element already carries site-wide rules
       (float: left; width: 100%; padding: 10px 0;) from assets/css/style.css
       meant for the page's own <header>. Reset them explicitly here or this
       band floats and squeezes everything after it into a sliver on the
       right. */
    display: block;
    float: none;
    width: auto;
    position: relative;
    background:
        radial-gradient(620px 320px at 100% 0%, rgba(212, 160, 23, .28), transparent 62%),
        linear-gradient(120deg, var(--el-maroon) 0%, #5c0404 72%, #430303 100%);
    color: #fff;
    padding: 10px 0 44px;
    margin-bottom: 12px;
    overflow: hidden;
    isolation: isolate;
}

.el-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .4;
    pointer-events: none;
    z-index: 0;
}

/* Soft floating color orbs — depth behind the copy without competing with it */
.el-head-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    opacity: .55;
}

.el-head-orb--gold {
    width: 300px;
    height: 300px;
    top: -120px;
    right: 8%;
    background: radial-gradient(circle, var(--el-gold-light), transparent 70%);
    animation: el-orb-float 9s ease-in-out infinite;
}

.el-head-orb--maroon {
    width: 260px;
    height: 260px;
    bottom: -140px;
    left: 4%;
    background: radial-gradient(circle, #ff5757, transparent 70%);
    opacity: .28;
    animation: el-orb-float 11s ease-in-out infinite reverse;
}

@keyframes el-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-16px, 18px) scale(1.08); }
}

/* Large faint watermark icon — a quiet decorative anchor on the right */
.el-head-watermark {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%) rotate(-12deg);
    font-size: 220px;
    color: rgba(255, 255, 255, .05);
    z-index: 0;
    pointer-events: none;
}

.el-head-inner {
    position: relative;
    z-index: 1;
}

.el-head-copy {
    max-width: 620px;
}

.el-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #ffe9b3;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 233, 179, .35);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 9px;
}

.el-head h1 {
    position: relative;
    font-family: 'Noto Serif', serif;
    font-size: clamp(30px, 4.4vw, 32px);
    line-height: 1.15;
    margin: 0 0 4px;
    text-wrap: balance;
    background: linear-gradient(100deg, #fff 40%, #ffe9b3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.el-head p {
    position: relative;
    font-size: 13px;
    line-height: 1.75;
    color: #f1e2e2;
    max-width: 560px;
    margin: 0 0 6px;
}

/* Trust-signal chips under the copy — a quick-scan row of what matters */
.el-head-stats {
    position: relative;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.el-head-stats li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 8px 14px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.el-head-stats li i {
    color: var(--el-gold-light);
    font-size: 12px;
}

/* Wave divider — a curved seam into the cream page instead of a hard edge */
.el-head-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 40px;
    z-index: 1;
}

.el-head-wave path {
    fill: var(--el-paper);
}

@media (prefers-reduced-motion: reduce) {
    .el-head-orb {
        animation: none;
    }
}

/* ---------- Partner list section head ---------- */
.el-list-head {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 26px;
}

.el-kicker--dark {
    color: var(--el-c-amber);
    background: var(--el-c-amber-soft);
    border-color: #f0dcb8;
}

.el-list-head h2 {
    font-family: 'Noto Serif', serif;
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--el-ink);
}

.el-list-head p {
    font-size: 14px;
    color: var(--el-muted);
    margin: 0;
    line-height: 1.6;
}

/* ---------- Partner list — a grid of small, uniform cards (not the
   earlier full-width description rows), so five lenders sit in one or
   two lines instead of a long scroll. Each card shows just enough to
   compare at a glance; the full write-up lives in the modal a click
   opens (see .el-row-detail / <template> below). ---------- */
.el-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.el-row {
    --accent: var(--el-c-maroon);
    --accent-soft: var(--el-c-maroon-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 14px 16px;
    background: #fff;
    border: 1px solid rgb(166, 148, 107);
    border-top: 3px solid var(--accent);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(36, 26, 26, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
}

.el-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(36, 26, 26, .12);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--el-line));
}

.el-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* The <template> holding a row's expanded detail never renders inline —
   only its content gets cloned into the modal by JS. */
.el-row-detail {
    display: none;
}

.el-row--blue {
    --accent: var(--el-c-blue);
    --accent-soft: var(--el-c-blue-soft);
}

.el-row--teal {
    --accent: var(--el-c-teal);
    --accent-soft: var(--el-c-teal-soft);
}

.el-row--violet {
    --accent: var(--el-c-violet);
    --accent-soft: var(--el-c-violet-soft);
}

.el-row--amber {
    --accent: var(--el-c-amber);
    --accent-soft: var(--el-c-amber-soft);
}

.el-row-mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #000));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}

.el-row-mark--img {
    background: var(--accent-soft);
    border: 1px solid var(--el-line);
    box-shadow: none;
    overflow: hidden;
}

.el-row-mark--img img {
    max-width: 76%;
    max-height: 76%;
    object-fit: contain;
}

.el-row h2 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 2px 0 0;
    line-height: 1.3;
    color: var(--el-ink);
}

.el-row-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.el-row-tags span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 8px;
    border-radius: 999px;
}

/* An explicit, visible "Details" control — the whole card already opens
   the modal on click, but nothing about a plain card said so. This gives
   people an obvious, labelled thing to click for "tell me more", separate
   from Apply Now (which leaves the site). */
.el-row-details {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--el-line);
    color: var(--el-muted);
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.el-row-details i {
    color: var(--accent);
    font-size: 10px;
}

.el-row-details:hover,
.el-row:hover .el-row-details {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.el-row-apply {
    margin-top: auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11.5px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #000));
    color: #fff !important;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent);
    transition: transform .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.el-row-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px color-mix(in srgb, var(--accent) 40%, transparent);
    color: #fff !important;
}

.el-row-apply.is-pending {
    background: #f2ece2;
    color: var(--el-muted) !important;
    box-shadow: none;
    cursor: default;
}

/* ---------- Disclaimer ---------- */
.el-disclaimer {
    font-size: 12.5px;
    color: var(--el-muted);
    line-height: 1.7;
    margin: 0;
}

/* ---------- Partner detail modal ---------- */
.el-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.el-modal[hidden] {
    display: none;
}

.el-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 20, 16, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .2s ease;
}

.el-modal.is-open .el-modal-backdrop {
    opacity: 1;
}

.el-modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(640px, 86vh);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 30px 70px rgba(36, 20, 16, .35);
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.el-modal.is-open .el-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.el-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--el-line);
    background: #fbf5ea;
    color: var(--el-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}

.el-modal-close:hover {
    background: var(--el-c-maroon-soft);
    color: var(--el-c-maroon);
}

.el-modal-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-right: 30px;
}

.el-modal-mark {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: 19px;
    color: #fff;
    background: linear-gradient(135deg, var(--el-c-maroon), color-mix(in srgb, var(--el-c-maroon) 65%, #000));
    overflow: hidden;
}

.el-modal-mark--blue { background: linear-gradient(135deg, var(--el-c-blue), color-mix(in srgb, var(--el-c-blue) 65%, #000)); }
.el-modal-mark--teal { background: linear-gradient(135deg, var(--el-c-teal), color-mix(in srgb, var(--el-c-teal) 65%, #000)); }
.el-modal-mark--violet { background: linear-gradient(135deg, var(--el-c-violet), color-mix(in srgb, var(--el-c-violet) 65%, #000)); }

.el-modal-mark img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
}

.el-modal-head h2 {
    font-family: 'Noto Serif', serif;
    font-size: 21px;
    margin: 0 0 8px;
    color: var(--el-ink);
}

.el-modal-body p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--el-muted);
    margin: 0 0 14px;
}

.el-detail-features {
    list-style: none;
    margin: 18px 0 0;
    padding: 16px;
    background: #fbf5ea;
    border: 1px solid var(--el-line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.el-detail-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--el-ink);
}

.el-detail-features li i {
    color: var(--el-c-teal);
    font-size: 12px;
}

.el-modal-foot {
    margin-top: 24px;
}

.el-modal-foot .el-row-apply {
    width: 100%;
    justify-content: center;
}

@media (max-width: 460px) {
    .el-modal-card {
        padding: 24px 20px;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .el-head {
        padding: 36px 0 46px;
    }

    .el-head-watermark {
        font-size: 140px;
    }

    .el-head-stats {
        gap: 8px;
    }

    .el-head-stats li {
        font-size: 11.5px;
        padding: 7px 12px;
    }

    .el-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 460px) {
    .el-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .el-row {
        padding: 16px 10px 14px;
    }
}
