/* السيرة النبوية: طريقٌ من خمس عشرة محطة، ودرسٌ مقروء، واختبارٌ بطاقةً بطاقة. */

.page-head { padding: 136px 0 30px; display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(44px, 6vw, 76px); }
.overall { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px; justify-self: start; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.overall .bar { width: 160px; }
.bar { display: block; flex: 1; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width 0.6s var(--ease); }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 17.5px; font-weight: 600; color: var(--gold); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); font-weight: 500; }

/* ——— الطريق ——— */
.path { position: relative; display: grid; gap: 22px; padding-inline-start: 64px; margin-top: 10px; }
.path::before { content: ''; position: absolute; inset-inline-start: 23px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--sand), color-mix(in srgb, var(--sand) 25%, transparent)); border-radius: 2px; }
.stop { position: relative; }
.stop__node {
  position: absolute;
  inset-inline-start: -64px;
  top: 22px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 16px;
  transform: rotate(45deg);
  background: var(--paper);
  border: 2px solid color-mix(in srgb, var(--sand) 70%, transparent);
  box-shadow: var(--shadow);
}
.stop__node > * { transform: rotate(-45deg); }
.stop__node b { font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.stop__node svg { width: 20px; height: 20px; }
.stop.is-passed .stop__node { background: var(--brand); border-color: var(--brand); color: var(--sand); }
.stop.is-locked .stop__node { color: var(--muted); border-color: var(--line); }
.stop__card { display: grid; grid-template-columns: 1fr auto; gap: 8px 22px; align-items: center; padding: 22px 26px; border-radius: var(--r-lg); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
a.stop__card:hover { transform: translateX(-6px); box-shadow: var(--shadow-lift); }
.stop.is-locked .stop__card { opacity: 0.6; }
.stop__period { display: inline-block; justify-self: start; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--sand) 24%, transparent); color: var(--gold); font-size: 16px; font-weight: 600; }
.stop__card h2 { margin: 6px 0 2px; font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; }
.stop__card p { margin: 0; color: var(--ink-2); font-size: 17px; }
.stop__lessons { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.stop__lessons li { font-size: 16.5px; padding: 4px 11px; border-radius: 999px; background: var(--hl-hover); color: var(--ink-2); }
.stop__lessons li.is-read { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.stop__status { grid-row: 1 / span 4; grid-column: 2; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 16.5px; color: var(--muted); min-width: 92px; }
.stop__status b { font-family: var(--f-display); font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stop.is-passed .stop__status b { color: var(--good); }

/* ——— المرحلة ——— */
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lesson-card { border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.lesson-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.lesson-card em { font-style: normal; font-family: var(--f-display); font-size: 16px; color: var(--gold); font-weight: 600; }
.lesson-card h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 23px; line-height: 1.35; }
.lesson-card ul { margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 16px; line-height: 1.9; }
.lesson-card .done { color: var(--good); font-weight: 600; font-size: 17px; display: inline-flex; gap: 6px; align-items: center; }
.lesson-card .done svg { width: 18px; height: 18px; }
.quiz-cta { margin-top: 22px; border-radius: var(--r-lg); padding: 26px 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.quiz-cta h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 600; font-size: 24px; }
.quiz-cta p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* ——— الدرس ——— */
.readbar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: transparent; }
.readbar i { display: block; height: 100%; width: 0; background: var(--gold); }
.article { width: min(760px, 100%); margin-inline: auto; }
.article h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 10px 0 8px; }
.event { margin-top: 44px; }
.event h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(25px, 2.8vw, 32px); margin: 0 0 6px; line-height: 1.35; }
.event cite { display: block; font-style: normal; font-size: 17px; color: var(--gold); margin-bottom: 16px; }
.event p { font-family: var(--f-naskh); font-size: 21px; line-height: 2.1; margin: 0 0 18px; color: var(--ink); text-align: justify; text-wrap: pretty; }
.practice { margin-top: 56px; border-radius: 30px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; }
.practice > h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 28px; }
.practice > p { margin: 0; color: var(--ink-2); }

/* ——— السؤال ——— */
.q { display: grid; gap: 14px; }
.q__prompt { margin: 0; font-size: clamp(21px, 2.3vw, 26px); font-weight: 600; line-height: 1.7; }
.q__choices { display: grid; gap: 10px; }
.q__choices button {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: start;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--glass);
  font-size: 18px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.q__choices button:hover:not(:disabled) { border-color: var(--sand); transform: translateX(-4px); }
.q__choices button i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--hl-hover); font-style: normal; font-weight: 700; color: var(--gold); }
.q__choices button.is-right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.q__choices button.is-wrong { border-color: #B4543C; background: color-mix(in srgb, #B4543C 12%, transparent); }
.q__choices button:disabled { cursor: default; }
.q__feedback { border-radius: 16px; padding: 14px 18px; background: var(--hl-hover); font-size: 17px; line-height: 1.9; }
.q__feedback b { display: block; margin-bottom: 2px; }
.q__feedback small { display: block; color: var(--muted); font-size: 16.5px; margin-top: 4px; }
.q__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.quiz { width: min(760px, 100%); margin-inline: auto; }
.quiz__card { border-radius: 30px; padding: clamp(22px, 3.2vw, 36px); display: grid; gap: 16px; margin-top: 16px; }
.quiz__top { display: flex; align-items: center; gap: 14px; font-size: 17.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.result { text-align: center; justify-items: center; }
.result__score { font-family: var(--f-display); font-size: 64px; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.result.is-pass .result__score { color: var(--good); }
.result h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 30px; }
.result p { margin: 0; color: var(--ink-2); font-size: 18px; }
.result .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.note { margin-top: 30px; font-size: 17.5px; color: var(--muted); text-align: center; }

@media (max-width: 900px) { .lessons { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .page-head { padding-top: 108px; }
  .path { padding-inline-start: 48px; gap: 16px; }
  .path::before { inset-inline-start: 17px; }
  .stop__node { inset-inline-start: -48px; width: 36px; height: 36px; border-radius: 12px; }
  .stop__node b { font-size: 17px; }
  .stop__card { grid-template-columns: 1fr; padding: 18px; }
  .stop__status { grid-row: auto; grid-column: auto; justify-items: start; display: flex; gap: 8px; align-items: baseline; }
  .stop__status b { font-size: 20px; }
  .event p { font-size: 19.5px; }
}
.stop__status svg { width: 24px; height: 24px; color: var(--muted); }
