/* ============================================================
   myrscit.com — assessment.css
   Lightweight stylesheet for Assessment / Quiz article pages.
   Loaded in addition to style.css (shared header/footer/vars).
   Kept separate & minimal so quiz pages stay fast-loading.
   ============================================================ */

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 18px 0 6px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { color: var(--border); }
.breadcrumb span[aria-current] { color: var(--text-muted); }

/* ── Article Header ── */
.article-header { padding: 10px 0 28px; }

.article-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin: 8px 0 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.article-meta strong { color: var(--text); font-weight: 700; }

.article-featured-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-intro p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 14px;
}

/* ── Info strip (exam meta table) ── */
.exam-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 8px;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.exam-info-grid div {
  text-align: center;
  padding: 6px 4px;
}

.exam-info-grid strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 800;
}

.exam-info-grid small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Section headings inside article ── */
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 34px 0 14px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.article-body > .article-intro h2:first-child,
.article-body h2:first-child { border-top: none; padding-top: 0; }

/* ── Quick jump grid ── */
.quiz-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 8px;
}

.quiz-jump a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.quiz-jump a:hover { background: var(--primary); color: #fff; }

/* ── Question Card ── */
.quiz-question {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  background: #fff;
  scroll-margin-top: calc(var(--nav-h) + 14px);
}

.quiz-question h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.quiz-question .options {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.quiz-question .options li {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.88rem;
  color: var(--text);
  transition: var(--transition);
}

.quiz-question.revealed .options li.correct-option {
  color: #15803d;
  font-weight: 700;
  background: #f0fdf4;
  border-color: #86efac;
}

.btn-solution {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-solution:hover { background: var(--primary); color: #fff; }

.solution-box {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text);
}

.solution-box.show { display: block; }

.solution-box .sol-answer {
  color: #15803d;
  font-weight: 700;
}

/* ── Pagination (prev / next assessment) ── */
.quiz-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 30px 0 14px;
}

.quiz-pagination a,
.quiz-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.quiz-pagination a { color: var(--primary); border-color: var(--primary-light); background: var(--primary-light); }
.quiz-pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.quiz-pagination span.disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Bottom CTA row ── */
.quiz-cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 30px;
}

.quiz-cta-row a {
  text-align: center;
  padding: 13px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: var(--transition);
}

.quiz-cta-row a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ── Author box ── */
.author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 10px 0 30px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-box strong { display: block; font-size: 0.9rem; color: var(--text); }
.author-box span { font-size: 0.78rem; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .exam-info-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-pagination { grid-template-columns: 1fr; }
  .quiz-cta-row { grid-template-columns: 1fr; }
}
