/* ── Lesson block renderer ── */

.lb-text {
  margin: 0.6rem 0 1rem;
  line-height: 1.75;
  direction: rtl;
}

.lb-figure {
  margin: 1.2rem 0;
  text-align: center;
}

/* Comprehension question (?) */
.lb-question {
  margin: 1.4rem 0;
  border: 2px solid #4a90d9;
  border-radius: 8px;
  padding: 0.9rem 1rem 0.9rem 1.2rem;
  background: #f0f7ff;
  position: relative;
  direction: rtl;
}

.lb-badge {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.lb-badge-q  { background: #4a90d9; }
.lb-badge-ex { background: #e0a82e; }

.lb-q-text {
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.lb-q-choices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lb-q-btn {
  text-align: right;
  padding: 0.4rem 0.7rem;
  border: 1px solid #b0c8f0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.12s;
}

.lb-q-btn:hover { background: #e4efff; }
.lb-correct     { background: #d4edda !important; border-color: #28a745 !important; }
.lb-wrong       { background: #f8d7da !important; border-color: #dc3545 !important; }

.lb-q-feedback {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.lb-ok  { color: #1b7a2b; }
.lb-err { color: #c0392b; }

.lb-q-explanation {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #555;
  background: #f4faff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border-right: 3px solid #4a90d9;
}

/* Practice exercise (!) */
.lb-exercise {
  margin: 1.4rem 0;
  border: 2px solid #e0a82e;
  border-radius: 8px;
  padding: 0.9rem 1rem 0.9rem 1.2rem;
  background: #fffdf0;
  position: relative;
  direction: rtl;
}

.lb-ex-prompt {
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.lb-ex-reveal {
  background: none;
  border: 1px solid #e0a82e;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.83rem;
  color: #856404;
}

.lb-ex-reveal:hover { background: #fff8e1; }

.lb-ex-solution {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  border-top: 1px solid #f0d884;
  padding-top: 0.5rem;
}
