/* =========================================================
   لندینگ «آموزش رایگان وردپرس» — استایل اختصاصی
   همه کلاس‌ها با پیشوند zwp- تا با CSS تم تداخل نکند.

   این فایل فقط شامل استایل خودِ لندینگ است.
   هدر، مسیر صفحه (بردکرامب) و فوتر از خود تم می‌آیند،
   پس هیچ استایلی برای آن‌ها اینجا نیست.
   فونت هم لود نمی‌شود؛ YekanBakh را تم از قبل لود کرده است.
   ========================================================= */

/* ---------- توکن‌های رنگ (از فایل Frame 21 دیزاین) ---------- */
.zwp {
  --zwp-orange: #ff9606;
  --zwp-orange-dark: #eb8800;
  --zwp-orange-deep: #b47510;
  --zwp-orange-200: #ffc87b;
  --zwp-orange-100: #ffe6c0;
  --zwp-orange-50: #fff5e6;

  --zwp-yellow: #ffb616;
  --zwp-blue: #6097f3;
  --zwp-blue-50: #f0f8ff;
  --zwp-green: #91cf33;
  --zwp-green-50: #f5fbed;
  --zwp-coral: #ff6437;
  --zwp-coral-50: #fff1ed;
  --zwp-purple: #7f84f7;
  --zwp-purple-50: #f2f3ff;

  --zwp-ink: #22232a;
  --zwp-ink-900: #1f2025;
  --zwp-ink-700: #424244;
  --zwp-ink-600: #4b4c4e;
  --zwp-ink-500: #5b5c60;
  --zwp-gray-400: #76767c;
  --zwp-gray-300: #9b9da2;
  --zwp-gray-200: #c1c3c8;
  --zwp-line: #e1e3e5;
  --zwp-bg-100: #f4f5f6;
  --zwp-bg-50: #f7f8f9;
  --zwp-bg-25: #f9fafc;
  --zwp-white: #fff;

  --zwp-radius: 16px;
  --zwp-radius-lg: 20px;
  --zwp-radius-sm: 10px;
  --zwp-shadow: 0 4px 24px rgba(34, 35, 42, 0.06);
  --zwp-shadow-hover: 0 12px 32px rgba(34, 35, 42, 0.1);
  --zwp-container: 1280px;

  font-family: "YekanBakh", "YekanBakhZWP", "IRANSans", Tahoma, sans-serif;
  color: var(--zwp-ink);
  direction: rtl;
  text-align: right;
  font-size: 16px;
  line-height: 1.9;
}

.zwp *,
.zwp *::before,
.zwp *::after { box-sizing: border-box; }

.zwp img { max-width: 100%; display: block; }

.zwp a { color: inherit; text-decoration: none; }

.zwp :focus-visible {
  outline: 2px solid var(--zwp-orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* اعداد فارسی برای شمارنده‌ها */
.zwp-fa-num { font-feature-settings: "ss01"; }

/* ---------- لِی‌اوت پایه ---------- */
.zwp-container {
  width: 100%;
  max-width: var(--zwp-container);
  margin-inline: auto;
  padding-inline: 16px;
}

.zwp-section { padding-block: 64px; }
.zwp-section--tint { background: var(--zwp-bg-25); }

.zwp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.zwp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--zwp-ink);
}
.zwp-section-title svg { width: 26px; height: 26px; color: var(--zwp-orange); flex: none; }

.zwp-section-sub {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--zwp-gray-400);
  font-weight: 400;
}

/* ---------- دکمه‌ها ---------- */
.zwp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border-radius: 12px;
  padding: 15px 26px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.zwp-btn svg { width: 18px; height: 18px; flex: none; }

.zwp-btn--primary {
  background: var(--zwp-orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 150, 6, .28);
}
.zwp-btn--primary:hover { background: var(--zwp-orange-dark); transform: translateY(-1px); }

.zwp-btn--ghost {
  background: var(--zwp-orange-50);
  color: var(--zwp-orange-deep);
}
.zwp-btn--ghost:hover { background: var(--zwp-orange-100); }

.zwp-btn--sm { padding: 11px 18px; font-size: 14px; border-radius: 10px; }

/* =========================================================
   هیرو
   ========================================================= */
.zwp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% 12%, var(--zwp-orange-50) 0%, rgba(255, 245, 230, 0) 62%),
    radial-gradient(700px 420px at 8% 88%, var(--zwp-purple-50) 0%, rgba(242, 243, 255, 0) 60%),
    linear-gradient(180deg, #fff 0%, var(--zwp-bg-25) 100%);
}

.zwp-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding-block: 40px 72px;
}

/* در RTL آیتم اول گرید سمت راست می‌نشیند:
   محتوا سمت راست، پلیر سمت چپ. */
.zwp-hero__content { order: 1; }
.zwp-hero__media { order: 2; }

.zwp-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--zwp-orange);
}

.zwp-hero__title {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--zwp-ink-900);
  letter-spacing: -0.2px;
}

.zwp-hero__text {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 2.1;
  color: var(--zwp-ink-500);
}
.zwp-hero__text:last-of-type { margin-bottom: 28px; }

.zwp-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.zwp-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--zwp-gray-400);
}
.zwp-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.zwp-hero__meta svg { width: 17px; height: 17px; color: var(--zwp-orange); }

/* قاب ویدیو اینترو */
.zwp-hero__frame {
  border-radius: var(--zwp-radius-lg);
  overflow: hidden;
  background: var(--zwp-ink-900);
  box-shadow: 0 20px 50px rgba(34, 35, 42, .14);
  aspect-ratio: 16 / 9;
}
.zwp-hero__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   آمار دوره
   ========================================================= */
.zwp-stats { padding-block: 0; margin-top: -34px; position: relative; z-index: 2; }

.zwp-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--zwp-white);
  border: 1px solid var(--zwp-line);
  border-radius: var(--zwp-radius-lg);
  padding: 26px 22px;
  box-shadow: var(--zwp-shadow);
}

.zwp-stat { display: flex; align-items: center; gap: 14px; }
.zwp-stat + .zwp-stat { border-right: 1px solid var(--zwp-line); padding-right: 20px; }

.zwp-stat__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  flex: none;
}
.zwp-stat__icon svg { width: 23px; height: 23px; }
.zwp-stat__icon--o { background: var(--zwp-orange-50); color: var(--zwp-orange); }
.zwp-stat__icon--b { background: var(--zwp-blue-50); color: var(--zwp-blue); }
.zwp-stat__icon--g { background: var(--zwp-green-50); color: #74a927; }
.zwp-stat__icon--p { background: var(--zwp-purple-50); color: var(--zwp-purple); }

.zwp-stat__value {
  display: block;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--zwp-ink);
}
.zwp-stat__label { display: block; font-size: 14px; color: var(--zwp-gray-400); line-height: 1.6; }

/* =========================================================
   شبکه ویدیوها
   ========================================================= */
.zwp-videos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.zwp-episode {
  background: var(--zwp-white);
  border: 1px solid var(--zwp-line);
  border-radius: var(--zwp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.zwp-episode:hover {
  box-shadow: var(--zwp-shadow-hover);
  border-color: var(--zwp-orange-200);
}

/* قاب ویدیو — آی‌فریم آپارات با ورود کارت به دید کاربر ساخته می‌شود،
   تا فقط یک کلیک (روی دکمه پخش خود آپارات) برای پخش لازم باشد. */
.zwp-episode__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(155deg, #2b2c34 0%, var(--zwp-ink-900) 100%);
  overflow: hidden;
}
.zwp-episode__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* حالت انتظار تا وقتی آی‌فریم ساخته شود */
.zwp-episode__skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.zwp-episode__ghost {
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .1);
}

.zwp-episode__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.zwp-episode__num {
  align-self: flex-start;
  background: var(--zwp-orange-50);
  color: var(--zwp-orange-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
}

.zwp-episode__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--zwp-ink);
}

.zwp-episode__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--zwp-gray-400);
}

/* =========================================================
   سوالات متداول
   ========================================================= */
.zwp-faq__head { text-align: center; margin-bottom: 32px; }
.zwp-faq__head .zwp-section-title { justify-content: center; font-size: 24px; }
.zwp-faq__head .zwp-section-sub { text-align: center; }

.zwp-faq__list { max-width: 900px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }

.zwp-faq__item {
  background: var(--zwp-white);
  border: 1px solid var(--zwp-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.zwp-faq__item[data-open="true"] { border-color: var(--zwp-orange-200); box-shadow: var(--zwp-shadow); }

.zwp-faq__q {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--zwp-ink);
  text-align: right;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.7;
}

.zwp-faq__mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--zwp-gray-200);
  color: var(--zwp-gray-300);
  display: grid; place-items: center;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.zwp-faq__item[data-open="true"] .zwp-faq__mark {
  border-color: var(--zwp-orange);
  background: var(--zwp-orange);
  color: #fff;
}

.zwp-faq__chevron {
  margin-inline-start: auto;
  width: 18px; height: 18px;
  color: var(--zwp-gray-300);
  flex: none;
  transition: transform .22s ease, color .22s ease;
}
.zwp-faq__item[data-open="true"] .zwp-faq__chevron { transform: rotate(180deg); color: var(--zwp-orange); }

.zwp-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .26s ease;
}
.zwp-faq__item[data-open="true"] .zwp-faq__a { grid-template-rows: 1fr; }
.zwp-faq__a > div { overflow: hidden; }
.zwp-faq__a p {
  margin: 0;
  padding: 0 22px 22px 60px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--zwp-ink-500);
}

/* =========================================================
   متن سئوی انتهای صفحه (جمع‌شونده)
   ========================================================= */
.zwp-seo { background: var(--zwp-white); border-top: 1px solid var(--zwp-line); }

.zwp-seo__inner { max-width: 980px; margin-inline: auto; }

.zwp-seo__box {
  position: relative;
  overflow: hidden;
}

.zwp-seo__body {
  max-height: 210px;                 /* حدود ۵ خط اول */
  overflow: hidden;
  transition: max-height .4s ease;
}
.zwp-seo__box[data-expanded="true"] .zwp-seo__body { max-height: 6000px; }

/* محو‌شدگی پایین متن، فقط در حالت بسته */
.zwp-seo__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 110px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--zwp-white) 82%);
  transition: opacity .3s ease;
}
.zwp-seo__box[data-expanded="true"] .zwp-seo__fade { opacity: 0; }

/* تایپوگرافی متن سئو */
.zwp-seo__body h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--zwp-ink-900);
}
.zwp-seo__body h3 {
  margin: 30px 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--zwp-ink);
}
.zwp-seo__body p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 2.15;
  color: var(--zwp-ink-500);
}
.zwp-seo__body ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.zwp-seo__body ul li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 2.05;
  color: var(--zwp-ink-500);
}
.zwp-seo__body ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zwp-orange);
}
.zwp-seo__body strong { color: var(--zwp-ink); font-weight: 700; }
.zwp-seo__body a { color: var(--zwp-orange-deep); font-weight: 500; }
.zwp-seo__body a:hover { color: var(--zwp-orange); }
.zwp-seo__body > *:first-child { margin-top: 0; }

.zwp-seo__actions { margin-top: 18px; text-align: center; }
.zwp-seo__chev { width: 17px; height: 17px; transition: transform .3s ease; }
.zwp-seo__box[data-expanded="true"] ~ .zwp-seo__actions .zwp-seo__chev { transform: rotate(180deg); }

@media (max-width: 780px) {
  .zwp-seo__body h2 { font-size: 20px; }
  .zwp-seo__body h3 { font-size: 17px; }
  .zwp-seo__body p,
  .zwp-seo__body ul li { font-size: 15px; }
  .zwp-seo__body { max-height: 240px; }
}

/* =========================================================
   ریسپانسیو
   ========================================================= */
@media (max-width: 1100px) {
  .zwp-videos__grid { grid-template-columns: repeat(3, 1fr); }
  .zwp-hero__title { font-size: 36px; }
}

@media (max-width: 960px) {
  .zwp-hero__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 56px; }
  .zwp-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .zwp-stat + .zwp-stat { border-right: 0; padding-right: 0; }
  .zwp-stat:nth-child(2n) { border-right: 1px solid var(--zwp-line); padding-right: 18px; }
}

@media (max-width: 780px) {
  .zwp-videos__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .zwp-section { padding-block: 48px; }
  .zwp-hero__title { font-size: 29px; }
  .zwp-hero__text { font-size: 16px; }
  .zwp-section-title { font-size: 19px; }
}

@media (max-width: 520px) {
  .zwp-videos__grid { grid-template-columns: 1fr; }
  .zwp-stats__grid { grid-template-columns: 1fr; padding: 18px; }
  .zwp-stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .zwp-stat + .zwp-stat { border-top: 1px solid var(--zwp-line); padding-top: 16px; }
  .zwp-hero__actions .zwp-btn { width: 100%; }
  .zwp-faq__a p { padding-left: 22px; }
}

/* دسترس‌پذیری: احترام به کاهش انیمیشن */
@media (prefers-reduced-motion: reduce) {
  .zwp *, .zwp *::before, .zwp *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
