/**
 * بخشِ «در ۴ قدم ساده شروع کن» (آکادمی) — pgt-*  (۳.۷.۲۶)
 * یک کارتِ فشرده: عنوان + دکمه | مراحل با خطِ پیشرفت. ≤۱۰۲۴: عنوان بالا؛ ≤۶۴۰: مراحل ۲×۲؛ ≤۳۴۰: فهرستِ عمودی.
 * رنگ‌ها از توکن‌های قالب (--bm-*) + رنگِ هر مرحله (--pgt-c).
 */
.pgt {
  --pgt-surface: var(--bm-surface, #fff);
  --pgt-text: var(--bm-text, #10172a);
  --pgt-muted: var(--bm-text-sub, #6f7b92);
  --pgt-border: var(--bm-border, #dde3ee);
  --pgt-primary: var(--bm-primary, #5659f5);
  --pgt-shadow: 0 12px 34px rgba(27, 38, 72, .07);
  position: relative;
  padding: clamp(36px, 4vw, 56px) 32px;
  color: var(--pgt-text);
  font-family: var(--bm-font, "Vazirmatn", Tahoma, Arial, sans-serif);
  font-size: 16px;
  line-height: normal;
  text-align: right;
  direction: rtl;
}
:root[data-theme="dark"] .pgt { --pgt-shadow: 0 14px 38px rgba(0, 0, 0, .24); }
.pgt *, .pgt *::before, .pgt *::after { box-sizing: border-box; }
.pgt-container { width: min(1136px, 100%); margin-inline: auto; }

.pgt .pgt-card {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 44px);
  padding: 24px 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pgt-primary) 7%, var(--pgt-surface)), var(--pgt-surface) 58%);
  border: 1px solid var(--pgt-border);
  border-radius: 24px;
  box-shadow: var(--pgt-shadow);
}

/* ---------- سربرگ ---------- */
.pgt .pgt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 3px 11px;
  color: var(--pgt-primary);
  background: color-mix(in srgb, var(--pgt-primary) 10%, var(--pgt-surface));
  border: 1px solid color-mix(in srgb, var(--pgt-primary) 18%, transparent);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.7;
}
.pgt .pgt-eyebrow::before { width: 6px; height: 6px; content: ""; background: currentColor; border-radius: 50%; }
.pgt .pgt-title {
  margin: 0;
  color: var(--pgt-text);
  font-family: var(--bm-font-heading, inherit);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.03em;
}
.pgt .pgt-title span { color: var(--pgt-primary); }
.pgt .pgt-lead { margin: 6px 0 0; color: var(--pgt-muted); font-size: 13.5px; font-weight: 500; line-height: 1.85; }
.pgt .pgt-btn,
.pgt .pgt-btn:hover { color: #fff; }
.pgt .pgt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 16px;
  background: var(--pgt-primary);
  border-radius: 12px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--pgt-primary) 30%, transparent);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pgt .pgt-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.pgt .pgt-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px color-mix(in srgb, var(--pgt-primary) 38%, transparent); }
.pgt .pgt-btn:hover svg { transform: translateX(-3px); }
.pgt .pgt-btn:focus-visible { outline: 2px solid var(--pgt-primary); outline-offset: 3px; }

/* ---------- مراحل ---------- */
.pgt .pgt-steps {
  display: grid;
  grid-template-columns: repeat(var(--pgt-n, 4), minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pgt .pgt-step { --pgt-c: var(--pgt-primary); position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; }
/* خطِ اتصال تا مرحلهٔ بعد */
.pgt .pgt-step:not(:last-child)::after {
  position: absolute;
  top: 21px;
  inset-inline-start: 56px;
  inset-inline-end: -10px;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(to left, color-mix(in srgb, var(--pgt-c) 45%, transparent) 0 6px, transparent 6px 11px);
}
.pgt .pgt-icon {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--pgt-c);
  background: color-mix(in srgb, var(--pgt-c) 13%, var(--pgt-surface));
  border: 1px solid color-mix(in srgb, var(--pgt-c) 24%, transparent);
  border-radius: 14px;
}
.pgt .pgt-icon > svg { width: 22px; height: 22px; }
.pgt .pgt-num {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: var(--pgt-c);
  border: 2px solid var(--pgt-surface);
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}
.pgt .pgt-step-title { margin: 0; color: var(--pgt-text); font-family: var(--bm-font-heading, inherit); font-size: 14.5px; font-weight: 800; line-height: 1.6; }
.pgt .pgt-step-title a { color: inherit; text-decoration: none; }
.pgt .pgt-step-title a:hover { color: var(--pgt-c); }
.pgt .pgt-step-desc { margin: 3px 0 0; color: var(--pgt-muted); font-size: 12.5px; font-weight: 500; line-height: 1.8; }

/* ============ واکنش‌گرا ============ */
@media (max-width: 1024px) {
  .pgt .pgt-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pgt-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 20px; }
  .pgt-head > :not(.pgt-btn) { grid-column: 1; }
  .pgt-head > .pgt-eyebrow { justify-self: start; }
  .pgt .pgt-btn { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; }
}
@media (max-width: 900px) { .pgt { padding-inline: 24px; } }
@media (max-width: 640px) {
  .pgt { padding-inline: 16px; }
  .pgt .pgt-card { gap: 16px; padding: 18px 16px; border-radius: 20px; }
  .pgt-head { display: block; }
  .pgt .pgt-btn { margin-top: 12px; }
  .pgt .pgt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .pgt .pgt-step { flex-direction: row; align-items: flex-start; gap: 10px; }
  .pgt .pgt-step::after { display: none; }
  .pgt .pgt-icon { width: 38px; height: 38px; border-radius: 12px; }
  .pgt .pgt-icon > svg { width: 19px; height: 19px; }
  .pgt .pgt-step-title { font-size: 13.5px; line-height: 1.55; }
  .pgt .pgt-step-desc { font-size: 11.5px; line-height: 1.75; }
}
@media (max-width: 340px) {
  .pgt .pgt-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pgt .pgt-btn, .pgt .pgt-btn svg { transition: none; }
}

/* ---------- خنثی‌سازیِ قوانینِ سراسریِ چیدمانِ آکادمی (v3-mobile.css) ---------- */
.pg-home > section.pgt > .pgt-container { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 900px) { .pg-home section.pgt { padding-top: 36px !important; padding-bottom: 36px !important; } }
@media (max-width: 640px) { .pg-home section.pgt { padding-top: 30px !important; padding-bottom: 30px !important; } }
