/* Afriweb Free Online Ecommerce Course (/course). Uses the marketing layout's --bg, --card-bg,
   --text and --border, which switch with the site's light/dark theme. */
.course {
    --c-accent: #3b4ef0;
    --c-accent-2: #10b4f5;
    --c-violet: #6a11f0;
    --c-gold: #c49a34;
    --c-muted: #5f687a;
    --c-soft: #f3f5fc;
    --c-ok: #12804a;
    --c-ok-bg: #e7f6ee;
    --c-bad: #b42335;
    --c-bad-bg: #fdecee;
    --c-grad: linear-gradient(120deg, #10b4f5 0%, #3b4ef0 55%, #6a11f0 100%);
    width: 100%;
    min-width: 0;
    max-width: 980px;
    margin: 0 auto;
    overflow-wrap: break-word;
    padding: 28px 16px 64px;
    color: var(--text);
    line-height: 1.6;
}
html[data-theme="dark"] .course {
    --c-accent: #8b97ff;
    --c-muted: #a3abbd;
    --c-soft: #1a2030;
    --c-ok: #4ade80;
    --c-ok-bg: #16352a;
    --c-bad: #f5a3ac;
    --c-bad-bg: #3a1f22;
}
.course *, .course *::before, .course *::after { box-sizing: border-box; }
.course h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.2; margin: 0 0 12px; }
.course h2 { font-size: 1.35rem; margin: 28px 0 10px; }
.course h3 { font-size: 1.1rem; margin: 0 0 8px; }
.course p { margin: 0 0 12px; }
.course a { color: var(--c-accent); }
.course .muted { color: var(--c-muted); }
.course .small { font-size: .9rem; }

/* Top bar: back link + language */
.course-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.course-bar a { font-weight: 500; }
.course-lang { display: flex; align-items: center; gap: 8px; margin: 0; }
.course-lang label { font-size: .85rem; color: var(--c-muted); }
.course-lang select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: .9rem; }

/* Buttons */
.course .c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--c-grad); color: #fff !important; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; box-shadow: 0 6px 18px rgba(59, 78, 240, .28); }
.course .c-btn:hover { filter: brightness(1.06); }
.course .c-btn-ghost { background: transparent; color: var(--c-accent) !important; border: 1.5px solid var(--c-accent); box-shadow: none; }
.course .c-btn-sm { min-height: 38px; padding: 6px 16px; font-size: .92rem; }
.course .c-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }

/* Cards */
.c-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.c-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.c-stack > * + * { margin-top: 16px; }

/* Alerts */
.course .c-alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.course .c-alert-error { background: var(--c-bad-bg); color: var(--c-bad); }
.course .c-alert-success { background: var(--c-ok-bg); color: var(--c-ok); }

/* Landing hero */
.c-hero { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 6vw, 56px); background: var(--c-grad); color: #fff; }
.c-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.c-hero h1 { color: #fff; max-width: 640px; }
.c-hero p { max-width: 620px; font-size: 1.08rem; opacity: .95; }
.c-kicker { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); margin-bottom: 14px; }
.c-hero .c-btn { background: #fff; color: #3b4ef0 !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.c-hero .c-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .7); }
.c-hero-count { margin-top: 16px; font-size: .92rem; opacity: .9; }

.c-chapter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.c-chapter-list li { display: flex; gap: 12px; align-items: flex-start; }
.c-num { flex: 0 0 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; background: var(--c-soft); color: var(--c-accent); }
.c-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.c-steps li { counter-increment: s; display: flex; gap: 12px; }
.c-steps li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--c-grad); color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.c-cert-thumb { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); display: block; }

/* Forms */
.course form.c-form label { display: block; font-weight: 500; margin-bottom: 14px; }
.course form.c-form input[type=text], .course form.c-form input[type=email], .course form.c-form input[type=password], .course form.c-form input[type=tel], .course form.c-form select, .course form.c-form textarea, .course .c-input {
    display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 1rem; font-weight: 400;
}
.course form.c-form textarea { min-height: 110px; resize: vertical; }
.course .c-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.course .c-check input { margin-top: 5px; flex: 0 0 auto; width: 18px; height: 18px; }
.course .c-two { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.course .c-narrow { max-width: 560px; margin: 0 auto; }
.course .hint { display: block; font-size: .85rem; color: var(--c-muted); font-weight: 400; margin-top: 4px; }

/* Progress */
.c-progress { height: 14px; border-radius: 999px; background: var(--c-soft); overflow: hidden; border: 1px solid var(--border); }
.c-progress > span { display: block; height: 100%; background: var(--c-grad); border-radius: 999px; transition: width .6s ease; }
.c-progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: .92rem; color: var(--c-muted); }

/* Dashboard chapter rows */
.c-chapters { display: grid; gap: 10px; }
.c-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text) !important; text-decoration: none; }
a.c-row:hover { border-color: var(--c-accent); }
.c-row .c-row-main { flex: 1 1 auto; min-width: 0; }
.c-row .c-row-title { font-weight: 600; display: block; }
.c-row .c-row-sub { font-size: .85rem; color: var(--c-muted); }
.c-row.is-done .c-num { background: var(--c-grad); color: #fff; }
.c-row.is-locked { opacity: .55; }
.c-badge { flex: 0 0 auto; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c-accent); white-space: nowrap; }
.c-badge.ok { background: var(--c-ok-bg); color: var(--c-ok); }
.c-dash-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

/* Lesson */
.c-lesson { font-size: 1.05rem; }
.c-lesson > :first-child { margin-top: 0; }
.c-lesson h2 { font-size: 1.25rem; }
.c-lesson ul, .c-lesson ol { padding-left: 1.3em; margin: 0 0 14px; }
.c-lesson li { margin-bottom: 6px; }
.course-tip { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--c-soft); border-left: 4px solid var(--c-accent-2); }
.c-plan-box { border: 2px dashed var(--c-gold); background: color-mix(in srgb, var(--c-gold) 8%, var(--card-bg)); }
.c-plan-box h3 { color: var(--c-gold); }
.c-afriweb-box { border-left: 4px solid var(--c-accent-2); background: var(--c-soft); }
.c-choice { display: grid; gap: 8px; margin: 10px 0 14px; }
.c-choice label, .c-answer { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card-bg); cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.c-choice label:has(input:checked), .c-answer:has(input:checked) { border-color: var(--c-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-accent) 25%, transparent); }
.c-choice input, .c-answer input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.c-domain-row { display: flex; gap: 8px; }
.c-domain-row .c-input { margin-top: 0; }
.c-domain-msg { min-height: 1.4em; margin: 8px 0 0; font-weight: 500; }
.c-domain-msg.free { color: var(--c-ok); }
.c-domain-msg.taken { color: var(--c-bad); }

/* Shop preview (chapter 6) */
.c-browser { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; color: #1b2440; }
.c-browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #eef1f6; border-bottom: 1px solid #dde2ea; font-size: .82rem; color: #4b5568; }
.c-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d6e0; display: inline-block; }
.c-browser-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border-radius: 999px; padding: 4px 12px; }
.c-shop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--c-grad); color: #fff; font-weight: 700; }
.c-shop-head small { font-weight: 500; opacity: .9; }
.c-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.c-shop-item { border: 1px solid #e3e7ef; border-radius: 10px; overflow: hidden; font-size: .85rem; }
.c-shop-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9f6ff, #efe9ff); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.c-shop-item div:last-child { padding: 8px 10px; }
.c-shop-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Quiz */
.c-question { margin-bottom: 18px; }
.c-question legend { font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.c-question fieldset { border: 0; padding: 0; margin: 0; }
.c-qnum { display: block; font-size: .82rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.c-mark { border-radius: 14px; padding: 16px; border: 1px solid var(--border); background: var(--card-bg); }
.c-mark.ok { border-left: 5px solid var(--c-ok); }
.c-mark.bad { border-left: 5px solid var(--c-bad); }
.c-mark .r-ok { color: var(--c-ok); font-weight: 600; }
.c-mark .r-bad { color: var(--c-bad); font-weight: 600; }
.c-score-big { font-size: clamp(2.6rem, 10vw, 4rem); font-weight: 700; line-height: 1; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Graduate */
.c-celebrate { text-align: center; }
.c-celebrate .c-medal { font-size: 3.4rem; line-height: 1; }
.c-offer { border: 2px solid transparent; background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box, var(--c-grad) border-box; }
.c-offer ul { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.c-offer li { padding-left: 28px; position: relative; }
.c-offer li::before { content: "✔"; position: absolute; left: 0; color: var(--c-ok); font-weight: 700; }
.c-code { font-family: ui-monospace, Consolas, monospace; background: var(--c-soft); padding: 2px 8px; border-radius: 6px; }
.c-plan-list dt { font-weight: 600; margin-top: 14px; }
.c-plan-list dd { margin: 4px 0 0; white-space: pre-line; color: var(--text); }
.c-plan-list dd.empty { color: var(--c-muted); font-style: italic; }

@media (max-width: 760px) {
    .c-dash-grid { grid-template-columns: 1fr; }
    .course .c-two { grid-template-columns: 1fr; }
    .c-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-shop-grid .c-shop-item:nth-child(3) { display: none; }
}
@media print {
    .course-bar, .c-actions, .marketing-footer, header { display: none !important; }
}

/* ===================== Design layer (2026-11-20): hero, stats, cards, ring, celebrations ===================== */
.course h1, .course h2, .course h3 { font-weight: 600 !important; }
.course .c-btn { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.course .c-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(59, 78, 240, .35); }

/* Soft moving colour blobs behind gradient sections */
.c-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; z-index: -1; animation: cFloat 14s ease-in-out infinite alternate; }
.c-blob-1 { width: 320px; height: 320px; background: #22d3ee; top: -120px; right: -60px; }
.c-blob-2 { width: 260px; height: 260px; background: #a855f7; bottom: -120px; left: 20%; animation-duration: 18s; }
.c-blob-3 { width: 200px; height: 200px; background: #3b82f6; top: 30%; left: -80px; animation-duration: 22s; }
@keyframes cFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 20px) scale(1.12); } }

/* Hero: text + floating certificate */
.c-hero { isolation: isolate; }
.c-hero::after { display: none; }
.c-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(120deg, transparent 10%, #000 60%); mask-image: linear-gradient(120deg, transparent 10%, #000 60%); }
.c-hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.c-hero-text { position: relative; z-index: 1; }
.c-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
.c-hero-art { position: relative; z-index: 1; perspective: 1200px; }
.c-cert-float { position: relative; transform: rotateY(-14deg) rotateX(6deg) rotate(2deg); animation: cBob 6s ease-in-out infinite alternate; }
.c-cert-float img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px rgba(17, 12, 60, .45), 0 0 0 1px rgba(255, 255, 255, .5); }
.c-cert-badge { position: absolute; left: -14px; bottom: -14px; background: #fff; color: #3b4ef0; font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
@keyframes cBob { from { transform: rotateY(-14deg) rotateX(6deg) rotate(2deg) translateY(0); } to { transform: rotateY(-10deg) rotateX(4deg) rotate(1deg) translateY(-10px); } }

/* Stats strip */
.c-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: -28px 24px 0; position: relative; z-index: 2; }
.c-stat { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px 12px; text-align: center; box-shadow: 0 12px 30px rgba(20, 24, 60, .10); }
.c-stat-num { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c-stat-label { display: block; font-size: .85rem; color: var(--c-muted); margin-top: 2px; }

/* Feature cards */
.c-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.c-feature { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.c-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20, 24, 60, .12); }
.c-feature-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; font-size: 1.5rem; border-radius: 14px; background: var(--c-soft); margin-bottom: 12px; }

/* Section titles with a gradient underline */
.c-section { margin-top: 44px; }
.course .c-section-title { text-align: center; font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 22px; }
.c-section-title::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--c-grad); margin: 10px auto 0; }

/* Chapter cards */
.c-chapter-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.c-chapter-card { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 18px 22px; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.c-chapter-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-grad); opacity: .85; }
.c-chapter-card:hover { transform: translateY(-3px); border-color: var(--c-accent); box-shadow: 0 14px 30px rgba(20, 24, 60, .10); }
.course .c-chapter-card h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.c-chapter-card p { margin: 0; }
.c-chapter-card-top { display: flex; align-items: center; gap: 10px; }
.c-chapter-icon { font-size: 1.6rem; line-height: 1; }
.c-chapter-no { font-size: .78rem; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: .04em; }

/* Timeline */
.c-timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; position: relative; }
.c-timeline::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--c-grad); opacity: .5; }
.c-timeline li { position: relative; display: flex; gap: 16px; align-items: center; padding: 8px 0; }
.c-timeline li > span:last-child { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; flex: 1; min-width: 0; }
.c-timeline-dot { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--c-grad); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--bg), 0 8px 18px rgba(59, 78, 240, .35); position: relative; }

/* Closing call-to-action band */
.c-cta-band { position: relative; overflow: hidden; isolation: isolate; margin-top: 48px; border-radius: 24px; padding: clamp(28px, 6vw, 48px); text-align: center; color: #fff; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%); }
.course .c-cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.c-cta-band p { opacity: .85; margin-bottom: 20px; }
.course .c-cta-band .c-btn { background: #fff; color: #3b4ef0 !important; }
.c-cta-band .c-blob { opacity: .45; }

/* Dashboard: progress ring, icons, next-up glow */
.c-progress-card { display: flex; align-items: center; gap: 20px; }
.c-ring { width: 120px; height: 120px; flex: 0 0 120px; }
.c-ring-track { fill: none; stroke: var(--c-soft); stroke-width: 11; }
.c-ring-bar { fill: none; stroke: url(#cRingGrad); stroke-width: 11; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset 1s ease; }
.c-ring-num { font-size: 24px; font-weight: 800; fill: var(--text); }
.c-ring-sub { font-size: 12px; fill: var(--c-muted); }
.course .c-progress-text h3 { margin-bottom: 4px; }
.c-progress-text p { margin: 0 0 4px; }
.c-row { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.c-row:hover { transform: translateX(4px); box-shadow: 0 10px 24px rgba(20, 24, 60, .08); }
.c-row-icon { font-size: 1.35rem; flex: 0 0 30px; width: 30px; text-align: center; }
.c-row.is-next { border: 2px solid transparent; background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box, var(--c-grad) border-box; box-shadow: 0 10px 28px rgba(59, 78, 240, .18); }
.course .c-badge-next { background: var(--c-grad); color: #fff; }

/* Chapter header + reading progress */
.c-read-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 50; pointer-events: none; }
.c-read-progress span { display: block; height: 100%; width: 0; background: var(--c-grad); box-shadow: 0 0 10px rgba(59, 78, 240, .6); }
.c-chapter-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 28px 28px 22px; margin-bottom: 18px; color: #fff; background: var(--c-grad); }
.course .c-chapter-hero h1 { color: #fff; margin: 4px 0 8px; max-width: 80%; }
.c-chapter-meta { margin: 0; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.course .c-chapter-intro { margin: 0; opacity: .95; max-width: 640px; }
.c-chapter-bignum { position: absolute; right: 18px; bottom: -40px; font-size: 11rem; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .14); z-index: -1; }
.c-chapter-hero-icon { position: absolute; right: 26px; top: 22px; font-size: 2.6rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); }
.c-chapter-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.c-chapter-dots span { width: 22px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .3); }
.c-chapter-dots span.done { background: rgba(255, 255, 255, .85); }
.c-chapter-dots span.now { background: #fff; width: 36px; }
.c-lesson h2 { position: relative; padding-left: 14px; }
.c-lesson h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--c-grad); }
.course .course-tip { position: relative; padding-left: 48px; }
.course-tip::before { content: "💡"; position: absolute; left: 14px; top: 12px; font-size: 1.2rem; }

/* Quiz answers with A/B/C badges */
.c-question .c-choice { counter-reset: ans; }
.course .c-answer { counter-increment: ans; position: relative; align-items: center; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.c-answer::before { content: counter(ans, upper-alpha); flex: 0 0 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; background: var(--c-soft); color: var(--c-accent); }
.course .c-answer input { position: absolute; opacity: 0; pointer-events: none; margin: 0; }
.c-answer:hover { transform: translateX(3px); border-color: var(--c-accent); }
.c-answer:has(input:checked) { background: color-mix(in srgb, var(--c-accent) 9%, var(--card-bg)); }
.c-answer:has(input:checked)::before { background: var(--c-grad); color: #fff; }
.c-answer:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--c-accent) 45%, transparent); outline-offset: 2px; }

/* Results */
.c-score-ring { width: 150px; height: 150px; margin: 14px auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(#10b4f5, #3b4ef0, #6a11f0, #10b4f5); padding: 9px; }
.c-score-ring .c-score-big { width: 100%; height: 100%; border-radius: 50%; background: var(--card-bg); -webkit-background-clip: border-box; background-clip: border-box; color: var(--c-accent); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }

/* Graduate */
.c-celebrate { position: relative; overflow: hidden; }
.c-celebrate .c-medal { display: inline-flex; width: 96px; height: 96px; align-items: center; justify-content: center; border-radius: 50%; font-size: 3rem; background: radial-gradient(circle at 35% 30%, #fff6d6, #f6dc8c 45%, #c49a34 100%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-gold) 30%, transparent), 0 16px 36px rgba(196, 154, 52, .45); animation: cPop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes cPop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.c-offer { position: relative; overflow: hidden; }
/* Corner ribbon: a fixed-width band turned 45 degrees whose centre sits the same distance (32px) from the
   top and right edges, so it crosses the corner evenly and both ends are cut off by the card. */
.c-ribbon { position: absolute; top: 16px; right: -48px; width: 160px; padding: 6px 0; line-height: 20px; text-align: center; transform: rotate(45deg); background: var(--c-grad); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 16px rgba(59, 78, 240, .35); }
.course .c-offer h2 { padding-right: 70px; }

/* Confetti canvas */
.c-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@media (max-width: 860px) {
    .c-hero-split { grid-template-columns: 1fr; }
    .c-hero-art { max-width: 420px; width: 100%; margin: 8px auto 0; }
    .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -20px 10px 0; }
    .c-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .c-progress-card { flex-direction: column; text-align: center; }
    .c-chapter-hero { padding: 22px 18px 18px; }
    .course .c-chapter-hero h1 { max-width: 82%; font-size: 1.5rem; }
    .c-chapter-hero-icon { font-size: 2rem; right: 16px; top: 18px; }
    .c-chapter-bignum { font-size: 8rem; }
    .c-ribbon { font-size: .9rem; }
    .c-chapter-cards { grid-template-columns: 1fr; gap: 14px; }
    .c-chapter-cover { aspect-ratio: auto; height: 96px; }
    .c-chapter-cover-icon { width: 58px; height: 58px; padding: 14px; border-radius: 18px; }
    .c-chapter-cover-num { font-size: 4rem; bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) {
    .c-blob, .c-cert-float, .c-celebrate .c-medal { animation: none !important; }
    .course .c-btn:hover, .c-feature:hover, .c-chapter-card:hover, a.c-row:hover, .c-answer:hover { transform: none; }
}

/* Answer and plan-choice cards must stay flex inside .c-form (its "label { display: block }" is more specific). */
.course form.c-form .c-choice label, .course form.c-form .c-answer { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 400; }
.course form.c-form .c-choice label input { margin: 0; }
html[data-theme="dark"] .c-answer::before { background: #283252; color: #b9c2ff; }
/* Phones: longer translations of the status badges ("Kugqityiwe · 5/5") wrap instead of widening the page. */
@media (max-width: 520px) {
    .c-row { gap: 10px; padding: 12px; }
    .course .c-badge { white-space: normal; text-align: center; max-width: 92px; line-height: 1.25; }
    .c-row-title { overflow-wrap: anywhere; }
}

/* Top bar: back link and a compact language pill on one row (2026-11-20). The visible "Language" label
   was pushed out of line by the site-wide label style; it is now screen-reader only. */
.course .course-bar { flex-wrap: nowrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.course .course-back { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; text-decoration: none; }
.course .course-back-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course .course-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.course .course-lang { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 0 4px 0 12px; height: 40px; border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); box-shadow: 0 4px 14px rgba(20, 24, 60, .06); transition: border-color .15s ease, box-shadow .15s ease; }
.course .course-lang:hover, .course .course-lang:focus-within { border-color: var(--c-accent); box-shadow: 0 6px 18px rgba(59, 78, 240, .15); }
.course .course-lang-icon { font-size: 1rem; line-height: 1; }
.course .course-lang select { height: 38px; margin: 0; padding: 0 8px 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: none; }
.course .course-lang select:focus { outline: none; }
html[data-theme="dark"] .course .course-lang select option { background: #1c212b; color: #d7d8dc; }
@media (max-width: 520px) {
    .course .course-bar { gap: 8px; }
    .course .course-back { font-size: .9rem; }
    .course .course-lang { height: 36px; padding-left: 10px; }
    .course .course-lang select { height: 34px; font-size: .88rem; }
}

/* Landing page: the language pill sits inside the hero, top right, as frosted glass. */
.c-hero-lang { position: absolute; top: 18px; right: 18px; z-index: 3; }
.course .c-hero-lang .course-lang { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .38); box-shadow: 0 8px 22px rgba(20, 12, 80, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.course .c-hero-lang .course-lang:hover, .course .c-hero-lang .course-lang:focus-within { border-color: #fff; background: rgba(255, 255, 255, .24); }
.course .c-hero-lang .course-lang select { color: #fff; }
.course .c-hero-lang .course-lang select option { color: #1b2440; background: #fff; }
.course-landing { padding-top: 20px; }
@media (max-width: 860px) {
    .c-hero-lang { position: static; justify-self: end; margin: -6px -6px 0 0; }
    .c-hero-split { gap: 18px; }
}

/* ===================== Blog look (2026-11-20): same width, kicker, highlight, illustrated chapter cards, band ===================== */
.course-landing { max-width: 1080px; padding-left: 16px; padding-right: 16px; }
.course .c-kicker { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.c-hero-hl { background: linear-gradient(90deg, #a5f3fc, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c-hero-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.course .c-hero h1 { font-weight: 700 !important; line-height: 1.15; }
.c-ico { width: 100%; height: 100%; display: block; }

/* Feature cards: colour icon tiles instead of emoji */
.c-feature { position: relative; overflow: hidden; border-radius: 20px; }
.c-feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--cat), var(--cat2)); opacity: .08; }
.course .c-feature-icon { width: 52px; height: 52px; padding: 12px; color: #fff; border-radius: 16px; background: linear-gradient(135deg, var(--cat, #10b4f5), var(--cat2, #6a11f0)); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--cat, #3b4ef0) 70%, transparent); }
.c-feature:hover { box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--cat, #3b4ef0) 55%, transparent); border-color: color-mix(in srgb, var(--cat, #3b4ef0) 45%, var(--border)); }

/* Chapter cards, like the blog's article cards: colour cover with a line icon, chip + minutes, title, intro */
.c-chapter-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.course .c-chapter-card { display: flex; flex-direction: column; padding: 0; border-radius: 20px; }
.c-chapter-card::before { display: none; }
.c-chapter-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--cat, #3b4ef0) 60%, transparent); border-color: color-mix(in srgb, var(--cat, #3b4ef0) 45%, var(--border)); }
.c-chapter-cover { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cat, #10b4f5), var(--cat2, #6a11f0)); }
.c-chapter-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px); background-size: 18px 18px; }
.c-chapter-cover::after { content: ""; position: absolute; z-index: -1; width: 160px; height: 160px; border-radius: 50%; left: -50px; top: -70px; background: radial-gradient(rgba(255, 255, 255, .35), transparent 70%); }
.c-chapter-cover-icon { width: 76px; height: 76px; padding: 18px; color: #fff; border-radius: 22px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 14px 30px rgba(10, 10, 40, .25); transform: rotate(-4deg); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.c-chapter-card:hover .c-chapter-cover-icon { transform: rotate(3deg) scale(1.08); }
.c-chapter-cover-num { position: absolute; right: 14px; bottom: -14px; font-size: 5.2rem; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .22); letter-spacing: -.04em; }
.c-chapter-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.c-chapter-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px !important; font-size: .82rem; color: var(--c-muted); }
.c-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; background: color-mix(in srgb, var(--cat, #3b4ef0) 14%, var(--card-bg)); color: color-mix(in srgb, var(--cat, #3b4ef0) 75%, var(--text)); }
.c-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.c-meta-item svg { width: 14px; height: 14px; opacity: .75; }
.course .c-chapter-card h3 { margin: 6px 0 6px; font-size: 1.12rem; line-height: 1.35; }

/* Closing band: text left, buttons right (as on the blog) */
.course .c-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; text-align: left; padding: clamp(24px, 5vw, 40px); }
.course .c-cta-band h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 6px; font-weight: 700 !important; }
.course .c-cta-band p { margin: 0; max-width: 560px; }
.course .c-cta-band > div:not(.c-cta-actions) { flex: 1 1 300px; min-width: 0; }
.c-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }
.course .c-cta-band .c-btn-ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: none; }

/* Dashboard rows and chapter header: the same line icons */
.course .c-row-icon { flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--cat, #10b4f5), var(--cat2, #6a11f0)); }
.c-row.is-locked .c-row-icon { background: var(--c-soft); color: var(--c-muted); }
.course .c-chapter-hero-icon { width: 58px; height: 58px; padding: 13px; color: #fff; border-radius: 18px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 10px 24px rgba(10, 10, 40, .2); filter: none; }

@media (max-width: 860px) {
    .c-hero-split { grid-template-columns: 1fr; }
    .course .c-cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
    .c-chapter-cards { grid-template-columns: 1fr; gap: 14px; }
    .c-chapter-cover { aspect-ratio: auto; height: 96px; }
    .c-chapter-cover-icon { width: 58px; height: 58px; padding: 14px; border-radius: 18px; }
    .c-chapter-cover-num { font-size: 4rem; bottom: -10px; }
    .course .c-chapter-hero-icon { width: 46px; height: 46px; padding: 10px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .c-chapter-card:hover .c-chapter-cover-icon { transform: rotate(-4deg); }
}
