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

:root {
  --blue-deep:    #0a2d6e;
  --blue-mid:     #1a4eb5;
  --blue-light:   #3b82f6;
  --green:        #10b981;
  --green-dark:   #059669;
  --orange:       #f59e0b;
  --white:        #ffffff;
  --bg:           #f0f4ff;
  --bg-card:      #ffffff;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(10,45,110,.08);
  --shadow-lg:    0 12px 48px rgba(10,45,110,.15);
  --transition:   .2s ease;
  --max-width:    1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 8px 24px rgba(16,185,129,.35); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-secondary:hover { background: rgba(255,255,255,.18); }
.btn-outline {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--bg); border-color: var(--blue-light); }

/* ── Navbar ── */
#navbar {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--blue-deep);
  white-space: nowrap;
}
.nav-logo-img {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-logo small {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.eit-logo-img {
  height: 26px; width: auto;
  background: var(--white);
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.back-link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.back-link:hover { color: var(--blue-deep); background: var(--bg); }

@media (max-width: 640px) {
  .eit-logo-img { display: none; }
  .nav-logo small { display: none; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(145deg, var(--blue-deep) 0%, #1a3a8a 55%, #0e5c3a 100%);
  color: var(--white);
  padding: 72px 0 88px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta div { }
.hero-meta strong { display: block; font-size: 1.25rem; font-weight: 800; }
.hero-meta span { font-size: .8125rem; color: rgba(255,255,255,.65); }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.hero-card h3 { font-size: 1rem; margin-bottom: 14px; color: var(--blue-deep); }
.hero-card ol { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.hero-card ol li {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; color: var(--text-muted);
}
.hero-card ol li .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.hero-card .btn { width: 100%; }

/* ── Sections ── */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-tag {
  font-size: .8125rem; font-weight: 700; color: var(--green-dark);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--blue-deep); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

/* ── Module list ── */
.module-list { display: flex; flex-direction: column; gap: 16px; }
.module-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.module-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.module-row .module-num {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.0625rem;
}
.module-row .module-body { flex: 1; min-width: 0; }
.module-row h3 { font-size: 1.0625rem; color: var(--text); margin-bottom: 4px; }
.module-row p { font-size: .875rem; color: var(--text-muted); }
.module-row .module-meta {
  font-size: .75rem; color: var(--text-muted);
  display: flex; gap: 12px; flex-shrink: 0; white-space: nowrap;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-card .icon { font-size: 1.75rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--blue-deep); }
.feature-card p { font-size: .875rem; color: var(--text-muted); }

.section-alt { background: var(--white); }

.cta-band {
  background: linear-gradient(135deg, var(--blue-deep), var(--green-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { font-size: 1.5rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 24px; }

/* ── Footer ── */
footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.7);
  padding: 32px 0;
  text-align: center;
  font-size: .8125rem;
}
footer a { color: var(--white); font-weight: 600; }
footer a:hover { text-decoration: underline; }

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

/* ══════════════════════════════════════════
   LEARN / PLAYER PAGE
══════════════════════════════════════════ */
.demo-banner {
  background: var(--orange);
  color: #4a2e02;
  text-align: center;
  font-size: .8125rem;
  font-weight: 600;
  padding: 8px 16px;
}

.player {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 72px - 34px);
}

.player-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  overflow-y: auto;
}
.player-progress {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.player-progress .bar {
  height: 8px; border-radius: 100px; background: var(--bg);
  overflow: hidden; margin-top: 8px;
}
.player-progress .bar-fill {
  height: 100%; background: var(--green);
  border-radius: 100px; transition: width .3s ease;
  width: 0%;
}
.player-progress .pct { font-size: .75rem; color: var(--text-muted); font-weight: 600; }

.sb-module { margin-bottom: 4px; }
.sb-module-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  font-size: .8125rem; font-weight: 700;
  color: var(--blue-deep);
  cursor: pointer;
  user-select: none;
}
.sb-module-head .chev { transition: transform var(--transition); font-size: .7rem; color: var(--text-muted); }
.sb-module.open .sb-module-head .chev { transform: rotate(90deg); }
.sb-lessons { display: none; flex-direction: column; }
.sb-module.open .sb-lessons { display: flex; }
.sb-lesson {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px 9px 36px;
  font-size: .8125rem;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition);
}
.sb-lesson:hover { background: var(--bg); color: var(--text); }
.sb-lesson.active { background: var(--bg); color: var(--blue-deep); font-weight: 600; border-left-color: var(--blue-light); }
.sb-lesson .dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .625rem; color: transparent;
}
.sb-lesson.done .dot { background: var(--green); border-color: var(--green); color: var(--white); }
.sb-lesson.quiz .dot { border-radius: 4px; }

.player-main {
  padding: 40px 48px 80px;
  max-width: 760px;
}
.lesson-eyebrow { font-size: .8125rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.lesson-title { font-size: 1.75rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 20px; }
.lesson-video {
  background: var(--blue-deep);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  margin-bottom: 28px;
}
.lesson-body p { margin-bottom: 16px; color: var(--text); }
.lesson-body ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.lesson-body li { margin-bottom: 6px; }
.lesson-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.lesson-nav .spacer { flex: 1; }

/* Quiz */
.quiz-q { margin-bottom: 24px; }
.quiz-q p.q-text { font-weight: 600; margin-bottom: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  font-size: .9375rem;
  transition: border-color var(--transition), background var(--transition);
}
.quiz-opt:hover { border-color: var(--blue-light); }
.quiz-opt.selected { border-color: var(--blue-light); background: var(--bg); }
.quiz-opt.correct { border-color: var(--green); background: #ecfdf5; }
.quiz-opt.incorrect { border-color: #ef4444; background: #fef2f2; }
.quiz-feedback { font-size: .875rem; font-weight: 600; margin-top: 8px; }
.quiz-feedback.correct { color: var(--green-dark); }
.quiz-feedback.incorrect { color: #dc2626; }

/* Certificate */
.certificate {
  background: var(--white);
  border: 2px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.certificate .medal { font-size: 2.5rem; margin-bottom: 12px; }
.certificate h2 { color: var(--blue-deep); margin-bottom: 8px; }
.certificate p { color: var(--text-muted); margin-bottom: 24px; }

@media (max-width: 860px) {
  .player { grid-template-columns: 1fr; }
  .player-sidebar { border-right: none; border-bottom: 1px solid var(--border); position: static; }
  .player-main { padding: 32px 20px 60px; }
}
