/* ==========================================================================
   Flash IT — main stylesheet
   Change the brand by editing the variables below.
   ========================================================================== */
:root {
  --fi-primary: #2563EB;
  --fi-primary-dark: #1D4ED8;
  --fi-secondary: #7C3AED;
  --fi-accent: #06B6D4;
  --fi-dark: #0F172A;
  --fi-light: #F8FAFC;
  --fi-white: #FFFFFF;
  --fi-text: #334155;
  --fi-muted: #64748B;
  --fi-border: #E2E8F0;
  --fi-success: #16A34A;
  --fi-warning: #F59E0B;
  --fi-danger: #DC2626;
  --fi-gradient: linear-gradient(135deg, var(--fi-primary), var(--fi-secondary));
  --fi-radius: 16px;
  --fi-radius-sm: 10px;
  --fi-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
  --fi-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --fi-font-head: 'Sora', system-ui, sans-serif;
  --fi-font-body: 'DM Sans', system-ui, sans-serif;
  --bs-primary: #2563EB;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563EB;
  --bs-link-hover-color: #1D4ED8;
  --bs-body-font-family: var(--fi-font-body);
  --bs-body-color: var(--fi-text);
  --nav-h: 76px;
  --bs-heading-color: #0F172A;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { font-family: var(--fi-font-body); color: var(--fi-text); background: var(--fi-white); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--fi-font-head); color: var(--fi-dark); letter-spacing: -.02em; line-height: 1.2; }
h1 { font-weight: 800; } h2 { font-weight: 700; } h3, h4, h5 { font-weight: 600; }
a { text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .55); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 3000; background: var(--fi-dark); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.text-muted-fi { color: var(--fi-muted) !important; }
.text-gradient { background: var(--fi-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout ---------- */
.section { padding-block: 4.5rem; }
.section-sm { padding-block: 3rem; }
.section-alt { background: var(--fi-light); }
.section-dark { background: var(--fi-dark); color: #CBD5E1; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .6rem; }
.section-head p { color: var(--fi-muted); margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.4rem; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-lg { padding: .85rem 1.9rem; }
.btn-sm { padding: .4rem 1rem; }
.btn-flash { background: var(--fi-gradient); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn-flash:hover, .btn-flash:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(37, 99, 235, .7); }
.btn-outline-flash { border: 1.5px solid var(--fi-primary); color: var(--fi-primary); background: transparent; }
.btn-outline-flash:hover { background: var(--fi-primary); color: #fff; }
.btn-light-glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.btn-light-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--fi-border); background: #fff; color: var(--fi-dark); }
.btn-icon:hover { background: var(--fi-light); }
.btn.is-loading { pointer-events: none; opacity: .8; }

/* ---------- Navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--fi-border); box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .3); }
.navbar { min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--fi-font-head); font-weight: 800; font-size: 1.35rem; color: var(--fi-dark); letter-spacing: -.03em; }
.brand:hover { color: var(--fi-dark); }
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--fi-primary); font-weight: 800; }
.navbar .nav-link { color: var(--fi-dark); font-weight: 500; padding: .5rem .85rem !important; border-radius: 999px; }
.navbar .nav-link:hover { color: var(--fi-primary); }
.navbar .nav-link.active { color: var(--fi-primary); background: rgba(37, 99, 235, .08); }
.navbar-toggler { border: 1px solid var(--fi-border); padding: .4rem .6rem; }
.nav-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--fi-secondary); color: #fff; font-size: .68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cart-badge:empty, .cart-badge[data-zero="1"] { display: none; }
.dropdown-menu { border: 1px solid var(--fi-border); border-radius: 14px; box-shadow: var(--fi-shadow); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0 1.25rem; }
  .nav-actions { margin-top: 1rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: radial-gradient(900px 300px at 85% -20%, rgba(124, 58, 237, .55), transparent 60%), radial-gradient(700px 300px at 0% 120%, rgba(6, 182, 212, .35), transparent 60%), var(--fi-dark); color: #CBD5E1; padding: 3.25rem 0 3.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: .6rem; }
.page-hero p { max-width: 640px; margin: 0; color: #CBD5E1; }
.breadcrumb { --bs-breadcrumb-divider-color: #94A3B8; --bs-breadcrumb-item-active-color: #E2E8F0; margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb a { color: #93C5FD; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; color: #CBD5E1; padding: 5rem 0 6rem; background: radial-gradient(900px 500px at 88% 10%, rgba(124, 58, 237, .6), transparent 60%), radial-gradient(700px 500px at -5% 100%, rgba(6, 182, 212, .4), transparent 60%), var(--fi-dark); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.7rem); margin-bottom: 1.25rem; }
.hero .lead { font-size: 1.15rem; max-width: 540px; color: #CBD5E1; }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #E2E8F0; font-size: .88rem; margin-bottom: 1.25rem; }
.hero-tag i { color: #FBBF24; }
.hero-visual { position: relative; padding: 1.5rem 0 2.5rem; }
.code-window { background: #0B1224; border: 1px solid rgba(148, 163, 184, .25); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); overflow: hidden; max-width: 460px; margin-left: auto; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; background: rgba(255, 255, 255, .05); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.code-bar span:nth-child(1) { background: #F87171; } .code-bar span:nth-child(2) { background: #FBBF24; } .code-bar span:nth-child(3) { background: #4ADE80; }
.code-bar small { margin-left: auto; color: #94A3B8; font-family: Consolas, Menlo, monospace; }
.code-body { padding: 1.25rem 1.4rem 1.5rem; font-family: Consolas, Menlo, monospace; font-size: .92rem; line-height: 1.85; color: #E2E8F0; white-space: pre; overflow-x: auto; }
.code-body .k { color: #C4B5FD; } .code-body .s { color: #67E8F9; } .code-body .f { color: #93C5FD; } .code-body .c { color: #64748B; }
.caret { display: inline-block; width: 8px; height: 1.05em; background: #67E8F9; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-card { position: absolute; display: flex; align-items: center; gap: .75rem; background: #fff; color: var(--fi-dark); border-radius: 14px; padding: .7rem 1rem; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .5); }
.float-card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; background: var(--fi-gradient); }
.float-card strong { display: block; font-family: var(--fi-font-head); font-size: 1.05rem; line-height: 1.1; }
.float-card small { color: var(--fi-muted); font-size: .78rem; }
.fc-1 { top: 0; left: 0; } .fc-2 { top: 34%; left: -6%; } .fc-3 { bottom: 0; left: 12%; } .fc-4 { bottom: 14%; right: 0; }
.fc-2 .ico { background: linear-gradient(135deg, #06B6D4, #2563EB); } .fc-3 .ico { background: linear-gradient(135deg, #7C3AED, #EC4899); } .fc-4 .ico { background: linear-gradient(135deg, #16A34A, #06B6D4); }
.hero-enter > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-enter > *:nth-child(2) { animation-delay: .08s; } .hero-enter > *:nth-child(3) { animation-delay: .16s; } .hero-enter > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 991.98px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-visual { margin-top: 2.5rem; }
  .code-window { margin-inline: auto; }
  .fc-2 { left: 0; top: 38%; } .fc-4 { right: 0; }
}
@media (max-width: 575.98px) { .float-card { padding: .5rem .75rem; } .float-card .ico { width: 32px; height: 32px; font-size: 1rem; } .code-body { font-size: .8rem; } }

/* ---------- Cards ---------- */
.card-flash { color: var(--fi-text); background: #fff; border: 1px solid var(--fi-border); border-radius: var(--fi-radius); box-shadow: var(--fi-shadow-sm); height: 100%; }
.course-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--fi-shadow); }
.thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--fi-light); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.course-card:hover .thumb img, .event-card:hover .thumb img, .blog-card:hover .thumb img { transform: scale(1.05); }
.thumb .badge-fi { position: absolute; top: 12px; left: 12px; }
.thumb .wish { position: absolute; top: 10px; right: 10px; }
.wish { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--fi-dark); display: grid; place-items: center; box-shadow: var(--fi-shadow-sm); }
.wish.active { color: #E11D48; }
.card-body-fi { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .82rem; font-weight: 600; color: var(--fi-primary); margin-bottom: .35rem; }
.card-title-fi { font-size: 1.08rem; line-height: 1.35; margin-bottom: .5rem; }
.card-title-fi a { color: var(--fi-dark); } .card-title-fi a:hover { color: var(--fi-primary); }
.card-desc { color: var(--fi-muted); font-size: .92rem; margin-bottom: .9rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .84rem; color: var(--fi-muted); margin-bottom: .9rem; }
.meta-row i { color: var(--fi-primary); margin-right: .25rem; }
.rating { color: #F59E0B; font-size: .85rem; white-space: nowrap; }
.rating b { color: var(--fi-dark); margin-left: .25rem; font-weight: 700; }
.inst-line { display: flex; align-items: center; gap: .5rem; font-size: .88rem; margin-bottom: .75rem; color: var(--fi-text); }
.inst-line img { width: 26px; height: 26px; border-radius: 50%; }
.price-row { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .6rem; padding-top: .9rem; border-top: 1px dashed var(--fi-border); margin-bottom: .9rem; }
.price-now { font-family: var(--fi-font-head); font-weight: 800; font-size: 1.35rem; color: var(--fi-dark); }
.price-old { color: var(--fi-muted); text-decoration: line-through; font-size: .95rem; }
.price-off { margin-left: auto; font-size: .78rem; font-weight: 700; color: #15803D; background: #DCFCE7; padding: .15rem .55rem; border-radius: 999px; }
.price-free { color: var(--fi-success); }
.card-actions { display: flex; gap: .5rem; }
.card-actions .btn { flex: 1; font-size: .9rem; padding: .5rem .5rem; }

.badge-fi { display: inline-block; font-size: .72rem; font-weight: 700; padding: .28rem .65rem; border-radius: 999px; color: #fff; background: var(--fi-primary); }
.badge-fi.bestseller { background: #F59E0B; color: #422006; }
.badge-fi.new { background: #06B6D4; }
.badge-fi.popular { background: var(--fi-secondary); }
.badge-fi.free { background: var(--fi-success); }
.badge-fi.limited-seats { background: #E11D48; }
.badge-fi.coming-soon { background: #475569; }

/* Category card */
.cat-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.15rem; color: var(--fi-dark); transition: border-color .2s, box-shadow .2s, transform .2s; }
.cat-card:hover { border-color: var(--fi-primary); box-shadow: var(--fi-shadow); transform: translateY(-3px); color: var(--fi-dark); }
.cat-card .ico { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; color: var(--fi-primary); background: rgba(37, 99, 235, .09); transition: background .2s, color .2s; }
.cat-card:hover .ico { background: var(--fi-gradient); color: #fff; }
.cat-card strong { display: block; font-family: var(--fi-font-head); font-size: .98rem; line-height: 1.25; }
.cat-card small { color: var(--fi-muted); }

/* Feature card */
.feature { padding: 1.6rem; }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--fi-gradient); margin-bottom: 1rem; }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--fi-muted); font-size: .95rem; }

/* Format cards (home) */
.format-card { display: block; padding: 1.5rem; color: var(--fi-text); transition: transform .2s, box-shadow .2s; }
.format-card:hover { transform: translateY(-3px); box-shadow: var(--fi-shadow); color: var(--fi-text); }
.format-card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.format-card h3 i { color: var(--fi-secondary); }
.format-card p { color: var(--fi-muted); margin: .5rem 0 1rem; font-size: .95rem; }
.link-arrow { font-weight: 600; color: var(--fi-primary); }
.link-arrow i { transition: transform .2s; display: inline-block; }
.link-arrow:hover i { transform: translateX(3px); }

/* Instructor */
.inst-card { text-align: center; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.inst-card:hover { transform: translateY(-4px); box-shadow: var(--fi-shadow); }
.inst-card .avatar { aspect-ratio: 1; overflow: hidden; background: var(--fi-light); }
.inst-card .avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.inst-card:hover .avatar img { transform: scale(1.05); }
.inst-card .body { padding: 1.15rem 1.15rem 1.3rem; }
.inst-card h3 { font-size: 1.08rem; margin-bottom: .1rem; }
.inst-role { color: var(--fi-primary); font-weight: 600; font-size: .9rem; }
.chip { display: inline-block; font-size: .76rem; padding: .18rem .6rem; border-radius: 999px; background: var(--fi-light); border: 1px solid var(--fi-border); color: var(--fi-text); margin: .12rem; }
.social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--fi-muted); border: 1px solid var(--fi-border); margin: 0 .15rem; transition: all .2s; }
.social a:hover { background: var(--fi-primary); border-color: var(--fi-primary); color: #fff; }
.inst-stats { display: flex; justify-content: center; gap: 1.2rem; font-size: .85rem; color: var(--fi-muted); margin: .7rem 0; }

/* Event / bootcamp / blog cards */
.event-card, .blog-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.event-card:hover, .blog-card:hover { transform: translateY(-4px); box-shadow: var(--fi-shadow); }
.date-tile { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 12px; padding: .35rem .75rem; text-align: center; line-height: 1.1; box-shadow: var(--fi-shadow-sm); }
.date-tile b { display: block; font-family: var(--fi-font-head); font-size: 1.25rem; color: var(--fi-dark); }
.date-tile span { font-size: .72rem; font-weight: 700; color: var(--fi-secondary); }
.info-list { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.info-list li { display: flex; gap: .6rem; padding: .22rem 0; }
.info-list i { color: var(--fi-primary); flex: none; margin-top: .2rem; }
.seat-bar { height: 6px; border-radius: 6px; background: var(--fi-border); overflow: hidden; margin: .25rem 0 .9rem; }
.seat-bar span { display: block; height: 100%; border-radius: 6px; background: var(--fi-gradient); }
.seat-bar.low span { background: #E11D48; }
.fee { font-family: var(--fi-font-head); font-weight: 800; font-size: 1.3rem; color: var(--fi-dark); }
.blog-meta { font-size: .82rem; color: var(--fi-muted); display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .5rem; }

/* Stats */
.stat-box { text-align: center; padding: 1.75rem 1rem; }
.stat-box b { display: block; font-family: var(--fi-font-head); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; background: var(--fi-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat-box span { color: var(--fi-muted); font-weight: 500; }

/* Testimonials */
.testi { max-width: 780px; margin: 0 auto; padding: 2rem 2rem 2.2rem; text-align: center; }
.testi .quote { font-size: 1.15rem; color: var(--fi-dark); margin: 1rem 0 1.5rem; }
.testi .who { display: inline-flex; align-items: center; gap: .8rem; text-align: left; }
.testi .who img { width: 54px; height: 54px; border-radius: 50%; }
.testi .who small { display: block; color: var(--fi-muted); }
.carousel-indicators { position: static; margin: 1.5rem 0 0; }
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background: var(--fi-primary); border: 0; margin: 0 5px; opacity: .25; }
.carousel-indicators .active { opacity: 1; }

/* CTA */
.cta-band { border-radius: 28px; padding: 3rem 2rem; color: #E0E7FF; text-align: center; background: radial-gradient(500px 250px at 90% 0, rgba(6, 182, 212, .5), transparent 60%), var(--fi-gradient); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.cta-band p { max-width: 560px; margin: .75rem auto 1.5rem; }
.btn-white { background: #fff; color: var(--fi-primary); }
.btn-white:hover { background: #F1F5F9; color: var(--fi-primary-dark); }

/* Countdown */
.countdown { display: flex; gap: .6rem; }
.countdown div { min-width: 64px; text-align: center; padding: .55rem .5rem; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.countdown b { display: block; font-family: var(--fi-font-head); font-size: 1.5rem; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .7rem; color: #CBD5E1; }
.countdown.light div { background: var(--fi-light); border-color: var(--fi-border); }
.countdown.light b { color: var(--fi-dark); } .countdown.light small { color: var(--fi-muted); }

/* ---------- Filters (courses) ---------- */
.filter-panel { padding: 1.25rem; position: sticky; top: calc(var(--nav-h) + 16px); }
.filter-panel label { font-weight: 600; font-size: .88rem; color: var(--fi-dark); margin-bottom: .3rem; }
.form-control, .form-select { border-radius: var(--fi-radius-sm); border-color: #CBD5E1; padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--fi-primary); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--fi-dark); }
.form-check-input:checked { background-color: var(--fi-primary); border-color: var(--fi-primary); }
.chip-btn { border: 1px solid var(--fi-border); background: #fff; color: var(--fi-text); padding: .35rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.chip-btn:hover { border-color: var(--fi-primary); color: var(--fi-primary); }
.chip-btn.active { background: var(--fi-primary); border-color: var(--fi-primary); color: #fff; }
.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1.5px dashed #CBD5E1; border-radius: var(--fi-radius); background: var(--fi-light); }
.empty-state i { font-size: 2.6rem; color: var(--fi-primary); }
.skeleton { border-radius: var(--fi-radius); min-height: 380px; background: linear-gradient(90deg, #EEF2F7 25%, #F8FAFC 37%, #EEF2F7 63%); background-size: 400% 100%; animation: shimmer 1.2s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.pagination .page-link { border-radius: 10px !important; margin: 0 .15rem; color: var(--fi-text); border-color: var(--fi-border); }
.pagination .active .page-link { background: var(--fi-primary); border-color: var(--fi-primary); color: #fff; }

/* ---------- Course details ---------- */
.course-hero { background: radial-gradient(800px 300px at 90% -10%, rgba(124, 58, 237, .5), transparent 60%), var(--fi-dark); color: #CBD5E1; padding: 3rem 0 3.5rem; }
.course-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.course-hero .meta-row { color: #CBD5E1; margin-bottom: 0; font-size: .92rem; }
.course-hero .meta-row i { color: #67E8F9; }
.buy-card { overflow: hidden; box-shadow: var(--fi-shadow); }
.buy-card .body { padding: 1.4rem; }
.buy-sticky { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (min-width: 992px) { .buy-pull { margin-top: -11rem; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .65rem; padding: .3rem 0; }
.check-list i { color: var(--fi-success); flex: none; margin-top: .2rem; }
.box-outline { border: 1px solid var(--fi-border); border-radius: var(--fi-radius); padding: 1.5rem; background: #fff; }
.accordion { --bs-accordion-border-color: var(--fi-border); --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 13px; --bs-accordion-active-bg: rgba(37, 99, 235, .06); --bs-accordion-active-color: var(--fi-dark); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15); }
.accordion-item { margin-bottom: .75rem; border-radius: 14px !important; overflow: hidden; border: 1px solid var(--fi-border); }
.accordion-button { font-family: var(--fi-font-head); font-weight: 600; gap: .75rem; }
.mod-no { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: var(--fi-primary); background: rgba(37, 99, 235, .1); }
.mod-meta { margin-left: auto; margin-right: .75rem; font-family: var(--fi-font-body); font-weight: 400; font-size: .84rem; color: var(--fi-muted); white-space: nowrap; }
.lesson { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--fi-border); font-size: .95rem; }
.lesson:last-child { border-bottom: 0; }
.lesson i { color: var(--fi-muted); }
.lesson .dur { margin-left: auto; color: var(--fi-muted); font-size: .85rem; }
.lesson .prev { font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: #DBEAFE; color: var(--fi-primary-dark); }

/* ---------- Forms & auth ---------- */
.form-card { padding: 2rem; }
.form-section-title { font-size: 1.05rem; padding-bottom: .6rem; margin: 1.5rem 0 1rem; border-bottom: 1px solid var(--fi-border); }
.form-section-title:first-child { margin-top: 0; }
.pay-option { position: relative; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option label { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--fi-border); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--fi-dark); background: #fff; transition: border-color .15s, background .15s; }
.pay-option label i { font-size: 1.25rem; color: var(--fi-primary); }
.pay-option input:checked + label { border-color: var(--fi-primary); background: rgba(37, 99, 235, .06); }
.pay-option input:focus-visible + label { outline: 3px solid rgba(37, 99, 235, .55); outline-offset: 2px; }
.pay-panel { background: var(--fi-light); border: 1px solid var(--fi-border); border-radius: 12px; padding: 1rem; font-size: .92rem; }
.summary-line { display: flex; justify-content: space-between; padding: .4rem 0; }
.summary-total { border-top: 1px solid var(--fi-border); margin-top: .5rem; padding-top: .8rem; font-weight: 700; font-size: 1.15rem; color: var(--fi-dark); }
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 2.8rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--fi-muted); width: 38px; height: 38px; }
.was-validated .pw-wrap .form-control:invalid, .was-validated .pw-wrap .form-control:valid { background-image: none; }
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(600px 400px at 100% 0, rgba(6, 182, 212, .5), transparent 60%), var(--fi-gradient); color: #E0E7FF; padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { color: #fff; font-size: 2.1rem; }
.auth-side ul { list-style: none; padding: 0; margin: 2rem 0 0; }
.auth-side li { display: flex; gap: .7rem; margin-bottom: .9rem; }
.auth-side li i { color: #67E8F9; }
.auth-form { padding: 3rem 1.5rem; display: flex; align-items: center; justify-content: center; }
.auth-form > div { width: 100%; max-width: 430px; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--fi-muted); font-size: .85rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--fi-border); }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }
.photo-preview { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; border: 1px solid var(--fi-border); background: var(--fi-light); }

/* ---------- Contact ---------- */
.contact-item { display: flex; gap: 1rem; padding: 1rem 0; }
.contact-item .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(37, 99, 235, .09); color: var(--fi-primary); font-size: 1.2rem; }
.map-placeholder { min-height: 280px; border-radius: var(--fi-radius); border: 1px solid var(--fi-border); display: grid; place-items: center; text-align: center; color: var(--fi-muted); background: repeating-linear-gradient(45deg, #EEF2F7 0 14px, #F8FAFC 14px 28px); }
.map-placeholder i { font-size: 2.4rem; color: var(--fi-danger); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 270px 1fr; min-height: calc(100vh - var(--nav-h)); background: var(--fi-light); }
.dash-side { background: #fff; border-right: 1px solid var(--fi-border); padding: 1.5rem 1rem; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.dash-user { display: flex; align-items: center; gap: .8rem; padding: .5rem .75rem 1.25rem; margin-bottom: .75rem; border-bottom: 1px solid var(--fi-border); }
.dash-user img { width: 48px; height: 48px; border-radius: 50%; }
.dash-user strong { display: block; font-family: var(--fi-font-head); color: var(--fi-dark); line-height: 1.2; }
.dash-user small { color: var(--fi-muted); }
.dash-nav { list-style: none; margin: 0; padding: 0; }
.dash-nav a { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; border-radius: 12px; color: var(--fi-text); font-weight: 500; }
.dash-nav a i { font-size: 1.1rem; }
.dash-nav a:hover { background: var(--fi-light); }
.dash-nav a.active { background: rgba(37, 99, 235, .1); color: var(--fi-primary); }
.dash-nav .count { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--fi-secondary); color: #fff; border-radius: 999px; padding: .1rem .5rem; }
.dash-main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.stat-card { padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.stat-card .ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--fi-gradient); }
.stat-card b { display: block; font-family: var(--fi-font-head); font-size: 1.6rem; color: var(--fi-dark); line-height: 1.1; }
.stat-card span { color: var(--fi-muted); font-size: .9rem; }
.progress { height: 8px; border-radius: 8px; background: var(--fi-border); }
.progress-bar { background: var(--fi-gradient); border-radius: 8px; }
.progress-bar.done { background: var(--fi-success); }
.week-chart { display: flex; align-items: flex-end; gap: .6rem; height: 150px; }
.week-chart div { flex: 1; text-align: center; font-size: .75rem; color: var(--fi-muted); }
.week-chart span { display: block; border-radius: 8px 8px 4px 4px; background: var(--fi-gradient); margin-bottom: .4rem; min-height: 6px; }
.notice { display: flex; gap: .9rem; padding: 1rem; border-bottom: 1px solid var(--fi-border); }
.notice:last-child { border-bottom: 0; }
.notice.unread { background: rgba(37, 99, 235, .05); }
.notice .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 99, 235, .1); color: var(--fi-primary); }
.cert-card { padding: 1.5rem; text-align: center; background: linear-gradient(#fff, #fff) padding-box, var(--fi-gradient) border-box; border: 2px solid transparent; border-radius: var(--fi-radius); }
.cert-card i.big { font-size: 2.4rem; color: var(--fi-warning); }
@media (max-width: 991.98px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--fi-border); padding: 1rem; }
  .dash-user { display: none; }
  .dash-nav { display: flex; overflow-x: auto; gap: .4rem; padding-bottom: .25rem; }
  .dash-nav a { white-space: nowrap; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--fi-dark); color: #94A3B8; padding: 4rem 0 0; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .22rem 0; }
.site-footer .brand { color: #fff; }
.site-footer .social a { border-color: rgba(148, 163, 184, .3); color: #CBD5E1; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .18); margin-top: 3rem; padding: 1.25rem 0; font-size: .9rem; }
.newsletter-box { display: flex; gap: .5rem; }
.newsletter-box .form-control { border-radius: 999px; background: rgba(255, 255, 255, .06); border-color: rgba(148, 163, 184, .3); color: #fff; }
.newsletter-box .form-control::placeholder { color: #94A3B8; }
.newsletter-box .btn { flex: none; }

/* ---------- Utilities ---------- */
.scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--fi-gradient); color: #fff; box-shadow: var(--fi-shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.toast-wrap { position: fixed; top: 84px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: .6rem; max-width: calc(100vw - 32px); }
.toast { border: 0; border-radius: 12px; box-shadow: var(--fi-shadow); }
.modal-content { border: 0; border-radius: 20px; }
.success-ring { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: linear-gradient(135deg, #16A34A, #06B6D4); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.reg-id { display: inline-block; font-family: Consolas, Menlo, monospace; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; padding: .5rem 1rem; border-radius: 10px; background: var(--fi-light); border: 1px dashed var(--fi-primary); color: var(--fi-primary-dark); }
.offcanvas { border-radius: 20px 0 0 20px; }
.cart-item { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--fi-border); }
.cart-item img { width: 76px; height: 50px; object-fit: cover; border-radius: 8px; }
.cart-item h4 { font-size: .92rem; margin: 0 0 .15rem; }
.search-modal .form-control { font-size: 1.2rem; padding: 1rem 1.25rem; border-radius: 14px; }
.prose p { max-width: 70ch; }
.tl { position: relative; padding-left: 2rem; border-left: 2px solid var(--fi-border); }
.tl-item { position: relative; padding-bottom: 1.5rem; }
.tl-item::before { content: ""; position: absolute; left: -2.6rem; top: .25rem; width: 16px; height: 16px; border-radius: 50%; background: var(--fi-primary); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--fi-primary); }
.tl-item h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.tl-item p { margin: 0; color: var(--fi-muted); }
.about-img { border-radius: 24px; overflow: hidden; box-shadow: var(--fi-shadow); }
.about-img img { width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 575.98px) {
  .section { padding: 3.25rem 0; }
  .form-card { padding: 1.25rem; }
  .countdown div { min-width: 56px; }
  .mod-meta .hide-xs { display: none; }
  .newsletter-box { flex-direction: column; }
  .toast-wrap { top: 76px; }
  .cta-band { padding: 2.25rem 1.25rem; }
}

.course-hero .rating b { color: #fff; }
.rating .bi { margin-right: 1px; }

/* navbar fit on laptop widths */
@media (min-width: 992px) {
  .navbar > .container { max-width: 1400px; }
  .navbar .nav-link { white-space: nowrap; padding: .5rem .6rem !important; font-size: .95rem; }
  .nav-actions { flex-wrap: nowrap; gap: .4rem; }
  .nav-actions .btn { white-space: nowrap; }
}
.buy-card .btn-light { font-size: .86rem; padding: .5rem .3rem; white-space: nowrap; }
@media (min-width: 992px) { .navbar > .container { padding-inline: 1.25rem; } }

/* ==========================================================================
   v2 — interactivity layer
   ========================================================================== */
.brand { margin-right: 1.25rem; }
.brand span b { color: var(--fi-primary); }
.site-footer .brand span b { color: #67E8F9; }
.card-flash.form-card, .card-flash.h-auto { height: auto; }

/* scroll progress */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--fi-gradient); border-radius: 0 3px 3px 0; }

/* cursor spotlight */
@media (hover: hover) {
  .card-flash:not(.filter-panel):not(.buy-sticky) { position: relative; }
  .card-flash::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, .10), transparent 45%); }
  .card-flash:hover::after { opacity: 1; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* buttons: light sweep */
.btn-flash { position: relative; overflow: hidden; }
.btn-flash::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-flash:hover::before { left: 130%; }
.btn:active { transform: scale(.97); }

/* hero extras */
.hero { background-size: 140% 140%, 140% 140%, auto; animation: meshMove 18s ease-in-out infinite alternate; }
@keyframes meshMove { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 30% 20%, 20% 30%, 0 0; } }
.fc-1 { animation: bob 6s ease-in-out infinite; } .fc-2 { animation: bob 7s ease-in-out -2s infinite; } .fc-3 { animation: bob 6.5s ease-in-out -4s infinite; } .fc-4 { animation: bob 7.5s ease-in-out -1s infinite; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.hero-search { display: flex; align-items: center; gap: .5rem; max-width: 520px; background: #fff; border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.hero-search i { color: var(--fi-muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--fi-dark); padding: .45rem .25rem; }
.hero-chips { margin-top: .9rem; font-size: .88rem; color: #94A3B8; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.hero-chips a { color: #E2E8F0; padding: .15rem .7rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; }
.hero-chips a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* category + feature micro-interactions */
.cat-card .ico i, .feature .ico i, .format-card h3 i { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cat-card:hover .ico i, .feature:hover .ico i, .format-card:hover h3 i { transform: scale(1.2) rotate(-8deg); }
.feature { transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--fi-shadow); border-color: rgba(37, 99, 235, .35); }

/* course card quick view */
.quick { position: absolute; right: 10px; bottom: 10px; border: 0; border-radius: 999px; background: rgba(15, 23, 42, .82); color: #fff; font-size: .8rem; font-weight: 600; padding: .35rem .8rem; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.course-card:hover .quick, .quick:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .quick { opacity: 1; transform: none; } }

/* event / offline cards */
.fee-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-top: .8rem; margin-bottom: .8rem; border-top: 1px dashed var(--fi-border); }
.card-actions .btn { white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.toolbar .chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* contact */
.info-tile { padding: 1.5rem; text-align: center; transition: transform .2s, box-shadow .2s; }
.info-tile:hover { transform: translateY(-4px); box-shadow: var(--fi-shadow); }
.info-tile .ico { width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--fi-gradient); }
.info-tile h2 { font-size: 1.1rem; }
.info-tile p { color: var(--fi-muted); margin-bottom: .9rem; }
.copy-btn { border: 1px solid var(--fi-border); background: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; font-weight: 600; color: var(--fi-text); }
.copy-btn:hover { border-color: var(--fi-primary); color: var(--fi-primary); }
.open-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; background: #DCFCE7; color: #166534; }
.open-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.open-pill.closed { background: #FEE2E2; color: #991B1B; }
@keyframes pulse { 50% { opacity: .35; } }
.map-box { position: relative; min-height: 260px; border-radius: var(--fi-radius); overflow: hidden; border: 1px solid var(--fi-border); background: #E8EEF6; }
.map-box svg { display: block; width: 100%; height: 100%; min-height: 260px; }
.map-pin { position: absolute; left: 52%; top: 44%; transform: translate(-50%, -100%); color: var(--fi-danger); font-size: 2.6rem; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 26px; height: 10px; margin-left: -13px; border-radius: 50%; background: rgba(220, 38, 38, .35); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.map-cta { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .95); border-radius: 12px; padding: .6rem .9rem; font-size: .9rem; }
.hours { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.hours li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--fi-border); }
.hours li:last-child { border: 0; }
.hours li.today { font-weight: 700; color: var(--fi-primary); }
.subject-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.char-count { font-size: .8rem; color: var(--fi-muted); text-align: right; margin-top: .25rem; }
.char-count.warn { color: var(--fi-danger); }
.brand { white-space: nowrap; flex: none; }

/* ==========================================================================
   v3 — hero slider, marquee, goal tabs, responsive polish
   ========================================================================== */
.hero { padding: 0; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hero-orb.o1 { width: 340px; height: 340px; background: #7C3AED; top: -120px; right: 8%; animation: orb 14s ease-in-out infinite alternate; }
.hero-orb.o2 { width: 300px; height: 300px; background: #06B6D4; bottom: -140px; left: 4%; animation: orb 17s ease-in-out -5s infinite alternate; }
@keyframes orb { to { transform: translate(40px, 30px) scale(1.15); } }
.hero-slider { position: relative; z-index: 1; }
.hero-stage { display: grid; }
.hero-slide { grid-area: 1 / 1; padding: 4.25rem 0 7.5rem; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s .55s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .55s ease, visibility 0s; }
.hero .hero-title { color: #fff; font-family: var(--fi-font-head); font-weight: 800; font-size: clamp(2rem, 4.8vw, 3.5rem); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 1.1rem; }
.hero-slide .anim { opacity: 0; }
.hero-slide.is-active .anim { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-slide.is-active .anim:nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .anim:nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .anim:nth-child(4) { animation-delay: .24s; }
.hero-slide.is-active .anim:nth-child(5) { animation-delay: .32s; }
.hero-slide.is-active .anim:nth-child(6) { animation-delay: .4s; }
.hero-slide.is-active .hero-visual.anim, .hero-slide.is-active .slide-card.anim, .hero-slide.is-active .ticket.anim { animation-delay: .2s; }
.hero-enter > * { animation: none; }

/* tilt (pointer parallax) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; will-change: transform; }

/* slide cards */
.slide-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 24px; padding: 1.75rem; color: #E2E8F0; max-width: 470px; margin-left: auto; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.slide-card h3 { color: #fff; font-size: 1.35rem; }
.slide-card .info-list i { color: #67E8F9; }
.slide-price { font-family: var(--fi-font-head); font-weight: 800; font-size: 1.8rem; color: #fff; line-height: 1; }
.mini-batch { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; margin-bottom: .6rem; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: background .2s, transform .2s, border-color .2s; }
.mini-batch:last-child { margin-bottom: 0; }
.mini-batch:hover { background: rgba(255, 255, 255, .16); transform: translateX(4px); border-color: rgba(103, 232, 249, .6); color: #fff; }
.mini-batch .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--fi-gradient); font-size: 1.2rem; }
.mini-batch strong { display: block; font-size: .96rem; line-height: 1.25; }
.mini-batch small { color: #CBD5E1; }
.mini-batch .go { margin-left: auto; transition: transform .2s; }
.mini-batch:hover .go { transform: translateX(4px); }
.ticket { display: flex; max-width: 470px; margin-left: auto; background: #fff; border-radius: 24px; overflow: hidden; color: var(--fi-text); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.ticket-date { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--fi-gradient); color: #fff; border-right: 2px dashed rgba(255, 255, 255, .55); }
.ticket-date b { font-family: var(--fi-font-head); font-size: 2.4rem; line-height: 1; }
.ticket-date span { font-weight: 700; letter-spacing: .1em; }
.ticket-body { padding: 1.5rem; min-width: 0; }
.ticket-body h3 { font-size: 1.25rem; }

/* controls */
.hero-controls { position: absolute; left: 0; right: 0; bottom: 1.6rem; z-index: 5; }
.hero-dots { display: flex; gap: .5rem; }
.hero-dot { border: 0; padding: 10px 0; background: none; width: 46px; cursor: pointer; }
.hero-dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); position: relative; overflow: hidden; transition: background .2s; }
.hero-dot:hover span { background: rgba(255, 255, 255, .5); }
.hero-dot span::after { content: ""; position: absolute; inset: 0; width: 0; background: #fff; border-radius: 4px; }
.hero-dot.active span::after { animation: dotfill var(--slide-ms, 7000ms) linear forwards; }
@keyframes dotfill { to { width: 100%; } }
.hero-slider.paused .hero-dot.active span::after { animation-play-state: paused; }
.hero-slider.stopped .hero-dot.active span::after { animation: none; width: 100%; }
.hero-count { color: #94A3B8; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-count b { color: #fff; }
.hero-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.hero-btn:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }

/* marquee */
.marquee { overflow: hidden; background: #fff; border-bottom: 1px solid var(--fi-border); padding: .9rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.25rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--fi-muted); white-space: nowrap; transition: color .2s; }
.marquee span i { color: var(--fi-primary); font-size: 1.15rem; }
.marquee span:hover { color: var(--fi-dark); }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.125rem)); } }

/* goal tabs */
.path-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1rem; }
.path-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--fi-border); background: #fff; font-weight: 600; color: var(--fi-dark); transition: all .2s; }
.path-tab i { color: var(--fi-primary); transition: color .2s; }
.path-tab:hover { border-color: var(--fi-primary); transform: translateY(-2px); }
.path-tab.active { background: var(--fi-gradient); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7); }
.path-tab.active i { color: #fff; }
#pathGrid.swap { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- responsive polish ---------- */
@media (max-width: 991.98px) {
  .hero-slide { padding: 3rem 0 7rem; }
  .slide-card, .ticket { margin-inline: auto; }
  .hero-count { display: none; }
}
@media (max-width: 575.98px) {
  .hero-slide { padding: 2.25rem 0 6.5rem; }
  .hero .lead { font-size: 1.02rem; }
  .hero-slide .btn-lg { padding: .7rem 1.25rem; font-size: .95rem; flex: 1 1 auto; text-align: center; }
  .hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: 0; }
  .hero-visual .code-window { display: none; }
  .hero-visual .float-card { position: static; animation: none; }
  .hero-search { padding-left: .8rem; }
  .hero-search .btn { padding: .5rem 1rem; }
  .slide-card { padding: 1.25rem; }
  .ticket-date { width: 72px; } .ticket-date b { font-size: 1.8rem; }
  .ticket-body { padding: 1rem; }
  .countdown { gap: .4rem; } .countdown div { min-width: 52px; padding: .4rem .3rem; } .countdown b { font-size: 1.2rem; }
  .hero-dot { width: 34px; }
  .hero-btn { width: 38px; height: 38px; }
  .path-tab { padding: .5rem .9rem; font-size: .92rem; }
  .head-row .btn { width: 100%; }
}
@media (max-width: 359.98px) { .hero-dot { width: 26px; } .hero-tag { font-size: .78rem; } .brand { font-size: 1.15rem; } }
@media (min-width: 1600px) {
  .container { max-width: 1440px; }
  .navbar > .container { max-width: 1560px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide .anim { opacity: 1; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .tilt { transform: none !important; }
}

/* ---------- fix real overflow at various breakpoints ---------- */
@media (min-width: 992px) and (max-width: 1240px) {
  .navbar .nav-link { padding: .5rem .5rem !important; font-size: .89rem; }
  .nav-actions { gap: .3rem; }
  .nav-actions .btn { padding: .5rem .8rem; font-size: .86rem; }
  .brand { font-size: 1.2rem; margin-right: .6rem; }
}
@media (min-width: 992px) and (max-width: 1130px) {
  .nav-actions span[data-auth-out] .btn:first-child { display: none; } /* hide 'Login' text btn, register+explore remain */
}
.row.g-5 > [class*="col-lg-"] { min-width: 0; }
.about-page-fig, .prose { min-width: 0; }
.buy-pull, .buy-card { min-width: 0; }
@media (max-width: 575.98px) {
  .stat-box b { font-size: clamp(1.5rem, 8vw, 2rem); }
  .cert-card i.big { font-size: 2rem; }
  .dash-nav a { padding: .55rem .7rem; font-size: .92rem; }
  .dash-nav .count { margin-left: .35rem; }
  h1 { word-break: break-word; }
}

/* prevent any transform/gutter edge cases from creating a page-level horizontal scrollbar */
html { overflow-x: hidden; }
@media (max-width: 575.98px) {
  .g-4, .g-5 { --bs-gutter-x: 1rem; }
}

/* ==========================================================================
   v4 — live courses, stories, success students, instructor, responsive polish
   ========================================================================== */
.min-w-0 { min-width: 0; }

/* ---- navbar: hamburger below 1200px, so the old 992px squeeze rules no longer apply ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .nav-link { padding: .5rem .75rem !important; font-size: 1rem; }
  .nav-actions span[data-auth-out] .btn:first-child { display: inline-block; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar .nav-link { padding: .5rem .5rem !important; font-size: .88rem; }
  .nav-actions { gap: .3rem; }
  .nav-actions .btn { padding: .5rem .75rem; font-size: .85rem; }
  .brand { font-size: 1.2rem; margin-right: .5rem; }
}
@media (max-width: 1199.98px) {
  .navbar-collapse { padding: .75rem 0 1rem; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav-actions { flex-wrap: wrap; padding-top: .5rem; }
  .nav-actions .btn { flex: 1 1 auto; }
}
.live-dot { display: inline-block; width: 8px; height: 8px; margin: 0 .35rem 0 0; border-radius: 50%; background: #EF4444; vertical-align: middle; animation: pulseDot 1.4s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* ---- scrollable chip rows (no wrapping into 4 lines on phones) ---- */
.chips-scroll { display: flex; flex-wrap: nowrap; gap: .5rem; overflow-x: auto; padding: .25rem .1rem .6rem; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll > * { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
@media (min-width: 992px) { .chips-scroll { flex-wrap: wrap; overflow: visible; } }
.chip-btn { transition: all .2s ease; }
.chip-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .6); }
.chip-btn:active { transform: scale(.96); }
.chip-n { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; margin-left: .25rem; padding: 0 .35rem; border-radius: 999px; background: rgba(15, 23, 42, .08); font-size: .74rem; font-weight: 700; }
.chip-btn.active .chip-n { background: rgba(255, 255, 255, .25); }

/* ---- button polish: press, ripple glow, focus ---- */
.btn { transition: transform .18s ease, box-shadow .2s ease, background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible, .chip-btn:focus-visible, .hero-btn:focus-visible, .story-tab:focus-visible, .success-card:focus-visible { outline: 3px solid rgba(6, 182, 212, .6); outline-offset: 2px; }
.btn-outline-flash:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(37, 99, 235, .7); }
.btn i { transition: transform .2s ease; }
.btn:hover .bi-arrow-right, .link-arrow:hover .bi-arrow-right { transform: translateX(4px); }
.btn-light.border:hover { border-color: var(--fi-primary) !important; color: var(--fi-primary); transform: translateY(-1px); }
.link-arrow .bi { display: inline-block; transition: transform .2s; }
.btn-explore { white-space: nowrap; }
.hero-btn.dark { background: #fff; color: var(--fi-dark); border-color: var(--fi-border); }
.hero-btn.dark:hover { background: var(--fi-primary); color: #fff; border-color: var(--fi-primary); }

/* ---- live pills / platform chip / status ---- */
.thumb { position: relative; }
.live-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: #fff; color: var(--fi-dark); box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .35); }
.thumb > .live-pill { position: absolute; top: .75rem; left: .75rem; z-index: 2; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--fi-success); display: inline-block; }
.live-pill.is-live { background: #DC2626; color: #fff; } .live-pill.is-live i { background: #fff; animation: pulseDot 1.2s infinite; }
.live-pill.today { background: #FEF3C7; color: #92400E; } .live-pill.today i { background: #F59E0B; animation: pulseDot 1.6s infinite; }
.live-pill.enrol { background: #DCFCE7; color: #166534; }
.live-pill.soon { background: #EDE9FE; color: #5B21B6; } .live-pill.soon i { background: #7C3AED; }
.platform-chip { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 8px; background: rgba(15, 23, 42, .82); color: #fff; font-size: .75rem; backdrop-filter: blur(4px); }
.platform-chip.static { position: static; margin-left: .25rem; background: rgba(255, 255, 255, .14); }
.live-status { padding: .5rem .75rem; border-radius: 10px; font-size: .86rem; font-weight: 600; margin-bottom: .75rem; background: #F1F5F9; color: var(--fi-text); }
.live-status.live { background: #FEE2E2; color: #991B1B; } .live-status.today { background: #FEF3C7; color: #92400E; }
.live-status.enrolling { background: #DCFCE7; color: #166534; } .live-status.running { background: #DBEAFE; color: #1E40AF; }
.live-status.soon { background: #EDE9FE; color: #5B21B6; }
.live-card .thumb img { transition: transform .5s ease; } .live-card:hover .thumb img { transform: scale(1.06); }

/* ---- live list page ---- */
.next-up { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; padding: 1.5rem; border-radius: var(--fi-radius); background: radial-gradient(600px 220px at 100% 0, rgba(124, 58, 237, .55), transparent 60%), var(--fi-dark); color: #CBD5E1; }
.next-up h2 { color: #fff; margin: .6rem 0 .5rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.next-up i { color: #67E8F9; }
.next-up-main { flex: 1 1 320px; min-width: 0; }
.next-up-side { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.live-filters { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .live-filters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .live-filters { grid-template-columns: 2fr 1fr 1fr; } }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 1.25rem 0 0; list-style: none; color: #E2E8F0; }
.hero-points i { color: #67E8F9; margin-right: .35rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.wk-day { background: #fff; border: 1px solid var(--fi-border); border-radius: 14px; padding: .75rem; min-width: 0; }
.wk-day h3 { font-size: .9rem; margin-bottom: .6rem; display: flex; justify-content: space-between; align-items: center; }
.wk-day h3 small { font-size: .66rem; background: var(--fi-primary); color: #fff; padding: .1rem .4rem; border-radius: 6px; }
.wk-day.today { border-color: var(--fi-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.wk-slot { display: block; padding: .45rem .55rem; margin-bottom: .45rem; border-radius: 10px; background: var(--fi-light); color: var(--fi-text); font-size: .78rem; line-height: 1.3; transition: all .2s; }
.wk-slot strong { display: block; color: var(--fi-primary); font-size: .78rem; }
.wk-slot:hover { background: var(--fi-gradient); color: #fff; transform: translateY(-2px); } .wk-slot:hover strong { color: #fff; }
.wk-empty { font-size: .78rem; color: var(--fi-muted); }
@media (max-width: 991.98px) {
  .week-grid { display: flex; overflow-x: auto; gap: .75rem; padding-bottom: .6rem; scroll-snap-type: x mandatory; }
  .wk-day { flex: 0 0 160px; scroll-snap-align: start; }
}

/* ---- live details ---- */
.live-hero .hero-count-box { padding: 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #CBD5E1; backdrop-filter: blur(6px); }
.live-hero .hero-count-box .countdown { margin-top: .5rem; }
.how-item { display: flex; gap: .85rem; align-items: flex-start; height: 100%; padding: 1rem; border-radius: 14px; border: 1px solid var(--fi-border); background: var(--fi-light); transition: all .25s; }
.how-item:hover { transform: translateY(-3px); box-shadow: var(--fi-shadow); background: #fff; }
.how-item .ico { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; font-size: 1.2rem; }
.session-row { display: flex; align-items: center; gap: .9rem; padding: .75rem; border: 1px solid var(--fi-border); border-radius: 14px; margin-bottom: .6rem; background: #fff; transition: all .2s; }
.session-row:hover { border-color: var(--fi-primary); transform: translateX(3px); }
.session-row.is-next { border-color: var(--fi-primary); background: #EFF6FF; }
.date-chip { flex: 0 0 56px; text-align: center; padding: .35rem 0; border-radius: 12px; background: var(--fi-gradient); color: #fff; line-height: 1.1; }
.date-chip b { display: block; font-family: var(--fi-font-head); font-size: 1.3rem; } .date-chip span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.session-info { flex: 1; min-width: 0; } .session-info strong { display: block; line-height: 1.3; } .session-info small { color: var(--fi-muted); }
.live-row { display: flex; align-items: center; gap: .85rem; padding: .75rem 0; border-top: 1px solid var(--fi-border); }
.live-row:first-of-type { border-top: 0; } .live-row img { border-radius: 8px; object-fit: cover; flex: none; }
@media (max-width: 575.98px) { .live-row { flex-wrap: wrap; } .live-row .live-pill { margin-left: 0 !important; } .session-row { padding: .6rem; gap: .6rem; } }

/* ---- sticky mobile CTA ---- */
.mobile-cta { position: fixed; inset: auto 0 0 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--fi-border); box-shadow: 0 -10px 30px -12px rgba(15, 23, 42, .25); backdrop-filter: blur(8px); }
.mobile-cta strong { font-family: var(--fi-font-head); font-size: 1.15rem; color: var(--fi-dark); }
.mobile-cta .btn { white-space: nowrap; }
body.has-mobile-cta { padding-bottom: 76px; }
@media (min-width: 992px) { .mobile-cta { display: none; } body.has-mobile-cta { padding-bottom: 0; } }
body.has-mobile-cta .back-top, body.has-mobile-cta #backTop { bottom: 90px; }

/* ---- student stories slider ---- */
.stories { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); outline: 0; }
@media (min-width: 992px) { .stories { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 1.5rem; align-items: stretch; } }
.stories-main { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fi-border); border-radius: 20px; box-shadow: var(--fi-shadow); overflow: hidden; min-width: 0; }
.story-stage { position: relative; flex: 1; overflow: hidden; }
.story-card { position: relative; display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.story-card.dir-next { animation: storyNext .5s cubic-bezier(.2, .8, .2, 1); } .story-card.dir-prev { animation: storyPrev .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes storyNext { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes storyPrev { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.story-mark { position: absolute; top: .5rem; right: 1rem; font-size: clamp(3rem, 9vw, 5rem); color: rgba(37, 99, 235, .1); line-height: 1; pointer-events: none; }
.story-text { margin: 0 0 1.25rem; font-size: clamp(1.02rem, 2.2vw, 1.3rem); line-height: 1.6; color: var(--fi-dark); font-family: var(--fi-font-head); font-weight: 500; }
.story-meta { display: flex; align-items: center; gap: .85rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--fi-border); }
.story-meta img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--fi-primary); }
.story-meta strong { display: block; color: var(--fi-dark); line-height: 1.25; } .story-meta small { display: block; color: var(--fi-muted); line-height: 1.35; }
.story-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.story-result { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: #DCFCE7; color: #166534; font-size: .85rem; font-weight: 600; }
.story-progress { height: 4px; background: var(--fi-border); }
.story-progress span { display: block; height: 100%; width: 0; background: var(--fi-gradient); animation: storyBar var(--story-ms, 8000ms) linear forwards; }
@keyframes storyBar { from { width: 0; } to { width: 100%; } }
.stories.stopped .story-progress span, .stories.paused .story-progress span, .stories.offscreen .story-progress span { animation-play-state: paused; }
.stories.stopped .story-progress span { width: 100%; opacity: .25; animation: none; }
.story-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1.1rem; background: var(--fi-light); }
.story-count { font-family: var(--fi-font-head); font-weight: 700; color: var(--fi-dark); font-variant-numeric: tabular-nums; }
.story-rail { display: flex; flex-direction: column; gap: .55rem; max-height: 440px; overflow-y: auto; padding: .15rem; scrollbar-width: thin; min-width: 0; }
.story-tab { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .6rem .75rem; border: 1px solid var(--fi-border); border-radius: 14px; background: #fff; transition: all .2s; }
.story-tab img { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.story-tab span { min-width: 0; } .story-tab strong { display: block; font-size: .92rem; color: var(--fi-dark); line-height: 1.25; }
.story-tab small { display: block; color: var(--fi-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-tab:hover { border-color: var(--fi-primary); transform: translateX(3px); }
.story-tab.active { background: var(--fi-gradient); border-color: transparent; box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .8); }
.story-tab.active strong, .story-tab.active small { color: #fff; }
@media (max-width: 991.98px) {
  .story-rail { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding-bottom: .6rem; }
  .story-tab { flex: 0 0 210px; scroll-snap-align: start; }
  .story-tab:hover { transform: translateY(-2px); }
}
@media (max-width: 575.98px) { .story-foot .btn { flex: 1 1 auto; } .story-foot { flex-direction: column; align-items: stretch; } .story-result { justify-content: center; text-align: center; } }

/* ---- successful students ---- */
.success-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.success-card:hover { transform: translateY(-6px); box-shadow: var(--fi-shadow); border-color: rgba(37, 99, 235, .4); }
.su-top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.su-top h3 { font-size: 1.02rem; margin: 0; line-height: 1.25; }
.su-top > .min-w-0 { flex: 1 1 120px; }
.su-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.su-type { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.type-job { background: #DBEAFE; color: #1E40AF; } .type-freelance { background: #EDE9FE; color: #5B21B6; } .type-business { background: #FEF3C7; color: #92400E; }
.su-path { display: flex; align-items: stretch; gap: .5rem; }
.su-path > i { align-self: center; color: var(--fi-primary); flex: none; }
.su-from, .su-to { flex: 1; min-width: 0; padding: .5rem .65rem; border-radius: 10px; font-size: .84rem; line-height: 1.35; font-weight: 600; }
.su-from { background: #F1F5F9; color: var(--fi-muted); } .su-to { background: #ECFDF5; color: #166534; }
.su-from small, .su-to small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; font-weight: 600; }
.su-result { font-weight: 700; color: var(--fi-dark); } .su-result i { color: var(--fi-warning); margin-right: .35rem; }
.su-quote { margin: 0; color: var(--fi-muted); font-size: .92rem; flex: 1; }
.su-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--fi-border); font-size: .84rem; color: var(--fi-muted); }
.su-foot .link-arrow { white-space: nowrap; flex: none; }
.stat-box { text-align: center; padding: 1.1rem .75rem; }
@media (max-width: 400px) { .su-path { flex-direction: column; } .su-path > i { transform: rotate(90deg); } }

/* ---- instructor box ---- */
.instructor-box { overflow: hidden; }
.inst-row { display: flex; gap: 1.1rem; align-items: center; }
.inst-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--fi-primary); }
.inst-facts { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .4rem; font-size: .86rem; color: var(--fi-muted); }
.inst-facts i { color: var(--fi-primary); margin-right: .3rem; }
.mini-courses { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .mini-courses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-course { display: flex; gap: .65rem; align-items: center; padding: .5rem; border: 1px solid var(--fi-border); border-radius: 12px; color: var(--fi-text); transition: all .2s; min-width: 0; }
.mini-course:hover { border-color: var(--fi-primary); transform: translateY(-3px); box-shadow: var(--fi-shadow); }
.mini-course img { width: 64px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; }
.mini-course span { min-width: 0; } .mini-course strong { display: block; font-size: .82rem; line-height: 1.25; color: var(--fi-dark); }
.mini-course small { color: var(--fi-muted); font-size: .74rem; }
@media (max-width: 479.98px) { .inst-row { flex-direction: column; text-align: center; } .inst-facts { justify-content: center; } }

/* ---- courses listing: filter drawer, toolbar, view toggle ---- */
.list-toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.list-toolbar > div { min-width: 0; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--fi-border); border-radius: 12px; background: #fff; }
.view-toggle button { width: 38px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--fi-muted); transition: all .2s; }
.view-toggle button.active { background: var(--fi-gradient); color: #fff; } .view-toggle button:not(.active):hover { color: var(--fi-primary); background: var(--fi-light); }
.filter-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter-pills:empty { display: none; }
.filter-pills button { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border: 0; border-radius: 999px; background: #DBEAFE; color: #1E40AF; font-size: .82rem; font-weight: 600; transition: all .2s; }
.filter-pills button:hover { background: #FEE2E2; color: #991B1B; }
@media (max-width: 991.98px) {
  #filterBox.offcanvas-lg { width: min(92vw, 380px); }
  #filterBox .filter-panel { position: static; border: 0; box-shadow: none; }
  #filterBox .offcanvas-body { padding: 0 1rem 1rem; }
}
@media (min-width: 992px) { #filterBox .offcanvas-body { padding: 0; overflow: visible; } }
#courseGrid.is-list > [class*="col-"] { width: 100%; flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  #courseGrid.is-list .course-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
  #courseGrid.is-list .course-card .thumb { height: 100%; } #courseGrid.is-list .course-card .thumb img { height: 100%; object-fit: cover; aspect-ratio: auto; }
}

/* ---- responsive polish for toolbars / cards across all pages ---- */
.toolbar > * { min-width: 0; }
.toolbar select, .toolbar .form-select { max-width: 100%; }
.card-actions { display: flex; gap: .5rem; } .card-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: .5rem; white-space: nowrap; }
img, svg, video { max-width: 100%; }
.table-responsive, .prose table { max-width: 100%; }
@media (max-width: 767.98px) {
  .toolbar { align-items: stretch; } .toolbar .form-select, .toolbar select { width: 100%; }
  .section { padding-block: 3rem; } .section-head { margin-bottom: 1.75rem; }
  .course-hero { padding: 2rem 0 2.25rem; }
  .meta-row { gap: .35rem .9rem; }
}
@media (max-width: 575.98px) {
  .btn-lg { padding: .7rem 1.2rem; font-size: 1rem; }
  .card-actions { flex-wrap: wrap; } .card-actions .btn { flex: 1 1 130px; }
  .modal-dialog { margin: .75rem; }
}
@media (min-width: 1600px) { .container { max-width: 1440px; } }
@media (prefers-reduced-motion: reduce) { .story-card, .live-dot, .live-pill i { animation: none !important; } }
.row > * { min-width: 0; }
#storiesSec, #successSec, #bcStories, #bcSuccess, #instructorSec { min-width: 0; }
.summary-line strong, .card-flash strong { overflow-wrap: anywhere; }
@media (max-width: 359.98px) { .stat-card { padding: .75rem; gap: .5rem; } .stat-card b { font-size: 1.25rem; } .dash-main { padding-inline: .75rem; } }

/* ---- v5: richer stories & success interactions ---- */
.story-stage { --mx: 50%; --my: 50%; }
.story-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(37, 99, 235, .09), transparent 60%); }
.story-stage:hover::before { opacity: 1; }
.story-meta img { animation: ringPulse 2.6s infinite; }
@keyframes ringPulse { 0%, 100% { box-shadow: 0 0 0 2px var(--fi-primary); } 50% { box-shadow: 0 0 0 5px rgba(37, 99, 235, .25); } }
.story-like.on { background: #DBEAFE; border-color: var(--fi-primary) !important; color: var(--fi-primary); }
.story-like.pop { animation: likePop .4s ease; }
@keyframes likePop { 40% { transform: scale(1.18) rotate(-3deg); } }
.story-like b { font-weight: 700; margin-left: .1rem; }
.su-in { animation: suIn .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes suIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.success-card { position: relative; overflow: hidden; }
.success-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fi-gradient); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.success-card:hover::before, .success-card:focus-visible::before { transform: scaleY(1); }
.success-card .su-avatar { transition: transform .3s; } .success-card:hover .su-avatar { transform: scale(1.1) rotate(-4deg); }
.success-card .su-to { position: relative; overflow: hidden; } .success-card .su-to::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7), transparent 70%); transform: translateX(-120%); }
.success-card:hover .su-to::after { transform: translateX(120%); transition: transform .8s; }
.success-card:hover .su-path > i { animation: nudge .8s infinite; } @keyframes nudge { 50% { transform: translateX(5px); } }
.success-card .su-quote { transition: color .2s; } .success-card:hover .su-quote { color: var(--fi-dark); }
.stat-box b { display: block; font-family: var(--fi-font-head); font-size: 1.8rem; color: var(--fi-dark); font-variant-numeric: tabular-nums; }
.stat-box span { font-size: .85rem; color: var(--fi-muted); }
@media (prefers-reduced-motion: reduce) { .su-in, .story-meta img, .story-like.pop { animation: none !important; } }

/* ---- v6 fixes: live filters + hero countdown ---- */
.live-filters { display: block; padding: 1.1rem 1.25rem; height: auto; }
.live-filters .form-label { font-weight: 600; color: var(--fi-dark); }
.live-filters .form-control, .live-filters .form-select { min-height: 46px; width: 100%; }
.live-filters .form-select { padding-right: 2.25rem; text-overflow: ellipsis; }
.live-hero .hero-count-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; max-width: 520px; }
.live-hero .hero-count-box .countdown { margin: 0; }
.live-hero .hero-count-box .when { color: #fff; font-weight: 600; font-size: .95rem; }
@media (max-width: 575.98px) { .live-filters .col-6 { flex: 0 0 100%; width: 100%; } }
.toolbar .form-select, .list-toolbar .form-select { padding-right: 2.4rem; min-width: 11.5rem; text-overflow: clip; }
@media (max-width: 575.98px) { .toolbar .form-select { min-width: 0; flex: 1 1 10rem; } }
