/* =====================================================
   RTJ VIRTUAL ACADEMY - Custom Styles
   Gold #bc8e2d  |  Navy #122e62  |  White base
   ===================================================== */
:root {
    --gold: #bc8e2d;
    --gold-light: #d9b25f;
    --gold-soft: #f8f1e2;
    --navy: #122e62;
    --navy-light: #1d4290;
    --navy-dark: #0b1e42;
    --navy-soft: #eaf0fa;
    --radius: 18px;
    --shadow: 0 10px 30px -12px rgba(18, 46, 98, .18);
    --shadow-lg: 0 25px 50px -15px rgba(18, 46, 98, .28);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-x: hidden; }
::selection { background: var(--gold); color: #fff; }

/* ---------- NAVBAR ---------- */
#navbar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#navbar.scrolled { box-shadow: 0 6px 24px -10px rgba(18, 46, 98, .25); }
.topline { height: 3px; background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy)); background-size: 200% 100%; animation: slideGrad 6s linear infinite; }
@keyframes slideGrad { to { background-position: 200% 0; } }

.nav-link { position: relative; display: block; padding: .6rem 1rem; font-weight: 600; font-size: .92rem; color: #334155; border-radius: 10px; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .3rem; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transition: transform .25s; }
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.mobile-link { display: block; padding: .8rem 1rem; border-radius: 12px; font-weight: 600; color: #334155; }
.mobile-link:hover, .mobile-link.active { background: var(--navy-soft); color: var(--navy); }

/* ---------- BUTTONS ---------- */
.btn-gold, .btn-outline, .btn-white, .btn-soon {
    display: inline-flex; align-items: center; font-weight: 700; border-radius: 14px;
    padding: .9rem 1.6rem; transition: all .25s ease; white-space: nowrap; cursor: pointer;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #a47a22); color: #fff; box-shadow: 0 10px 24px -10px rgba(188, 142, 45, .75); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(188, 142, 45, .9); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--navy); color: #fff; }
.btn-soon { background: #f1f5f9; color: #64748b; padding: .6rem 1rem; border: 1px dashed #cbd5e1; }
.btn-soon:hover { color: var(--navy); border-color: var(--navy); }

.badge { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.section-title { font-family: Outfit, sans-serif; font-weight: 900; color: var(--navy); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; }
.text-gradient { background: linear-gradient(120deg, var(--gold) 10%, #e0b85c 50%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-dark { background: rgba(188, 142, 45, .15); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(188, 142, 45, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(188, 142, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(188, 142, 45, 0); } }

/* ---------- HERO ---------- */
.hero-banner { background: var(--navy-dark); line-height: 0; }
.hero-banner img { max-width: 100%; }

/* ---------- IMPACT ---------- */
.impact-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(600px 400px at 85% 30%, rgba(188, 142, 45, .12), transparent 70%),
        radial-gradient(500px 400px at 5% 80%, rgba(18, 46, 98, .08), transparent 70%),
        linear-gradient(rgba(18, 46, 98, .04) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(18, 46, 98, .04) 1px, transparent 1px) 0 0 / 44px 44px;
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.trailer-btn { display: inline-flex; align-items: center; gap: .9rem; padding: .4rem 1.2rem .4rem .4rem; border-radius: 999px; transition: background .2s; }
.trailer-btn:hover { background: var(--navy-soft); }
.play-ring { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.play-ring i { margin-left: 3px; }
.play-ring::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* Orbit animation */
.orbit-wrap { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin: 0 auto; }
.orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(18, 46, 98, .18); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin linear infinite; }
.orbit-1 { width: 42%; height: 42%; animation-duration: 14s; border-style: solid; border-color: rgba(188, 142, 45, .35); }
.orbit-2 { width: 68%; height: 68%; animation-duration: 22s; animation-direction: reverse; }
.orbit-3 { width: 94%; height: 94%; animation-duration: 34s; }
.orbit-dot { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 5px rgba(18, 46, 98, .12); }
.orbit-dot.gold { background: var(--gold); box-shadow: 0 0 0 5px rgba(188, 142, 45, .2); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit-core { position: absolute; top: 35%; left: 35%; width: 30%; aspect-ratio: 1; border-radius: 50%; padding: 6px; background: conic-gradient(var(--gold), var(--navy-light), var(--gold)); animation: corespin 8s linear infinite; box-shadow: 0 25px 50px -12px rgba(18, 46, 98, .5); }
.core-inner { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--navy-light), var(--navy-dark)); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: corespin 8s linear infinite reverse; }
@keyframes corespin { to { rotate: 360deg; } }

.float-chip { position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 12px; background: #fff; font-size: .78rem; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); white-space: nowrap; animation: floaty 5s ease-in-out infinite; }
.float-chip i { color: var(--gold); }
.chip-1 { top: 6%; left: 8%; }
.chip-2 { top: 14%; right: 0; animation-delay: -1s; }
.chip-3 { top: 46%; left: -4%; animation-delay: -2s; }
.chip-4 { top: 42%; right: -6%; animation-delay: -3s; }
.chip-5 { bottom: 10%; left: 10%; animation-delay: -1.5s; }
.chip-6 { bottom: 4%; right: 18%; animation-delay: -2.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.cert-card { position: absolute; bottom: 18%; right: 0; display: none; align-items: center; gap: .7rem; padding: .7rem 1rem; background: #fff; border-radius: 14px; border-left: 4px solid var(--gold); box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite -3s; }
@media (min-width: 1024px) { .cert-card { display: flex; } }
@media (max-width: 480px) { .float-chip { font-size: .66rem; padding: .4rem .65rem; } .chip-3 { left: 0; } .chip-4 { right: 0; } }

/* ---------- COURSE CARD ---------- */
.course-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid #eef2f7; box-shadow: 0 4px 14px -8px rgba(18, 46, 98, .12); transition: transform .35s ease, box-shadow .35s ease, border-color .35s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(188, 142, 45, .35); }
.thumb-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(188, 142, 45, .55), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy-dark)); transition: transform .7s; }
.course-card:hover .thumb-placeholder { transform: scale(1.06); }
.thumb-placeholder span:first-child { color: var(--gold-light); }

/* ---------- RESULTS ---------- */
.results-pattern { position: absolute; inset: 0; opacity: .5; background: radial-gradient(700px 300px at 50% 0%, rgba(188, 142, 45, .22), transparent 70%), radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 24px 24px; }
.stat-card { position: relative; padding: 1.8rem 1.5rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: transform .3s, background .3s, border-color .3s; }
.stat-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .08); border-color: rgba(188, 142, 45, .5); }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.top-courses { padding: 1.8rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.bar-fill { width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }

/* ---------- TESTIMONIALS ---------- */
.t-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1.5rem; scrollbar-width: none; }
.t-slider::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .t-slider { grid-auto-columns: calc(50% - .75rem); } }
@media (min-width: 1024px) { .t-slider { grid-auto-columns: calc(33.333% - 1rem); } }
.t-card { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid #eef2f7; box-shadow: var(--shadow); transition: border-color .3s, transform .3s; }
.t-card:hover { border-color: rgba(188, 142, 45, .45); transform: translateY(-4px); }
.t-quote { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2.4rem; color: var(--gold-soft); }
.slider-btn { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--navy); color: var(--navy); display: grid; place-items: center; transition: all .2s; }
.slider-btn:hover { background: var(--navy); color: #fff; }

/* ---------- FILTER TABS (courses page) ---------- */
.filter-tab { padding: .65rem 1.2rem; border-radius: 12px; font-size: .88rem; font-weight: 600; color: #475569; background: #fff; border: 1px solid #e2e8f0; transition: all .2s; }
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
#courseGrid.loading { opacity: .4; pointer-events: none; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 30, 66, .85); backdrop-filter: blur(6px); }
.modal-box { position: relative; width: min(960px, 100%); animation: pop .3s ease; }
.modal-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.1rem; }
.modal-close:hover { background: var(--gold); color: #fff; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- FOOTER ---------- */
.footer-glow { position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 100%, rgba(188, 142, 45, .12), transparent 70%); pointer-events: none; }
.cta-strip { position: relative; top: -1px; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; justify-content: space-between; padding: 2rem; margin-top: 3.5rem; border-radius: 22px; background: linear-gradient(120deg, var(--gold), #a47a22); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .cta-strip { flex-direction: row; align-items: center; padding: 2.4rem 3rem; } }
.footer-title { font-family: Outfit, sans-serif; color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.footer-link { color: #94a3b8; transition: color .2s, padding .2s; }
.footer-link:hover { color: var(--gold-light); padding-left: 4px; }
.footer-input { width: 100%; padding: .65rem .85rem; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: .85rem; outline: none; }
.footer-input::placeholder { color: #64748b; }
.footer-input:focus { border-color: var(--gold); }
.social-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: all .2s; }
.social-btn:hover { background: var(--gold); transform: translateY(-3px); }

.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; font-size: 1.8rem; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .8); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
@media (max-width: 480px) { .core-inner i { font-size: 1.6rem; } .core-inner span:last-child { display: none; } }

/* =====================================================
   PHASE 2: Course detail + Checkout
   ===================================================== */
.content-box { background: #fff; border: 1px solid #eef2f7; border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 4px 14px -8px rgba(18, 46, 98, .1); }
.box-title { font-family: Outfit, sans-serif; font-size: 1.45rem; font-weight: 800; color: var(--navy); margin-bottom: 1.25rem; }
.box-num { width: 32px; height: 32px; border-radius: 10px; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: .95rem; }

/* Enroll card */
.enroll-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid #eef2f7; box-shadow: var(--shadow-lg); }
.inc-item { display: flex; align-items: center; gap: .75rem; }
.inc-item i { width: 20px; text-align: center; color: var(--gold); }

/* Curriculum */
.curriculum { border: 1px solid #eef2f7; border-radius: var(--radius); overflow: hidden; background: #fff; }
.lesson-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; transition: background .2s; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: #fafbfd; }
.lesson-num { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: .85rem; }
.preview-btn { flex-shrink: 0; padding: .45rem .85rem; border-radius: 10px; font-size: .78rem; font-weight: 700; color: var(--gold); background: var(--gold-soft); transition: all .2s; }
.preview-btn:hover { background: var(--gold); color: #fff; }
.lock-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #94a3b8; background: #f1f5f9; font-size: .8rem; }

.mobile-enroll { display: none; }
@media (max-width: 1023px) { .mobile-enroll { position: fixed; inset-inline: 0; bottom: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; padding-left: 88px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px -12px rgba(18, 46, 98, .3); } }
@media (max-width: 1023px) { body:has(.mobile-enroll) .wa-float { bottom: 12px; left: 16px; width: 50px; height: 50px; font-size: 1.55rem; } body:has(.mobile-enroll) .to-top { bottom: 84px; } body:has(.mobile-enroll) footer { padding-bottom: 72px; } }

/* Steps */
.step { display: inline-flex; align-items: center; gap: .5rem; color: #94a3b8; white-space: nowrap; }
.step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; color: #64748b; font-size: .8rem; }
.step.active { color: var(--navy); }
.step.active span { background: var(--gold); color: #fff; box-shadow: 0 0 0 5px rgba(188, 142, 45, .18); }
.step.done { color: var(--navy); }
.step.done span { background: var(--navy); color: #fff; }
.step-line { width: 28px; height: 2px; background: #e2e8f0; }
@media (min-width: 640px) { .step-line { width: 56px; } }
@media (max-width: 480px) { .step { font-size: 0; gap: 0; } .step span { font-size: .8rem; } }

/* Form fields */
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field label > span { color: #dc2626; }
.field input:not([type=checkbox]):not([type=file]) { width: 100%; height: 48px; padding: 0 1rem; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #fff; color: var(--navy); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(188, 142, 45, .14); }
.field small { display: block; font-size: .72rem; color: #94a3b8; margin-top: .35rem; }
.has-error input:not([type=checkbox]) { border-color: #ef4444 !important; }
.has-error .drop-zone { border-color: #ef4444; }
.err { color: #dc2626; font-size: .75rem; margin-top: .35rem; font-weight: 500; }

/* JazzCash card */
.jc-card { padding: 1.5rem; border-radius: 18px; background: radial-gradient(circle at 90% 10%, rgba(188, 142, 45, .45), transparent 50%), linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.pay-steps { counter-reset: s; margin-top: 1.25rem; display: grid; gap: .65rem; }
.pay-steps li { counter-increment: s; position: relative; padding-left: 2.4rem; font-size: .9rem; color: #475569; line-height: 1.5; }
.pay-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

/* Drop zone */
.drop-zone { display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 1.5rem; border: 2px dashed #cbd5e1; border-radius: 16px; background: #fafbfd; cursor: pointer; transition: all .2s; }
.drop-zone:hover, .drop-zone.drag { border-color: var(--gold); background: var(--gold-soft); }
.drop-zone.filled { border-style: solid; border-color: var(--gold); background: #fff; min-height: 0; }
.field .drop-zone { font-weight: 400; margin: 0; }

.form-alert { padding: 1rem 1.25rem; border-radius: 14px; font-size: .9rem; font-weight: 600; }
.form-alert.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-alert.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Success page */
.success-icon { width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 0 0 12px var(--gold-soft); animation: pop .5s ease; }
.timeline { position: relative; display: grid; gap: 1.4rem; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: #e2e8f0; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -2.2rem; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; }
.timeline li.done::before { background: var(--navy); border-color: var(--navy); }
.timeline li.current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(188, 142, 45, .2); }
.timeline b { display: block; color: var(--navy); }
.timeline span { font-size: .85rem; color: #64748b; }
