/* Colors and type taken from the live LearnWorlds site's computed styles */
:root {
  --bg: #f0f5f5; --hero: #e6f4ff; --white: #fff; --yellow: #ffc107; --ink: #212121; --muted: #5f6b6b;
  --accent: #03a9f4; --line: #dadada; --radius: 3px;
  --head: 'Raleway', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0 0 18px; }
h1 { font-size: clamp(30px, 4vw, 48px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font: 700 18px/1.3 var(--body); margin: 0 0 8px; }
p { margin: 0 0 16px; }
.bold { font-weight: 700; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center-block { display: block; text-align: center; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.inline { display: inline; margin: 0; }

/* header */
.topbar { background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 110px; gap: 16px; }
.brand img { width: 120px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: #1e4fb4; }
.nav-toggle, .burger { display: none; }

/* buttons */
.btn-yellow, .btn-dark, .btn-outline { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: 500 14px/1 var(--body); border-radius: var(--radius); padding: 15px 34px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { filter: brightness(.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: #1e4fb4 !important; border: 1px solid var(--accent); border-radius: 20px; padding: 9px 18px; }
.btn-outline.small { padding: 6px 12px; font-size: 12px; }
.link { margin-left: 12px; font-size: 14px; }

/* sections */
.sec { padding: 80px 0; }
.sec-plain { background: var(--bg); }
.sec-white { background: var(--white); }
.sec-yellow { background: var(--yellow); }
.hero-home { background: var(--hero); }
.hero-course { background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-img img { border-radius: 6px; width: 100%; object-fit: cover; }
.pill { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 4px; font: 700 11px/1 var(--body); letter-spacing: .04em; padding: 6px 8px; margin-bottom: 18px; }
.kicker { display: inline-block; font: 700 13px/1 var(--body); color: var(--accent); letter-spacing: .04em; margin-bottom: 12px; }
.sec-band { background: var(--yellow); }
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px 16px; font: 700 18px/1.3 var(--head); text-align: center; }
.whatwedo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.collage { position: relative; padding-bottom: 60px; }
.collage img { border-radius: 6px; width: 80%; }
.collage .collage-sm { position: absolute; width: 50%; right: 0; bottom: 0; border: 6px solid var(--bg); }
.feature { margin-top: 18px; }
.feature p { color: var(--muted); }
.sub { margin-bottom: 36px; }

/* course cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card-img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { text-decoration: none; }
.card-body p { font-size: 14px; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-foot .btn-yellow { flex: 1; text-align: center; max-width: 60%; }
.price s { color: var(--muted); font-size: 14px; }
.price b { font-size: 16px; }
.price.big b { font-size: 22px; }
.price.big { margin-left: 16px; }

/* reviews */
.reviews { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 20px; align-items: start; }
.reviews-head h2 { margin: 6px 0 22px; }
.review { margin: 0; background: #fff; border-radius: 4px; padding: 26px 22px; font-size: 14px; }
.review blockquote { margin: 0 0 18px; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.review img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.stars { color: var(--yellow); width: 100%; letter-spacing: 2px; }

/* course landing */
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.stats div { background: #fff; border-radius: 4px; padding: 14px; text-align: center; }
.stats strong { display: block; font-size: 18px; }
.stats span { font-size: 13px; color: var(--muted); }
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 36px 0; }
.offer-item p { color: var(--muted); }
.lessons { margin: 36px 0; }
.lesson { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lesson-num { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 700; }
.lesson h3 { display: flex; justify-content: space-between; gap: 10px; }
.sample { background: var(--accent); color: #fff; font: 500 11px/1 var(--body); border-radius: 3px; padding: 4px 8px; align-self: flex-start; }
.lesson ul { list-style: none; padding: 0; margin: 10px 0 0; }
.act > a, .act { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 5px 0; font-size: 15px; }
.act .ico { color: var(--muted); font-size: 12px; width: 16px; }
.act .d { color: var(--muted); font-size: 13px; }
.bio p { color: var(--ink); }

/* contact, auth, forms */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.contact-info { background: #fff; border-radius: 4px; padding: 28px; align-self: start; }
.contact-info h4 { margin: 0 0 4px; }
.contact-info div + div { margin-top: 20px; }
.form { display: grid; gap: 14px; max-width: 560px; }
.form.row { display: flex; flex-wrap: wrap; max-width: none; align-items: center; gap: 10px; margin-bottom: 18px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, textarea, select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; width: 100%; }
.form.row input, .form.row select { width: auto; flex: 1 1 180px; }
.auth { max-width: 520px; }
.error { background: #fde8e8; color: #8a1c1c; padding: 10px 14px; border-radius: 4px; }
.notice { background: #e6f4ff; padding: 10px 14px; border-radius: 4px; }
.legal-body { white-space: pre-line; font-size: 15px; }
.legal-body table { border-collapse: collapse; width: 100%; margin: 12px 0; white-space: normal; display: block; overflow-x: auto; }
.legal-body td, .legal-body th { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; font-size: 13px; }

/* progress + player */
.bar { height: 6px; background: #dfe6e6; border-radius: 3px; overflow: hidden; margin: 8px 0 4px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.in-player .footer { display: none; }
.player { display: grid; grid-template-columns: 360px 1fr; min-height: calc(100vh - 110px); }
.player-side { background: #fff; border-right: 1px solid var(--line); padding: 20px; overflow-y: auto; }
.player-side h1 { font-size: 20px; margin: 12px 0 6px; }
.back { font-size: 13px; text-decoration: none; color: var(--muted); }
.lessons.compact .lesson { grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; }
.lessons.compact .lesson-num { width: 30px; height: 30px; font-size: 12px; }
.lessons.compact h3 { font-size: 14px; }
.lessons.compact p { display: none; }
.act.current > a { color: var(--accent); font-weight: 600; }
.act.done .ico::after { content: ' ✓'; color: #2e9d57; }
.player-main { padding: 20px 28px 40px; }
.player-nav { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; }
.player-nav a { text-decoration: none; color: #1e4fb4; }
video { width: 100%; max-height: 72vh; background: #000; border-radius: 4px; }
.player-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.player-meta h2 { font-size: 22px; margin: 0; }
.done-row { margin-top: 18px; }
.workbook { max-width: 560px; margin: 20px auto; }
.workbook img { width: 170px; margin: 18px 0; }
.workbook h2 { font-size: 24px; }
.locked { background: #fff; padding: 40px; border-radius: 4px; text-align: center; }

/* admin */
.admin-nav { display: flex; gap: 18px; margin-bottom: 24px; font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.x { border: 0; background: none; color: #b00; cursor: pointer; font-size: 16px; }
.copy { font-family: monospace; }

/* footer */
.footer { background: #dadada; padding: 48px 0 20px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 110px; margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; margin: 4px 0; }
.footer-tag a { display: inline; text-decoration: underline; }
.footer h4 { margin: 0 0 8px; }
.copyright { margin-top: 28px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .whatwedo, .contact, .reviews, .footer-in { grid-template-columns: 1fr; }
  .grid, .offer { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .player { grid-template-columns: 1fr; }
  .player-side { order: 2; border-right: 0; }
  .burger { display: grid; gap: 5px; cursor: pointer; padding: 8px; }
  .burger span { width: 28px; height: 3px; background: #888; border-radius: 2px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 16px; box-shadow: 0 8px 12px rgba(0,0,0,.08); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .topbar-in { position: relative; min-height: 90px; }
  .brand img { width: 90px; }
}
@media (max-width: 600px) {
  .sec { padding: 48px 0; }
  .grid, .offer, .band, .row2 { grid-template-columns: 1fr; }
  .card-foot .btn-yellow { max-width: none; }
  .player-main { padding: 14px 16px 30px; }
}
@media (max-width: 900px) { .hero-img img { max-height: 520px; object-fit: cover; object-position: top; } }

.stars::before { content: '★★★★★'; }
.ico-vid::before { content: '▶'; }
.ico-doc::before { content: '▤'; }
