/* ==========================================================================
   Ehtesham Law — site-wide "Super 60" look & motion layer.
   Loaded after el-2026.css / el-pages.css on every front page. It restyles the
   shared components (page hero, headings, buttons, cards, FAQ, reveals) to
   match /super-60-batch. Animations only run once el-motion.js adds
   html.el-motion, so content is never hidden without JavaScript.
   The Super 60 page itself (.s6) has its own stylesheet and is skipped here.
   ========================================================================== */
:root {
    --m-ink: #061423; --m-ink-2: #0b2236; --m-gold: #f2a52b; --m-gold-2: #ffcf70; --m-blue: #4c9bf0;
    --m-ease: cubic-bezier(.2, .8, .2, 1); --m-spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* ---------- No layout jump when a panel/popup locks scrolling ----------
   Keep the scrollbar's space reserved even while body.el-lock hides it, so the page (and the
   home slider) never changes width when the account panel, menu or download popup opens/closes. */
html { scrollbar-gutter: stable; }

/* ---------- Scroll progress ---------- */
.el-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1200; pointer-events: none; }
.el-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--m-gold), var(--m-gold-2), var(--m-blue)); }

/* ---------- Page hero (all inner pages) ---------- */
.el-page-hero { isolation: isolate; background: var(--m-ink); padding: 44px 0 64px; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 992px) { .el-page-hero { padding: 72px 0 92px; min-height: 440px; } }
.el-page-hero::after { display: none; }
.el-page-hero__media { position: absolute; inset: 0 0 0 auto; width: 64%; z-index: -2; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.el-page-hero__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: 60% 40%; transform: translate3d(0, var(--py, 0), 0) scale(1.04); }
/* Half-shadow: the photo melts into the dark page on the left and bottom. */
.el-page-hero__media::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, var(--m-ink) 0%, rgba(6, 20, 35, .82) 26%, rgba(6, 20, 35, .45) 58%, rgba(6, 20, 35, .3) 100%),
    linear-gradient(0deg, var(--m-ink) 0%, rgba(6, 20, 35, 0) 45%); }
.el-page-hero__orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; animation: m-drift 16s ease-in-out infinite alternate; }
.el-page-hero__orb--a { width: 460px; height: 460px; left: -160px; top: -160px; background: radial-gradient(circle, rgba(242, 165, 43, .5), transparent 65%); }
.el-page-hero__orb--b { width: 420px; height: 420px; left: 35%; bottom: -260px; background: radial-gradient(circle, rgba(76, 155, 240, .4), transparent 65%); animation-duration: 20s; animation-direction: alternate-reverse; }
.el-page-hero h1 { font-size: clamp(36px, 5.6vw, 68px) !important; line-height: 1.02; letter-spacing: -.03em; margin-bottom: 18px; max-width: 900px; }
.el-page-hero p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: #b7c7d7; max-width: 640px; }
.el-page-hero .el-eyebrow { color: var(--m-gold-2); }
.el-page-hero .el-crumbs { margin-bottom: 22px; }
.el-page-hero__actions { gap: 14px; margin-top: 30px; }
.el-page-hero__meta span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.el-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.el-word > span { display: inline-block; }
@media (max-width: 767.98px) {
    .el-page-hero__media { width: 100%; opacity: .45; -webkit-mask-image: none; mask-image: none; }
    .el-page-hero__media::after { background: linear-gradient(180deg, rgba(6, 20, 35, .6), rgba(6, 20, 35, .9) 60%, var(--m-ink)); }
}

/* ---------- Headings, kickers ---------- */
.el-eyebrow { color: #b46f00; letter-spacing: .14em; }
.el-eyebrow::before { width: 26px; background: linear-gradient(90deg, var(--m-gold), transparent); }
.el-section--dark .el-eyebrow, .el-hero .el-eyebrow { color: var(--m-gold-2); }
.el-h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; }
.el-hl { font-style: italic; background: linear-gradient(100deg, #c77700, var(--m-gold) 45%, #e08a00); -webkit-background-clip: text; background-clip: text; color: transparent !important; padding-right: .06em; }
.el-section--dark .el-hl, .el-hero .el-hl { background-image: linear-gradient(100deg, var(--m-gold-2), var(--m-gold)); }
.el-section--dark { background: var(--m-ink); }

/* ---------- Buttons: gold gradient, lift, shine sweep ---------- */
.el-btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--m-spring), box-shadow .3s, background-color .3s, color .3s, border-color .3s; }
.el-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--m-ease); }
.el-btn:hover::after { transform: translateX(120%); }
.el-btn:hover { transform: translateY(-2px); }
.el-btn:active { transform: translateY(0) scale(.98); }
.el-btn--primary { background: linear-gradient(135deg, var(--m-gold-2), var(--m-gold)); box-shadow: 0 14px 30px -14px rgba(242, 165, 43, .95); }
.el-btn--primary:hover { background: linear-gradient(135deg, var(--m-gold-2), var(--m-gold)); box-shadow: 0 20px 40px -14px rgba(242, 165, 43, 1); }
.el-btn--dark { background: var(--m-ink); box-shadow: 0 14px 30px -16px rgba(6, 20, 35, .7); }
.el-btn--dark:hover { background: var(--m-ink-2); }
.el-btn--light { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.el-btn--wa { background: #25d366; box-shadow: 0 14px 30px -16px rgba(37, 211, 102, .9); }
.el-btn--wa:hover { background: #20bd5a; }

/* ---------- Cards: rounder, lift, cursor spotlight ---------- */
.el-card, .el-step, .el-res, .el-program { border-radius: 24px; transition: transform .5s var(--m-ease), box-shadow .5s var(--m-ease), border-color .3s; }
.el-card:hover, .el-res:hover, .el-program:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(6, 20, 35, .4); }
.el-step:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(6, 20, 35, .4); }
.el-feature { border-radius: 24px; transition: transform .5s var(--m-ease), background-color .3s, border-color .3s; }
.el-feature:hover { transform: translateY(-4px); }
/* The glow is its own layer behind the content, so it never replaces a card's own background
   (replacing it turned dark cards white on hover while their text stayed light). */
.el-spot { position: relative; isolation: isolate; }
.el-spot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(242, 165, 43, .13), transparent 45%); }
.el-section--dark .el-spot::after, .el-feature.el-spot::after { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(242, 165, 43, .16), transparent 45%); }
.el-spot:hover::after { opacity: 1; }
.el-step__num { border-radius: 50%; background: var(--m-ink); }
.el-step:last-child .el-step__num { background: linear-gradient(135deg, var(--m-gold-2), var(--m-gold)); }
.el-program img, .el-res img, .el-card > img { transition: transform 1.1s var(--m-ease); }
.el-program:hover img, .el-res:hover img { transform: scale(1.05); }

/* ---------- FAQ (details) ---------- */
.el-faq details { border-radius: 20px; background: var(--el-bg); border-color: transparent; transition: background-color .3s, box-shadow .3s; }
.el-faq details[open] { background: #fff; box-shadow: 0 24px 50px -30px rgba(6, 20, 35, .4), inset 0 0 0 1px var(--el-line); }
.el-faq summary::after { background: #fff; transition: transform .4s var(--m-ease), background-color .3s; }
.el-faq details[open] summary::after { background: var(--m-gold); color: var(--m-ink); transform: rotate(45deg); }
.el-faq details[open] > div { animation: m-fadein .45s var(--m-ease); }

/* ---------- Reveals (only once JS is running) ---------- */
html.el-motion .el-reveal:not(.is-settled) { opacity: 0; transform: none; translate: 0 32px; filter: blur(6px); transition: opacity .9s var(--m-ease), translate .9s var(--m-ease), filter .9s var(--m-ease); transition-delay: var(--d, 0ms); }
html.el-motion .el-reveal.is-in:not(.is-settled) { opacity: 1; translate: none; filter: none; }
/* Once revealed, drop the fade entirely (so a paused/throttled fade can never leave a block invisible)
   but keep the hover lift/shadow transitions. */
html.el-motion .el-reveal.is-settled { opacity: 1; translate: none; filter: none; transform: none; transition: transform .5s var(--m-ease), box-shadow .5s var(--m-ease), border-color .3s, background-color .3s; }
html.el-motion .el-reveal.is-settled:is(.el-card, .el-res, .el-program, .el-step):hover { transform: translateY(-6px); }
html.el-motion .el-reveal.is-settled.el-feature:hover { transform: translateY(-4px); }
html.el-motion .el-page-hero .el-in { opacity: 0; transform: translateY(20px); animation: m-up .9s var(--m-ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
html.el-motion .el-page-hero .el-word > span { transform: translateY(110%); animation: m-word 1s var(--m-ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }
html.el-motion.el-motion-done .el-page-hero .el-in, html.el-motion.el-motion-done .el-page-hero .el-word > span { opacity: 1; transform: none; animation: none; }

@keyframes m-up { to { opacity: 1; transform: none; } }
@keyframes m-word { to { transform: none; } }
@keyframes m-fadein { from { opacity: 0; transform: translateY(8px); } }
@keyframes m-drift { to { transform: translate(60px, 40px) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
    .el-page-hero__orb { animation: none; }
    html.el-motion .el-reveal:not(.is-settled), html.el-motion .el-page-hero .el-in, html.el-motion .el-page-hero .el-word > span { opacity: 1; transform: none; translate: none; filter: none; animation: none; transition: none; }
    .el-btn::after { display: none; }
}

/* ---------- Header "Log in" button (guests) & mobile-menu account buttons ---------- */
.el-login-btn { gap: 8px; text-decoration: none !important; }
.el-login-btn span { display: none; }
@media (min-width: 1200px) {
    .el-login-btn { display: inline-flex; align-items: center; width: auto; padding: 0 16px 0 14px; border-radius: 999px; font: 700 14px var(--el-font); color: var(--el-ink) !important; }
    .el-login-btn span { display: inline; }
}
.el-drawer__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.el-drawer__auth .el-btn { min-height: 46px; padding: 10px 12px; font-size: 14px; }

/* ---------- Homepage slider: background video (Admin → Homepage slider → Background video) ---------- */
.el-slide__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.el-slide__video.is-playing { opacity: 1; }

/* ==========================================================================
   Spacing & type scale — one rhythm for every page (audited 2026-11-10).
   Sections were 104px top+bottom (208px between sections); page titles 68px;
   section titles 54px; many pages also had inline 80–88px bottom padding.
   ========================================================================== */
.el-section { padding: 56px 0; }
@media (min-width: 992px) { .el-section { padding: 80px 0; } }
/* "Tight" content sections (most inner pages) — overrides the old inline 64/80/88px values too. */
.el-section--tight { padding-top: 32px !important; padding-bottom: 48px !important; }
@media (min-width: 992px) { .el-section--tight { padding-top: 40px !important; padding-bottom: 64px !important; } }
.el-head { margin-bottom: 32px; }
@media (min-width: 992px) { .el-head { margin-bottom: 40px; } }

/* Page hero: shorter, so content starts sooner on every inner page. */
.el-page-hero { padding: 36px 0 44px; min-height: 0; }
@media (min-width: 992px) { .el-page-hero { padding: 56px 0 64px; min-height: 340px; } }
.el-page-hero h1 { font-size: clamp(32px, 4.4vw, 54px) !important; margin-bottom: 14px; }
.el-page-hero p { font-size: clamp(15.5px, 1.4vw, 18px); }
.el-page-hero .el-crumbs { margin-bottom: 16px; }
.el-page-hero__actions { margin-top: 24px; }

/* Headings: one consistent scale (display serif for titles, sans for card titles). */
.el-h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; margin-bottom: 12px; }
.el-lead { font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.65; }
body.el-body { font-size: 16px; line-height: 1.65; }
body.el-body p { line-height: 1.65; }

/* Homepage hero title (slider) a touch smaller so slides breathe. */
.el-slide__title { font-size: clamp(34px, 5vw, 60px) !important; }
.el-cta h2 { font-size: clamp(26px, 3.2vw, 40px) !important; }
@media (min-width: 768px) { .el-cta { padding: 56px 48px; } }

/* "More …" strip after a detail page (course, exam, test series, blog post): same background as the page above,
   so no second full section gap — just a divider and a compact heading. */
.el-section--more { padding: 24px 0 56px !important; }
.el-section--more > .el-container { border-top: 1px solid var(--el-line); padding-top: 36px; }
.el-section--more .el-head { margin-bottom: 20px; }
.el-section--more .el-h2 { font-size: clamp(24px, 2.4vw, 30px); }
.el-head--split { align-items: flex-end; }
.el-head--split .el-h2 { margin-bottom: 0; }
.el-head--split > .el-link { margin-bottom: 4px; white-space: nowrap; }
