/*--------------------------------------------------------------
# E-learning components – extends assets/css/style.css
# Theme colours: #FFD483 (sidebar) · #149ddd (accent) · #173b6c (titles)
--------------------------------------------------------------*/
.inner-page { padding-top: 25px; }
.inner-page .card { margin-bottom: 15px; border: 1px solid #e3e9f2; box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.05); }
.inner-page .card-title { font-family: "Raleway", sans-serif; font-weight: 700; color: #173b6c; margin-bottom: 14px; padding-bottom: 10px; position: relative; }
.inner-page .card-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: #149ddd; }
.inner-page .card-body { line-height: 1.75; }
.inner-page .card-body ul li, .inner-page .card-body ol li { margin-bottom: 6px; }
.inner-page h6.sub { font-family: "Poppins", sans-serif; font-weight: 600; color: #173b6c; margin: 18px 0 8px; }
.breadcrumbs h2 { font-weight: 400; }
@media (max-width: 1199px) { .breadcrumbs h2 { padding-right: 52px; font-size: 22px; } }
.web3-strip .card-title::after { display: none; }

/* Learning objectives / key takeaways */
.objectives { background: #f5f8fd; border-left: 4px solid #149ddd; padding: 14px 18px; }
.objectives ul { margin-bottom: 0; }
.takeaways { background: #fff8e6; border-left: 4px solid #FFD483; padding: 14px 18px; }
.takeaways ul { margin-bottom: 0; }

/* Definition / note boxes */
.def-box { background: #e4edf9; padding: 12px 16px; margin: 10px 0 14px; border-left: 4px solid #173b6c; }
.note-box { background: #fff8e6; padding: 10px 14px; margin: 12px 0; border-left: 4px solid #FFD483; font-size: 15px; }
.note-box i { color: #b07a00; }

/* Tables */
.inner-page .table thead th { background: #173b6c; color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; vertical-align: top; }
.inner-page .table td, .inner-page .table th { font-size: 15px; }

/* Code */
pre.code { background: #050d18; color: #e6edf3; padding: 16px 18px; font-size: 13.5px; line-height: 1.6; overflow: auto; border-left: 4px solid #FFD483; border-radius: 2px; }
code.inl { background: #e4edf9; color: #173b6c; padding: 1px 6px; font-size: 90%; border-radius: 2px; }

/* Diagrams (block chain, flows) */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 10px 0; }
.flow .node { flex: 1 1 150px; background: #fff; border: 2px solid #173b6c; padding: 10px 12px; font-size: 14px; }
.flow .node b { display: block; color: #173b6c; font-family: "Poppins", sans-serif; margin-bottom: 4px; }
.flow .arrow { display: flex; align-items: center; justify-content: center; padding: 0 6px; color: #149ddd; font-size: 26px; }
.flow .mono { font-family: Consolas, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
@media (max-width: 767px) { .flow .arrow { width: 100%; transform: rotate(90deg); padding: 0; } }

/* Q/A */
.qa-list .accordion-button { font-weight: 600; color: #173b6c; font-size: 15.5px; }
.qa-list .accordion-button:not(.collapsed) { background: #e4edf9; color: #173b6c; box-shadow: none; }
.qa-list .accordion-button:focus { box-shadow: 0 0 0 .15rem rgba(20, 157, 221, .25); }
.qa-list .accordion-body { line-height: 1.75; }
.qa-no { color: #149ddd; font-family: "Poppins", sans-serif; min-width: 38px; }

/* MCQ */
.mcq { border: 1px solid #e3e9f2; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.mcq-q { font-weight: 600; color: #050d18; margin-bottom: 10px; }
.mcq-no { color: #149ddd; font-family: "Poppins", sans-serif; }
.mcq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 10px; }
@media (max-width: 767px) { .mcq-options { grid-template-columns: 1fr; } }
.mcq-opt { display: block; padding: 6px 10px; border: 1px solid #e3e9f2; cursor: pointer; transition: .2s; }
.mcq-opt:hover { border-color: #149ddd; background: #f5f8fd; }
.mcq-opt input { margin-right: 6px; }
.mcq-opt.correct { border-color: #18a558; background: #e9f8ef; }
.mcq-opt.wrong { border-color: #d9534f; background: #fdeeee; }
.mcq-result { margin-left: 10px; font-weight: 600; }
.mcq-result.ok { color: #18a558; }
.mcq-result.no { color: #d9534f; }
.mcq-answer { margin-top: 10px; }
.mcq-answer summary { cursor: pointer; color: #149ddd; font-weight: 600; }
.mcq-answer p { margin: 8px 0 0; background: #f5f8fd; padding: 10px 12px; }
.mcq-actions { margin-top: 6px; }
.mcq-score { margin-left: 10px; font-family: "Poppins", sans-serif; font-weight: 600; color: #173b6c; }

/* References */
.ref-note { font-size: 14px; color: #555; background: #f5f8fd; padding: 10px 12px; }
.ref-list li { font-size: 14.5px; margin-bottom: 8px; word-break: break-word; }

/* Chapter navigation */
.chapter-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* Home page */
.web3-strip { border-left: 5px solid #149ddd !important; }
.feature-box { display: flex; gap: 14px; margin-bottom: 22px; }
.feature-box .ic { flex: 0 0 50px; height: 50px; border-radius: 50%; background: #149ddd; display: flex; align-items: center; justify-content: center; }
.feature-box .ic i { color: #fff; font-size: 22px; }
.feature-box h6 { font-weight: 700; color: #343a40; margin-bottom: 4px; font-size: 16.5px; }
.feature-box p { font-size: 14.5px; margin: 0; line-height: 1.65; }
.module-title { font-family: "Poppins", sans-serif; font-weight: 600; color: #173b6c; font-size: 16px; margin: 14px 0 12px; }
.module-title span { background: #FFD483; padding: 3px 10px; margin-right: 8px; font-size: 12.5px; }
.chapter-card { display: block; background: #fff; padding: 14px 16px; height: 100%; border: 1px solid #e3e9f2; transition: .3s; color: #272829; }
.chapter-card:hover { border-color: #149ddd; box-shadow: 0 4px 20px rgba(20, 157, 221, .15); transform: translateY(-2px); color: #272829; }
.chapter-card .chn { font-family: "Poppins", sans-serif; font-weight: 700; color: #149ddd; font-size: 12.5px; }
.chapter-card h6 { font-weight: 700; color: #173b6c; margin: 4px 0 6px; font-size: 15.5px; }
.chapter-card p { font-size: 13.5px; margin: 0; line-height: 1.55; }
.hashtags span { display: inline-block; background: #e4edf9; color: #173b6c; font-size: 13px; font-weight: 600; padding: 4px 12px; margin: 0 6px 8px 0; }

/* Q/A panel */
.qp-chapter { margin-bottom: 8px; }
.qp-toc a { display: inline-block; margin: 0 6px 8px 0; padding: 4px 10px; border: 1px solid #e3e9f2; font-size: 13.5px; }
.qp-toc a:hover { border-color: #149ddd; }

@media print {
  #header, #footer, .mobile-nav-toggle, .back-to-top, .chapter-nav, .mcq-check, .mcq-actions { display: none !important; }
  #main { margin-left: 0 !important; }
  .accordion-collapse { display: block !important; }
}
