/* ==========================================================
   Coding Pilot - main stylesheet (one light theme)
   1. Tokens   2. Base   3. Buttons   4. Header & menu
   5. Hero     6. Sections & cards   7. Inner pages
   8. LMS pages (courses, player, checkout)   9. Footer
   10. Mobile bottom menu
   Change the colours/fonts in :root and the whole site follows.
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #0f172a;
  --navy-2: #1e3a8a;
  --blue: #0f5bd3;
  --blue-dark: #0b4ab0;
  --blue-soft: #e8f0fe;
  --amber: #d97706;
  --amber-dark: #b45f05;
  --amber-soft: #fff4e0;
  --bg: #f5f7fb;
  --white: #ffffff;
  --border: #e3e8f0;
  --text: #0b1220;
  --muted: #5d6b82;
  --success: #16a34a;

  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --dots: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  --bottom-nav-height: 64px;

  --bs-primary: var(--blue);
  --bs-primary-rgb: 15, 91, 211;
  --bs-link-color: var(--blue);
  --bs-link-color-rgb: 15, 91, 211;
  --bs-link-hover-color: var(--blue-dark);
  --bs-body-font-family: var(--font-body);
  --bs-border-radius: var(--radius-sm);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .brand, .font-display { font-family: var(--font-display); letter-spacing: -0.015em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; }
.site-main { min-height: 60vh; }
.min-w-0 { min-width: 0; }
.hl { color: var(--amber); }
.section-dark .hl, .hero .hl, .page-banner .hl { color: #fbbf24; }
img { max-width: 100%; }
/* Images have width/height in HTML (no layout jump = good CLS). :where() keeps this weaker than any class rule. */
:where(img[width][height]) { height: auto; }

/* Reveal on scroll (site.js adds .visible). Without JS everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- 3. Buttons ---------- */
.btn { font-weight: 700; border-radius: var(--radius-sm); padding: 0.55rem 1.1rem; }
.btn-lg { padding: 0.8rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 0.35rem 0.75rem; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-accent { background: var(--amber); border-color: var(--amber); color: #fff; box-shadow: 0 8px 20px rgba(217, 119, 6, 0.28); }
.btn-accent:hover, .btn-accent:focus { background: var(--amber-dark); border-color: var(--amber-dark); color: #fff; }
.bg-accent { background: var(--amber) !important; }
.text-accent { color: var(--amber) !important; }
@media (max-width: 575.98px) { .btn-lg { width: 100%; justify-content: center; } }

.eyebrow, .section-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft);
  border-radius: 999px; padding: 0.35rem 0.85rem; margin-bottom: 0.9rem;
}
.eyebrow-light { color: #fde68a; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); }

/* ---------- 4. Header & menu ---------- */
/* App feel on phones: no grey flash when tapping, room for the notch when installed full screen */
a, button { -webkit-tap-highlight-color: transparent; }
@media (display-mode: standalone) { .site-header { padding-top: env(safe-area-inset-top); } }

/* z-index 1045: the slide-in menu lives inside the header, so the header must be above the dark backdrop (1040),
   the bottom bar (1035), the floating buttons (1030) and sticky boxes (1020). Otherwise they cover the open menu.
   Solid white, no backdrop-filter: a blur filter would trap the slide-in menu (position: fixed) inside the header. */
.site-header { z-index: 1045; background: #fff; border-bottom: 1px solid var(--border); transition: box-shadow 0.2s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .navbar { padding: 0.35rem 0; }  /* slim menu bar: height = logo + a little space */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
/* Logo (static/img/logo-160.webp): round, with a ring in the focus colour (same blue as focused inputs / active menu) */
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 0 0 2px var(--blue), 0 0 0 4px var(--blue-soft); }
@media (max-width: 575.98px) { .brand-mark { width: 40px; height: 40px; } }  /* phones: a bit smaller */
.navbar-toggler { border: 1px solid var(--border); border-radius: 10px; padding: 0.35rem 0.6rem; font-size: 1.5rem; color: var(--navy); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--blue-soft); }
.navbar .nav-link { color: var(--text); font-weight: 700; font-size: 0.95rem; padding: 0.55rem 0.85rem !important; border-radius: 8px; white-space: nowrap; }
.site-header .btn { white-space: nowrap; }
.navbar .nav-link:hover { color: var(--blue); }
.navbar .nav-link.active { color: var(--blue); }
/* Desktop menu from 1200px. Phones AND tablets (< 1200px) get the app layout: slide-in menu + bottom bar. */
@media (min-width: 1200px) {
  .navbar .nav-link.active { background: var(--blue-soft); }
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-login { color: var(--text); font-weight: 700; text-decoration: none; }
.user-chip { display: flex !important; align-items: center; gap: 0.5rem; }
.avatar-sm { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.avatar-sm.lg { width: 48px; height: 48px; font-size: 1.1rem; }

.dropdown-menu { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 0.5rem; }
.dropdown-item { border-radius: 8px; padding: 0.5rem 0.8rem; font-weight: 600; }
.mega-menu { min-width: 380px; padding: 0.6rem; }
.mega-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.7rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.mega-item:hover { background: var(--bg); color: var(--text); }
.mega-item strong { display: block; font-size: 0.93rem; }
.mega-item small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.mega-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 1.15rem; }
.mega-foot { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); margin-top: 0.4rem; padding: 0.7rem 0.7rem 0.3rem; }
.mega-foot a { font-weight: 700; font-size: 0.88rem; text-decoration: none; }

/* Phone / tablet slide-in menu */
@media (max-width: 1199.98px) {
  .offcanvas.offcanvas-end { max-width: 86vw; width: 380px; }
  .offcanvas-header { border-bottom: 1px solid var(--border); }
  .offcanvas-body { display: flex; flex-direction: column; gap: 1rem; }
  .navbar .nav-link { padding: 0.8rem 0.9rem !important; border-bottom: 1px solid var(--bg); border-radius: 0; }
  .mega-menu { min-width: 0; border: 0; box-shadow: none; background: var(--bg); padding: 0.3rem; }
  .mega-item { padding: 0.55rem; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
  .nav-actions .dropdown { width: 100%; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.35), transparent 40%),
    radial-gradient(circle at 5% 95%, rgba(217, 119, 6, 0.32), transparent 42%),
    var(--navy);
  padding: 3.5rem 0 6.5rem;
  clip-path: ellipse(150% 100% at 50% 0%);
}
.hero::before { content: ''; position: absolute; inset: 0; background-image: var(--dots); background-size: 22px 22px; pointer-events: none; }
.hero-row { min-height: 440px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; margin-bottom: 1rem; font-weight: 700; }
.hero-sub { font-size: 1.1rem; color: rgba(255, 255, 255, 0.78); max-width: 560px; margin-bottom: 1.75rem; }
.hero-img { width: 100%; max-height: 460px; object-fit: contain; }
/* Hero slider: all slides sit in the same grid cell, so the height never jumps between slides.
   Text of a moving slide (old or new) is hidden; the new text fades in once the slide has settled,
   so two texts are never on screen together. */
.hero .carousel-inner { display: grid; }
.hero .carousel-item { display: block; grid-area: 1 / 1; float: none; margin-right: 0; visibility: hidden; }
.hero .carousel-item.active, .hero .carousel-item-next, .hero .carousel-item-prev { visibility: visible; }
.hero .carousel-item-start .hero-copy, .hero .carousel-item-end .hero-copy,
.hero .carousel-item-next .hero-copy, .hero .carousel-item-prev .hero-copy { visibility: hidden; }
.hero .carousel-item.active .hero-copy { animation: hero-copy-in 0.6s ease both; }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .carousel-indicators { bottom: -3.8rem; margin-bottom: 0; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, 0.5); }
.hero .carousel-indicators .active { background: #fbbf24; width: 44px; }
.carousel-control-prev, .carousel-control-next { width: 4%; opacity: 1; }
.slider-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 1.1rem; }

/* Code window visual */
.hero-visual { position: relative; padding: 1.5rem 1rem 2rem; }
.code-window { background: #0b1222; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.5deg); }
.code-head { display: flex; align-items: center; gap: 6px; padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.code-head span { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.code-head span:nth-child(2) { background: #f59e0b; }
.code-head span:nth-child(3) { background: #22c55e; }
.code-head em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
.code-body { margin: 0; padding: 1.2rem 1.3rem; color: #cbd5e1; font-size: 0.86rem; line-height: 1.75; white-space: pre; overflow: hidden; }
.code-body b { color: #93c5fd; font-weight: 600; }
.code-body i { color: #fbbf24; font-style: normal; }
.code-body s { color: #86efac; text-decoration: none; }
.float-badge { position: absolute; display: flex; align-items: center; gap: 0.6rem; background: #fff; color: var(--text); border-radius: 14px; padding: 0.7rem 0.95rem; box-shadow: var(--shadow-lg); animation: floaty 5s ease-in-out infinite; }
.float-badge i { font-size: 1.4rem; color: var(--success); }
.float-badge strong { display: block; font-size: 0.9rem; }
.float-badge small { color: var(--muted); font-size: 0.75rem; }
.badge-a { left: -0.5rem; bottom: 0; }
.badge-b { right: -0.5rem; top: 0; animation-delay: 1.5s; }
.badge-b i { color: var(--amber); }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* Stats strip that overlaps the hero */
.stats-wrap { position: relative; margin-top: -4.5rem; z-index: 5; }
.stats-wrap.stats-plain { margin-top: 0; }
.stats-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 992px) { .stats-card { grid-template-columns: repeat(4, 1fr); } }
.stat-item { display: flex; align-items: center; gap: 0.85rem; background: #fff; padding: 1.25rem; }
.stat-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); font-size: 1.3rem; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1; }
.stat-value.stat-value-long { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.25; }  /* e.g. "10:00 AM to 6:30 PM" */
.stat-label { color: var(--muted); font-size: 0.83rem; font-weight: 600; margin-top: 0.2rem; }
@media (max-width: 575.98px) { .stat-item { flex-direction: column; text-align: center; padding: 1rem 0.5rem; } }

/* ---------- 6. Sections & cards ---------- */
.section { padding: 4.5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3rem 0; } }
.section-white { background: #fff; }
.section-dark { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; inset: 0; background-image: var(--dots); background-size: 22px 22px; }
.section-head { margin-bottom: 2.5rem; }
.section-head.text-center { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Service cards */
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; color: var(--text); text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; overflow: hidden;
}
.service-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.service-card:hover::after { transform: scaleX(1); }
.service-num { position: absolute; top: 1rem; right: 1.25rem; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--bg); line-height: 1; }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 1.6rem; margin-bottom: 1.1rem; transition: background 0.25s, color 0.25s; }
.service-card:hover .service-icon { background: var(--blue); color: #fff; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.93rem; }
.mini-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.35rem; font-size: 0.87rem; }
.mini-list i { color: var(--success); margin-right: 0.35rem; }
.service-link { margin-top: auto; color: var(--blue); font-weight: 800; font-size: 0.9rem; }

/* About visual */
.about-visual { position: relative; }
.about-visual > img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; }
.about-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tile { aspect-ratio: 1 / 0.8; border-radius: 20px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.tile i { font-size: 2.2rem; margin-bottom: auto; }
.tile-blue { background: var(--blue); color: #fff; }
.tile-amber { background: var(--amber-soft); color: var(--amber-dark); transform: translateY(1.5rem); }
.tile-dark { background: var(--navy); color: #fff; }
.tile-light { background: var(--blue-soft); color: var(--navy-2); transform: translateY(1.5rem); }
.about-badge { position: absolute; right: -0.5rem; top: -0.75rem; background: #fff; border-radius: 16px; padding: 0.85rem 1.4rem; box-shadow: var(--shadow-lg); text-align: center; white-space: nowrap; }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--amber); line-height: 1; }
.about-badge span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-list li i { color: var(--success); margin-top: 0.15rem; }
@media (min-width: 576px) { .check-list.two-col { grid-template-columns: 1fr 1fr; } }

/* Horizontal card slider (swipe on mobile, arrows on desktop) */
.card-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0.5rem 0.25rem 1.25rem; scrollbar-width: none; }
.card-slider::-webkit-scrollbar { display: none; }
.card-slide { scroll-snap-align: start; }
@media (min-width: 576px) { .card-slider { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
/* 3 course cards visible on laptop / desktop (arrows show the rest), 2 on tablet, 1 + a peek on phone */
@media (min-width: 992px) { .card-slider { grid-auto-columns: calc((100% - 2.5rem) / 3); } }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 1.1rem; display: grid; place-items: center; transition: all 0.2s; }
.slider-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Process steps */
.step { position: relative; height: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.step > i { font-size: 2rem; color: #fbbf24; display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; }
.step p { color: rgba(255, 255, 255, 0.7); margin: 0; font-size: 0.93rem; }
.step-no { position: absolute; top: 1.2rem; right: 1.3rem; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: rgba(255, 255, 255, 0.1); line-height: 1; }

/* Why cards */
.why-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; height: 100%; transition: box-shadow 0.25s; }
.why-card:hover { box-shadow: var(--shadow); }
.why-card > i { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: 1.35rem; margin-bottom: 0.9rem; }
.why-card h3 { font-size: 1.05rem; }
.why-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* Client logos marquee */
.clients-strip { padding: 2.5rem 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-title { text-align: center; color: var(--muted); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo { display: flex; align-items: center; height: 48px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #94a3b8; white-space: nowrap; }
.client-logo img { max-height: 44px; filter: grayscale(1); opacity: 0.7; transition: all 0.2s; }
.client-logo img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Portfolio cards */
.project-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform 0.25s, box-shadow 0.25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--blue-soft); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--blue)); }
.project-tag { position: absolute; left: 0.85rem; top: 0.85rem; background: #fff; color: var(--navy); font-size: 0.72rem; font-weight: 800; padding: 0.3rem 0.65rem; border-radius: 999px; }
.project-body { padding: 1.25rem; }
.project-body h3 { font-size: 1.05rem; margin: 0.25rem 0 0.5rem; }
.project-body p { color: var(--muted); font-size: 0.9rem; }
.project-client { color: var(--amber); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tech-tag { font-size: 0.74rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); }

/* Testimonials */
.testimonial-slider { max-width: 820px; margin: 0 auto; }
.testimonial { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 2.25rem; margin: 0; text-align: center; box-shadow: var(--shadow-sm); }
.testimonial-sm { text-align: left; padding: 1.5rem; }
.quote-mark { position: absolute; top: 0.75rem; left: 1.25rem; font-size: 4rem; color: var(--blue-soft); line-height: 1; }
.stars { color: #f59e0b; margin-bottom: 0.9rem; letter-spacing: 2px; }
.testimonial blockquote { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-sm blockquote { font-size: 0.95rem; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 0.75rem; text-align: left; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption small { color: var(--muted); }

/* FAQ */
.faq-list .accordion-item { border: 1px solid var(--border); border-radius: 14px !important; margin-bottom: 0.75rem; overflow: hidden; }
.faq-list .accordion-button { font-weight: 700; font-size: 1rem; padding: 1.1rem 1.25rem; }
.faq-list .accordion-button:not(.collapsed) { background: var(--blue-soft); color: var(--navy); box-shadow: none; }
.faq-list .accordion-button:focus { box-shadow: none; }
.help-card { display: flex; gap: 1rem; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem; }
.help-card > i { font-size: 2rem; color: #fbbf24; }
.help-card strong { display: block; }
.help-card a { color: #93c5fd; font-weight: 700; text-decoration: none; }

/* ---------- 7. Inner pages ---------- */
.page-banner {
  position: relative; overflow: hidden; color: #fff; padding: 3rem 0 3.25rem;
  background: radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.35), transparent 45%),
              radial-gradient(circle at 0% 100%, rgba(217, 119, 6, 0.28), transparent 40%), var(--navy);
}
.page-banner::before { content: ''; position: absolute; inset: 0; background-image: var(--dots); background-size: 22px 22px; }
.page-banner h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 0.5rem; }
.page-banner .lead { color: rgba(255, 255, 255, 0.78); max-width: 680px; font-size: 1.05rem; }
.page-banner .breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; }
.page-banner .breadcrumb a { color: #93c5fd; text-decoration: none; }
.page-banner .breadcrumb-item.active, .page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.55); }

.page-head { background: #fff; border-bottom: 1px solid var(--border); padding: 2.25rem 0 1.75rem; }
.page-head h1 { font-weight: 700; margin-bottom: 0.25rem; }

.service-row { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.service-row:last-child { border-bottom: 0; }
@media (min-width: 992px) {
  .service-row { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .service-row.reverse .service-row-visual { order: 2; }
}
.service-row-visual img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.service-big-icon { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; display: grid; place-items: center; font-size: 5rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); overflow: hidden; }
.service-big-icon span { position: absolute; right: 1.5rem; bottom: 0.5rem; font-family: var(--font-display); font-size: 5rem; font-weight: 700; color: rgba(255, 255, 255, 0.12); }

.enquiry-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.75rem; }
.enquiry-card p { color: rgba(255, 255, 255, 0.72); }
.enquiry-card .service-icon { background: rgba(255, 255, 255, 0.1); color: #fbbf24; }
.side-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem; border-radius: 10px; background: var(--bg); color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.side-link:hover { background: var(--blue-soft); color: var(--blue); }

.form-card, .box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 2rem; } }
.contact-card { display: flex; gap: 0.9rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--text); text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; }
a.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.contact-card > i { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 1.3rem; }
.contact-card small { display: block; color: var(--muted); font-weight: 600; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.map-box iframe { width: 100%; height: 100%; border: 0; }

.prose { font-size: 1.02rem; line-height: 1.8; }
.author-box { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.author-box img, .author-box .avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose pre { background: var(--navy); color: #e2e8f0; padding: 1rem; border-radius: 12px; overflow-x: auto; }
.prose code { color: #c2410c; }
.prose pre code { color: inherit; }
.prose blockquote { border-left: 4px solid var(--amber); padding-left: 1rem; color: var(--muted); }
.prose table { width: 100%; margin-bottom: 1rem; }
.prose table td, .prose table th { border: 1px solid var(--border); padding: 0.4rem 0.6rem; }
.prose ul li::marker, .prose ol li::marker { color: var(--amber); font-weight: 700; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.6rem; display: block; margin-bottom: 0.5rem; color: #94a3b8; }
.feature { display: flex; gap: 0.9rem; }
.feature-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 1.3rem; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; }
.stat .num { font-size: 1.7rem; font-weight: 800; font-family: var(--font-display); line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* Blog cards */
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform 0.25s, box-shadow 0.25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }

/* Forms */
.form-control, .form-select { border-radius: 10px; padding: 0.65rem 0.85rem; border-color: #d5dce7; }
.form-control:focus, .form-select:focus { border-color: #93c5fd; box-shadow: 0 0 0 0.2rem rgba(15, 91, 211, 0.15); }
.form-label { font-weight: 700; font-size: 0.9rem; }
.lms-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not(.form-control),
.lms-form select:not(.form-select) { display: block; width: 100%; padding: 0.65rem 0.85rem; font-size: 1rem; border: 1px solid #d5dce7; border-radius: 10px; background: #fff; }
.auth-card { max-width: 460px; margin: 2.5rem auto; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--blue-soft); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: var(--blue); }

/* HTMX loading indicator */
.htmx-indicator { opacity: 0; transition: opacity 0.2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-request.results-fade { opacity: 0.55; transition: opacity 0.2s; }

/* ---------- 8. LMS pages ---------- */
.course-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #e2e8f0; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.5rem; color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--blue)); }
.thumb-badge { position: absolute; top: 10px; left: 10px; color: #fff; font-size: 0.7rem; font-weight: 800; padding: 0.25rem 0.55rem; border-radius: 6px; }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.course-cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber); }
.course-title { font-size: 1.05rem; font-weight: 700; margin: 0.25rem 0 0.35rem; }
.course-title a { color: var(--text); text-decoration: none; }
.course-title a:hover { color: var(--blue); }
.course-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.75rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.9rem; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price strong { font-size: 1.15rem; }
.price del { color: var(--muted); font-size: 0.85rem; margin-left: 0.35rem; }

.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 0.45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.search-box { position: relative; }
.search-box > .bi-search { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }
.search-box input {
  height: 52px; padding: 0 5rem 0 2.75rem; border-radius: 14px; border: 1px solid var(--border); background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); font-size: 1rem;
}
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; } /* we have our own clear button */
.search-box .htmx-indicator { position: absolute; right: 3rem; top: 50%; margin-top: -0.5rem; }
.search-clear { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #94a3b8; font-size: 1.15rem; padding: 0.4rem; }
.search-clear:hover { color: var(--muted); }
.search-box input:placeholder-shown ~ .search-clear { display: none; }
.search-hints { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.search-hints a { color: var(--blue); text-decoration: none; font-weight: 600; }
.search-info { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; }
.search-info a { color: var(--blue); }

.course-hero { background: var(--navy); color: #fff; padding: 2rem 0 2.25rem; }
.course-hero .lead { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }
.course-hero .breadcrumb a { color: #93c5fd; text-decoration: none; }
.course-hero .breadcrumb-item.active, .course-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.55); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-badges span { background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 0.3rem 0.65rem; font-size: 0.85rem; font-weight: 600; }
.enroll-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 992px) { .enroll-card { position: sticky; top: 76px; margin-top: -11rem; } }
.enroll-card .big-price { font-size: 1.9rem; font-weight: 800; font-family: var(--font-display); }
.curriculum .accordion-button { font-weight: 700; }
.curriculum .accordion-button:not(.collapsed) { background: var(--blue-soft); color: var(--navy); box-shadow: none; }
.lesson-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--border); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row .title { flex: 1; min-width: 0; }
.lesson-row .mins { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* Lesson video player (static/js/player.js) */
.player-video { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; outline: none; }
.player-frame { overflow: hidden; }
/* The YouTube frame is 100px taller at top and bottom (only black bars there, the video stays full size).
   Those hidden strips hold YouTube's title, video link, "Copy link" and logo. */
.player-frame iframe { top: -100px; height: calc(100% + 200px); pointer-events: none; }
.player-shield { position: absolute; inset: 0; cursor: pointer; }
/* Cover before play and after the end: course image (if uploaded) or brand colours - never YouTube's own screen. */
.player-video:not(.started) .player-shield,
.player-video.ended .player-shield {
  background: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.45)), var(--poster, linear-gradient(135deg, var(--navy), #1e3a8a)) center / cover;
}
.player-cover-title { position: absolute; left: 1.25rem; right: 1.25rem; top: 1rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(0.95rem, 2.2vw, 1.35rem); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.player-video.started:not(.ended) .player-cover-title { display: none; }
.player-video.needs-tap .player-shield { pointer-events: none; }
.player-video.needs-tap .player-frame iframe { pointer-events: auto; }
.player-big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--amber); color: #fff; font-size: 2.6rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.2s;
}
.player-big-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.player-big-play i { margin-left: 4px; }
.player-video.playing .player-big-play,
.player-video.needs-tap .player-big-play { display: none; }

.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.35rem;
  padding: 1.6rem 0.6rem 0.5rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  transition: opacity 0.3s;
}
.player-video:not(.started) .player-bar { opacity: 0; pointer-events: none; }
.player-video.idle .player-bar { opacity: 0; }
.player-video.idle { cursor: none; }
.player-bar button {
  flex: none; min-width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent;
  color: #fff; font-size: 1.3rem; display: grid; place-items: center;
}
.player-bar button:hover, .player-bar button:focus-visible { background: rgba(255, 255, 255, 0.15); }
.player-bar .player-speed { font-size: 0.85rem; font-weight: 700; padding: 0 0.4rem; }
.player-time { font-size: 0.8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.player-seek {
  flex: 1; min-width: 60px; height: 5px; border-radius: 5px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: linear-gradient(to right, var(--amber) var(--progress, 0%), rgba(255, 255, 255, 0.3) var(--progress, 0%));
}
.player-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.player-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }

/* Full screen: keep the video 16:9 in the middle of the screen. */
.player-video:fullscreen,
.player-video.fake-fullscreen { display: flex; align-items: center; justify-content: center; border-radius: 0; }
.player-video.fake-fullscreen { position: fixed; inset: 0; z-index: 2000; }
.player-video:fullscreen .player-frame,
.player-video.fake-fullscreen .player-frame { width: min(100%, 177.78vh); }

@media (max-width: 575.98px) {
  .player-time { display: none; }
  .player-bar button { min-width: 36px; font-size: 1.15rem; }
  .player-big-play { width: 62px; height: 62px; font-size: 2.1rem; }
}
/* "Up next" card shown on the video when it ends */
.player-next {
  position: absolute; right: 1rem; bottom: 4.2rem; display: none; grid-template-columns: 1fr auto; column-gap: 0.75rem; align-items: center;
  max-width: min(320px, 80%); padding: 0.7rem 0.9rem; border-radius: 12px; background: #fff; color: var(--navy); text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.player-next small { grid-column: 1; color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.player-next span { grid-column: 1; font-weight: 700; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-next i { grid-column: 2; grid-row: 1 / 3; font-size: 1.9rem; color: var(--blue); }
.player-video.ended .player-next { display: grid; }

/* Player page layout: video + lesson details on the left, course panel on the right */
/* Same space on all sides: 1rem on phones, growing to 2rem on big screens. */
.player-container { max-width: 1600px; padding: clamp(1rem, 2vw, 2rem); }
.player-page .player-video { border-radius: 16px; box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18); }
.player-page .player-video:fullscreen,
.player-page .player-video.fake-fullscreen { border-radius: 0; box-shadow: none; }
.player-top { justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.player-top .breadcrumb { font-size: 0.9rem; flex-wrap: nowrap; }
.player-top .breadcrumb a { color: var(--muted); text-decoration: none; }
.player-top .breadcrumb a:hover { color: var(--blue); }
/* White card under the video: lesson title, watched button, previous / next */
.lesson-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1rem, 2vw, 1.5rem); margin: 1.25rem 0 1rem; }
.lesson-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.eyebrow-sm { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); margin-bottom: 0.15rem; }
.watched-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.6rem 1rem; cursor: pointer; user-select: none;
  border: 1px solid #86efac; border-radius: 10px; background: #fff; color: #166534; font-weight: 700;
}
.watched-toggle:hover { background: #f0fdf4; }
.watched-toggle.done { background: #dcfce7; border-color: #16a34a; }
.watched-toggle .form-check-input { width: 1.3em; height: 1.3em; margin: 0; cursor: pointer; border-color: #16a34a; }
.watched-toggle .form-check-input:checked { background-color: #16a34a; border-color: #16a34a; }
.watched-toggle .form-check-input:focus { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }
.lesson-nav { display: flex; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.preview-note.staff-note { background: var(--blue-soft); border-color: #c7d7f5; color: var(--navy); }
.preview-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1rem; margin-bottom: 1rem; border-radius: var(--radius); background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 0.92rem; }

@media (max-width: 575.98px) {
  .player-page .player-video { border-radius: 12px; }
  .lesson-nav .btn { white-space: nowrap; padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.92rem; }
}

/* Course panel (right side; slide-in panel on phones) */
.course-side { background: #fff; }
.course-side-head { padding: 1.25rem; border-bottom: 1px solid var(--border); }
.course-side-head h2 { font-family: var(--font-display); line-height: 1.25; }
.course-progress { margin-top: 1rem; }
.course-side-body { padding: 0.75rem; }
@media (max-width: 991.98px) {
  .course-side { width: min(400px, 92vw) !important; }
  .course-side-body { overflow-y: auto; flex: 1; }
}
@media (min-width: 992px) {
  .course-side { background: #fff !important; /* Bootstrap makes offcanvas-lg transparent */ position: sticky; top: 72px; max-height: calc(100vh - 88px); display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
  .course-side-body { overflow-y: auto; }
}

.module-card { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.65rem; overflow: hidden; background: #fff; }
.module-card.open { border-color: #c7d7f5; }
.module-head {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.75rem; align-items: center;
  padding: 0.85rem 1rem; border: 0; background: #f8fafc; text-align: left; color: var(--navy);
}
.module-name { font-weight: 800; font-size: 0.98rem; line-height: 1.3; }
.module-chevron { color: var(--muted); transition: transform 0.2s; }
.module-head.collapsed .module-chevron { transform: rotate(-90deg); }
.module-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.8rem; }
.module-meta > span:first-child { white-space: nowrap; }
.section-progress { flex: 1; display: flex; align-items: center; gap: 0.5rem; }
.section-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.section-bar span { display: block; height: 100%; background: #16a34a; border-radius: 4px; }
.section-count { font-weight: 800; color: var(--muted); }
.section-progress.full .section-count { color: #16a34a; }

/* One lesson row: [tick box] [link: play icon + title + time] */
.lesson-item { display: flex; align-items: flex-start; border-top: 1px solid var(--border); border-left: 3px solid transparent; font-size: 0.92rem; }
.lesson-item:hover { background: #f1f5f9; }
.lesson-item.current { background: var(--blue-soft); border-left-color: var(--blue); font-weight: 700; }
.lesson-item.locked { color: var(--muted); cursor: not-allowed; }
.lesson-link { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.7rem 1rem 0.7rem 0.6rem; color: inherit; text-decoration: none; }
.lesson-link:hover { color: inherit; }
.lesson-item.locked .lesson-link, .lesson-item > .lesson-link:first-child { padding-left: 1rem; }
.lesson-check {
  flex: none; margin: 0.45rem 0 0 0.6rem; width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent; font-size: 1.1rem; color: #94a3b8;
}
.lesson-check:hover { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.lesson-check.done { color: #16a34a; }
.lesson-play { font-size: 1.05rem; line-height: 1.3; color: var(--muted); }
.lesson-item.current .lesson-play { color: var(--blue); }
.lesson-index, .module-index { color: var(--muted); font-weight: 700; margin-right: 0.15rem; }
.lesson-text { display: flex; flex-direction: column; min-width: 0; }
.lesson-text small { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.preview-tag { margin-left: 0.35rem; padding: 0 0.4rem; border-radius: 4px; background: #fff7ed; color: #c2410c; font-weight: 700; }

.qr-box { background: #fff; border: 1px dashed #94a3b8; border-radius: var(--radius); padding: 1rem; text-align: center; }
.qr-box img { width: 220px; max-width: 100%; image-rendering: pixelated; }
.summary-row { display: flex; justify-content: space-between; padding: 0.35rem 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.7rem; font-weight: 800; font-size: 1.15rem; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 0.85rem; margin-right: 0.5rem; }
.status { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.status-pending { background: #f1f5f9; color: #475569; }
.status-submitted { background: #fef3c7; color: #92400e; }
.status-paid { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }

/* Home: "What do you want to learn today?" search + category cards */
.explore-section { padding: 3.5rem 0 1rem; }
.explore-box {
  position: relative; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 10% 0%, #fff4e0 0, transparent 40%), radial-gradient(circle at 100% 100%, #e3edff 0, transparent 45%), #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.explore-search {
  position: relative; display: flex; gap: 0.5rem; max-width: 680px; margin: 1.5rem auto 2rem; padding: 0.4rem;
  background: #fff; border: 2px solid var(--border); border-radius: 18px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.explore-search:focus-within { border-color: var(--blue); }
.explore-search > i { align-self: center; margin-left: 0.8rem; color: var(--muted); font-size: 1.15rem; }
.explore-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.05rem; background: transparent; }
.explore-search .btn { border-radius: 12px; padding: 0.7rem 1.4rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 270px)); justify-content: center; gap: 0.85rem; }
.category-card {
  display: flex; align-items: center; gap: 0.85rem; padding: 1rem; border-radius: 16px; background: #fff;
  border: 1px solid var(--border); color: var(--navy); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--navy); }
.category-card strong { display: block; font-size: 0.98rem; }
.category-card small { color: var(--muted); }
.category-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; }
.category-arrow { margin-left: auto; font-size: 1.6rem; color: #94a3b8; transition: transform 0.2s; }
.category-card:hover .category-arrow { transform: translateX(4px); color: var(--blue); }
.cat-blue .category-icon { background: #e8f0fe; color: #0f5bd3; }
.cat-amber .category-icon { background: #fef3c7; color: #b45309; }
.cat-green .category-icon { background: #dcfce7; color: #15803d; }
.cat-purple .category-icon { background: #ede9fe; color: #6d28d9; }
@media (max-width: 575.98px) {
  .explore-search .btn { padding: 0.6rem 0.9rem; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .category-card { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.85rem; }
  .category-arrow { display: none; }
}

/* Home: "Learn anywhere" app section with a phone drawn in CSS */
.app-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.app-feature { display: flex; gap: 0.75rem; }
.app-feature > span { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 1.2rem; }
.app-feature strong { display: block; }
.app-feature small { color: var(--muted); line-height: 1.4; }
@media (max-width: 575.98px) { .app-features { grid-template-columns: 1fr; } }
.phone-stage { position: relative; display: flex; justify-content: center; padding: 1.5rem 0; }
.phone-stage::before { content: ''; position: absolute; width: 340px; height: 340px; max-width: 90%; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #ffe7c2 0%, #e3edff 60%, transparent 70%); }
.phone-mockup { position: relative; width: 270px; padding: 12px; border-radius: 40px; background: var(--navy); box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3); transform: rotate(-3deg); }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 18px; border-radius: 0 0 12px 12px; background: var(--navy); z-index: 2; }
.phone-screen { position: relative; border-radius: 30px; overflow: hidden; background: #f5f7fb; display: flex; flex-direction: column; min-height: 500px; }
.mock-video { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; font-size: 2rem; }
.mock-video i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); }
.mock-body { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.mock-eyebrow { color: var(--blue); font-weight: 800; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mock-title { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.25; }
.mock-progress { height: 6px; border-radius: 6px; background: #e3e8f0; overflow: hidden; margin-top: 0.3rem; }
.mock-progress span { display: block; width: 65%; height: 100%; background: #16a34a; }
.mock-muted { color: var(--muted); font-size: 0.7rem; margin-bottom: 0.3rem; }
.mock-lesson { display: flex; gap: 0.5rem; align-items: center; padding: 0.5rem 0.6rem; border-radius: 10px; background: #fff; font-size: 0.78rem; }
.mock-lesson.done i { color: #16a34a; }
.mock-lesson.current { background: var(--blue-soft); font-weight: 700; }
.mock-lesson.current i { color: var(--blue); }
.mock-lesson i { color: #94a3b8; }
.mock-tabbar { display: flex; justify-content: space-around; padding: 0.7rem 0 0.9rem; background: #fff; border-top: 1px solid var(--border); color: #94a3b8; font-size: 1.15rem; }
.mock-tabbar .bi-play-btn-fill { color: var(--blue); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.9rem; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-lg); animation: chip-float 4s ease-in-out infinite;
}
.float-chip > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 1.1rem; }
.float-chip strong { display: block; font-size: 0.85rem; line-height: 1.1; }
.float-chip small { color: var(--muted); font-size: 0.72rem; }
.chip-cert { top: 18%; right: 4%; }
.chip-cert > i { background: #fef3c7; color: var(--amber-dark); }
.chip-progress { bottom: 14%; left: 2%; animation-delay: -2s; }
.chip-progress > i { background: #dcfce7; color: #15803d; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 575.98px) {
  .phone-mockup { width: 230px; }
  .phone-screen { min-height: 430px; }
  .chip-cert { right: 0; }
  .chip-progress { left: 0; }
}

/* Certificate (learning/certificate.html). Sizes use "cqw" (% of the certificate width) so it scales on phones. */
.certificate-page { padding: clamp(1rem, 3vw, 2.5rem) 0; }
.certificate-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.certificate-wrap { container-type: inline-size; max-width: 1100px; margin: 0 auto; }
.certificate {
  position: relative; aspect-ratio: 297 / 210; padding: 2.2cqw; overflow: hidden; border-radius: 12px;
  background: linear-gradient(135deg, #fffaf0 0%, #fff 45%, #f3f7ff 100%); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.certificate::before, .certificate::after { content: ''; position: absolute; width: 22cqw; height: 22cqw; }
.certificate::before { top: 0; left: 0; background: linear-gradient(135deg, var(--amber) 0 30%, transparent 30%); }
.certificate::after { right: 0; bottom: 0; background: linear-gradient(315deg, var(--navy) 0 30%, transparent 30%); }
.cert-inner {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 3cqw 5cqw 2.5cqw; border: 0.3cqw solid var(--navy); outline: 0.12cqw solid var(--amber); outline-offset: -1cqw;
  color: var(--navy);
}
.cert-brand { display: flex; align-items: center; gap: 0.8cqw; font-family: var(--font-display); font-weight: 700; font-size: 2cqw; }
.cert-brand img { height: 3.6cqw; }
.cert-brand-logo { width: 6cqw; height: 6cqw; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 0.2cqw var(--blue); }
.cert-kicker { margin: 2.6cqw 0 1.4cqw; font-family: var(--font-display); font-weight: 700; font-size: 3.4cqw; letter-spacing: 0.3cqw; text-transform: uppercase; }
.cert-small { margin: 0; font-size: 1.5cqw; color: var(--muted); }
.cert-name { margin: 0.8cqw 0 1cqw; padding: 0 3cqw 0.6cqw; font-size: 5cqw; color: var(--amber-dark); border-bottom: 0.15cqw solid var(--amber); }
.cert-course { margin: 0.8cqw 0 0.6cqw; font-size: 2.8cqw; color: var(--blue); }
.cert-meta { margin: 0; font-size: 1.4cqw; color: var(--muted); }
.cert-footer { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; }
.cert-sign, .cert-verify div { display: flex; flex-direction: column; font-size: 1.4cqw; }
.cert-sign { align-items: center; }
.cert-line { width: 18cqw; border-top: 0.15cqw solid var(--navy); margin-bottom: 0.6cqw; }
.cert-sign small, .cert-verify small { font-size: 1.05cqw; color: var(--muted); }
.cert-seal { width: 8cqw; height: 8cqw; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #fff; font-size: 4.4cqw; box-shadow: 0 0 0 0.5cqw #fde68a; }
.cert-verify { display: flex; align-items: center; gap: 1cqw; text-align: left; }
.cert-verify img { width: 8.5cqw; height: 8.5cqw; image-rendering: pixelated; }
.cert-verify strong { font-size: 1.3cqw; margin-bottom: 0.4cqw; }

/* Print: only the certificate, one A4 landscape page. */
@page { size: A4 landscape; margin: 0; }
@media print {
  .site-header, .bottom-nav, .float-buttons, .no-print, .alert { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .certificate-page { padding: 0; }
  .certificate-page .container { max-width: none; padding: 0; }
  .certificate-wrap { width: 297mm; max-width: none; }
  .certificate { width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
}

/* My certificates list */
.cert-card { display: flex; gap: 1rem; align-items: center; }
.cert-card-icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: #fef3c7; color: var(--amber-dark); font-size: 1.7rem; }

/* ---------- 9. Footer ---------- */
.cta-band { padding: 0 0 0; margin-top: 2rem; position: relative; z-index: 2; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: linear-gradient(120deg, var(--blue), var(--navy-2)); color: #fff;
  border-radius: 24px; padding: 2.25rem; margin-bottom: -4rem; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-inner::before { content: ''; position: absolute; inset: 0; background-image: var(--dots); background-size: 20px 20px; pointer-events: none; }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 0.35rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.8); }
.site-footer { background: var(--navy); color: #fff; padding: 6.5rem 0 1.5rem; }
.site-footer.plain { padding-top: 3rem; margin-top: 3rem; }
.footer-muted { color: rgba(255, 255, 255, 0.65); }
.footer-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fbbf24; }
.footer-contact li { display: flex; gap: 0.65rem; margin-bottom: 0.8rem; color: rgba(255, 255, 255, 0.72); }
.footer-contact i { color: #fbbf24; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.social-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; font-size: 1.1rem; transition: background 0.2s; }
.social-btn:hover { background: var(--amber); color: #fff; }
.review-btn { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0.6rem 0.9rem; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; font-size: 0.88rem; }
.review-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.review-stars { color: #fbbf24; letter-spacing: 1px; }
.site-footer .form-control { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: #fff; }
.site-footer .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }

/* Floating Call + WhatsApp buttons (components/_float_buttons.html) */
.float-buttons { position: fixed; right: 1.1rem; bottom: 1.25rem; z-index: 1030; display: flex; flex-direction: column; gap: 0.75rem; }
.float-btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 1.6rem; text-decoration: none; transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-whatsapp { background: #25d366; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4); animation: float-pulse 2.5s infinite; }
.float-setup { background: #94a3b8; border: 2px dashed #fff; }

/* WhatsApp box on checkout / order pages */
.whatsapp-order {
  display: flex; align-items: center; gap: 0.85rem; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius);
  background: #f0fdf4; border: 1px solid #86efac; color: #14532d; text-decoration: none; transition: background 0.2s;
}
.whatsapp-order:hover { background: #dcfce7; color: #14532d; }
.whatsapp-order strong { display: block; }
.whatsapp-order small { display: block; color: #166534; }
.whatsapp-order-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.5rem; }
.float-call { background: var(--blue); box-shadow: 0 10px 24px rgba(15, 91, 211, 0.35); font-size: 1.35rem; }
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0); }
}
/* Label on the left when hovering (desktop) */
.float-label {
  position: absolute; right: calc(100% + 0.6rem); top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 0.35rem 0.75rem; border-radius: 8px; background: var(--navy); color: #fff; font-size: 0.85rem; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.float-btn:hover .float-label, .float-btn:focus-visible .float-label { opacity: 1; }

/* ---------- 10. Mobile bottom menu ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
  display: flex; background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.07);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--bottom-nav-height); color: var(--muted); text-decoration: none; font-size: 0.68rem; font-weight: 700;
  position: relative;
}
.bottom-nav a i { font-size: 1.3rem; line-height: 1; }
.bottom-nav a.active { color: var(--blue); }
.bottom-nav a.active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--blue); }

/* App layout on phones and tablets (< 1200px): bottom bar is visible */
@media (max-width: 1199.98px) {
  body { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom)); }
  .float-buttons { bottom: calc(var(--bottom-nav-height) + 1rem + env(safe-area-inset-bottom)); gap: 0.6rem; }
  .float-btn { width: 50px; height: 50px; font-size: 1.45rem; }
  .float-call { font-size: 1.2rem; }
  .float-label { display: none; }
  .float-desktop-only { display: none; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .bottom-nav a { font-size: 0.78rem; }  /* tablets: a bit bigger labels */
  .bottom-nav a i { font-size: 1.45rem; }
}

@media (max-width: 991.98px) {
  .hero { padding: 2.5rem 0 6rem; clip-path: ellipse(220% 100% at 50% 0%); }
  .hero-row { min-height: 0; }
  .cta-inner { padding: 1.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
