/*
 * Home page. Everything is scoped to .hp so the shared theme (header, footer, other pages)
 * is untouched. Brand: blue #4582ff (header) and orange #fea116 (top bar / buttons).
 */
.hp {
    --hp-navy: #0b1f4b;
    --hp-navy-2: #12306e;
    --hp-blue: #4582ff;
    --hp-blue-d: #2c64e6;
    --hp-blue-soft: #eef3ff;
    --hp-orange: #fea116;
    --hp-orange-d: #e98b00;
    --hp-orange-soft: #fff5e6;
    --hp-ink: #0f172a;
    --hp-text: #334155;
    --hp-muted: #64748b;
    --hp-line: #e5e9f2;
    --hp-bg: #f5f7fb;
    --hp-white: #fff;
    --hp-radius: 16px;
    --hp-radius-sm: 10px;
    --hp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --hp-shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 48px rgba(11, 31, 75, .16);
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--hp-text);
    font-size: 15px;
    line-height: 1.6;
    background: var(--hp-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp h1, .hp h2, .hp h3, .hp h4, .hp p { margin: 0; font-family: inherit; letter-spacing: normal; text-transform: none; }
.hp h1, .hp h2, .hp h3, .hp h4 { color: var(--hp-ink); font-weight: 800; line-height: 1.2; }
.hp a { color: var(--hp-blue-d); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s, box-shadow .2s, transform .2s; }
.hp a:hover, .hp a:focus { text-decoration: none; }
.hp img { max-width: 100%; display: block; }
.hp :focus-visible { outline: 3px solid rgba(69, 130, 255, .55); outline-offset: 2px; }
.hp .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.hp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hp-section { padding: 72px 0; }
.hp-section.alt { background: var(--hp-bg); }
.hp-section.tight { padding: 56px 0; }

.hp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.hp-head.center { flex-direction: column; align-items: center; text-align: center; }
.hp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-orange-d); margin-bottom: 10px; }
.hp-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hp-head h2 { font-size: 32px; letter-spacing: -.02em; }
.hp-head p { color: var(--hp-muted); margin-top: 8px; max-width: 620px; font-size: 16px; }
.hp-link { font-weight: 700; font-size: 14.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.hp-link .fa { transition: transform .2s; }
.hp-link:hover .fa { transform: translateX(3px); }

/* buttons */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 12px; border: 2px solid transparent;
    font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; font-family: inherit; }
.hp .hp-btn-primary { background: var(--hp-orange); color: #1f1300; box-shadow: 0 8px 20px rgba(254, 161, 22, .35); }
.hp .hp-btn-primary:hover { background: var(--hp-orange-d); color: #1f1300; transform: translateY(-1px); }
.hp .hp-btn-light { background: #fff; color: var(--hp-navy); }
.hp .hp-btn-light:hover { color: var(--hp-blue-d); transform: translateY(-1px); }
.hp .hp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hp .hp-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ---------- hero ---------- */
.hp-hero { position: relative; color: #fff; background: var(--hp-navy) url(../images/home_banner.jpg) center / cover no-repeat; isolation: isolate; }
.hp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, rgba(8, 22, 56, .96) 0%, rgba(11, 31, 75, .9) 45%, rgba(28, 72, 170, .72) 100%); }
.hp-hero::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(254, 161, 22, .28), transparent); }
.hp-hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; padding: 84px 20px 96px; }
.hp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; font-weight: 600; color: #dbe6ff; margin-bottom: 22px; }
.hp-pill b { background: var(--hp-orange); color: #1f1300; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.hp-hero h1 { color: #fff; font-size: 50px; letter-spacing: -.03em; line-height: 1.08; }
.hp .hp-hero h1 em { font: inherit; font-style: normal; color: var(--hp-orange); }
.hp .hp-hero-lead { margin-top: 18px; font-size: 18px; color: #c9d6f5; max-width: 560px; }

.hp-search { margin-top: 32px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--hp-shadow-lg); min-width: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; max-width: 680px; }
.hp-field { min-width: 0; position: relative; display: flex; align-items: center; border-radius: 12px; background: var(--hp-bg); border: 1px solid transparent; }
.hp-field:focus-within { border-color: var(--hp-blue); background: #fff; box-shadow: 0 0 0 4px rgba(69, 130, 255, .15); }
.hp-field > .fa { position: absolute; left: 16px; color: var(--hp-blue); font-size: 16px; pointer-events: none; }
.hp-field label { position: absolute; left: 44px; top: 7px; font-size: 11px; font-weight: 700; color: var(--hp-muted); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.hp .hp-field select { appearance: none; -webkit-appearance: none; width: 100%; height: 56px; border: 0; background: transparent; padding: 18px 36px 0 44px; margin: 0;
    font: 600 15px/1.2 inherit; font-family: inherit; color: var(--hp-ink); cursor: pointer; border-radius: 12px; box-shadow: none; outline: none; }
.hp .hp-field select:invalid { color: var(--hp-muted); font-weight: 500; }
.hp-field::after { content: "\f107"; font-family: FontAwesome; position: absolute; right: 16px; color: var(--hp-muted); pointer-events: none; }
.hp-field.has-error { border-color: #ef4444; background: #fff5f5; }
.hp-search .hp-btn { height: 56px; padding: 0 28px; font-size: 16px; }
.hp-search-msg { grid-column: 1 / -1; color: #b91c1c; font-size: 13.5px; font-weight: 600; padding: 2px 8px 4px; display: none; }
.hp-search-msg.show { display: block; }

.hp-popular { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.hp-popular > span { color: #9fb3e0; font-weight: 600; margin-right: 4px; }
.hp .hp-popular a { color: #e6edff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.hp .hp-popular a:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.hp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--hp-radius); padding: 22px 20px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hp-stat .fa { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(254, 161, 22, .16); color: var(--hp-orange); margin-bottom: 14px; }
.hp-stat b { display: block; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.hp-stat span { font-size: 13.5px; color: #b8c8ee; }
.hp-stat.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.hp-stat.wide .fa { margin: 0; flex: none; }
.hp-stat.wide b { font-size: 16px; }

/* trust strip */
.hp-trust { position: relative; z-index: 2; margin-top: -44px; }
.hp-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--hp-radius); box-shadow: var(--hp-shadow-lg); }
.hp-trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.hp-trust-item + .hp-trust-item { border-left: 1px solid var(--hp-line); }
.hp-trust-item .fa { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--hp-blue-d); background: var(--hp-blue-soft); }
.hp-trust-item h3 { font-size: 15px; font-weight: 700; }
.hp-trust-item p { font-size: 13.5px; color: var(--hp-muted); margin-top: 2px; line-height: 1.45; }

/* ---------- exams ---------- */
.hp-exams { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.hp.js .hp-exams.is-collapsed .hp-exam:nth-child(n+11) { display: none; }
.hp .hp-exam { position: relative; display: block; border-radius: var(--hp-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--hp-navy); box-shadow: var(--hp-shadow); color: #fff; }
.hp-exam img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hp-exam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 56, 0) 35%, rgba(8, 22, 56, .88) 100%); }
.hp-exam-label { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; }
.hp-exam-label b { display: block; font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.hp-exam-label span { font-size: 13px; color: #d4defa; display: inline-flex; align-items: center; gap: 6px; }
.hp .hp-exam:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-lg); color: #fff; }
.hp-exam:hover img { transform: scale(1.06); }
.hp-exam:hover .hp-exam-label span { color: var(--hp-orange); }

.hp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.hp-chips > span { font-weight: 700; color: var(--hp-ink); margin-right: 6px; font-size: 14px; }
.hp .hp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--hp-line);
    color: var(--hp-text); font-size: 13.5px; font-weight: 600; }
.hp .hp-chip:hover { border-color: var(--hp-blue); color: var(--hp-blue-d); background: var(--hp-blue-soft); }

/* ---------- cities ---------- */
.hp-cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hp-city > div { min-width: 0; }
.hp-city b, .hp-city span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .hp-city { display: flex; align-items: center; gap: 14px; padding: 10px; padding-right: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--hp-line); color: var(--hp-ink); }
.hp-city img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--hp-bg); }
.hp-city b { display: block; font-size: 15.5px; font-weight: 700; }
.hp-city span { font-size: 12.5px; color: var(--hp-muted); }
.hp-city .fa { margin-left: auto; color: #b6c2d9; transition: transform .2s, color .2s; }
.hp .hp-city:hover { border-color: transparent; box-shadow: var(--hp-shadow-lg); transform: translateY(-2px); color: var(--hp-ink); }
.hp-city:hover .fa { color: var(--hp-orange); transform: translateX(3px); }
.hp.js .hp-cities.is-collapsed .hp-city:nth-child(n+13) { display: none; }
.hp-more { text-align: center; margin-top: 28px; }
.hp .hp-btn-outline { background: #fff; color: var(--hp-navy); border-color: var(--hp-line); height: 46px; }
.hp .hp-btn-outline:hover { border-color: var(--hp-blue); color: var(--hp-blue-d); }

/* ---------- services ---------- */
.hp-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp .hp-service { display: flex; flex-direction: column; background: #fff; border-radius: var(--hp-radius); overflow: hidden; border: 1px solid var(--hp-line); color: var(--hp-text); height: 100%; }
.hp-service-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--hp-blue-soft); }
.hp-service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hp-service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hp-service-body h3 { font-size: 19px; }
.hp-service-body p { color: var(--hp-muted); font-size: 14.5px; flex: 1; }
.hp-service-body .hp-link { margin-top: 6px; }
.hp .hp-service:hover { box-shadow: var(--hp-shadow-lg); transform: translateY(-4px); border-color: transparent; color: var(--hp-text); }
.hp-service:hover img { transform: scale(1.05); }
.hp-service:hover .hp-link .fa { transform: translateX(3px); }

.hp-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.hp-promo { position: relative; border-radius: var(--hp-radius); overflow: hidden; padding: 30px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; isolation: isolate; }
.hp-promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hp-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 22, 56, .94) 0%, rgba(8, 22, 56, .7) 55%, rgba(8, 22, 56, .2) 100%); }
.hp-promo.orange::before { background: linear-gradient(90deg, rgba(120, 60, 0, .94) 0%, rgba(180, 95, 0, .75) 55%, rgba(254, 161, 22, .2) 100%); }
.hp-promo small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-orange); }
.hp-promo.orange small { color: #ffe0a8; }
.hp-promo h3 { color: #fff; font-size: 24px; margin: 6px 0 8px; max-width: 420px; }
.hp-promo p { color: #d9e2f7; max-width: 420px; font-size: 14.5px; margin-bottom: 18px; }
.hp-promo .hp-btn { align-self: flex-start; height: 44px; }

/* ---------- learn (quizzes / posts / current affairs) ---------- */
.hp-learn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-panel { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); display: flex; flex-direction: column; min-width: 0; }
.hp-panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--hp-line); }
.hp-panel-head .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--hp-orange-soft); color: var(--hp-orange-d); font-size: 16px; flex: none; }
.hp-panel-head h3 { font-size: 17px; }
.hp-panel-head .hp-link { margin-left: auto; font-size: 13.5px; }
.hp-panel-list { list-style: none; margin: 0; padding: 6px 8px; max-height: 440px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cfd8ea transparent; }
.hp-panel-list li + li { border-top: 1px dashed var(--hp-line); }
.hp .hp-item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; color: var(--hp-ink); }
.hp .hp-item:hover { background: var(--hp-bg); color: var(--hp-blue-d); }
.hp-item img { width: 72px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: var(--hp-bg); }
.hp-item .num { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--hp-blue-soft); color: var(--hp-blue-d); font-size: 13px; }
.hp-item b { font-weight: 600; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-item small { display: block; color: var(--hp-muted); font-size: 12px; margin-top: 2px; font-weight: 500; }

/* ---------- how it works + FAQ ---------- */
.hp-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.hp-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.hp-steps li { display: flex; gap: 16px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--hp-line); }
.hp-steps li::before { counter-increment: step; content: counter(step); flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--hp-blue), var(--hp-blue-d)); color: #fff; font-weight: 800; }
.hp-steps h3 { font-size: 16px; }
.hp-steps p { color: var(--hp-muted); font-size: 14px; margin-top: 2px; }

.hp-faq { display: grid; gap: 10px; }
.hp-faq details { background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; overflow: hidden; }
.hp-faq details[open] { border-color: #c9d8ff; box-shadow: var(--hp-shadow); }
.hp-faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 700; color: var(--hp-ink); font-size: 15.5px; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "\f067"; font-family: FontAwesome; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center; font-size: 12px; background: var(--hp-bg); color: var(--hp-blue-d); }
.hp-faq details[open] summary::after { content: "\f068"; background: var(--hp-blue); color: #fff; }
.hp-faq .ans { padding: 0 20px 18px; color: var(--hp-text); font-size: 14.5px; }
.hp-faq .ans p + p { margin-top: 10px; }

/* ---------- reviews ---------- */
.hp-carousel { position: relative; }
.hp-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: none; }
.hp-track::-webkit-scrollbar { display: none; }
.hp-track > * { scroll-snap-align: start; }
.hp-nav { display: flex; gap: 10px; }
.hp-nav button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--hp-line); background: #fff; color: var(--hp-navy); cursor: pointer; font-size: 16px; }
.hp-nav button:hover:not(:disabled) { border-color: var(--hp-blue); color: var(--hp-blue-d); }
.hp-nav button:disabled { opacity: .4; cursor: default; }
.hp-review { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hp-stars { color: var(--hp-orange); font-size: 15px; letter-spacing: 2px; }
.hp-stars .off { color: #d6dce8; }
.hp-review blockquote { margin: 0; padding: 0; border: 0; font-size: 14.5px; color: var(--hp-text); line-height: 1.65; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hp-review-by { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hp-line); }
.hp-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, var(--hp-blue), var(--hp-navy-2)); }
.hp-review-by b { display: block; color: var(--hp-ink); font-size: 14px; }
.hp-review-by small { color: var(--hp-muted); font-size: 12px; }
.hp .hp-review-at { font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: baseline; overflow-wrap: anywhere; }

/* ---------- educators + CTA ---------- */
.hp-dark { background: linear-gradient(160deg, var(--hp-navy) 0%, #0e2a63 100%); color: #c9d6f5; }
.hp-dark .hp-head h2 { color: #fff; }
.hp-dark .hp-head p { color: #a9bbe6; }
.hp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-quote { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--hp-radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.hp-quote .fa-quote-left { color: var(--hp-orange); font-size: 24px; }
.hp-quote p { color: #e3eaff; font-size: 15.5px; line-height: 1.7; flex: 1; }
.hp-quote b { color: #fff; display: block; }
.hp-quote small { color: #9fb3e0; }

.hp-cta { margin-top: 56px; border-radius: 20px; padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
    background: linear-gradient(115deg, var(--hp-orange) 0%, #ffb547 100%); color: #3a2300; position: relative; overflow: hidden; }
.hp-cta::after { content: "\f10d"; font-family: FontAwesome; position: absolute; right: 30%; top: -30px; font-size: 180px; color: rgba(255, 255, 255, .18); pointer-events: none; }
.hp-cta blockquote { margin: 0; padding: 0; border: 0; font-size: 22px; font-weight: 800; color: #2a1900; line-height: 1.35; max-width: 640px; position: relative; z-index: 1; }
.hp-cta cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 600; color: #5a3a00; }
.hp-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; flex: none; }
.hp .hp-btn-dark { background: var(--hp-navy); color: #fff; }
.hp .hp-btn-dark:hover { background: #000; color: #fff; transform: translateY(-1px); }
/* The enquiry buttons come in a pair: the theme's .hide-mobile shows one on computers as
   display:block and .hide-desktop the other on phones as inline-block, which knocks the
   text and arrow out of line. Keep them flex (same 900px switch-over as the theme). */
.hp .hp-btn.hide-mobile { display: inline-flex; }
@media (max-width: 900px) {
    .hp .hp-btn.hide-mobile { display: none !important; }
    .hp .hp-btn.hide-desktop { display: inline-flex !important; }
}
.hp .hp-btn-white { background: rgba(255, 255, 255, .9); color: var(--hp-navy); }
.hp .hp-btn-white:hover { background: #fff; color: var(--hp-navy); transform: translateY(-1px); }

/* ---------- study material ---------- */
.hp-books { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.hp .hp-book { display: block; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--hp-line); color: var(--hp-ink); }
.hp-book-cover { aspect-ratio: 3 / 4; overflow: hidden; background: var(--hp-bg); }
.hp-book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hp-book-body { padding: 12px 14px 14px; }
.hp-book-body b { font-size: 14px; display: block; }
.hp-book-body span { font-size: 12.5px; color: var(--hp-muted); }
.hp .hp-book:hover { box-shadow: var(--hp-shadow-lg); transform: translateY(-3px); color: var(--hp-ink); }
.hp-book:hover img { transform: scale(1.04); }


/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    .hp.js .hp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    .hp.js .hp-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hp *, .hp *::before, .hp *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .hp-hero h1 { font-size: 42px; }
    .hp-cities { grid-template-columns: repeat(3, 1fr); }
    .hp-exams { grid-template-columns: repeat(4, 1fr); }
    .hp.js .hp-exams.is-collapsed .hp-exam:nth-child(n+9) { display: none; }
    .hp-books { grid-template-columns: repeat(4, 1fr); }
    .hp-books > :nth-child(5) { display: none; }
    .hp-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 991px) {
    .hp-section { padding: 56px 0; }
    .hp-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 56px 20px 84px; }
    .hp-stats { grid-template-columns: repeat(4, 1fr); }
    .hp-stat.wide { display: none; }
    .hp-trust-grid { grid-template-columns: 1fr 1fr; }
    .hp-trust-item:nth-child(3) { border-left: 0; }
    .hp-trust-item:nth-child(n+3) { border-top: 1px solid var(--hp-line); }
    .hp-learn { grid-template-columns: 1fr 1fr; }
    .hp-service-body { padding: 18px 18px 20px; }
    .hp-service-body h3 { font-size: 17px; }
    .hp-learn > :last-child { grid-column: 1 / -1; }
    .hp-exams { grid-template-columns: repeat(3, 1fr); }
    .hp.js .hp-exams.is-collapsed .hp-exam:nth-child(n+7) { display: none; }
    .hp-why { grid-template-columns: 1fr; gap: 40px; }
    .hp-quotes { grid-template-columns: 1fr; }
    .hp-cta { flex-direction: column; align-items: flex-start; padding: 32px; }
    .hp-cta::after { right: 10px; }
}
@media (max-width: 767px) {
    .hp { font-size: 14.5px; }
    .hp-wrap { padding: 0 16px; }
    .hp-section, .hp-section.tight { padding: 44px 0; }
    .hp-head { margin-bottom: 22px; }
    .hp-head h2 { font-size: 24px; }
    .hp-head p { font-size: 14.5px; }
    .hp-hero-inner { padding: 36px 16px 72px; gap: 28px; }
    .hp-pill { font-size: 12px; margin-bottom: 16px; }
    .hp-hero h1 { font-size: 31px; }
    .hp .hp-hero-lead { font-size: 15.5px; margin-top: 12px; }
    .hp-search { grid-template-columns: minmax(0, 1fr); padding: 8px; margin-top: 24px; border-radius: 16px; }
    .hp-search .hp-btn { width: 100%; height: 52px; }
    .hp-popular { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; padding-bottom: 4px; scrollbar-width: none; }
    .hp-popular::-webkit-scrollbar { display: none; }
    .hp-popular a { white-space: nowrap; flex: none; }
    .hp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hp-stat { padding: 14px; display: flex; align-items: center; gap: 12px; }
    .hp-stat .fa { margin: 0; flex: none; width: 36px; height: 36px; font-size: 15px; }
    .hp-stat b { font-size: 20px; }
    .hp-stat span { font-size: 12px; line-height: 1.3; display: block; }
    .hp-trust { margin-top: -40px; }
    .hp-trust-grid { grid-template-columns: 1fr 1fr; }
    .hp-trust-item { padding: 16px 14px; flex-direction: column; gap: 10px; }
    .hp-trust-item .fa { width: 38px; height: 38px; font-size: 16px; }
    .hp-trust-item h3 { font-size: 14px; }
    .hp-trust-item p { font-size: 12.5px; }
    .hp-exams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hp-exam-label { left: 12px; right: 12px; bottom: 10px; }
    .hp-exam-label b { font-size: 15px; }
    .hp-exam-label span { font-size: 12px; }
    .hp-chips { gap: 8px; }
    .hp-chips > span { width: 100%; }
    .hp-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hp-city { gap: 10px; padding: 8px; }
    .hp-city img { width: 48px; height: 48px; }
    .hp-city b { font-size: 14px; }
    .hp-city span { font-size: 11.5px; }
    .hp-city .fa { display: none; }
    .hp.js .hp-cities.is-collapsed .hp-city:nth-child(n+9) { display: none; }
    .hp-services, .hp-learn, .hp-promos { grid-template-columns: minmax(0, 1fr); }
    .hp-services, .hp-promos { gap: 12px; }
    .hp-promos { margin-top: 12px; }
    /* phones: compact rows, photo on the left filling the full card height */
    .hp .hp-service { flex-direction: row; align-items: stretch; min-height: 128px; }
    .hp-service-img { position: relative; aspect-ratio: auto; width: 116px; flex: none; }
    .hp-service-img img { position: absolute; inset: 0; }
    .hp-service-body { padding: 14px 16px; gap: 4px; min-width: 0; }
    .hp-service-body .hp-link { margin-top: 4px; font-size: 13.5px; }
    .hp-service-body h3 { font-size: 16px; }
    .hp-service-body p { font-size: 13px; line-height: 1.5; }
    .hp .hp-service:hover { transform: none; }
    .hp-promo { padding: 24px; min-height: 0; }
    .hp-promo h3 { font-size: 20px; }
    .hp-panel-list { max-height: 360px; }
    .hp-track { grid-auto-columns: 86%; gap: 14px; }
    .hp-nav { display: none; }
    .hp-review { padding: 18px; }
    .hp-cta { padding: 26px 22px; margin-top: 40px; }
    .hp-cta blockquote { font-size: 18px; }
    .hp-cta-btns, .hp-cta-btns .hp-btn { width: 100%; }
    .hp-books { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-books > :nth-child(5) { display: block; }
    .hp-books > :nth-child(n+5) { display: none; }
}
@media (max-width: 380px) {
    .hp-hero h1 { font-size: 27px; }
    .hp-stat b { font-size: 18px; }
}

/* The hero's decorative layers never take clicks/taps: the glow (::after) reaches 160px above
   the hero and, on phones, covered the header's social and login icons. */
.hp-hero::before, .hp-hero::after { pointer-events: none; }
