@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
:root{--ink:#202a40;--muted:#8791a4;--blue:#536fc9;--line:#edf0f5;--bg:#f7f8fc}
body{background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}
h1,h2,h3,h4,h5,.navbar-brand{font-family:'Plus Jakarta Sans',sans-serif;letter-spacing:-.5px}
.navbar{min-height:70px}.navbar-brand{font-size:17px}.brand-mark{display:inline-grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#e9efff;color:#536fc9;font-weight:800}
.btn-primary{background:var(--blue);border-color:var(--blue)}.btn-primary:hover{background:#435fb8;border-color:#435fb8}
.form-control,.form-select{border-color:#e4e8f0;border-radius:9px;padding:10px 12px;font-size:13px}.form-control:focus,.form-select:focus{border-color:#91a5ed;box-shadow:0 0 0 .2rem #536fc91a}
.hero-panel{background:#eaf0ff;border-radius:18px;padding:32px 36px;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#7287ce}.hero-panel h1{font-size:29px;font-weight:800;margin:9px 0}.hero-panel p{font-size:13px;color:#77839b}.hero-icon{width:100px;height:100px;border-radius:50%;background:#dce6ff;color:#6881d0;display:grid;place-items:center;font-size:55px;margin-right:28px}
.section-title{font-size:19px;font-weight:700}.course-card,.content-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.course-card{color:inherit;text-decoration:none;transition:.2s}.course-card:hover{border-color:#cbd6fb;transform:translateY(-2px);box-shadow:0 8px 22px #273c7110;color:inherit}.course-icon{width:45px;height:45px;border-radius:12px;background:#edf1ff;color:#607bd0;display:grid;place-items:center;font-size:22px;margin-bottom:15px}.tone-1{background:#e9f6f1;color:#45a080}.tone-2{background:#fff3e7;color:#d18c47}.tone-3{background:#f4edff;color:#9472c9}.tracking{letter-spacing:1px;font-size:9px}.course-card h5{font-size:15px;font-weight:700}.course-card p{font-size:11px;line-height:1.6;min-height:36px}.course-meta{border-top:1px solid #f0f1f5;padding-top:13px;margin-top:15px;display:flex;gap:12px;font-size:10px;color:#8992a3}
.empty-state{text-align:center;background:#fff;border:1px dashed #dfe4ee;border-radius:14px;padding:50px 20px}.empty-icon{margin:0 auto 12px;width:48px;height:48px;border-radius:13px;background:#f1f4fc;display:grid;place-items:center;font-size:24px;color:#7184c6}
.login-wrap{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;max-width:920px;margin:15px auto;min-height:480px}.login-aside{padding:55px 48px;background:#6079cb;color:#fff;display:flex;flex-direction:column;justify-content:center}.login-aside h1{font-size:32px;font-weight:800;line-height:1.2;margin:16px 0}.login-aside p{color:#e0e7ff;line-height:1.7}.login-features{display:grid;gap:12px;margin-top:25px;font-size:12px;color:#f1f4ff}.login-box{padding:55px 48px;align-self:center}.login-box h2{font-size:25px;font-weight:800;margin:9px 0}.login-box .form-label{font-size:11px;font-weight:700}
.course-heading{display:flex;gap:18px;align-items:center;background:#fff;border:1px solid var(--line);padding:24px;border-radius:15px}.course-heading .course-icon{margin:0;width:54px;height:54px}.course-heading h1,.page-heading h1{font-size:25px;font-weight:800;margin:7px 0}.back-link{display:inline-block;text-decoration:none;color:#657bc6;font-size:12px;font-weight:700;margin-bottom:16px}.content-panel h4{font-size:16px;font-weight:700}.pill-count{display:inline-block;border-radius:20px;padding:4px 10px;background:#f0f3ff;color:#657bc6;font-size:10px;font-weight:700;margin-left:5px}
.lesson-row,.quiz-row,.admin-list-row{display:flex;align-items:center;gap:12px;border-top:1px solid #f0f1f5;padding:13px 0}.lesson-number{width:30px;height:30px;border-radius:8px;background:#f1f4ff;color:#6d81c9;display:grid;place-items:center;font-size:11px;font-weight:700}.lesson-body{white-space:pre-wrap;background:#f8f9fc;padding:14px;border-radius:9px;margin:0 0 12px 42px;font-size:12px;line-height:1.7;color:#657086}.quiz-symbol{width:35px;height:35px;border-radius:9px;background:#f3efff;color:#9475c7;display:grid;place-items:center;font-size:19px}.empty-mini{border:1px dashed #e0e5ef;padding:22px;border-radius:9px;text-align:center;color:#9aa2b0;font-size:12px}
.page-heading{margin-bottom:22px}.question-block{padding:18px 0;border-bottom:1px solid var(--line)}.answer-option{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e9ecf2;border-radius:8px;margin:7px 0;font-size:12px;cursor:pointer}.answer-option:has(input:checked){border-color:#91a5ed;background:#f5f7ff}.answer-option input{accent-color:var(--blue)}.option-letter{font-weight:700;color:#667bc4}.result-card{max-width:800px;margin:0 auto}.result-check{width:55px;height:55px;border-radius:50%;background:#e9f8f0;color:#38966b;display:grid;place-items:center;font-size:30px;margin:0 auto 15px}.result-score{font:800 42px 'Plus Jakarta Sans';color:#526dc7;margin:15px}.result-score small{font-size:18px;color:#9ba3b2}.review-question{padding:14px 0;border-top:1px solid var(--line)}.review-question>b{font-size:12px}
@media(max-width:767px){.hero-panel{padding:24px 20px}.hero-panel h1{font-size:23px}.hero-icon{width:65px;height:65px;font-size:35px;margin:0}.login-wrap{grid-template-columns:1fr}.login-aside{display:none}.login-box{padding:35px 24px}.course-heading{padding:17px;align-items:flex-start}.course-heading h1{font-size:20px}.course-meta{gap:8px}}

.quiz-question-image{display:block;max-width:100%;max-height:420px;object-fit:contain;border:1px solid #e8ebf2;border-radius:10px;background:#fff;padding:5px}

.answer-option.answer-correct{border-color:#75c49c;background:#effaf4}
.answer-option.answer-wrong{border-color:#e6a0a0;background:#fff5f5}
.feedback-box{border-radius:10px;padding:14px 16px;font-size:13px;line-height:1.6}
.feedback-right{background:#effaf4;border:1px solid #ccebd9;color:#28744e}
.feedback-wrong{background:#fff8ed;border:1px solid #f4dfbd;color:#8b6228}

/* Clear red warning displayed beside the answer confirmation button */
.wrong-answer-notice{
  background:#fff0f0;
  border:1px solid #efb0b0;
  border-left:4px solid #dc3545;
  color:#a3212b;
  border-radius:10px;
  padding:12px 15px;
  min-width:260px;
  line-height:1.5;
}
.wrong-answer-notice b{color:#861923}
@media(max-width:600px){
  .wrong-answer-notice{width:100%;min-width:0}
  .wrong-answer-notice + .btn{width:100%}
}
