/* ==========================================================================
   استایل صفحه‌های دوره‌ها (فقط همین صفحه‌ها بارگذاری می‌شود)
   ----------------------------------------------------------------------
   عمداً جدا از app-core.css است: بستهٔ اصلی روی همهٔ صفحات بارگذاری می‌شود و
   این قواعد فقط برای دوره‌ها لازم‌اند. توکن‌های رنگ از همان سیستم طراحی سایت
   می‌آیند (--forest, --lime, --ink) تا هویت بصری تازه‌ای ساخته نشود.
   ========================================================================== */

/* ------------------------------------------------------------------ هیرو --- */
.course-hero { padding-bottom: 96px; }

.course-hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 26px 0 0;
}

.course-hero__price strong {
  font: 800 2.6rem/1.1 Inter, sans-serif;
  color: #fff;
}

.course-hero__price small { color: #c6d9ce; font-size: .9rem; }

/* قیمت پیش از تخفیف: خوانا می‌ماند ولی وزن بصری کمتری دارد. */
.course-hero__price del {
  color: #a8c0b3;
  font-size: 1rem;
}

.course-hero__badge {
  align-self: center;
  background: var(--lime);
  color: var(--forest);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
}

.course-hero__saving { color: #c6d9ce; font-size: .82rem; width: 100%; }

.course-hero__actions { margin-top: 30px; }

/* لینک ثانویهٔ هیرو با متن کوتاه، ارتفاع لمسی کافی ندارد؛ حداقل ۴۴ پیکسل
   طبق همان قاعده‌ای که در بقیهٔ سایت رعایت شده است. */
.course-hero__actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.course-hero__meta {
  margin: 22px 0 0;
  color: #a8c0b3;
  font-size: .8rem;
  border-top: 1px solid #ffffff2b;
  padding-top: 16px;
  max-width: 460px;
}

/* --------------------------------------------------------------- فهرست‌ها --- */
.course-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.course-list li {
  position: relative;
  padding-right: 30px;
  color: var(--ink);
  line-height: 2;
}

.course-list li::before {
  content: '';
  position: absolute;
  right: 4px;
  top: .85em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forest);
}

/* فهرست تأییدی: تیک سبز، هم‌خوان با نشان‌های موفقیت سایت. */
.course-list--check li::before {
  content: '✓';
  width: auto;
  height: auto;
  top: 0;
  right: 0;
  background: none;
  color: #3f6212; /* سبز تیره؛ روی زمینهٔ روشن کنتراست کافی دارد. */
  font-family: Inter, sans-serif;
  font-weight: 800;
}

/* ------------------------------------------------------------- محورها --- */
.course-axis { gap: 4px; }

.course-axis__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eef6ea;
  color: var(--forest);
  margin-bottom: 18px;
}

.service-feature .course-axis__icon {
  background: #ffffff1a;
  color: var(--lime);
}

.course-axis h3 { margin-top: 0; }

/* --------------------------------------------------------------- دسترسی --- */
.course-access-section { background: #fff; }

.course-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.course-access h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 0 0 18px; }
.course-access p { color: var(--muted); }

/* ------------------------------------------------------------- مقایسه --- */
.course-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-compare .price-card ul { min-height: 0; }
.course-compare .price-label { min-height: 44px; }

.course-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 2;
  max-width: 780px;
}

/* ------------------------------------------------------- قیمت در کارت‌ها --- */
.course-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 6px 0 0;
  font-size: .95rem;
}

.course-card__price del { color: var(--muted); font-size: .82rem; }
.course-card__price strong { font: 800 1.25rem Inter, sans-serif; color: var(--ink); }
.course-card__price small { font-size: .74rem; color: var(--muted); }

.course-card__off {
  background: var(--forest);
  color: var(--lime);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

/* کارت ویژه زمینهٔ سبز تیره دارد. قیمت، قیمت خط‌خورده و واژهٔ «تومان»
   باید رنگ روشن کارت را ارث ببرند؛ رنگ muted سراسری روی این زمینه
   نسبت ۲٫۹ می‌داد و خواندنش سخت بود. */
.service-feature .course-card__price strong,
.service-feature .course-card__price del,
.service-feature .course-card__price small,
.service-card .course-card__price strong { color: inherit; }

.service-feature .course-card__off { background: var(--lime); color: var(--forest); }

/* ------------------------------------------------------- درباره من --- */
/* بخش «درباره من» با همان ساختار و کلاس‌های صفحهٔ کوچینگ نمایش داده می‌شود
   (lp-expert / lp-photo / lp-credentials). قاعده‌های .lp-expert و .lp-credentials
   از landing.css می‌آیند که روی این صفحه هم بارگذاری می‌شود؛ اما قاب تصویر
   (.lp-photo) در coaching.css بود که فقط روی صفحهٔ کوچینگ می‌آید. همان قاعده‌ها
   با دامنهٔ همین صفحه این‌جا بازتولید شده‌اند تا تصویر دو جا یک‌شکل دیده شود. */
.landing-page .lp-photo { margin: 0; position: relative; }
.landing-page .lp-photo picture { display: block; }
.landing-page .lp-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid #ffffff2e;
  object-fit: cover;
  filter: none;
}

.course-page .lp-photo--portrait { width: min(420px, 100%); }
.course-page .lp-photo--portrait img { aspect-ratio: 4 / 5; box-shadow: 0 30px 64px #06231924; }

/* رنگ برچسب بالای این بخش باید همان رنگ صفحهٔ کوچینگ باشد.
   در بستهٔ اصلی، قاعدهٔ .public-page .section .eyebrow (سبز #2f6b3f)
   اختصاصی‌تر از .lp-expert .eyebrow در landing.css است و برنده می‌شود؛ این
   یک سطر همان رنگ مشترک را برمی‌گرداند. */
.course-page .lp-expert .eyebrow { color: #4d6b23; }

/* ---------------------------------------------------------- واکنش‌گرایی --- */
@media (max-width: 900px) {
  .course-access { grid-template-columns: 1fr; gap: 30px; }
  .course-hero__price strong { font-size: 2.1rem; }
}

@media (max-width: 680px) {
  .course-hero { padding-bottom: 70px; }
  .landing-page .lp-photo img { border-radius: 18px; }
  .course-compare { grid-template-columns: 1fr; }
  .course-hero__price { gap: 8px 10px; }
  .course-hero__price strong { font-size: 1.8rem; }
}

/* ================================ ثبت‌نام و پرداخت کارت‌به‌کارت --- */
/* همهٔ چیزهایی که کاربر قبل از پرداخت لازم دارد: مبلغ دقیق، شمارهٔ کارت با
   دکمهٔ کپی، و ترتیب کارها. فرم در ستون روبه‌روست تا مسیر طبیعی چشم
   «قیمت ← پرداخت ← ارسال رسید» بماند. */
.course-pay {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 52px;
  align-items: start;
}
.course-pay__info > h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 0 0 14px; }
.course-pay__info > p { color: var(--muted); max-width: 46ch; }

.course-steps { list-style: none; counter-reset: pay; margin: 26px 0; padding: 0; display: grid; gap: 16px; }
.course-steps li {
  counter-increment: pay;
  position: relative;
  padding-right: 52px;
}
.course-steps li::before {
  /* رقم فارسی، هم‌راستا با بقیهٔ شماره‌های صفحه (اگر مرورگر پشتیبانی نکند،
     خودکار به رقم لاتین برمی‌گردد و چیزی نمی‌شکند). */
  content: counter(pay, persian);
  position: absolute;
  right: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font: 700 0.85rem/1 Inter, sans-serif;
}
.course-steps strong { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.course-steps span { color: var(--muted); font-size: 0.88rem; line-height: 2; }

.course-pay__amount {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.course-pay__amount > span { font-size: 0.78rem; color: var(--muted); }
.course-pay__amount p { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.course-pay__amount del { color: var(--muted); font-size: 1rem; }
.course-pay__amount strong { font: 800 1.7rem/1.3 Vazirmatn, sans-serif; color: var(--forest); }
.course-pay__amount small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.8rem; }

.course-pay__card {
  background: var(--forest);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.course-pay__card > span { font-size: 0.78rem; color: #bcd0c4; }
/* شمارهٔ کارت با ارقام لاتین و چپ‌به‌راست می‌ماند تا کپی‌کردنش در اپ بانکی
   بی‌دردسر باشد؛ نه جداکنندهٔ فارسی، نه ترتیب برعکس. */
.course-pay__number {
  direction: ltr;
  text-align: left;
  font: 800 1.35rem/1.6 Inter, monospace;
  letter-spacing: 0.06em;
  color: var(--lime);
  margin: 6px 0 16px;
}
.course-pay__card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.course-pay__card-actions .button { min-height: 46px; }
/* دکمهٔ کپی داخل کارت تیره است و `.button-outline` سراسری رنگ متن تیره دارد؛
   روی زمینهٔ سبز تیره عملاً ناخوانا می‌شد (نسبت ۱٫۰۳). این‌جا صریحاً روشن شد. */
.course-pay__card-actions .button-outline {
  background: transparent;
  border: 1px solid var(--lime);
  color: var(--lime);
}
.course-pay__card-actions .button-outline:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--forest);
}
.course-copy__status { font-size: 0.8rem; color: #bcd0c4; }
.course-pay__holder { margin: 14px 0 0; font-size: 0.85rem; color: #d5e3db; }
.course-pay__fallback {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 18px 20px;
  color: #7c3a10;
  font-size: 0.9rem;
  line-height: 2;
}

.course-form__title { margin: 0 0 4px; display: grid; gap: 4px; }
.course-form__title strong { font-size: 1.15rem; }
.course-form__title span { color: var(--muted); font-size: 0.84rem; }

/* راه فرستادن رسید: پیام‌رسان، نه آپلود در سایت -------------------------
   رسید در تلگرام یا بله فرستاده می‌شود؛ پس فقط لینک و آیدی لازم است. */
.course-pay__receipt {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  background: #fbfdf9;
}
.course-pay__receipt > span { font-size: 0.78rem; color: var(--muted); }
.course-pay__receipt p { font-size: 0.9rem; line-height: 2; margin: 8px 0 0; }
.course-pay__channels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.course-channel { min-height: 46px; }
.course-pay__handle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}
.course-pay__handle span[dir="ltr"] { color: var(--forest); font-weight: 700; }
.course-copy--inline { min-height: 40px; padding: 8px 14px; font-size: 0.82rem; }
/* متن وضعیت روی زمینهٔ روشن این بخش است، نه کارت تیره؛ پس رنگ سراسری
   (سبز روشن) این‌جا ناخوانا می‌شد. */
.course-pay__handle .course-copy__status { color: var(--muted); }
.course-pay__hint { font-size: 0.82rem; color: var(--muted); }

/* ============================================ اگر هنوز مطمئن نیستی --- */
.course-ask-section { background: var(--forest); color: #ffffff; }
.course-ask { display: grid; grid-template-columns: 1.15fr 1fr; gap: 46px; align-items: center; }
.course-ask h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0 0 14px; }
.course-ask h2 em { color: var(--lime); font-style: normal; }
.course-ask p { color: #c6d9ce; max-width: 48ch; }
.course-ask__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.course-ask__form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ffffff55;
  background: transparent;
  color: #ffffff;
  padding: 13px 4px;
}
.course-ask__form input::placeholder { color: #b8cbbf; }
.course-ask__form input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.course-ask__form .form-status { grid-column: 1 / -1; color: var(--lime); }

@media (max-width: 900px) {
  .course-pay { grid-template-columns: 1fr; gap: 34px; }
  .course-ask { grid-template-columns: 1fr; gap: 26px; }
  .course-ask__form { grid-template-columns: 1fr 1fr; }
  .course-ask__form button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 680px) {
  .course-pay__number { font-size: 1.12rem; }
  .course-pay__card-actions .button { width: 100%; }
  .course-ask__form { grid-template-columns: 1fr; }
  .course-steps li { padding-right: 46px; }
}

/* ============================================================================
   بخش تأکیدی تیترها روی پس‌زمینهٔ روشن
   ----------------------------------------------------------------------------
   قاعدهٔ عمومی سایت (‏.section h2 em) رنگ لیمویی #a3e635 می‌دهد که روی
   پس‌زمینهٔ روشن نسبت کنتراست ۱٫۴ دارد و خواندنش دشوار است (حد استاندارد
   WCAG برای متن معمولی ۴٫۵ است). روی بخش تیرهٔ همین صفحه (‏course-ask)
   لیمویی درست است و دست‌نخورده می‌ماند.

   سبز تیرهٔ ‏#2f6b3f روی همان پس‌زمینه ۵٫۹ به ۱ می‌دهد؛ همان رنگی که
   calculators.css و لایهٔ دسترس‌پذیری app-core.css برای پس‌زمینهٔ روشن
   استفاده می‌کنند. پس این هویت تازه‌ای به سایت اضافه نمی‌کند.
   ========================================================================= */
.course-page .section:not(.course-ask-section) h2 em,
.courses-page .section h2 em {
  color: #2f6b3f;
}

/* و برعکس: در بخش تیرهٔ همین صفحه، سبز تیره روی پس‌زمینهٔ جنگلی خوانا نیست
   (نسبت ۲٫۶). لایهٔ دسترس‌پذیری app-core سبز تیره را به همهٔ .section‌های
   .public-page می‌دهد، پس این‌جا صریحاً به لیمویی برگردانده می‌شود:
   لیمویی روی جنگلی = ۱۱ به ۱. */
.course-page .course-ask-section .eyebrow,
.course-page .course-ask-section h2 em {
  color: var(--lime);
}

/* ============================================================================
   بخش‌های عمیق صفحهٔ دوره
   ----------------------------------------------------------------------------
   این بخش‌ها با الگوی صفحهٔ معرفی محصول چیده شده‌اند: کارت مشخصات، مسیرهای
   جایگزین، سرفصل‌های ریز، شامل دوره، خروجی‌های پایان دوره، زیربنای علمی،
   پشتیبانی، نحوهٔ یادگیری، برای چه کسی نیست، الگوهای مسیر، گارانتی و
   لینک‌های داخلی. همهٔ قواعد این‌جا داخل خود course.css هستند تا صفحهٔ کوچینگ
   و بقیهٔ صفحات هیچ وابستگی تازه‌ای نگیرند.
   ========================================================================== */

/* -------------------------------------------------- نوار لنگر چسبان --- */
.course-subnav {
  position: sticky;
  top: 0;
  z-index: 18;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.course-subnav__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.course-subnav__inner::-webkit-scrollbar { display: none; }

.course-subnav__home {
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--forest);
  padding: 6px 12px;
  border-radius: 30px;
  background: #eef4ef;
}

.course-subnav__list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
}

.course-subnav__list a {
  display: block;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
}

.course-subnav__list a:hover,
.course-subnav__list a:focus-visible { background: #f4f7f4; color: var(--forest); }

/* بخش جاری: همان‌جا که کاربر در صفحه است. کلاس is-active را main.js می‌گذارد
   و اگر جاوااسکریپت اجرا نشود، هیچ چیزی ناقص نمی‌ماند. */
.course-subnav__list a.is-active {
  background: #eef4ef;
  color: var(--forest);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--lime);
}

/* -------------------------------------------------------- هیرو و مشخصات --- */
.course-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
}

.course-hero__grid .course-hero__copy { min-width: 0; }

.course-hero__art { justify-self: center; max-width: 420px; width: 100%; }

.course-hero__art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 26px 60px #04150f4d;
}

.course-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  background: #ffffff1f;
  border: 1px solid #ffffff26;
  border-radius: 16px;
  overflow: hidden;
}

.course-facts > div {
  background: #06231ac9;
  padding: 14px 18px;
}

.course-facts dt {
  font-size: .74rem;
  color: #9fbcae;
  margin-bottom: 4px;
}

.course-facts dd {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
}

/* ------------------------------------- مشاورهٔ رایگان پیش از پرداخت --- */
.course-quick-consult {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.course-quick-consult__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
}

.course-quick-consult__copy strong { display: block; font-size: 1.02rem; color: var(--forest); }
.course-quick-consult__copy span { display: block; font-size: .84rem; color: var(--muted); margin-top: 4px; }

.course-quick-consult__form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: start;
}

.course-quick-consult__form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.course-quick-consult__form .form-status { grid-column: 1 / -1; margin: 0; font-size: .8rem; }

/* ------------------------------------------------- نوار اعتماد و فهرست --- */
.course-trust {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 26px 0 20px;
}

.course-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-trust__grid strong { display: block; color: var(--forest); font-size: .95rem; }
.course-trust__grid span { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }

.course-trust__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.course-trust__meta { margin: 0; font-size: .8rem; color: var(--muted); }

.course-toc { display: flex; flex-wrap: wrap; gap: 6px; }

.course-toc a {
  font-size: .78rem;
  padding: 5px 11px;
  border-radius: 30px;
  background: #f2f6f2;
  color: var(--forest);
}

.course-toc a:hover { background: var(--lime); }

/* --------------------------------------- مسیرهای جایگزین و «چرا» --- */
.course-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.course-paths li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.course-paths__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef4ef;
  color: var(--forest);
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.course-paths h3 { margin: 0 0 8px; font-size: 1rem; }
.course-paths p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.9; }

.course-identity {
  margin-top: 24px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
}

.course-identity__pre { font-size: .8rem; color: var(--lime); }
.course-identity h3 { margin: 10px 0 8px; color: #fff; font-size: 1.15rem; }
.course-identity p { margin: 0; color: #d6e6dc; font-size: .9rem; line-height: 1.95; }

.course-why { margin-top: 30px; }
.course-why h3 { font-size: 1.05rem; margin: 0 0 14px; }

.course-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.course-why li {
  display: grid;
  gap: 4px;
  padding-right: 16px;
  border-right: 3px solid var(--orange);
}

.course-why strong { color: var(--forest); font-size: .95rem; }
.course-why span { color: var(--muted); font-size: .86rem; line-height: 1.9; }

.course-why__closing {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff7ee;
  border: 1px solid #f6dfc6;
  color: #6a4520;
  font-size: .9rem;
}

/* ----------------------------------------------- سرفصل‌ها (شش محور) --- */
.course-axis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.course-axis-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.course-axis__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eef4ef;
  color: var(--forest);
  margin-bottom: 12px;
}

.course-axis-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.course-axis__text { margin: 0 0 14px; color: var(--muted); font-size: .86rem; line-height: 1.9; }

.course-axis__label {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--forest);
}

.course-axis__inside {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.course-axis__inside li {
  position: relative;
  padding-right: 20px;
  font-size: .84rem;
  color: #3d4f46;
  line-height: 1.85;
}

.course-axis__inside li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--orange);
  font-size: .8rem;
}

.course-axis__outcome {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8f4;
  border-right: 3px solid var(--lime);
  font-size: .84rem;
  color: #2f4638;
  line-height: 1.85;
}

.course-mid-consult {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
}

.course-mid-consult strong { display: block; font-size: 1rem; }
.course-mid-consult span { display: block; font-size: .82rem; color: #c6d9ce; margin-top: 4px; }

.course-mid-consult .course-quick-consult__form input {
  background: #ffffff14;
  border-color: #ffffff2e;
  color: #fff;
}

.course-mid-consult .course-quick-consult__form input::placeholder { color: #b9cfc2; }

/* ------------------------------------------------- شبکهٔ «شامل دوره» --- */
.course-included {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.course-included__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.course-included__item strong { display: block; color: var(--forest); margin-bottom: 6px; }
.course-included__item span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.85; }

/* ------------------------------------------------- خروجی‌های پایان دوره --- */
.course-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.course-outcome {
  background: linear-gradient(180deg, #ffffff, #f6faf6);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
}

.course-outcome h3 { margin: 0 0 8px; font-size: 1rem; }
.course-outcome p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.9; }

/* -------------------------------------------------------- زیربنای علمی --- */
.course-science {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 26px;
}

.course-science__prose p { margin: 0 0 14px; font-size: .9rem; line-height: 2.05; color: #33443b; }

.course-science__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.course-science__points li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.course-science__points strong { display: block; color: var(--forest); font-size: .9rem; margin-bottom: 5px; }
.course-science__points span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.85; }

/* ------------------------------------------------ پشتیبانی و پرسش‌وپاسخ --- */
.course-support {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.course-support__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.course-support__steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
}

.course-support__number {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef4ef;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
}

.course-support__steps h3 { margin: 4px 0 6px; font-size: .98rem; }
.course-support__steps p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.9; }

.course-support__side {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 22px;
  align-self: start;
}

.course-support__facts { margin: 0 0 16px; display: grid; gap: 12px; }
.course-support__facts dt { color: var(--lime); font-weight: 700; font-size: 1.02rem; }
.course-support__facts dd { margin: 4px 0 0; color: #c6d9ce; font-size: .82rem; }
.course-support__note { margin: 0 0 16px; font-size: .8rem; color: #bcd2c6; line-height: 1.9; }
.course-support__cta { width: 100%; justify-content: center; }

/* ------------------------------------------------- نحوهٔ یادگیری و دسترسی --- */
.course-path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.course-path li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.course-path__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  font-weight: 700;
  font-size: .8rem;
  margin-bottom: 10px;
}

.course-path h3 { margin: 0 0 8px; font-size: .98rem; }
.course-path p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.9; }

/* ------------------------------------------------------ کدام را انتخاب کنم --- */
.course-when {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.course-when article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
}

.course-when h3 { margin: 0 0 12px; font-size: .98rem; color: var(--forest); }
.course-when ul { margin: 0 0 12px; padding-right: 18px; display: grid; gap: 8px; }
.course-when li { font-size: .85rem; color: #3d4f46; line-height: 1.85; }

/* ------------------------------------------ برای چه کسی نیست + چه می‌خواهد --- */
.course-fit__for { margin-top: 22px; }

.course-notfor {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.course-notfor > div:first-child {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.course-notfor h3 { margin: 8px 0 10px; font-size: 1.02rem; }
.course-notfor p { margin: 0 0 14px; font-size: .86rem; color: var(--muted); line-height: 1.9; }

.course-notfor__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.course-notfor__items li {
  position: relative;
  padding-right: 22px;
  font-size: .85rem;
  color: #3d4f46;
  line-height: 1.85;
}

.course-notfor__items li::before {
  content: "×";
  position: absolute;
  right: 0;
  color: #b4442f;
  font-weight: 700;
}

.course-demands {
  background: #fffaf2;
  border: 1px solid #f2dfc4;
  border-radius: var(--radius);
  padding: 24px 22px;
  align-self: start;
}

.course-demands ul { margin: 0 0 12px; padding-right: 18px; display: grid; gap: 8px; }
.course-demands li { font-size: .85rem; color: #5a4224; line-height: 1.85; }
.course-demands__closing { margin: 0; font-size: .85rem; font-weight: 700; color: #6a4520; }

/* -------------------------------------------------------- الگوهای مسیر --- */
.course-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.course-story {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
}

.course-story__label { font-size: .74rem; color: var(--orange); font-weight: 700; }
.course-story h3 { margin: 8px 0 8px; font-size: 1rem; }
.course-story p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.9; }

.course-testimonials { margin-top: 28px; }
.course-testimonials h3 { margin: 0 0 14px; font-size: 1.02rem; }

.course-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.course-testimonial {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.course-testimonial blockquote { margin: 0 0 12px; font-size: .87rem; line-height: 1.95; color: #33443b; }
.course-testimonial figcaption strong { display: block; font-size: .87rem; color: var(--forest); }
.course-testimonial figcaption span { display: block; font-size: .78rem; color: var(--muted); }

/* ------------------------------------------------------------- گارانتی --- */
.course-guarantee {
  background: #f4faf4;
  border: 1px solid #cfe6d5;
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 22px;
}

.course-guarantee h3 { margin: 0 0 10px; font-size: 1.02rem; color: var(--forest); }
.course-guarantee p { margin: 0 0 12px; font-size: .86rem; line-height: 1.95; color: #2f4638; }
.course-guarantee ul { margin: 0 0 12px; padding-right: 18px; display: grid; gap: 7px; }
.course-guarantee li { font-size: .84rem; color: #3d5a48; }
/* تعمیر آبشاری (موج ۶): «.course-guarantee p» اولویت ۰,۱,۱ داشت و «حجم قلم» و
   «رنگ» را وادار به نشانه می‌کرد. فقط همان دو اعلان والددار (۰,۲,۰) شدند؛
   `margin: 0` در اولویت خودش ماند تا برندهٔ مارجین (۱۲px قاعدهٔ هم‌خانواده) عوض نشود. */
.course-guarantee .course-guarantee__note { font-size: .8rem; color: var(--muted); }
.course-guarantee__note { margin: 0; }

/* -------------------------------------------------------- لینک‌های داخلی --- */
.course-cross {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.course-cross__card {
  position: relative;
  display: grid;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 44px 20px 20px;
}

.course-cross__card strong { color: var(--forest); font-size: .96rem; }
.course-cross__card span { color: var(--muted); font-size: .83rem; line-height: 1.85; }
.course-cross__card em {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-style: normal;
  color: var(--orange);
}

.course-cross__card:hover { border-color: var(--lime); }

/* ------------------------------------------------------------ موبایل --- */
@media (max-width: 1000px) {
  .course-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .course-hero__art { max-width: 340px; }
  .course-quick-consult__inner { grid-template-columns: 1fr; }
  .course-science, .course-support, .course-notfor { grid-template-columns: 1fr; }
  .course-mid-consult { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .course-facts { grid-template-columns: 1fr 1fr; }
  .course-quick-consult__form { grid-template-columns: 1fr 1fr; }
  .course-quick-consult__form button { grid-column: 1 / -1; width: 100%; }
  .course-hero { padding-bottom: 64px; }
}

@media (max-width: 520px) {
  .course-facts { grid-template-columns: 1fr; }
  .course-quick-consult__form { grid-template-columns: 1fr; }
  .course-subnav__home { display: none; }
  .course-support__steps li { grid-template-columns: 1fr; }
  .course-support__number { grid-row: auto; margin-bottom: 8px; }
}

/* ==========================================================================
   لایهٔ بصری تازهٔ صفحهٔ دوره
   ----------------------------------------------------------------------
   این بلوک در ادامهٔ همین فایل است و فقط روی صفحهٔ جزئیات دوره اثر دارد
   (کلاس course-page روی main). هدف: ریتم فاصله و تایپ بهتر، کارت‌های یکدست،
   چهار جایگاه تصویر، و میکروتعامل‌های ملایم.

   توکن‌های برند (--forest, --lime, --orange, --paper, --ink) دست‌نخورده‌اند؛
   فقط چند توکن مکمل اضافه می‌شود تا این صفحه هویتی جدا از بقیهٔ سایت نسازد.
   ========================================================================== */
.course-page {
  --paper-2: #faf9f4;          /* کاغذ کرم روشن، برای باندهای یک‌درمیان */
  --paper-3: #eef4ef;          /* سبز روشن، هم‌خانوادهٔ زمینهٔ سایت */
  --ink-2: #33443b;            /* متن بدنه، کمی نرم‌تر از --ink */
  --radius-lg: 24px;
  --shadow-soft: 0 14px 34px #06231912;
  --shadow-lift: 0 26px 54px #0623191f;
  --ease-card: 180ms ease;
}

/* فاصلهٔ بخش‌ها با مقیاس سیال: در موبایل جمع‌تر، در دسکتاپ بازتر. */
.course-page .section { padding: clamp(58px, 8vw, 104px) 0; }

/* خوانایی متن‌های بلند: line-height بازتر و عرض سطر محدود. */
.course-page .section-heading-row > p { line-height: 2.05; font-size: .95rem; max-width: 44ch; }
.course-page p { line-height: 1.95; }
.course-page h2,
.course-page h3,
.course-page h4 { letter-spacing: -.02em; }

/* باندهای یک‌درمیان: بخش‌های تازه روی زمینهٔ متفاوت می‌نشینند تا چشم
   بفهمد بخش تازه شروع شده است، بدون اینکه پالت سایت عوض شود. */
.course-pains-section { background: var(--paper-2); }
.course-results-section { background: #fff; }
.course-health-section { background: linear-gradient(180deg, var(--paper-3), var(--paper-2)); }

/* --------------------------------------------------- سیستم تصویر --- */
/* یک جایگاه تصویر، بدون فرض دربارهٔ محتوا: نسبت ابعاد و ارتفاع را جایگاه
   تعیین می‌کند و object-fit : cover برش را مرتب نگه می‌دارد. عرض و ارتفاع
   واقعی در HTML می‌آید، پس چیدمان هنگام بارگذاری نمی‌لرزد (CLS صفر). */
.course-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-3);
  box-shadow: var(--shadow-soft);
}

.course-photo picture { display: block; }
.course-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.course-photo figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 30px 18px 14px;
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, #062319d9 14%, #06231900);
}

/* تصویر هیرو: قاب ۱۶:۹ با هالهٔ لایم.

   هاله عمداً با box-shadow ساخته می‌شود، نه با یک عنصر تزئینی بیرون‌زده: سایه
   فقط نقاشی می‌شود و در عرض چیدمان حساب نمی‌شود، پس در موبایل ۳۶۰ پیکسلی
   هیچ سرریز افقی نمی‌سازد (نسخهٔ اول با شبه‌عنصر بود و ۳۳ پیکسل سرریز داد). */
.course-hero__art { position: relative; max-width: 560px; }
.course-hero__art .course-photo {
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 64px #04150f59, 0 0 54px 4px #a3e6352e;
}

/* ------------------------------------------------ بخش دردهای آشنا --- */
.course-pains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.course-pains li {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: transform var(--ease-card), box-shadow var(--ease-card), border-color var(--ease-card);
}

.course-pains li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #c9dcc9;
}

.course-pains li strong { font-size: .98rem; color: var(--forest); padding-inline-end: 24px; }
.course-pains__text { color: var(--muted); font-size: .85rem; }

.course-pains__mark {
  position: absolute;
  inset-inline-end: 18px;
  top: 19px;
  color: #b4442f;
  font-weight: 800;
  font-size: .9rem;
}

.course-pains__bridge {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  justify-items: start;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}

.course-pains__bridge h3 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.course-pains__bridge p { margin: 0; color: #cfe0d6; font-size: .92rem; max-width: 62ch; }

/* --------------------------------------------- بخش نتیجهٔ اصلی --- */
.course-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}

.course-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.course-result {
  background: linear-gradient(180deg, #fff, #f7faf7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: transform var(--ease-card), box-shadow var(--ease-card), border-color var(--ease-card);
}

.course-result:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #cfe0cf;
}

.course-result h3 { margin: 0 0 8px; font-size: 1rem; color: var(--forest); }
.course-result p { margin: 0; font-size: .85rem; color: var(--muted); }

/* تصویر باند نتیجه کنار کارت‌ها می‌ماند؛ در دسکتاپ چسبان است تا با اسکرول
   کارت‌ها، تصویر هم‌چنان دیده شود. در موبایل این حالت خاموش می‌شود. */
.course-results__media .course-photo { aspect-ratio: 16 / 10; position: sticky; top: 104px; }

.course-tempo {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.course-tempo__copy {
  background: var(--paper-3);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
}

.course-tempo__copy h3 { margin: 0 0 14px; font-size: 1.1rem; }
.course-tempo__copy p { margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); }
/* تعمیر آبشاری (موج ۶): «.course-tempo__copy p» اولویت ۰,۱,۱ داشت و «مارجین» و
   «رنگ» را وادار به نشانه می‌کرد. فقط همان دو اعلان والددار شدند؛ `font-size`
   در اولویت خودش ماند تا برندهٔ حجم قلم (٫۹rem قاعدهٔ هم‌خانواده) عوض نشود. */
.course-tempo .course-tempo__note { margin: 0; color: var(--forest); }
.course-tempo__note { font-weight: 700; font-size: .88rem; }

.course-durable {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
}

.course-durable h3 { margin: 0 0 16px; font-size: 1.1rem; }
.course-durable ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.course-durable li {
  display: grid;
  gap: 4px;
  border-inline-start: 3px solid var(--lime);
  padding-inline-start: 14px;
}

.course-durable strong { font-size: .93rem; color: var(--forest); }
.course-durable span { font-size: .85rem; color: var(--muted); }

.course-expect {
  margin-top: 26px;
  background: #fff7ed;
  border: 1px solid #f2dfc4;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
}

.course-expect h3 { margin: 0 0 12px; font-size: 1.05rem; color: #6a4520; }
.course-expect .course-list { max-width: none; }
.course-expect .course-list li { font-size: .87rem; color: #5a4224; }
.course-expect .course-list li::before { background: #b4791f; }

/* ------------------------------------ باندر تصویر سرفصل‌ها --- */
.course-band {
  position: relative;
  margin: 0 0 34px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.course-band .course-photo { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 6; }

.course-band__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(18px, 4vw, 38px);
  display: grid;
  gap: 6px;
  background: linear-gradient(0deg, #062319eb, #06231900);
  color: #fff;
}

.course-band__overlay strong { font-size: clamp(1.02rem, 2.6vw, 1.55rem); font-weight: 800; }
.course-band__overlay span { font-size: .85rem; color: #cfe0d6; }

/* ------------------------------------------------- کارت‌های محور --- */
.course-axis-card {
  transition: transform var(--ease-card), box-shadow var(--ease-card), border-color var(--ease-card);
}

.course-axis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* خط «اثرش روی وزن و سلامت»: اطلاعات کلیدی هر محور، جدا از متن اصلی. */
.course-axis__weight {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef6ea;
  border-inline-start: 3px solid var(--forest);
  font-size: .82rem;
  color: #2f4638;
}

.course-axis__weight span {
  display: block;
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--forest);
}

/* --------------------------------------------- بخش سلامت --- */
.course-health__prose { display: grid; gap: 14px; max-width: 78ch; }
.course-health__prose p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.course-health__sub { margin: 38px 0 16px; font-size: clamp(1.1rem, 2.4vw, 1.45rem); }

.course-health__layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.course-health-card {
  display: grid;
  gap: 8px;
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: transform var(--ease-card), box-shadow var(--ease-card), border-color var(--ease-card);
}

.course-health-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #cfe0cf;
}

.course-health-card h4 { margin: 0; font-size: .98rem; color: var(--forest); }
.course-health-card p { margin: 0; font-size: .85rem; color: var(--muted); }

/* یادآوری پزشکی هر کارت: جدا و کمرنگ، تا خواننده فقط به متن اصلی تکیه نکند. */
/* تعمیر آبشاری (موج ۶): «.course-health-card p» اولویت ۰,۱,۱ داشت و «مارجین»،
   «حجم قلم» و «رنگ» را وادار به نشانه می‌کرد. فقط همان سه اعلان والددار شدند؛
   `padding-top` و خط بالای کارت در اولویت خودشان ماندند — بالا بردن اولویتِ کلِ
   بلوک، برندهٔ اعلان‌های بی‌نشانه را هم عوض می‌کند. */
.course-health-card .course-health-card__note {
  margin: 0;
  font-size: .78rem;
  color: #5f6f66;   /* کنتراست ۴٫۹ روی سفید؛ متن ریز باید روشن‌ترش نکنیم */
}
.course-health-card__note {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.course-doctor {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 26px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 38px);
}

.course-doctor h3 { margin: 0 0 12px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.course-doctor p { margin: 0; color: #cfe0d6; font-size: .9rem; }
.course-doctor__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.course-doctor__points li { display: grid; gap: 4px; }
.course-doctor__points strong { font-size: .92rem; color: var(--lime); }
.course-doctor__points span { font-size: .85rem; color: #c6d9ce; }

/* جعبهٔ صراحت: چیزهایی که ادعا نمی‌کنیم. با نوار نارنجی، عمداً چشمگیر. */
.course-honest {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
}

.course-honest h3 { margin: 0 0 12px; font-size: 1.05rem; }
.course-honest ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; }
.course-honest li { font-size: .86rem; color: var(--muted); }

.course-note--medical {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 600;
  color: #3d4f46;
}

.course-health__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 24px 0 0; }
.course-health__cta .text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------------- تصویر پشتیبانی --- */
.course-support__media { margin: 0 0 18px; }
.course-support__media .course-photo { aspect-ratio: 4 / 3; }

/* ------------------------------- فوکوس روشن و کاهش حرکت --- */
.course-page a:focus-visible,
.course-page button:focus-visible,
.course-page summary:focus-visible {
  outline: 3px solid #a3e63599;
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .course-page * { transition-duration: .01ms !important; }
  .course-page :where(.course-pains li, .course-result, .course-health-card, .course-axis-card):hover {
    transform: none;
    box-shadow: none;
  }
}

/* -------------------------------------------------- واکنش‌گرایی --- */
@media (max-width: 1000px) {
  .course-hero__art { max-width: 520px; }
  .course-results { grid-template-columns: 1fr; }
  .course-results__media .course-photo { position: static; aspect-ratio: 16 / 9; }
  .course-tempo { grid-template-columns: 1fr; }
  .course-doctor { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .course-band .course-photo { aspect-ratio: 16 / 9; }
  .course-hero__art { max-width: 100%; }
  .course-pains { grid-template-columns: 1fr; }

  /* در موبایل، دکمهٔ اصلی بخش سلامت تمام‌عرض می‌شود تا هدف لمسی راحت باشد. */
  .course-health__cta { gap: 14px; }
  .course-health__cta .button { width: 100%; }
}

@media (max-width: 560px) {
  .course-hero__art .course-photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 420px) {
  .course-page { --radius-lg: 18px; }
  .course-page .section { padding: 52px 0; }
  .course-pains li,
  .course-result,
  .course-health-card { padding: 18px; }
}

/* ==========================================================================
   فصل‌بندی صفحهٔ دوره: اجزای تازه بخش دوم
   ==========================================================================
   چرا این بلوک یک‌جا آمده و چه چیزی را حل می‌کند؟
   ایراد درست کارفرما این بود: چند بخش پشت سر هم از یک الگو ساخته شده بودند
   (کارت سفید + تیتر + پاراگراف)، پس چشم تفاوتی حس نمی‌کرد. راه حل، افزودن
   «اجزای تازه» است، نه عوض کردن فونت و رنگ تمام صفحه:
     ۱) فصل‌بندی شماره‌دار، تا خواننده بداند کجای روایت است
     ۲) باند تیرهٔ دردها، برای یک ضربهٔ بصری در بالای صفحه
     ۳) «امروز / بعد از مسیر» و خط زمانی، به‌جای یک مشت کارت هم‌شکل
     ۴) رنگمایهٔ اختصاصی هر شش محور، از خانوادهٔ همان پالت برند
     ۵) نقشهٔ پیشگیری «عامل خطر ← کاری که در دست توست»
   همهٔ رنگ‌های تازه از همان خانوادهٔ --forest/--lime/--orange هستند؛ هیچ
   رنگ غریبه‌ای به سایت اضافه نمی‌شود.
   ========================================================================== */

/* ------------------------------------------ ۱) شمارهٔ فصل هر بخش --- */
.course-chapter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin-bottom: 12px;
  /* بدنهٔ شیشه‌ای: روی پس‌زمینهٔ روشن و تیره هر دو خوانا می‌ماند. */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--forest);
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-soft);
}

.course-page :is(h2, h3) + .course-chapter { margin-top: 8px; }

/* ------------------------- ۲) باند تیرهٔ دردها: ضربهٔ بصری بالای صفحه --- */
/* عمداً پالت عوض نمی‌شود؛ همان --forest سایت است که با گرادیان ملایم
   عمق می‌گیرد. کارت‌های سفید دردها روی این زمینه بیشتر دیده می‌شوند. */
.course-pains-section {
  background: radial-gradient(120% 120% at 100% 0, #0d3a28 0%, var(--forest) 58%, #04170f 100%);
  color: #eef4ef;
}

.course-pains-section .section-heading-row h2 { color: #fff; }
.course-pains-section .section-heading-row > p { color: #c6d6cb; }
.course-pains-section .course-chapter {
  background: #ffffff1a;
  border-color: #ffffff2e;
  color: var(--lime);
  box-shadow: none;
}

/* کارت دردها: روی زمینهٔ تیره، بدون قاب خاکستری و با سایهٔ عمیق‌تر. */
.course-pains-section .course-pains li {
  border-color: transparent;
  box-shadow: 0 18px 40px #020f091f;
}

.course-pains-section .course-pains li:hover { border-color: transparent; }

/* پل میان درد و راه حل: کارت لیم روی زمینهٔ تیره؛ یک نفس بصری. */
.course-pains-section .course-pains__bridge {
  background: var(--lime);
  color: var(--forest);
}

.course-pains-section .course-pains__bridge h3 { color: var(--forest); }
.course-pains-section .course-pains__bridge p { color: #14502f; }
.course-pains-section .course-pains__bridge .button-dark { background: var(--forest); color: #fff; }

/* ------------------------ ۳) «امروز / بعد از مسیر» و خط زمانی --- */
.course-shift { margin-top: 34px; }

.course-shift__head { max-width: 62ch; }
.course-shift__head h3 { margin: 0 0 8px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--forest); }
.course-shift__head p { margin: 0; color: var(--ink-2); font-size: .92rem; }

.course-shift__rows {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* هر ردیف: وضعیت امروز ← وضعیت بعد از مسیر، در دو ستون هم‌ارتفاع. */
.course-shift__rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform var(--ease-card), border-color var(--ease-card);
}

.course-shift__rows li:hover { transform: translateX(-4px); border-color: #c9dcc9; }

.course-shift__today { color: var(--muted); font-size: .9rem; }
.course-shift__after { color: var(--forest); font-weight: 700; font-size: .93rem; }
.course-shift__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-family: Inter, sans-serif;
  font-weight: 800;
}

/* خط زمانی کیفی: خط عمودی لیم با نقطه‌های توپر. بدون تاریخ ضمانت‌شده. */
.course-stages { margin-top: 34px; }
.course-stages > h3 { margin: 0 0 18px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--forest); }

.course-stages__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.course-stages__list li {
  position: relative;
  padding: 26px 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* نقطه روی خط: هر کارت یک سرنخ لیم بالای خودش دارد. */
.course-stages__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 18px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 4px #fff;
}

.course-stages__when {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-weight: 800;
  font-size: .95rem;
}

.course-stages__what { color: var(--ink-2); font-size: .89rem; line-height: 1.9; }

/* ------------------------ ۴) رنگمایهٔ اختصاصی هر شش محور --- */
/* هر محور یک رنگ‌مایهٔ ملایم از خانوادهٔ پالت می‌گیرد تا چشم شش بلوک را از
   هم جدا ببیند، بدون اینکه صفحه به رنگین‌کمان تبدیل شود. */
/* position: relative لازم است تا نوار رنگی و شمارهٔ درشت محور، درست بنشینند. */
.course-axis-card { position: relative; overflow: hidden; }

.course-axis-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: var(--axis-accent, var(--lime));
}

.course-axis__num {
  position: absolute;
  inset-inline-end: 16px;
  top: 12px;
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--axis-accent, var(--lime));
  opacity: .22;
  pointer-events: none;
}

.course-axis-card--t1 { --axis-accent: #5f9b21; background: #f4f9ee; }
.course-axis-card--t2 { --axis-accent: #0b5b3d; background: #eff5f1; }
.course-axis-card--t3 { --axis-accent: #2f7d6d; background: #edf5f4; }
.course-axis-card--t4 { --axis-accent: #7a8b2f; background: #f5f7ea; }
.course-axis-card--t5 { --axis-accent: #a15c2b; background: #faf3ec; }
.course-axis-card--t6 { --axis-accent: #f97316; background: #fdf4ec; }

/* ------------------------ ۵) نقشهٔ پیشگیری: عامل خطر ← کار تو --- */
.course-map {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.course-map__head { max-width: 64ch; }
.course-map__head h3 { margin: 0 0 8px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--forest); }
.course-map__head p { margin: 0; color: var(--ink-2); font-size: .92rem; }

.course-map__rows { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }

.course-map__rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.15fr);
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(90deg, #fbf8f4, #fff);
}

.course-map__risk { color: var(--ink); font-weight: 700; font-size: .92rem; }
.course-map__action { color: var(--forest); font-size: .92rem; }
.course-map__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--lime);
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: .85rem;
}

/* ------------------------ ۶) نوار اعتماد و قیمت بالای فرم ثبت‌نام --- */
/* این نوار در گرید دوستونی بخش پرداخت، تمام عرض را می‌گیرد تا دقیقاً
   بالای فرم ثبت‌نام بنشیند؛ همان جا که تصمیم گرفته می‌شود. */
.course-pay .course-pay__strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 22px;
  background: var(--forest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.course-pay__strip-item { display: grid; gap: 5px; }
.course-pay__strip-item span { color: #a9c1b3; font-size: .78rem; }
.course-pay__strip-item strong { color: #fff; font-size: .96rem; }

/* کارت‌های پیرامون نوار، بدون تغییر باقی می‌مانند. */
.course-pay__strip ~ * { margin-top: 0; }

/* ------------------------ ۷) نوار دعوت ثابت (موبایل و دسکتاپ) --- */
/* استایل هر دو حالت در assets/css/cta-bar.css است (کامپوننت مشترک
   includes/cta-bar.php) و منطق نمایشش در main.js. پیش‌تر این‌جا نسخهٔ
   اختصاصی همین صفحه بود: نوار تا ۷۶۰ پیکسل و دکمهٔ شناور از ۱۰۲۴ پیکسل،
   یعنی کاربر تبلت در فاصلهٔ میان آن دو هیچ دکمه‌ای نمی‌دید. اکنون یک نقطهٔ
   شکست است (نوار تا ۹۰۰، شناور از ۹۰۱) و دکمهٔ شناور قیمت را هم نشان می‌دهد. */

/* ------------------------ ۸) نقطه‌های تصمیم تازه (CTA) --- */
.course-results__cta,
.course-compare__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 26px 0 0;
}

/* ------------------------ ۹) حالت «بدون نمایش قیمت» --- */
/* وقتی در پنل حالت پنهان انتخاب شود، جای عدد یک دعوت گفت‌وگو می‌نشیند. */
.course-hero__price--call { display: grid; gap: 6px; justify-items: start; }
.course-hero__price--call small { color: var(--ink-2); font-size: .85rem; max-width: 42ch; }
.course-card__call { font-size: 1rem; color: var(--forest); }

/* ------------------------ ۱۰) بازبینی موبایل و تبلت --- */
@media (max-width: 760px) {
  /* ردیف «امروز / بعد» در موبایل زیر هم می‌نشیند تا متن فشرده نشود. */
  .course-shift__rows li,
  .course-map__rows li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .course-shift__arrow,
  .course-map__arrow { justify-self: start; }

  .course-stages__list { grid-template-columns: 1fr; }

  .course-results__cta .button,
  .course-compare__cta .button { width: 100%; }

  .course-pay .course-pay__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* -------------------------------------------------- ردیف قیمت هیرو ---
     پیش‌تر این ردیف flex با wrap و `align-items: baseline` بود؛ یعنی عناصر
     بر اساس عرض موجود جابه‌جا می‌شدند. نتیجه روی ۳۶۰ پیکسل: نشان و قیمت
     خط‌خورده سطر اول را می‌گرفتند و عدد اصلی — مهم‌ترین عدد صفحه — به سطر دوم
     رانده می‌شد. حالا چیدمان عامدانه است: نشان · قیمت با یکا · قیمت پیشین ·
     صرفه‌جویی. جای هر جزء صریح تعیین شده تا هیچ‌وقت به‌هم نریزد.
     نسخهٔ «بدون قیمت» (`--call`) از این قاعده بیرون است چون ساختارش
     پاراگرافی است، نه عددی. */
  .course-hero__price:not(.course-hero__price--call) {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: baseline;
    gap: 6px 10px;
  }
  .course-hero__price:not(.course-hero__price--call) .course-hero__badge { grid-area: 1 / 1 / 2 / 3; justify-self: start; }
  .course-hero__price:not(.course-hero__price--call) strong { grid-area: 2 / 1 / 3 / 2; }
  .course-hero__price:not(.course-hero__price--call) small { grid-area: 2 / 2 / 3 / 3; }
  .course-hero__price:not(.course-hero__price--call) del { grid-area: 3 / 1 / 4 / 3; }
  .course-hero__price:not(.course-hero__price--call) .course-hero__saving { grid-area: 4 / 1 / 5 / 3; }
}

@media (max-width: 420px) {
  .course-pay .course-pay__strip { grid-template-columns: 1fr; }
}

/* حرکت‌های تازه هم مثل بقیهٔ صفحه، برای کاربر حساس به حرکت خاموش می‌شوند. */
@media (prefers-reduced-motion: reduce) {
  .course-shift__rows li { transition: none; }
  .course-shift__rows li:hover { transform: none; }
}


/* ---- جعبهٔ پرداخت آنلاین در بخش ثبت‌نام --------------------------------
   چرا این جعبه و نه یک دکمهٔ ساده: کاربری که به این بخش رسیده باید در یک
   نگاه بفهمد «پرداخت آنلاین، دسترسی فوری می‌دهد» — این مزیتِ واقعی است،
   پس در متن دیده می‌شود، نه فقط در برچسب دکمه. */
.course-checkout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  margin: 18px 0 6px;
  border-radius: 16px;
  background: #f3f9ec;
  border: 1px solid #d8e8c4;
}
.course-checkout__copy { flex: 1 1 260px; min-width: 0; }
.course-checkout__copy strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
  color: #2c4a16;
}
.course-checkout__copy span {
  display: block;
  font-size: .86rem;
  line-height: 1.9;
  color: #4a5b43;
}
.course-checkout .button { flex: 0 0 auto; }
@media (max-width: 560px) {
  .course-checkout { padding: 15px; }
  .course-checkout .button { width: 100%; justify-content: center; }
}
.course-checkout__alt {
  margin: 0 0 16px;
  font-size: .82rem;
  color: #57655e;
}
