/* ==========================================================================
   CWA — Main stylesheet
   Light, elegant theme with teal / indigo / amber accents (Bootstrap 5)
   ========================================================================== */

/* ---------- Fonts (local) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2"); }

/* Bangla (loaded only for Bengali characters) */
@font-face { font-family: "Hind Siliguri"; font-weight: 400; font-display: swap; src: url("../fonts/hind-siliguri-bengali-400.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-weight: 500; font-display: swap; src: url("../fonts/hind-siliguri-bengali-500.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Hind Siliguri"; font-weight: 600; font-display: swap; src: url("../fonts/hind-siliguri-bengali-600.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Hind Siliguri"; font-weight: 700 800; font-display: swap; src: url("../fonts/hind-siliguri-bengali-700.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }

/* ---------- Design tokens ---------- */
:root {
  --c-primary: #0d9488;          /* teal */
  --c-primary-600: #0f766e;
  --c-primary-soft: #ccfbf1;
  --c-primary-tint: #f0fdfa;
  --c-secondary: #6366f1;        /* indigo */
  --c-secondary-soft: #e0e7ff;
  --c-accent: #f59e0b;           /* amber */
  --c-accent-soft: #fef3c7;
  --c-rose: #f43f5e;
  --c-rose-soft: #ffe4e6;
  --c-ink: #0f172a;
  --c-body: #475569;
  --c-muted: #64748b;
  --c-line: #e2e8f0;
  --c-line-soft: #f1f5f9;
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-dark: #0b1324;

  --grad-brand: linear-gradient(135deg, #14b8a6 0%, #6366f1 100%);
  --grad-soft: linear-gradient(135deg, #f0fdfa 0%, #eef2ff 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .10);

  --bs-body-font-family: "Plus Jakarta Sans", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bs-body-color: var(--c-body);
  --bs-body-bg: var(--c-surface);
  --bs-primary: var(--c-primary);
  --bs-primary-rgb: 13, 148, 136;
  --bs-link-color: var(--c-primary);
  --bs-link-color-rgb: 13, 148, 136;
  --bs-link-hover-color: var(--c-primary-600);
  --bs-link-hover-color-rgb: 15, 118, 110;
  --bs-border-color: var(--c-line);
}

/* ---------- Base ---------- */
body {
  font-family: var(--bs-body-font-family);
  color: var(--c-body);
  background: var(--c-surface);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--c-ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-600); }
img { max-width: 100%; }
::selection { background: var(--c-primary-soft); color: var(--c-ink); }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--c-bg); }
.text-ink { color: var(--c-ink) !important; }
.text-muted-2 { color: var(--c-muted) !important; }
.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-tint);
  border: 1px solid var(--c-primary-soft);
  padding: .4rem .9rem; border-radius: 50px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, .15); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; margin: .9rem 0 .6rem; }
.section-lead { color: var(--c-muted); max-width: 560px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .7rem 1.35rem; font-size: .95rem; transition: all .25s ease; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; border-radius: 10px; }
.btn-primary {
  --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary);
  --bs-btn-hover-bg: var(--c-primary-600); --bs-btn-hover-border-color: var(--c-primary-600);
  --bs-btn-active-bg: var(--c-primary-600); --bs-btn-active-border-color: var(--c-primary-600);
  --bs-btn-disabled-bg: var(--c-primary); --bs-btn-disabled-border-color: var(--c-primary);
  box-shadow: 0 8px 20px -8px rgba(13, 148, 136, .6);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-gradient { background: var(--grad-brand); color: #fff; border: 0; box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .7); }
.btn-gradient:hover, .btn-gradient:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(99, 102, 241, .8); filter: saturate(1.1); }
.btn-soft { background: var(--c-primary-tint); color: var(--c-primary-600); border: 1px solid var(--c-primary-soft); }
.btn-soft:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-outline-ink { border: 1.5px solid var(--c-line); color: var(--c-ink); background: #fff; }
.btn-outline-ink:hover { border-color: var(--c-ink); color: var(--c-ink); background: #fff; transform: translateY(-2px); }
.btn:focus-visible { box-shadow: 0 0 0 .25rem rgba(13, 148, 136, .25); }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--c-line); box-shadow: 0 6px 24px rgba(15, 23, 42, .05); }
.site-header .navbar { padding: 1rem 0; }
.navbar-brand img { height: 46px; width: auto; }
@media (max-width: 575.98px) { .navbar-brand img { height: 36px; } }
.site-header .nav-link {
  color: var(--c-ink); font-weight: 600; font-size: .95rem;
  padding: .5rem 1rem !important; border-radius: 10px; position: relative;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--c-primary); }
.site-header .nav-link.active::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .15rem; height: 2px;
  border-radius: 2px; background: var(--grad-brand);
}
.nav-cart {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-ink); background: var(--c-bg); border: 1px solid var(--c-line); font-size: 1.15rem;
}
.nav-cart:hover { color: var(--c-primary); border-color: var(--c-primary-soft); background: var(--c-primary-tint); }
.nav-cart .count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--c-rose); color: #fff; font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.btn-login { padding: .65rem 1.5rem; border-radius: 12px; }
.navbar-toggler { border: 1px solid var(--c-line); border-radius: 10px; padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(13, 148, 136, .2); }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
    padding: 1rem; margin-top: 1rem; box-shadow: var(--shadow);
  }
  .site-header .nav-link.active::after { display: none; }
  .nav-actions { padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--c-line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 110px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; }
.hero::before { width: 460px; height: 460px; background: rgba(20, 184, 166, .16); top: -120px; right: 8%; }
.hero::after { width: 380px; height: 380px; background: rgba(99, 102, 241, .10); top: 35%; left: -220px; }
.hero .container { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; margin: 1.25rem 0 1.2rem; }
.hero-title .underline { position: relative; white-space: nowrap; }
.hero-title .underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .22em; z-index: -1;
  background: var(--c-accent-soft); border-radius: 4px;
}
.hero-text { font-size: 1.08rem; color: var(--c-muted); max-width: 520px; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2.25rem; margin-top: 2.75rem; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.6rem; font-weight: 800; color: var(--c-ink); line-height: 1; }
.hero-stats .lbl { font-size: .85rem; color: var(--c-muted); margin-top: .35rem; }
.hero-stats .divider { width: 1px; background: var(--c-line); }

.hero-visual { position: relative; max-width: 480px; margin-left: auto; }
/* Circular photo with a gradient ring */
.hero-photo-frame {
  position: relative; border-radius: 50%; aspect-ratio: 1 / 1; padding: 10px;
  background: var(--grad-brand); box-shadow: 0 30px 60px -24px rgba(99, 102, 241, .55);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; border-radius: 50%; border: 8px solid #fff; background: #fff; }
.hero-ring { position: absolute; inset: -26px -26px auto auto; width: 150px; height: 150px; border-radius: 50%; border: 2px dashed rgba(99, 102, 241, .35); z-index: -1; }
.hero-dots {
  position: absolute; left: -36px; bottom: 60px; width: 110px; height: 110px; z-index: -1;
  background-image: radial-gradient(rgba(13, 148, 136, .35) 2px, transparent 2px); background-size: 16px 16px;
}
.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: .85rem 1.1rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .75rem;
  animation: floaty 5s ease-in-out infinite;
}
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.float-card .t1 { font-weight: 800; color: var(--c-ink); line-height: 1.1; }
.float-card .t2 { font-size: .78rem; color: var(--c-muted); }
.float-card.fc-1 { left: -40px; top: 14%; }
.float-card.fc-2 { right: -24px; bottom: 10%; animation-delay: 1.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) {
  .hero { padding: 48px 0 72px; }
  .hero-visual { margin: 3.5rem auto 0; }
  .float-card.fc-1 { left: -8px; }
  .float-card.fc-2 { right: -8px; }
}
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* Icon tints */
.ic-teal { background: var(--c-primary-tint); color: var(--c-primary); }
.ic-indigo { background: #eef2ff; color: var(--c-secondary); }
.ic-amber { background: #fffbeb; color: #d97706; }
.ic-rose { background: #fff1f2; color: var(--c-rose); }

/* ---------- Course card ---------- */
.course-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; margin: 10px 10px 0; border-radius: 18px; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-thumb .badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: .5rem; }

.badge-save, .badge-level {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; padding: .38rem .7rem; border-radius: 50px; line-height: 1;
}
.badge-save { background: var(--c-rose); color: #fff; box-shadow: 0 6px 14px -6px rgba(244, 63, 94, .8); }
.badge-level { background: rgba(255, 255, 255, .95); color: var(--c-ink); backdrop-filter: blur(6px); }
.badge-level::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-level.beginner { color: #059669; }
.badge-level.intermediate { color: #d97706; }
.badge-level.advanced { color: #7c3aed; }

.course-body { padding: 1.15rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.instructor { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #fff; background: var(--grad-brand); flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.rating { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; color: var(--c-ink); }
.rating i { color: var(--c-accent); }
.rating small { color: var(--c-muted); font-weight: 500; }
.course-title { font-size: 1.12rem; font-weight: 700; line-height: 1.4; margin-bottom: .9rem; }
.course-title a { color: var(--c-ink); }
.course-title a:hover { color: var(--c-primary); }
.course-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .85rem; color: var(--c-muted); margin-bottom: 1.1rem; }
.course-stats i { color: var(--c-secondary); margin-right: .3rem; }
.course-foot {
  margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--c-line);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price .now { font-size: 1.35rem; font-weight: 800; color: var(--c-primary); letter-spacing: -.02em; }
.price del { font-size: .9rem; color: #94a3b8; font-weight: 500; }
.btn-view { padding: .5rem 1.05rem; font-size: .85rem; border-radius: 10px; }
.btn-view i { transition: transform .25s; }
.btn-view:hover i { transform: translateX(3px); }

/* ---------- Features strip ---------- */
.feature-box { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; height: 100%; transition: all .3s; }
.feature-box:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-box .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.feature-box h5 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature-box p { font-size: .9rem; color: var(--c-muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 3.5rem;
  background: var(--grad-brand); color: #fff;
}
.cta-band::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -80px; top: -120px; }
.cta-band::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); left: 30%; bottom: -120px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.btn-white { background: #fff; color: var(--c-ink); border: 0; }
.btn-white:hover { background: #fff; color: var(--c-primary); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .3); }
@media (max-width: 767.98px) { .cta-band { padding: 2.25rem 1.5rem; } }

/* ---------- Page header (no banner photo) ---------- */
.page-head { padding: 56px 0 44px; background: var(--grad-soft); border-bottom: 1px solid var(--c-line); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background-image: radial-gradient(rgba(99, 102, 241, .22) 2px, transparent 2px); background-size: 18px 18px; border-radius: 50%;
}
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; margin: 0 0 .4rem; position: relative; z-index: 1; }
.page-head p { position: relative; z-index: 1; }
.breadcrumb { margin: 0; font-size: .88rem; position: relative; z-index: 1; }
.breadcrumb-item a { color: var(--c-muted); }
.breadcrumb-item a:hover { color: var(--c-primary); }
.breadcrumb-item.active { color: var(--c-primary); font-weight: 600; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; color: var(--c-ink); font-size: .9rem; margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1.5px solid var(--c-line); border-radius: 12px; padding: .72rem 1rem; font-size: .95rem; color: var(--c-ink);
  background-color: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus, .form-select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, .12); }
.form-check-input { border: 1.5px solid #cbd5e1; width: 1.1em; height: 1.1em; margin-top: .3em; }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(13, 148, 136, .18); border-color: var(--c-primary); }
.form-check-label { font-size: .92rem; }
.input-icon { position: relative; }
/* Icons are centred on the input itself (not the wrapper), so they stay put when an error message appears below */
.input-icon > i { position: absolute; left: 1rem; top: calc(1.4325rem + 1.5px); transform: translateY(-50%); color: #94a3b8; pointer-events: none; z-index: 5; }
.input-icon:has(.form-control-sm) > i { top: calc(1.11rem + 1.5px); }
.input-icon .form-control { padding-left: 2.7rem; }
.input-icon .toggle-pass {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #94a3b8; padding: .35rem .5rem; border-radius: 8px;
}
.input-icon .toggle-pass:hover { color: var(--c-ink); }
.input-icon.has-toggle .form-control { padding-right: 2.8rem; }
.input-icon .toggle-pass { top: calc(1.4325rem + 1.5px); z-index: 5; }
.input-icon.has-toggle .form-control.is-invalid, .was-validated .input-icon.has-toggle .form-control:invalid,
.input-icon.has-toggle .form-control.is-valid, .was-validated .input-icon.has-toggle .form-control:valid { background-image: none; padding-right: 2.8rem; }

/* ---------- Courses page ---------- */
.filter-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 100px; }
.filter-card .filter-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.filter-card .filter-title h5 { margin: 0; font-size: 1.1rem; }
.filter-group { padding: 1.1rem 0; border-top: 1px solid var(--c-line-soft); }
.filter-group h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin-bottom: .85rem; }
.filter-group .form-check { display: flex; align-items: center; justify-content: space-between; padding-left: 0; margin-bottom: .55rem; }
.filter-group .form-check .form-check-input { margin: 0 .6rem 0 0; float: none; }
.filter-group .form-check label { flex: 1; cursor: pointer; color: var(--c-body); }
.filter-group .form-check .cnt { font-size: .75rem; font-weight: 600; background: var(--c-line-soft); color: var(--c-muted); padding: .1rem .5rem; border-radius: 20px; }
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: .75rem .75rem .75rem 1.25rem; margin-bottom: 1.5rem;
}
.toolbar .result-count { font-size: .92rem; color: var(--c-muted); }
.toolbar .result-count strong { color: var(--c-ink); }
.toolbar .form-select { width: auto; min-width: 200px; padding-top: .55rem; padding-bottom: .55rem; }

.pagination { gap: .4rem; }
.pagination .page-link {
  border: 1px solid var(--c-line); border-radius: 12px !important; min-width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--c-ink); font-weight: 600;
}
.pagination .page-link:hover { background: var(--c-primary-tint); border-color: var(--c-primary-soft); color: var(--c-primary); }
.pagination .page-item.active .page-link { background: var(--c-primary); border-color: var(--c-primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(13, 148, 136, .7); }
.pagination .page-item.disabled .page-link { color: #cbd5e1; background: #fff; }
.pagination .page-link:focus { box-shadow: 0 0 0 .2rem rgba(13, 148, 136, .2); }

/* ---------- Course details ---------- */
.detail-head { padding: 48px 0 0; }
.detail-title { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: .9rem 0 1rem; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font-size: .9rem; color: var(--c-muted); }
.detail-meta i { color: var(--c-secondary); margin-right: .35rem; }
.detail-photo { border-radius: var(--radius-lg); overflow: hidden; margin: 1.75rem 0 2rem; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }

.course-tabs { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 16px; padding: .4rem; gap: .25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.course-tabs::-webkit-scrollbar { display: none; }
.course-tabs .nav-link {
  color: var(--c-muted); font-weight: 600; font-size: .92rem; border-radius: 12px; padding: .7rem 1.2rem; white-space: nowrap; border: 0; flex: 1;
}
.course-tabs .nav-link:hover { color: var(--c-ink); }
.course-tabs .nav-link.active { background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm); }
.tab-content-box { padding: 2rem 0 0; }
.tab-content-box h4 { font-size: 1.25rem; margin-bottom: .9rem; }

.cert-note {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.35rem; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--c-primary-soft); margin-bottom: 1.5rem;
}
.cert-note .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: #fff; color: var(--c-primary); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.cert-note p { margin: 0; color: var(--c-ink); }
.cert-preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow); background: #fff; padding: 10px; }
.cert-preview img { display: block; width: 100%; border-radius: 8px; }

.learn-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem 1.5rem; }
.learn-list li { display: flex; gap: .6rem; font-size: .93rem; }
.learn-list li i { color: var(--c-primary); margin-top: .15rem; }

.curriculum .accordion-item { border: 1px solid var(--c-line); border-radius: 14px !important; overflow: hidden; margin-bottom: .75rem; }
.curriculum .accordion-button { font-weight: 700; color: var(--c-ink); padding: 1.05rem 1.25rem; background: #fff; box-shadow: none; gap: .75rem; font-size: .98rem; }
.curriculum .accordion-button:not(.collapsed) { background: var(--c-primary-tint); color: var(--c-primary-600); }
.curriculum .accordion-button:focus { box-shadow: none; }
.curriculum .accordion-button .sec-meta { margin-left: auto; margin-right: .75rem; font-size: .8rem; font-weight: 500; color: var(--c-muted); }
.curriculum .accordion-body { padding: .25rem 0; }
.lesson { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.25rem; border-top: 1px solid var(--c-line-soft); font-size: .93rem; }
.lesson:first-child { border-top: 0; }
.lesson .l-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--c-bg); color: var(--c-secondary); flex-shrink: 0; }
.lesson .l-title { flex: 1; color: var(--c-ink); }
.lesson .l-preview { font-size: .75rem; font-weight: 700; color: var(--c-primary); background: var(--c-primary-tint); padding: .2rem .6rem; border-radius: 20px; }
.lesson .l-time { font-size: .82rem; color: var(--c-muted); min-width: 48px; text-align: right; }
.lesson .l-lock { color: #cbd5e1; }

.rating-summary { display: flex; gap: 2rem; align-items: center; padding: 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: 1.75rem; flex-wrap: wrap; }
.rating-summary .big { text-align: center; min-width: 130px; }
.rating-summary .big .n { font-size: 3rem; font-weight: 800; color: var(--c-ink); line-height: 1; }
.rating-summary .big .stars { color: var(--c-accent); margin: .4rem 0 .2rem; }
.rating-summary .bars { flex: 1; min-width: 220px; }
.rating-bar { display: flex; align-items: center; gap: .75rem; font-size: .85rem; margin-bottom: .35rem; }
.rating-bar .progress { flex: 1; height: 8px; border-radius: 8px; background: var(--c-line-soft); }
.rating-bar .progress-bar { background: var(--c-accent); border-radius: 8px; }
.review { display: flex; gap: 1rem; padding: 1.35rem 0; border-top: 1px solid var(--c-line); }
.review:first-of-type { border-top: 0; }
.review h6 { margin: 0; font-size: .98rem; }
.review .date { font-size: .8rem; color: var(--c-muted); }
.review .stars { color: var(--c-accent); font-size: .85rem; }
.review p { margin: .5rem 0 0; font-size: .93rem; }

.instructor-card { display: flex; gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius); flex-wrap: wrap; }
.instructor-card img { width: 120px; height: 120px; border-radius: 20px; object-fit: cover; }
.instructor-card .stats { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .85rem; color: var(--c-muted); margin: .5rem 0 .9rem; }
.instructor-card .stats i { color: var(--c-accent); margin-right: .3rem; }

.price-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; position: sticky; top: 100px; }
.price-card .pc-head { padding: 1.5rem 1.5rem 1.25rem; background: var(--grad-soft); border-bottom: 1px solid var(--c-line); }
.price-card .pc-head .now { font-size: 2.1rem; font-weight: 800; color: var(--c-ink); letter-spacing: -.03em; line-height: 1; }
.price-card .pc-head del { color: #94a3b8; font-size: 1.05rem; }
.price-card .pc-head .timer { font-size: .82rem; color: var(--c-rose); font-weight: 600; margin-top: .6rem; }
.price-card .pc-body { padding: 1.5rem; }
.facility-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.facility-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--c-line); font-size: .92rem; }
.facility-list li:last-child { border-bottom: 0; }
.facility-list li span:first-child { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-muted); }
.facility-list li span:first-child i { width: 30px; height: 30px; border-radius: 9px; background: var(--c-bg); color: var(--c-primary); display: grid; place-items: center; font-size: .95rem; }
.facility-list li span:last-child { font-weight: 700; color: var(--c-ink); text-align: right; }
.pc-guarantee { font-size: .82rem; color: var(--c-muted); text-align: center; margin-top: 1rem; }
.pc-share { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-line-soft); }

/* ---------- Checkout modal ---------- */
.modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--c-line); padding: 1.25rem 1.5rem; background: var(--grad-soft); }
.modal-header .modal-title { font-size: 1.15rem; font-weight: 800; }
.modal-body { padding: 1.5rem; }
.order-mini { display: flex; gap: .9rem; align-items: center; padding: .85rem; border: 1px solid var(--c-line); border-radius: 14px; margin-bottom: 1.25rem; background: var(--c-bg); }
.order-mini img { width: 84px; height: 54px; border-radius: 10px; object-fit: cover; }
.order-mini h6 { font-size: .95rem; margin: 0 0 .15rem; }
.order-total { border-top: 1px dashed var(--c-line); padding-top: 1rem; margin-top: 1.25rem; }
.order-total .row-line { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: .35rem; }
.order-total .row-line.total { font-size: 1.1rem; font-weight: 800; color: var(--c-ink); margin-top: .5rem; }
.coupon-msg { font-size: .82rem; margin-top: .4rem; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .8rem; color: var(--c-muted); margin-top: .9rem; }

/* ---------- Auth pages ---------- */
.auth-wrap { padding: 64px 0 96px; background: var(--grad-soft); min-height: calc(100vh - 80px); display: flex; align-items: center; }
.auth-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--c-line); }
.auth-side {
  background: var(--grad-brand); color: #fff; padding: 3rem; height: 100%; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 520px;
}
.auth-side::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .1); top: -100px; right: -100px; }
.auth-side::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); bottom: -80px; left: -60px; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: 1.9rem; font-weight: 800; }
.auth-side p { color: rgba(255, 255, 255, .85); }
.auth-side .perk { display: flex; gap: .75rem; align-items: center; margin-bottom: .9rem; font-weight: 500; }
.auth-side .perk i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.auth-side .quote { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 1.1rem 1.25rem; font-size: .92rem; }
.auth-form { padding: 3rem; }
.auth-form h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .4rem; }
.auth-form .sub { color: var(--c-muted); margin-bottom: 2rem; }
.auth-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.25rem; }
.divider-text { display: flex; align-items: center; gap: 1rem; color: #94a3b8; font-size: .82rem; margin: 1.5rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.btn-social { border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.btn-social:hover { border-color: var(--c-ink); color: var(--c-ink); }
.pass-strength { display: flex; gap: .3rem; margin-top: .5rem; }
.pass-strength span { flex: 1; height: 4px; border-radius: 4px; background: var(--c-line); transition: background .25s; }
.pass-strength.s1 span:nth-child(-n+1) { background: var(--c-rose); }
.pass-strength.s2 span:nth-child(-n+2) { background: var(--c-accent); }
.pass-strength.s3 span:nth-child(-n+3) { background: #22c55e; }
.pass-strength.s4 span { background: var(--c-primary); }
@media (max-width: 575.98px) { .auth-form { padding: 2rem 1.5rem; } }

/* ---------- Contact ---------- */
.contact-info-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; transition: all .3s; }
.contact-info-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-info-card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.1rem; }
.contact-info-card h5 { font-size: 1.05rem; margin-bottom: .35rem; }
.contact-info-card p, .contact-info-card a { margin: 0; font-size: .93rem; }
.contact-form-card { background: #fff; border: 1px solid var(--c-line); border-radius: 28px; padding: 2.5rem; box-shadow: var(--shadow); }
.contact-aside { background: var(--c-dark); color: #cbd5e1; border-radius: 28px; padding: 2.5rem; height: 100%; position: relative; overflow: hidden; }
.contact-aside::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--grad-brand); opacity: .25; filter: blur(30px); right: -90px; bottom: -90px; }
.contact-aside > * { position: relative; z-index: 1; }
.contact-aside h4 { color: #fff; }
.contact-aside .line { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-aside .line i { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #5eead4; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-aside .line small { display: block; color: #94a3b8; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-aside .line a, .contact-aside .line span { color: #fff; font-weight: 600; }
.btn-whatsapp { background: #22c55e; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #16a34a; color: #fff; transform: translateY(-2px); }
@media (max-width: 575.98px) { .contact-form-card, .contact-aside { padding: 1.75rem 1.25rem; } }

/* ---------- About / info pages ---------- */
.side-menu { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: .75rem; position: sticky; top: 100px; }
.side-menu .sm-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--c-muted); padding: .75rem .9rem .5rem; }
.side-menu a { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: 12px; color: var(--c-ink); font-weight: 600; font-size: .93rem; }
.side-menu a i { color: var(--c-muted); font-size: 1rem; }
.side-menu a .bi-chevron-right { margin-left: auto; font-size: .8rem; opacity: 0; transition: all .2s; }
.side-menu a:hover { background: var(--c-bg); }
.side-menu a:hover .bi-chevron-right { opacity: 1; }
.side-menu a.active { background: var(--c-primary-tint); color: var(--c-primary-600); }
.side-menu a.active i { color: var(--c-primary); }
.side-menu a.active .bi-chevron-right { opacity: 1; }
.help-card { margin-top: 1rem; border-radius: var(--radius-lg); padding: 1.5rem; background: var(--grad-brand); color: #fff; }
.help-card h6 { color: #fff; }
.help-card p { color: rgba(255, 255, 255, .85); font-size: .88rem; }
.content-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 2.5rem; }
.content-card h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.content-card h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.content-card p, .content-card li { font-size: .97rem; }
.content-card ul li { margin-bottom: .4rem; }
@media (max-width: 575.98px) { .content-card { padding: 1.5rem 1.25rem; } }
.about-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.stat-box { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--c-bg); border: 1px solid var(--c-line); height: 100%; }
.stat-box .n { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat-box .l { font-size: .85rem; color: var(--c-muted); margin-top: .4rem; }
.mv-card { border-radius: var(--radius); padding: 1.5rem; height: 100%; border: 1px solid var(--c-line); }
.mv-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: .9rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.check-list li i { color: var(--c-primary); margin-top: .1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: #94a3b8; padding: 80px 0 0; position: relative; overflow: hidden; font-size: .93rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.site-footer::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(20, 184, 166, .08); filter: blur(60px); right: -120px; top: -120px; }
.site-footer .container { position: relative; z-index: 1; }
.site-footer .f-logo img { height: 42px; }
.site-footer .f-about { margin: 1.25rem 0 1.5rem; max-width: 340px; line-height: 1.8; }
.site-footer h6 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .7rem; }
.site-footer ul a { color: #94a3b8; display: inline-flex; align-items: center; gap: .4rem; }
.site-footer ul a:hover { color: #5eead4; transform: translateX(3px); }
.site-footer ul a { transition: all .2s; }
.f-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.f-contact li i { color: #5eead4; font-size: 1.05rem; margin-top: .1rem; }
.f-contact a { color: #cbd5e1 !important; }
.social { display: flex; gap: .55rem; }
.social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, .08); transition: all .25s;
}
.social a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 1.5rem 0; font-size: .86rem; }
.footer-bottom a { color: #cbd5e1; }
.footer-bottom a:hover { color: #5eead4; }
.newsletter .form-control { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #fff; }
.newsletter .form-control::placeholder { color: #64748b; }
.newsletter .form-control:focus { border-color: #5eead4; box-shadow: none; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 14px; z-index: 1020;
  background: var(--grad-brand); color: #fff; border: 0; display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: 0 10px 24px -8px rgba(99, 102, 241, .7); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 575.98px) {
  .section { padding: 64px 0; }
  .hero-stats { gap: 1.25rem; justify-content: space-between; }
  .hero-stats .divider { display: none; }
  .hero-stats .num { font-size: 1.35rem; }
  .feature-box { padding: 1.1rem; }
  .feature-box .ic { width: 44px; height: 44px; font-size: 1.2rem; }
  .feature-box h5 { font-size: .95rem; }
  .feature-box p { font-size: .82rem; }
}

/* ==========================================================================
   Application components
   ========================================================================== */
.min-w-0 { min-width: 0; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
img.avatar { object-fit: cover; padding: 0; }
.avatar-xl { width: 52px; height: 52px; font-size: 1.05rem; }
.avatar-xxl { width: 84px; height: 84px; font-size: 1.6rem; }
.progress { height: 8px; border-radius: 8px; background: var(--c-line-soft); }
.progress-bar { background: var(--grad-brand); border-radius: 8px; }
.alert { border-radius: 14px; font-size: .93rem; }
.badge-status { font-weight: 600; font-size: .75rem; padding: .4em .75em; }

/* Header user menu */
.user-menu-btn {
  display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--c-line); background: #fff;
  border-radius: 12px; padding: 4px 10px 4px 4px; font-weight: 600; color: var(--c-ink); height: 44px;
}
.user-menu-btn .avatar { width: 34px; height: 34px; border-radius: 9px; }
.user-menu-btn:hover { border-color: var(--c-primary-soft); background: var(--c-primary-tint); }
.user-dropdown { border: 1px solid var(--c-line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .4rem; min-width: 240px; }
.user-dropdown .dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 500; font-size: .92rem; display: flex; gap: .6rem; }
.user-dropdown .dropdown-item:active { background: var(--c-primary); }

/* Course card extras */
.rating-new { font-size: .72rem; font-weight: 700; color: var(--c-secondary); background: #eef2ff; padding: .25rem .6rem; border-radius: 20px; }
.btn-cart-icon {
  width: 38px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 1rem;
  border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); transition: all .2s;
}
.btn-cart-icon:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-tint); }
.btn-cart-icon.in-cart { background: var(--c-primary-tint); color: var(--c-primary); border-color: var(--c-primary-soft); }
.pc-incart {
  display: flex; align-items: center; justify-content: center; gap: .45rem; margin-bottom: .75rem; padding: .55rem .75rem;
  font-size: .88rem; font-weight: 600; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
}
.course-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Testimonials */
.testimonial-card { position: relative; height: 100%; margin: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; }
.testimonial-card .quote-mark { font-size: 2.4rem; line-height: 1; color: var(--c-primary); opacity: .35; margin-bottom: .25rem; }
.testimonial-card blockquote { font-size: .95rem; color: var(--c-body); margin: 0 0 1.25rem; flex: 1; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .8rem; }
.testimonial-card figcaption strong { display: block; color: var(--c-ink); font-size: .95rem; }
.testimonial-card figcaption span { font-size: .8rem; color: var(--c-muted); }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state > i { font-size: 2.4rem; color: var(--c-primary); background: var(--c-primary-tint); width: 76px; height: 76px; border-radius: 22px; display: inline-grid; place-items: center; margin-bottom: 1rem; }
.empty-state h5 { margin-bottom: .35rem; }
.empty-state p { color: var(--c-muted); }

/* Rich text from the editor */
.rich-content { color: var(--c-body); overflow-wrap: anywhere; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.rich-content p { margin-bottom: .9rem; }
.rich-content ul, .rich-content ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.rich-content li { margin-bottom: .35rem; }
.rich-content img { border-radius: 12px; height: auto; }
.rich-content a { text-decoration: underline; }
.rich-content span[style] { font-family: inherit !important; }

/* Reviews */
.review-form { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.25rem; }
.review-state { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; padding: .5rem .75rem; border-radius: 10px; margin-bottom: .75rem; }
.review-state.pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.review-state.live { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.review-state.hidden { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.5rem; color: #cbd5e1; cursor: pointer; transition: color .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--c-accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--c-primary); border-radius: 4px; }

/* Cart & checkout */
.cart-card, .summary-card, .panel-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem; }
.summary-card { position: sticky; top: 100px; box-shadow: var(--shadow); }
.cart-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--c-line-soft); }
.cart-thumb { flex-shrink: 0; width: 130px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h6 { font-size: 1rem; line-height: 1.4; }
.coupon-group .form-control { border-radius: 12px 0 0 12px; }
.coupon-group .btn { border-radius: 0 12px 12px 0; }
@media (max-width: 575.98px) {
  .cart-item { flex-wrap: wrap; }
  .cart-thumb { width: 96px; }
  .cart-item > .text-end { width: 100%; display: flex; justify-content: space-between; align-items: center; }
}

/* Result (payment) */
.result-card { background: #fff; border: 1px solid var(--c-line); border-radius: 28px; padding: 2.5rem; box-shadow: var(--shadow); }
.result-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2.2rem; margin-bottom: 1.25rem; }
.error-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cert-sheet { max-width: 1000px; margin: 0 auto; box-shadow: var(--shadow-lg); border-radius: 12px; overflow: hidden; background: #fffdf8; }
.cert-sheet img, .cert-preview img { display: block; width: 100%; height: auto; }
.verified-banner { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; max-width: 1000px; margin: 0 auto 1.5rem; padding: 1rem 1.25rem; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px; color: #065f46; }
.verified-banner > i { font-size: 1.6rem; color: #059669; }
.verified-banner > div { flex: 1; min-width: 240px; }

/* About */
.about-intro { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.about-intro img { width: 170px; height: 170px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); border: 6px solid #fff; }
.about-intro > div { flex: 1; min-width: 260px; }
.faq-list .accordion-button span { line-height: 1.5; }

/* Student area */
.student-area { padding: 48px 0 80px; background: var(--c-bg); min-height: 70vh; }
.student-side { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1rem; position: sticky; top: 100px; }
.student-card { display: flex; align-items: center; gap: .8rem; padding: .5rem .5rem 1rem; border-bottom: 1px solid var(--c-line-soft); }
.student-title { font-size: 1.6rem; font-weight: 800; }
.dash-stat { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.1rem; display: flex; gap: .85rem; align-items: center; height: 100%; }
.dash-stat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.dash-stat .n { font-size: 1.45rem; font-weight: 800; color: var(--c-ink); line-height: 1; }
.dash-stat .l { font-size: .8rem; color: var(--c-muted); margin-top: .25rem; }
.progress-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--c-line-soft); }
.progress-row:first-of-type { border-top: 0; }
.progress-row img { width: 92px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.table-clean { --bs-table-bg: transparent; font-size: .92rem; }
.table-clean thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; border-bottom-color: var(--c-line); }
.table-clean td { border-bottom-color: var(--c-line-soft); padding-top: .85rem; padding-bottom: .85rem; }
.invoice-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 2.5rem; }
@media (max-width: 575.98px) { .invoice-card, .result-card { padding: 1.5rem 1.1rem; } .progress-row img { width: 72px; } }

/* Print (certificate & invoice) */
@media print {
  .site-header, .site-footer, .back-top, .no-print, .toast-container { display: none !important; }
  body { background: #fff !important; }
  .section-sm { padding: 0 !important; }
  .cert-sheet { box-shadow: none; max-width: none; }
  .invoice-card { border: 0; padding: 0; }
  @page { margin: 10mm; }
}
.certificate-page .cert-sheet { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

/* Sticky buy bar on phones (course page) */
.mobile-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 16px calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}
@media (max-width: 991.98px) { .has-buybar .site-footer { padding-bottom: 72px; } .has-buybar .back-top { bottom: 84px; } }

.btn-success { --bs-btn-bg: #16a34a; --bs-btn-border-color: #16a34a; --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d; }
.cert-ready {
  display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffbeb 0%, #f0fdfa 100%); border: 1px solid #fde68a;
}
.cert-ready .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: #fff; color: #d97706; flex-shrink: 0; box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) { .cert-ready { flex-direction: column; } }

/* iziToast: match the site font and style */
.iziToast-wrapper { z-index: 100000; }
.iziToast { font-family: inherit; border-radius: 12px; box-shadow: var(--shadow-lg); }
.iziToast > .iziToast-body .iziToast-title,
.iziToast > .iziToast-body .iziToast-message { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
.iziToast > .iziToast-body .iziToast-message a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   Full-screen course player (student/learn)
   ========================================================================== */
.learn-body { background: var(--c-bg); overflow: hidden; }
.learn-body .back-top { display: none; }
.lms { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }

.lms-top {
  height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem;
  background: var(--c-dark); color: #fff; position: relative; z-index: 1030;
}
.lms-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad-brand); }
.lms-logo img { height: 34px; width: auto; display: block; }
.lms-divider { width: 1px; height: 28px; background: rgba(255, 255, 255, .15); }
.lms-course { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lms-progress { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: #cbd5e1; white-space: nowrap; }
.lms-progress .progress { width: 140px; height: 7px; background: rgba(255, 255, 255, .15); }
.lms-progress strong { color: #fff; }
.lms-icon-btn, .lms-exit {
  display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .8rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; font-size: .88rem;
}
.lms-icon-btn:hover, .lms-exit:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.lms-body { flex: 1; display: flex; min-height: 0; }
.lms-side { --bs-offcanvas-width: 360px; width: 380px; flex-shrink: 0; background-color: #fff !important; border-right: 1px solid var(--c-line); display: flex; flex-direction: column; }
.lms-side-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-line); }
.lms-side-head h2 { font-size: 1rem; margin: 0; }
.lms-side-head small { color: var(--c-muted); }
.lms-side-list { flex: 1; overflow-y: auto; }

.lms-module { border-bottom: 1px solid var(--c-line); }
.lms-module-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; text-align: left;
  padding: .95rem 1.25rem; background: var(--c-bg); border: 0; color: var(--c-ink);
}
.lms-module-title { display: block; font-weight: 700; font-size: .92rem; line-height: 1.4; }
.lms-module-head small { color: var(--c-muted); font-size: .78rem; }
.lms-module-check { color: #16a34a; display: none; }
.lms-module.complete .lms-module-check { display: inline; }
.lms-chevron { transition: transform .2s; color: var(--c-muted); }
.lms-module-head:not(.collapsed) .lms-chevron { transform: rotate(180deg); }

.lms-lesson { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1.25rem; color: var(--c-body); text-decoration: none; border-top: 1px solid var(--c-line-soft); }
.lms-lesson:hover { background: #f8fafc; color: var(--c-ink); }
.lms-lesson.current { background: var(--c-primary-tint); box-shadow: inset 3px 0 0 var(--c-primary); }
.lms-status { font-size: 1.15rem; line-height: 1.25; color: #cbd5e1; flex-shrink: 0; }
.lms-lesson.done .lms-status { color: #16a34a; }
.lms-lesson-body { min-width: 0; flex: 1; }
.lms-lesson-title { display: block; font-size: .9rem; line-height: 1.45; color: var(--c-ink); }
.lms-lesson.current .lms-lesson-title { font-weight: 700; color: var(--c-primary-600); }
.lms-lesson-meta { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--c-muted); margin-top: .2rem; }

.lms-main { flex: 1; min-width: 0; overflow-y: auto; }
.lms-stage { background: #000; }
.lms-video { max-width: calc((100vh - 64px - 150px) * 16 / 9); max-width: calc((100dvh - 64px - 150px) * 16 / 9); margin: 0 auto; }
.lms-resource { max-width: 640px; margin: 0 auto; padding: 4.5rem 1.5rem; text-align: center; color: #cbd5e1; background: var(--c-dark); }
.lms-stage:has(.lms-resource) { background: var(--c-dark); }
.lms-resource h3 { color: #fff; font-size: 1.3rem; }
.lms-resource .ic { width: 64px; height: 64px; border-radius: 18px; display: inline-grid; place-items: center; font-size: 1.7rem; margin-bottom: 1rem; background: rgba(255, 255, 255, .08); color: #a5b4fc; }
.lms-content { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1.5rem 3rem; }
.lms-lesson-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.lms-lesson-heading { font-size: 1.15rem; margin: .15rem 0 0; }

@media (max-width: 991.98px) {
  .learn-body { overflow: auto; }
  .lms { height: auto; min-height: 100vh; }
  .lms-top { position: sticky; top: 0; padding: 0 .75rem; gap: .6rem; }
  .lms-progress .progress { width: 70px; }
  .lms-body { display: block; }
  .lms-side { width: 360px; max-width: 88vw; }
  .lms-main { overflow: visible; }
  .lms-video { max-width: none; }
  .lms-content { padding: 1rem 1rem 2.5rem; }
}
@media (max-width: 575.98px) {
  .lms-lesson-bar > .d-flex { width: 100%; flex-wrap: nowrap !important; }
  .lms-lesson-bar > .d-flex > .js-lesson-complete, .lms-lesson-bar > .d-flex > .btn-success { flex: 1; }
  .lms-lesson-bar .js-lesson-complete .btn { width: 100%; }
  .lms-lesson-bar > .d-flex > a.btn { white-space: nowrap; }
}

/* Phone input with country code */
.phone-group { flex-wrap: nowrap; }
.phone-cc {
  position: relative; display: flex; align-items: center; flex-shrink: 0; padding: 0 .85rem;
  border: 1.5px solid var(--c-line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--c-bg);
  font-weight: 600; color: var(--c-ink); white-space: nowrap; font-size: .95rem;
}
.phone-cc .flag { font-size: 1.15rem; line-height: 1; }
.phone-cc .bi-chevron-down { font-size: .7rem; color: var(--c-muted); margin-left: .15rem; }
.phone-cc-select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.phone-cc:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, .12); z-index: 3; }
.phone-group .form-control { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.was-validated .phone-group .form-control:invalid ~ .invalid-feedback, .phone-group .form-control.is-invalid ~ .invalid-feedback { display: block; }
.was-validated .phone-group:has(.form-control:invalid) .phone-cc { border-color: var(--bs-form-invalid-border-color); }

/* Toast-validated forms: red border only, no inline text */
.toast-validate .invalid-feedback { display: none !important; }
.toast-validate .form-control.is-invalid, .toast-validate .form-select.is-invalid { border-color: var(--bs-form-invalid-border-color); background-image: none; padding-right: 1rem; }
.toast-validate .form-select.is-invalid { padding-right: 2.25rem; background-image: var(--bs-form-select-bg-img); }
.toast-validate .phone-group.is-invalid .phone-cc { border-color: var(--bs-form-invalid-border-color); }
