/* ============================================================
   Course page — هشیاری مالی
   Fonts & side gutter come from fonts.css (--font-body, --font-title, --side-gutter)
   ============================================================ */
.course-page { --rose: #a9cdc8; --rose-d: #6fa39c; --on-rose: #1f3b38; --indigo: #5a5a8c; --muted: #777; --line: #eee; }
.course-page .card { border: 0; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.course-page .card-body { padding: 22px 18px; }
.course-page h1, .course-page h2, .course-page h3 { font-family: var(--font-title); font-weight: 400; }
.course-page p { line-height: 2; margin-bottom: 10px; }
.course-page section { scroll-margin-top: 90px; }
.section-title { font-size: 1.6rem; margin-bottom: 14px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn-pay {
  display: block; width: 100%; background: var(--rose); color: #fff; border: 0;
  border-radius: 12px; padding: 14px; font-size: 1.1rem; text-align: center;
}
.btn-pay:hover { background: var(--rose-d); color: #fff; }
.btn-pay:disabled { background: #ccc; color: #fff; }
.cta-block { margin-top: 18px; }
.cta-block .price-line { text-align: center; font-size: .95rem; margin-top: 8px; color: var(--muted); }

/* ---------- Hero ---------- */
/* Poster keeps its natural 3:4 ratio so the animated layer stays aligned */
.course-hero .poster { align-self: center; }
.course-hero h1 { font-size: 2.2rem; line-height: 1.6; margin: 0 0 4px; }
.course-hero .slogan { font-family: var(--font-title); font-size: 1.75rem; color: var(--rose-d); margin: 0 0 14px; line-height: 1.6; }
.course-hero .lead { font-size: 1.05rem; line-height: 2; }
.keyline {
  border-right: 3px solid var(--rose); padding: 6px 14px 6px 0; margin: 16px 0;
  font-family: var(--font-title); font-size: 1.3rem; line-height: 1.9; color: var(--indigo);
}

/* Quick facts (dl, GEO-friendly) — plain list, one item per line, "title: value" */
.facts { display: block; margin: 16px 0; padding: 0; }
.facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4em; padding: 4px 0; background: none; border-radius: 0; }
.facts dt { font-weight: 400; font-size: 1rem; color: var(--muted); margin: 0; }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; font-size: 1rem; color: #333; }

/* Price box */
.price-box { border: 1.5px solid #e5bcbc; border-radius: 14px; padding: 14px; text-align: center; }
.price-box .label { font-size: .85rem; color: var(--muted); }
.price-box .amount { font-size: 1.5rem; color: #222; }
.price-box .or { color: var(--muted); font-size: .95rem; margin: 0 6px; }
.price-box .sub { font-size: .9rem; color: var(--indigo); margin-top: 4px; }

/* ---------- Lists ---------- */
.check-list, .x-list, .plain-list { list-style: none; padding: 0; margin: 0 0 12px; }
.check-list li, .x-list li { position: relative; padding-right: 26px; margin-bottom: 8px; line-height: 1.9; }
.check-list li::before { content: "✓"; position: absolute; right: 0; color: var(--rose); }
.x-list li::before { content: "✕"; position: absolute; right: 0; color: #b08968; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 12px; }
.chips li { background: rgba(201,124,124,.1); color: #7c4545; border-radius: 99px; padding: 3px 12px; font-size: .88rem; }
.callout { border-radius: 12px; padding: 12px 14px; font-size: .95rem; line-height: 1.9; margin-top: 12px; background: rgba(90,90,140,.07); }
.callout strong { font-weight: 400; color: var(--indigo); }

/* ---------- Six weeks ---------- */
.weeks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.week { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.week .num { display: inline-block; font-size: .8rem; color: #fff; background: var(--rose); border-radius: 99px; padding: 1px 10px; }
.week h3 { font-size: 1.35rem; line-height: 1.7; margin: 8px 0 6px; }
.week p { margin: 0 0 6px; font-size: .95rem; }
.week ul { padding-right: 18px; margin: 0 0 8px; font-size: .92rem; color: #555; }
.week ul li { margin-bottom: 2px; }
.week .output { background: rgba(163,177,138,.18); border-radius: 10px; padding: 8px 10px; font-size: .9rem; }
.week .output b { font-weight: 400; color: #5c6e4b; }

/* ---------- Money Hot Seat (highlighted) ---------- */
.hotseat { background: #a9cdc8 !important; color: #1f3b38; }
.hotseat .section-title { color: #fff; font-size: 2rem; font-family: "Rubik", sans-serif; }
.hotseat .eyebrow { display: inline-block; font-size: .8rem; background: var(--rose); color: #fff; border-radius: 99px; padding: 1px 10px; margin-bottom: 8px; }
.hotseat blockquote {
  margin: 0 0 8px; padding: 10px 14px; background: rgba(255,255,255,.1);
  border-radius: 14px 14px 4px 14px; font-size: .98rem;
}
.hotseat .quotes { margin: 12px 0 14px; }

/* ---------- Between sessions ---------- */
.steps3 { display: grid; gap: 8px; margin-bottom: 10px; }
.steps3 div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.steps3 b { font-weight: 400; font-family: var(--font-title); font-size: 1.25rem; color: var(--rose-d); display: block; }

/* ---------- Host ---------- */
.host { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.host img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.host strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.35rem; }
.host span { color: var(--muted); font-size: .9rem; }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-table th, .price-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.price-table th:first-child, .price-table td:first-child { text-align: right; }
.price-table thead th { font-weight: 400; color: var(--muted); font-size: .82rem; }
.price-table td.today { color: var(--rose-d); }
.price-note { font-size: .92rem; margin: 12px 0 0; }

/* ---------- FAQ ---------- */
.faq .acc-body details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq .acc-body details:last-child { border-bottom: 0; }
.faq .acc-body summary { cursor: pointer; list-style: none; position: relative; padding-left: 24px; font-size: 1.02rem; }
.faq .acc-body summary::-webkit-details-marker { display: none; }
.faq .acc-body summary::after { content: "+"; position: absolute; left: 0; top: 0; font-size: 1.2rem; line-height: 1; color: var(--rose); }
.faq .acc-body details[open] summary::after { content: "−"; }
.faq .acc-body details p { margin: 8px 0 0; color: #555; }

/* ---------- Form ---------- */
.reg-form label.form-label, .reg-form .form-label { font-size: .95rem; }
.reg-form .form-control, .reg-form .form-select { border-radius: 10px; padding: 11px 12px; }
.reg-form .form-control:focus, .reg-form .form-select:focus { border-color: #e5bcbc; box-shadow: 0 0 0 .2rem rgba(201,124,124,.15); }
.hint { color: var(--muted); font-size: .95rem; }
.phone-group { display: flex; gap: 8px; direction: ltr; }
.phone-group select { flex: 0 0 110px; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-group input { position: absolute; opacity: 0; pointer-events: none; }
.choice-group label { display: block; text-align: center; padding: 11px 8px; border: 1.5px solid #ddd; border-radius: 12px; cursor: pointer; transition: all .2s ease; }
.choice-group label small { display: block; color: #888; font-size: .78rem; }
.choice-group input:checked + label { border-color: var(--rose); background: rgba(201,124,124,.08); color: var(--rose-d); }
.choice-group input:focus-visible + label { outline: 2px solid var(--indigo); outline-offset: 2px; }
.euro-note { background: #fbf6ef; border: 1px dashed #b08968; border-radius: 12px; padding: 12px; font-size: .9rem; line-height: 1.9; margin-top: 10px; }
.form-check-input:checked { background-color: var(--rose); border-color: var(--rose); }
.reg-status { border-radius: 12px; padding: 10px 12px; font-size: .92rem; margin: 0 0 14px; background: rgba(233,216,166,.45); color: #6b5716; }

/* Order summary — "pay today" is the loudest line */
.order-summary { background: #faf7f7; border-radius: 12px; padding: 14px; margin: 16px 0; }
.order-summary .row-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: .95rem; }
.order-summary .row-item + .row-item { border-top: 1px solid var(--line); }
.order-summary .today { font-size: 1.2rem; color: var(--rose-d); padding: 10px 0; }

/* ---------- Success ---------- */
.success-card { text-align: center; }
.success-card .check { width: 64px; height: 64px; border-radius: 50%; background: rgba(163,177,138,.2); color: #7d8f6c; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 12px; }
.success-card h2 { font-size: 1.7rem; }
.success-card .order-summary { text-align: right; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .82rem; }
.status-paid { background: rgba(163,177,138,.25); color: #5c6e4b; }
.status-partial { background: rgba(233,216,166,.5); color: #7a6420; }
.status-pending { background: rgba(169,205,200,.35); color: #a9cdc8; }

/* ---------- Sticky mobile CTA (above footer nav) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 49px; z-index: 999;
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: #fff; border-top: 1px solid #eee; box-shadow: 0 -4px 14px rgba(0,0,0,.06);
  padding: 8px 14px; transform: translateY(150%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .p { font-size: .85rem; line-height: 1.5; }
.sticky-cta .p b { font-weight: 400; color: var(--rose-d, #a85f5f); font-size: .95rem; display: block; }
.sticky-cta a {
  /* background: #c97c7c; */
  color: #c97c7c;
  border-radius: 10px;
  padding: 0;
  /* white-space: nowrap; */
  font-size: .95rem;
  width: 190px;
  text-align: center;
  height: 49px;
  border: 1px solid #a85f5f;
  /* text centered horizontally and vertically */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
body.course { padding-bottom: 60px; }
@media (min-width: 100000px) /* desktop layout disabled — mobile layout everywhere; was (min-width: 992px) */ { .sticky-cta { display: none; } }

/* ---------- Desktop (wide column, 100px gutters) ---------- */
@media (min-width: 100000px) /* desktop layout disabled — mobile layout everywhere; was (min-width: 768px) */ {
  .weeks { grid-template-columns: 1fr 1fr; }
  .steps3 { grid-template-columns: repeat(3, 1fr); }
  .check-list.two-col { columns: 2; column-gap: 28px; }
  .check-list.two-col li { break-inside: avoid; }
}
@media (min-width: 100000px) /* desktop layout disabled — mobile layout everywhere; was (min-width: 992px) */ {
  .course-page .card-body { padding: 32px 40px; }
  .course-page .card:not(.course-hero) .card-body { max-width: 1000px; margin-inline: auto; }
  .course-hero { display: grid; grid-template-columns: 1fr 1fr; }
  .course-hero .poster { align-self: center; }
  .course-hero .card-body { align-self: center; }
  .weeks { grid-template-columns: repeat(3, 1fr); }
  #registration .card-body, #success .card-body { max-width: 680px; }
}

/* ---------- Dark mode ---------- */
body.dark-mode .course-page { --line: #333; --muted: #aaa; }
body.dark-mode .facts dd, body.dark-mode .price-box .amount { color: #eee; }
body.dark-mode .callout { background: rgba(160,160,220,.1); }
body.dark-mode .week ul, body.dark-mode .faq .acc-body details p { color: #bbb; }
body.dark-mode .order-summary { background: #262626; }
body.dark-mode .euro-note { background: #2a241d; }
body.dark-mode .choice-group label { border-color: #444; }
body.dark-mode .reg-form .form-control, body.dark-mode .reg-form .form-select { background-color: #262626; color: #eee; border-color: #444; }
body.dark-mode .price-table { color: #eee; }
body.dark-mode .chips li { background: rgba(201,124,124,.2); color: #f0caca; }
body.dark-mode .reg-status { background: #3a3320; color: #e9d8a6; }
body.dark-mode .sticky-cta { background: #1e1e1e; border-color: #333; }
body.dark-mode .hotseat { background: #2e2e4a !important; }

/* Form send error */
.reg-error { background: #fbeaea; color: #8a2f2f; border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin-bottom: 12px; }
body.dark-mode .reg-error { background: #3a2424; color: #f2c4c4; }


/* ============================================================
   Accordion cards (every card after the hero)
   + on the left when closed, − when open
   ============================================================ */
.acc > summary { list-style: none; cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc-head {
  position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 18px 18px 18px 60px; user-select: none;
}
.acc-head .section-title { margin: 0; flex: 1 1 auto; }
.acc-head::after {
  content: "+"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Rubik", sans-serif; font-size: 1.35rem; line-height: 1;
  color: var(--rose); border: 1.5px solid currentColor; transition: background .2s, color .2s;
}
.acc[open] > .acc-head::after { content: "−"; }
.acc-head:hover::after { background: var(--rose); color: #fff; border-color: var(--rose); }
.acc-head:focus-visible { outline: 2px solid var(--indigo); outline-offset: -4px; border-radius: 16px; }
.acc > .acc-body { padding-top: 0; }
.acc[open] > .acc-body { animation: acc-in .28s ease; }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hotseat .acc-head::after { color: #fff; }
.hotseat .acc-head .eyebrow { margin: 0; }
@media (prefers-reduced-motion: reduce) { .acc[open] > .acc-body { animation: none; } }

/* ============================================================
   Side padding 0 55px on all text blocks (cards)
   Phones keep a smaller inset so lines stay readable.
   ============================================================ */
@media (min-width: 100000px) /* desktop layout disabled — mobile layout everywhere; was (min-width: 768px) */ {
  .course-page .card-body { padding-left: 55px; padding-right: 55px; }
  .acc-head { padding-right: 55px; padding-left: 95px; }
  .acc-head::after { left: 55px; }
}

.success-card p { text-align: center; }

/* accordion body spans the same width as its header */
@media (min-width: 100000px) /* desktop layout disabled — mobile layout everywhere; was (min-width: 992px) */ {
  .course-page .card:not(.course-hero) .acc-body { max-width: none; margin-inline: 0; }
}

/* Drawing after the key sentence */
.hero-art { margin: 6px auto 18px; max-width: 340px; }
.hero-art img { display: block; width: 100%; height: auto; }

.host-block { margin: 8px 0 4px; }

/* Saba photo (replaces the small avatar) */
.host-block { margin: 18px 0 8px; }
.host-photo { display: block; width: 100%; height: auto; border-radius: 14px; margin: 0 0 16px; }


/* ---------- Teal palette (#a9cdc8): dark text where white text sat on the accent ---------- */
.btn-pay { background: var(--rose); color: var(--on-rose); }
.btn-pay:hover { background: var(--rose-d); color: var(--on-rose); }
.week .num { color: var(--on-rose); }
.acc-head:hover::after { color: var(--on-rose); }
.hotseat .section-title, .hotseat .acc-head::after { color: var(--on-rose); }
.hotseat .eyebrow { background: #fff; color: var(--on-rose); }
.hotseat blockquote { background: rgba(255,255,255,.5); }
.status-pending { color: var(--on-rose); }
body.dark-mode .hotseat, body.dark-mode .hotseat .section-title, body.dark-mode .hotseat .acc-head::after { color: #f3f1f6; }

/* keep the sticky CTA inside the centered app column */
.sticky-cta { left: var(--app-left); right: var(--app-left); }


/* Page overrides (were inline <style> in the HTML version) */
.course-hero h1{display: none;}
    .course-hero .slogan{text-align: center; margin-bottom: 40px;}
    .course-page p, .facts{padding: 0 55px;}
    .hero-art img {width: 60%;margin: 0 auto;}
.status-failed { background: #fbeaea; color: #8a2f2f; }

.price-box .was { color: var(--muted); font-size: .95rem; margin-left: 6px; }


/* ---------- Three payment plans (full / 2 / 4 installments) ---------- */
.choice-group.choice-3 { grid-template-columns: repeat(3, 1fr); }
.choice-group.choice-3 label { padding: 10px 4px; font-size: .95rem; }
#sumRestRows .row-item { border-top: 1px solid var(--line); }
.order-summary .row-item .muted { text-align: right; }
.order-summary .pay-now { display: inline-block; margin-right: 6px; padding: 1px 10px; border-radius: 99px; background: var(--rose); color: var(--on-rose); font-size: .82rem; text-decoration: none; }
.price-box .sub + .sub { margin-top: 0; }
.price-note + .price-note { margin-top: 6px; }
.price-note strong { font-weight: 400; color: var(--rose-d); }

/* ---------- Discount code (v2.4) ---------- */
.coupon-row { display: flex; gap: 8px; }
.coupon-row .form-control { flex: 1 1 auto; min-width: 0; text-align: left; letter-spacing: .04em; }
.btn-coupon { flex: 0 0 auto; border-radius: 10px; padding: 0 18px; background: transparent; color: var(--on-rose); border: 1px solid var(--rose-d); }
.btn-coupon:hover, .btn-coupon:focus { background: var(--rose); color: var(--on-rose); border-color: var(--rose); }
.btn-coupon:disabled { opacity: .6; }
.coupon-msg { margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: .9rem; line-height: 1.8; }
.coupon-msg.ok { background: #e6f2f0; color: var(--on-rose); }
.coupon-msg.err { background: #fbeaea; color: #8a2f2f; }
.coupon-remove { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.coupon-off-note { font-size: .88rem; color: #6c757d; margin: -6px 0 12px; }
.order-summary .row-item.discount span:last-child { color: var(--rose-d); }
body.dark-mode .coupon-msg.ok { background: #1f3330; color: #cfe5e1; }
body.dark-mode .coupon-msg.err { background: #3a2424; color: #f2c4c4; }
/* the site font draws 0-9 as Persian digits — codes must look exactly as typed */
.coupon-row .form-control, .coupon-code, .order-summary [dir="ltr"] { font-family: "Rubik", Tahoma, Arial, sans-serif; }


/* ---------- Icons (v2.5): same 1.5px line as the site icon set ---------- */
/* accordion + / − drawn as lines instead of font glyphs */
.acc-head::after {
  content: ""; font-size: 0;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 12px 1.5px, 1.5px 12px; background-position: center; background-repeat: no-repeat;
}
.acc[open] > .acc-head::after { content: ""; background-size: 12px 1.5px, 0 0; }
.acc-head:hover::after { color: #fff; background-color: var(--rose); }
.hotseat .acc-head:hover::after { color: var(--on-rose); background-color: #fff; border-color: #fff; }
.faq .acc-body summary::after {
  content: ""; top: .55em; width: 12px; height: 12px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 12px 1.5px, 1.5px 12px; background-position: center; background-repeat: no-repeat;
}
.faq .acc-body details[open] summary::after { content: ""; background-size: 12px 1.5px, 0 0; }
/* list markers: the same check icon, and a matching cross */
.check-list li::before, .x-list li::before {
  content: ""; top: .5em; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--wb-mark) center / contain no-repeat; mask: var(--wb-mark) center / contain no-repeat;
}
.check-list li::before { --wb-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.x-list li::before { --wb-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.success-card .check .wb-icon { width: 30px; height: 30px; stroke-width: 1.75; }

/* ---------- v2.8: session 0, plan availability, admin preview ---------- */
.fa-sessions { list-style: none; margin: 0; padding: 0; }
.fa-sessions li { padding: 2px 0; }
.fa-sessions li.zero del { color: var(--muted); text-decoration-color: rgba(0,0,0,.35); }
.fa-sessions li.zero small { display: block; font-size: .8rem; color: var(--rose-d); }
.choice-group label.is-disabled { opacity: .4; cursor: not-allowed; }
.fa-preview-bar { position: sticky; top: 60px; z-index: 20; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #f6ecd9; color: #7a5a1c; font-size: .9rem; }
.fa-preview-bar a { color: inherit; text-decoration: underline; }
