/* Trauma Nursing Certification Canada LMS (learn.tncccanada.com). Brand #004B63; same look as the sales page. */
:root {
  --brand: #004B63; --brand-deep: #002F3F; --brand-soft: #E6F1F4; --accent: #F5B841; --accent-ink: #2A1E00;
  --heart: #D7263D; --ink: #0F2A33; --muted: #4D6670; --line: #D5E3E8; --bg: #FFFFFF; --bg-alt: #F5F8F9; --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
       background: var(--bg-alt); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* Top bar */
.top { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; }
.top .bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.top .bar img { height: 40px; width: auto; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; opacity: .9; }
.top nav a[aria-current="page"] { background: rgba(255,255,255,.14); opacity: 1; }
.top nav a.cta { background: var(--accent); color: var(--accent-ink); opacity: 1; }

/* Banners */
.bf { background: var(--heart); color: #fff; font-size: 15px; text-align: center; padding: 9px 16px; }
.bf a { color: #fff; font-weight: 700; }
.bf b { font-variant-numeric: tabular-nums; }
.opens { background: var(--brand-deep); color: rgba(255,255,255,.9); }
.opens .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 12px; padding-bottom: 14px; }
.opens b { color: var(--accent); }
.opens .cd { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }

/* Layout */
main { padding: 28px 0 80px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid2 { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; align-items: start; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.8vw, 28px); font-weight: 800; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
       font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-line { background: #fff; color: var(--brand); border: 2px solid var(--brand); }

/* Video */
.player { position: relative; border-radius: 14px; overflow: hidden; background: #0B1F27; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; background: #0B1F27; }
.player .soon { position: absolute; inset: 0; display: none; place-items: center; text-align: center; color: #fff; padding: 20px;
                background: radial-gradient(800px 400px at 70% 0%, #0A6E8C 0%, transparent 60%), linear-gradient(160deg, var(--brand), var(--brand-deep)); }
.player.missing .soon { display: grid; }
.player .soon img { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px; border: 3px solid rgba(255,255,255,.6); }
.vtitle { margin: 12px 0 2px; font-weight: 700; font-size: 18px; }

/* Lessons and sections */
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lesson { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.lesson .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
               background: var(--brand-soft); color: var(--brand); }
.lesson .t { flex: 1; min-width: 0; }
.lesson .t b { display: block; font-size: 15.5px; }
.lesson .t small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.lesson .st { flex: none; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.st.open { background: #E3F6EC; color: #11734A; }
.st.lock { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.lesson.playable { cursor: pointer; }
.lesson.playable:hover { border-color: var(--brand); }
.lesson.playable .num { background: var(--brand); color: #fff; }
.phase { margin-top: 30px; }
.phase > p { color: var(--muted); margin-bottom: 12px; }
details.sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.sec summary { cursor: pointer; list-style: none; padding: 15px 46px 15px 16px; font-weight: 700; position: relative; display: flex; gap: 12px; align-items: baseline; }
details.sec summary::-webkit-details-marker { display: none; }
details.sec summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 24px; color: var(--brand); font-weight: 600; }
details.sec[open] summary::after { content: "–"; }
details.sec summary .n { color: var(--brand); min-width: 2em; }
details.sec summary .c { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
details.sec .lessons { padding: 0 14px 14px; }
details.sec .lesson { border-color: transparent; background: var(--bg-alt); }

/* Side panels */
.side { display: grid; gap: 16px; }
.side .card h3 { font-size: 18px; }
.hb-card { display: flex; gap: 14px; align-items: center; }
.hb-card img { width: 64px; height: 64px; border-radius: 50%; flex: none; }

/* Forms (help) */
form label.l { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
form .row { margin-bottom: 14px; }
form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form input[type=text], form input[type=email], form select, form textarea { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { outline: 3px solid rgba(0,75,99,.25); border-color: var(--brand); }
.err { color: #B3001B; font-weight: 600; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -3px; font-size: 22px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { background: var(--brand-deep); color: rgba(255,255,255,.75); padding: 30px 0 90px; font-size: 14px; }
footer .f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer .f img.logo { height: 36px; width: auto; }
footer .mic { display: flex; align-items: center; gap: 10px; }
footer .mic img { height: 42px; width: auto; }
footer a { color: #fff; }

@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top .bar { flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .top nav { margin-left: 0; width: 100%; }
  .top nav a { padding: 6px 10px; font-size: 14px; }
  .card { padding: 18px; }
  form .two { grid-template-columns: 1fr; }
  .lesson .st { font-size: 11.5px; padding: 4px 8px; }
}
