:root {
  --navy: #0F2942;
  --teal: #0D7377;
  --teal-soft: #E3F1F1;
  --ink: #1C2B3A;
  --muted: #55677A;
  --line: #D8E0E7;
  --bg: #F5F8FA;
  --card: #FFFFFF;
  --good: #1E7B3A;
  --warn: #A15C00;
  --bad: #B3261E;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--teal); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 1.8rem; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem 1rem; background: var(--navy); color: #fff;
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand img { border-radius: 6px; background: #fff; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { color: #BFD7D8; font-size: .75rem; }
#nav { display: flex; flex-wrap: wrap; gap: .3rem; }
#nav a, #nav button {
  color: #fff; text-decoration: none; padding: .4rem .7rem; border-radius: 6px;
  background: transparent; border: 1px solid transparent; font: inherit; cursor: pointer;
}
#nav a:hover, #nav button:hover, #nav a.on { border-color: #BFD7D8; }
#nav .mode { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; margin-right: .3rem; }
#nav .mode button { border-radius: 999px; padding: .3rem .8rem; border: 0; font-weight: 600; }
#nav .mode button.on { background: #fff; color: var(--navy); }
#nav .mode button:hover:not(.on) { background: rgba(255,255,255,.18); }

main { max-width: 980px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; margin: 0 0 1rem; }
.hero { background: var(--navy); color: #fff; border-radius: 12px; padding: 1.6rem 1.4rem; margin-bottom: 1.2rem; }
.hero h1 { color: #fff; }
.hero p { color: #DCE8EE; max-width: 46rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; background: var(--teal-soft); color: var(--teal); }
.pill.good { background: #E4F3E8; color: var(--good); }
.pill.warn { background: #FBEFD9; color: var(--warn); }
.pill.bad { background: #F9E1DF; color: var(--bad); }

form { display: grid; gap: .7rem; }
label { display: grid; gap: .25rem; font-weight: 600; font-size: .92rem; }
input, select, textarea {
  font: inherit; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9ED3D4; outline-offset: 1px; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 200px; }

button, .btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
  padding: .6rem 1rem; border-radius: 7px; border: 1px solid var(--teal); background: var(--teal); color: #fff;
}
button.ghost, .btn.ghost { background: #fff; color: var(--teal); }
button.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
button:disabled { opacity: .55; cursor: not-allowed; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }

.msg { padding: .6rem .8rem; border-radius: 7px; margin: .5rem 0; }
.msg.ok { background: #E4F3E8; color: var(--good); }
.msg.err { background: #F9E1DF; color: var(--bad); }
.msg.info { background: var(--teal-soft); color: var(--teal); }

table { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--navy); background: #EEF3F6; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }

.modules { display: grid; gap: .7rem; }
.module { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.module h3 { margin: 0 0 .2rem; }
.video { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; margin: .8rem 0; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.q { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; margin: .5rem 0; }
.q legend { font-weight: 600; padding: 0 .3rem; }
.q label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: .25rem 0; }
.q input { width: auto; margin-top: .3rem; }
.q label.right { background: #E4F3E8; color: var(--good); border-radius: 6px; font-weight: 600; }
.model { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: .7rem .9rem; border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .45rem .8rem; border-radius: 7px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tick { color: var(--good); font-weight: 700; }
.printonly { display: none; }
input.check { width: auto; }
.pl { white-space: pre-line; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .2rem .8rem; margin: .3rem 0 .8rem; }
.checks label { display: flex; align-items: center; gap: .45rem; font-weight: 400; }
details.others { margin-top: 1rem; }
.card.todo { border-left: 5px solid var(--warn); }
.card.todo h2 { margin-top: 0; }
.cert-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: #E4F3E8; color: var(--good); border-radius: 8px; padding: .5rem .8rem; margin: .6rem 0 .2rem; }
label.consent { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
label.consent input { margin-top: .3rem; }
.certificate { background: #fff; border: 10px solid var(--navy); outline: 2px solid var(--teal); outline-offset: -18px;
  padding: 2.4rem 2rem; text-align: center; max-width: 820px; margin: 0 auto 1rem; }
.cert-brand { display: flex; gap: .7rem; align-items: center; justify-content: center; text-align: left; color: var(--navy); }
.cert-kicker { margin: 1.4rem 0 .4rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.cert-name { font-size: 2rem; font-weight: 700; color: var(--navy); margin: .3rem 0; }
.cert-course { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin: .3rem 0 .8rem; }
.cert-table { margin: 1rem auto; max-width: 640px; text-align: left; }
@media print { .certificate { border-width: 8px; margin: 0; max-width: none; } }
.card.welcome { border: 2px solid var(--teal); background: var(--teal-soft); }
.card.welcome h2 { margin-top: 0; }
.course-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.course-head h3 { margin: 0 0 .2rem; }
.course-head .pill { white-space: nowrap; }
.course.locked { background: #FAFBFC; border-style: dashed; }
.module-list { display: grid; margin-top: .6rem; }
.module-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.module-row:first-child { border-top: 0; }
.row-end { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .module-row, .course-head { flex-direction: column; align-items: stretch; } .row-end { justify-content: flex-start; } }
details summary { cursor: pointer; color: var(--navy); font-weight: 600; padding: .4rem 0; }

@media print {
  .top, .foot, .actions, .noprint, #nav { display: none !important; }
  .printonly { display: block; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .card, .scroll { border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
.pl.todo-line { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: .5rem .8rem; border-radius: 0 8px 8px 0; }
.choices { display: grid; gap: .5rem; margin: .6rem 0; }
button.choice { text-align: left; background: #fff; color: var(--navy); border: 1px solid var(--line); font-weight: 500; white-space: normal; }
button.choice.picked { border: 2px solid var(--navy); }
button.choice.right { background: #E4F3E8; color: var(--good); border-color: var(--good); }
/* Course shop: picture cards */
.shop-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0 0 1rem; }
.shop-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.shop-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--teal-soft); }
.shop-img.none { visibility: hidden; }
.shop-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.shop-body h3 { margin: 0; }
.shop-body p { margin: 0; }
.shop-kind { font-size: .8rem; }
.shop-body details summary { cursor: pointer; color: var(--teal); font-size: .9rem; }
.shop-price { margin-top: auto !important; padding-top: .4rem; font-weight: 600; }
.shop-body .actions { margin: .3rem 0 0; }
/* Module steps: Watch, Read, Try it, Check, one at a time */
.stepper { scroll-margin-top: 4.5rem; }
.steps { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.steps .step { display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--navy); border: 1px solid var(--line); font-weight: 600; padding: .45rem .8rem; }
.steps .step.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.steps .step.done { border-color: var(--teal); color: var(--teal); }
.step-n { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: .8rem; }
.steps .step.on .step-n { background: #fff; color: var(--navy); }
.step-nav { justify-content: space-between; }
.transcript-card h3 { margin: 0 0 .2rem; }
.transcript { position: relative; max-height: 13rem; overflow-y: auto; padding-right: .4rem; line-height: 1.7; }
.transcript p { margin: 0 0 .7rem; }
.cue { cursor: pointer; border-radius: 4px; transition: background .2s, color .2s; }
.cue:hover { background: var(--teal-soft); }
.cue.on { background: var(--teal); color: #fff; }
.deck-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 0 0 .6rem; }
.deck-bar button { padding: .35rem .7rem; }
.note-card { min-height: 12rem; }
@media (max-width: 520px) { .steps { flex-wrap: nowrap; gap: .3rem; } .steps .step { padding: .35rem .45rem; font-size: .82rem; gap: .3rem; flex: 1; justify-content: center; } .step-n { width: 1.15rem; height: 1.15rem; font-size: .7rem; } }
/* Home page: the free course picture opens the course */
.free-preview { position: relative; display: block; border-radius: 10px; overflow: hidden; margin: .4rem 0 .8rem; }
.free-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.free-preview .play { position: absolute; right: 1rem; bottom: 1rem; width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.6rem; padding-left: .25rem; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.free-preview:hover .play { background: #fff; transform: scale(1.05); }
/* Link back to the main EdTech Assurance website */
.parent-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #08182A; color: #BFD7D8; font-size: .8rem; padding: .35rem 1rem; }
.parent-bar a { color: #fff; }
.parent-bar a:hover { color: #14A3A8; }
@media (max-width: 600px) { .parent-bar span { display: none; } .parent-bar { justify-content: flex-end; } }
.brand svg { flex: none; }
.foot a { color: inherit; }
