/*
 * Home page, from "Why students use MET" down: feature cards, the preparation path and the closing banner.
 * New class names (met-why, met-flow, met-final) so the about, parents and faculty pages that share the older
 * met-feature-card and met-path-card styles are not changed. Colours come from met-site.css.
 */
.met-why, .met-flow, .met-final { position: relative; overflow: hidden; }

/* ---- Why students use MET ---- */
.met-why { background: linear-gradient(180deg, #f6f8fb 0%, #eaf1f9 100%); }
.met-why::before, .met-why::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.met-why::before { width: 360px; height: 360px; top: -140px; right: -90px; background: #cfe6ff; }
.met-why::after { width: 300px; height: 300px; bottom: -130px; left: -110px; background: #d3f2ea; }
.met-why .container, .met-flow .container, .met-final .container { position: relative; z-index: 1; }

.met-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.met-why-card { --c1: #075aa6; --c2: #38a1f5; position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--met-border); border-radius: 22px; padding: 30px 24px 24px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.met-why-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.met-why-card:hover { box-shadow: 0 22px 44px rgba(15, 23, 42, .12); }
.met-why-teal { --c1: #0f766e; --c2: #2dd4bf; }
.met-why-gold { --c1: #d97706; --c2: #fbbf24; }
.met-why-violet { --c1: #6d28d9; --c2: #a78bfa; }
.met-why-num { position: absolute; top: 16px; right: 18px; font-size: 62px; font-weight: 900; line-height: 1; color: rgba(15, 23, 42, .06); user-select: none; }
.met-why-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: 26px; margin-bottom: 20px; box-shadow: 0 12px 24px rgba(15, 23, 42, .2); transition: transform .25s ease; }
.met-why-card:hover .met-why-icon { transform: rotate(-6deg) scale(1.06); }
.met-why-card h3 { color: var(--met-ink); font-size: 20px; font-weight: 900; margin: 0 0 10px; }
.met-why-card p { flex: 1; color: var(--met-muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* ---- Preparation flow ---- */
.met-flow { background: #fff; }
.met-flow-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.met-flow-track::before { content: ""; position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: 31px; height: 3px; background: repeating-linear-gradient(90deg, #bcd0e6 0 10px, transparent 10px 18px); }
.met-flow-step { position: relative; display: flex; flex-direction: column; text-align: center; }
.met-flow-dot { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, var(--met-blue), var(--met-teal)); color: #fff; font-size: 26px; box-shadow: 0 0 0 8px #fff, 0 14px 28px rgba(7, 90, 166, .3); }
.met-flow-card { flex: 1; background: #f6f8fb; border: 1px solid var(--met-border); border-radius: 22px; padding: 24px 22px 26px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.met-flow-step:hover .met-flow-card { transform: translateY(-4px); background: #fff; box-shadow: 0 20px 40px rgba(15, 23, 42, .1); }
.met-flow-card small { display: block; color: var(--met-teal); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.met-flow-card h3 { color: var(--met-ink); font-size: 21px; font-weight: 900; margin: 0 0 10px; }
.met-flow-card p { color: var(--met-muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* ---- closing banner ---- */
.met-final { background: #f6f8fb; padding: 64px 0 76px; }
.met-final-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 46px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 12% 18%, rgba(45, 212, 191, .32), transparent 42%), radial-gradient(circle at 90% 85%, rgba(251, 191, 36, .28), transparent 40%), linear-gradient(135deg, #08345f 0%, #0d2542 100%); box-shadow: 0 30px 60px rgba(8, 52, 95, .35); }
.met-final-card h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; line-height: 1.15; margin: 0 0 10px; }
.met-final-card p { color: #c9d7e8; font-size: 16px; line-height: 1.6; margin: 0 0 18px; max-width: 520px; }
.met-final-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.met-final-chips li { padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); border-radius: 999px; color: #e6effa; font-size: 13px; font-weight: 700; }
.met-final-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; min-height: 56px; padding: 0 30px; border-radius: 14px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1b1b1b; font-size: 17px; font-weight: 900; white-space: nowrap; box-shadow: 0 14px 30px rgba(245, 158, 11, .4); transition: transform .2s ease, box-shadow .2s ease; }
.met-final-btn:hover, .met-final-btn:focus { color: #111; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(245, 158, 11, .5); }
.met-final-btn i { transition: transform .2s ease; }
.met-final-btn:hover i { transform: translateX(4px); }

@media (max-width: 991px) {
    .met-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .met-final-card { padding: 38px 30px; }
}

/* phone: the four feature cards stack, each one compact (icon beside the text) */
@media (max-width: 575px) {
    .met-why-grid { grid-template-columns: 1fr; gap: 12px; }
    .met-why-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 18px 16px 18px 20px; border-radius: 18px; }
    .met-why-card::before { right: auto; bottom: 0; width: 5px; height: auto; background: linear-gradient(180deg, var(--c1), var(--c2)); }
    .met-why-icon { grid-row: 1 / span 2; width: 52px; height: 52px; margin: 0; font-size: 22px; border-radius: 14px; }
    .met-why-card h3 { margin: 0 0 6px; font-size: 18px; }
    .met-why-card p { font-size: 14px; line-height: 1.55; }
    .met-why-num { top: 8px; right: 12px; font-size: 40px; }
}

@media (max-width: 767px) {
    /* the path turns into a vertical timeline */
    .met-flow-track { grid-template-columns: 1fr; gap: 18px; }
    .met-flow-track::before { left: 31px; right: auto; top: 32px; bottom: 32px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, #bcd0e6 0 10px, transparent 10px 18px); }
    .met-flow-step { flex-direction: row; align-items: flex-start; gap: 16px; text-align: left; }
    .met-flow-dot { margin: 0; width: 64px; height: 64px; box-shadow: 0 0 0 6px #fff, 0 12px 24px rgba(7, 90, 166, .3); }
    .met-flow-step:hover .met-flow-card { transform: none; }
    .met-final-card { flex-direction: column; align-items: stretch; padding: 32px 22px; border-radius: 22px; }
    .met-final-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .met-why-card, .met-why-icon, .met-flow-card, .met-final-btn { transition: none; }
    .met-flow-step:hover .met-flow-card, .met-final-btn:hover { transform: none; }
}
