/* ==========================================================================
   DataSpeaks — Shared Stylesheet
   AI/ML, GenAI & Agentic AI Training Platform
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #060b18;
  --navy-900: #0b1327;
  --navy-800: #121c38;
  --navy-700: #1a2748;
  --indigo-500: #4f46e5;
  --indigo-600: #4338ca;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --violet-400: #a78bfa;
  --amber-400: #fbbf24;
  --emerald-400: #34d399;

  --bg: #f6f8fc;
  --bg-alt: #eef1f9;
  --surface: #ffffff;
  --text-900: #0f172a;
  --text-700: #334155;
  --text-500: #64748b;
  --text-400: #94a3b8;
  --border: #e2e8f0;

  --gradient-primary: linear-gradient(135deg, var(--indigo-500) 0%, var(--cyan-500) 100%);
  --gradient-dark: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--indigo-600) 130%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.16);

  --container-w: 1180px;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--text-700);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--text-900);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
  background: rgba(79, 70, 229, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section {
  padding: 96px 0;
}
.section-tight { padding: 64px 0; }
.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-header p { color: var(--text-500); margin-top: 14px; font-size: 1.05rem; }
.section-header.align-left { margin-left: 0; text-align: left; }

.bg-alt { background: var(--bg-alt); }
.bg-dark {
  background: var(--gradient-dark);
  color: #e2e8f0;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .section-header p { color: #94a3b8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, 0.36); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo span { color: var(--cyan-400); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav > a, .nav-dropdown > .nav-drop-label {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-nav > a:hover, .nav-dropdown > .nav-drop-label:hover { color: #fff; }
.main-nav a.active { color: var(--cyan-400); }

.nav-dropdown { position: relative; }
.nav-drop-label { cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  min-width: 260px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
/* Invisible bridge across the 14px gap above — without this, moving the
   cursor straight down from the "Courses" label into the gap briefly
   leaves both elements, which closes the menu before you reach it. */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dropdown-menu a small { display: block; font-weight: 400; color: var(--text-400); margin-top: 2px; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--navy-900);
    padding: 20px 24px 28px;
    gap: 4px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a, .nav-dropdown { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; margin-top: 8px; width: 100%; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .header-cta .btn-sm-hide { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-dark);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(34,211,238,0.18), transparent 40%),
                     radial-gradient(circle at 85% 75%, rgba(167,139,250,0.18), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.5rem; color: #fff; }
.hero-trust span { font-size: 0.82rem; color: var(--text-400); }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; margin-bottom: 18px; font-size: 1.1rem; }
.hero-card ul { display: flex; flex-direction: column; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; color: #dbeafe; font-size: 0.92rem; }
.hero-card .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: #fff; font-weight: 800;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.cert-grid { max-width: 980px; margin: 0 auto; }
.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-card img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.cert-caption { margin-top: 12px; font-weight: 700; font-size: 0.92rem; color: var(--text-700); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-500); font-size: 0.95rem; }

/* ---------- Course cards ---------- */
.course-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.course-card-head {
  padding: 32px;
  color: #fff;
  position: relative;
}
.course-card-head.head-a { background: linear-gradient(135deg, #4f46e5, #0ea5e9); }
.course-card-head.head-b { background: linear-gradient(135deg, #7c3aed, #db2777); }
.course-card-head .tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.course-card-head h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.course-card-head p { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.course-card-body { padding: 28px 32px 32px; flex: 1; display: flex; flex-direction: column; }
.course-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; font-size: 0.85rem; color: var(--text-500); }
.course-meta span { display: flex; align-items: center; gap: 6px; }
.course-card-body ul.checklist { margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--text-700); }
.checklist li::before { content: "✓"; color: var(--emerald-400); font-weight: 800; flex-shrink: 0; }
.course-card-body .actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-bar .stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; }
.stats-bar .stat span { color: var(--text-400); font-size: 0.88rem; }
@media (max-width: 700px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Timeline / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { text-align: center; position: relative; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h4 { font-size: 0.98rem; margin-bottom: 6px; color: var(--text-900); }
.step p { font-size: 0.84rem; color: var(--text-500); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--amber-400); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--text-700); font-size: 0.95rem; margin-bottom: 20px; font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.testimonial-person strong { display: block; font-size: 0.9rem; color: var(--text-900); }
.testimonial-person span { font-size: 0.78rem; color: var(--text-500); }
.placeholder-note {
  margin-top: 40px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-400);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
}

/* ---------- FAQ Accordion ---------- */
.accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  font-weight: 700; font-size: 0.98rem; color: var(--text-900);
  cursor: pointer;
}
.accordion-question .icon { transition: transform 0.2s ease; color: var(--indigo-600); font-size: 1.2rem; }
.accordion-item.open .accordion-question .icon { transform: rotate(45deg); }
.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 22px;
  color: var(--text-500);
  font-size: 0.92rem;
}
.accordion-item.open .accordion-answer { max-height: 400px; padding: 0 22px 20px; }
.faq-category-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.faq-tab {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-500); background: var(--surface);
}
.faq-tab.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--text-900); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--text-900);
  background: #fff;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo-500); }
.field-note { font-size: 0.78rem; color: var(--text-400); }
.form-disclaimer {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-400);
  text-align: center;
}
.badge-soon {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-left: 10px;
}

/* ---------- Curriculum module list ---------- */
.module {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}
.module-head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
}
.module-num {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--indigo-600);
  font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.module-head h4 { font-size: 1rem; color: var(--text-900); flex: 1; }
.module-head .icon { color: var(--text-400); transition: transform .2s ease; }
.module.open .module-head .icon { transform: rotate(45deg); }
.module-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 22px;
}
.module.open .module-body { max-height: 600px; padding: 0 22px 20px 72px; }
.module-body ul { display: flex; flex-direction: column; gap: 8px; }
.module-body li { font-size: 0.88rem; color: var(--text-500); position: relative; padding-left: 16px; }
.module-body li::before { content: "–"; position: absolute; left: 0; color: var(--cyan-500); }

/* ---------- Pricing / info panel ---------- */
.info-panel {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
}
.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-500); }
.info-row span:last-child { font-weight: 700; color: var(--text-900); }

/* ---------- Banner CTA ---------- */
.cta-banner {
  background: var(--gradient-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: #cbd5e1; max-width: 560px; margin: 0 auto 30px; }
.cta-banner .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.88rem; color: #94a3b8; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Chatbot widget (front-end stub) ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 600px) {
  .whatsapp-float { width: 48px; height: 48px; bottom: 18px; left: 18px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

.chatbot-widget { position: fixed; bottom: 22px; right: 22px; z-index: 900; }
.chatbot-toggle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.chatbot-toggle:hover { transform: scale(1.06); }
.chatbot-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  background: var(--gradient-dark);
  color: #fff;
  padding: 11px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700;
  font-size: 0.82rem;
}
.chatbot-header button { background: transparent; border: none; color: #fff; font-size: 0.9rem; line-height: 1; padding: 0; cursor: pointer; }
.chatbot-body { padding: 12px; min-height: 100px; max-height: 200px; overflow-y: auto; }
.chatbot-msg { background: var(--bg-alt); padding: 9px 11px; border-radius: var(--radius-sm); font-size: 0.78rem; line-height: 1.4; color: var(--text-700); margin-bottom: 8px; }
.chatbot-input-row { display: flex; border-top: 1px solid var(--border); }
.chatbot-input-row input {
  flex: 1; border: none; padding: 10px 12px; font-size: 0.78rem; font-family: inherit; min-width: 0;
}
.chatbot-input-row input:focus { outline: none; }
.chatbot-input-row button { background: var(--indigo-500); color: #fff; border: none; padding: 0 14px; font-weight: 700; font-size: 0.76rem; cursor: pointer; }
.chatbot-suggestions { display: flex; flex-wrap: wrap; gap: 5px; margin: -1px 0 10px; }
.chatbot-chip {
  background: #fff; border: 1px solid var(--indigo-500); color: var(--indigo-500);
  font-size: 0.68rem; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s;
}
.chatbot-chip:hover { background: var(--indigo-500); color: #fff; }
@media (max-width: 600px) {
  .chatbot-widget { bottom: 18px; right: 16px; }
  .chatbot-toggle { width: 46px; height: 46px; font-size: 1.1rem; }
  .chatbot-panel { width: 260px; max-width: calc(100vw - 24px); bottom: 56px; }
  .chatbot-body { max-height: 42vh; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--gradient-dark);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: #cbd5e1; max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: var(--text-400); margin-bottom: 16px; }
.breadcrumb a { color: var(--cyan-400); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.tag-pill {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 0 8px 8px 0;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Locked / gated content (register-to-unlock) ---------- */
.locked-wrap { position: relative; border-radius: var(--radius-lg); }
.locked-blur {
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}
.locked-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  text-align: center;
  max-width: 440px;
}
.locked-card .lock-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}
.locked-card h3 { margin-bottom: 10px; }
.locked-card p { color: var(--text-500); font-size: 0.92rem; margin-bottom: 22px; }
.locked-card .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Unlocked state (after registration) ---------- */
.locked-wrap.is-unlocked .locked-overlay { display: none; }
.locked-wrap.is-unlocked .locked-blur {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}
.unlock-banner {
  background: var(--gradient-primary);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Detailed module cards (full syllabus, shown once unlocked) ---------- */
.module-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.module-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.module-detail-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.module-detail-title { flex: 1; min-width: 200px; }
.module-detail-title h4 { font-size: 1.2rem; margin-bottom: 4px; }
.module-detail-title span { font-size: 0.85rem; color: var(--text-500); font-weight: 600; }
.module-detail-duration {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo-600);
  background: rgba(79, 70, 229, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  align-self: flex-start;
}
.module-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 18px;
}
@media (max-width: 700px) { .module-detail-grid { grid-template-columns: 1fr; } }
.module-detail-section h5 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-400);
  margin-bottom: 10px;
  font-weight: 800;
}
.module-detail-section ul { display: flex; flex-direction: column; gap: 7px; }
.module-detail-section li {
  font-size: 0.88rem;
  color: var(--text-700);
  padding-left: 16px;
  position: relative;
}
.module-detail-section li::before { content: "–"; position: absolute; left: 0; color: var(--cyan-500); }
.module-detail-tools {
  margin-bottom: 18px;
}
.module-detail-tools h5 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-400);
  margin-bottom: 10px;
  font-weight: 800;
}
.module-outcome-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--emerald-400);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.87rem;
  color: var(--text-700);
}
.module-outcome-box strong { color: var(--text-900); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Locked / gated content (register-to-unlock) ---------- */
.locked-wrap { position: relative; border-radius: var(--radius-lg); }
.locked-blur {
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}
.locked-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  text-align: center;
  max-width: 440px;
}
.locked-card .lock-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}
.locked-card h3 { margin-bottom: 10px; }
.locked-card p { color: var(--text-500); font-size: 0.92rem; margin-bottom: 22px; }
.locked-card .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
