/* =========================================================
   آکادمی دانش‌افزایی مفید — استایل صفحه لندینگ /academy
   کلاس‌ها با پیشوند mf-academy محدود (scoped) شده‌اند.
   ========================================================= */

.mf-academy {
  --mf-ac-bg: #FAF8F4;
  --mf-ac-bg-deep: #EFEAF2;
  --mf-ac-ink: #1E2430;
  --mf-ac-ink-soft: #4B5563;
  --mf-ac-plum: #5B4B8A;
  --mf-ac-plum-dark: #3D3161;
  --mf-ac-line: rgba(30, 36, 48, 0.08);
  --mf-ac-radius: 18px;
  --mf-ac-shadow: 0 8px 30px rgba(30, 36, 48, 0.06);

  background: var(--mf-ac-bg);
  color: var(--mf-ac-ink);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.mf-academy * { box-sizing: border-box; }

.mf-academy__section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.mf-academy__section--tight { padding-top: 32px; padding-bottom: 32px; }

/* ---------------- Hero ---------------- */

.mf-academy__hero { padding: 88px 24px 40px; }
.mf-academy__hero-inner { max-width: 700px; margin: 0 auto; text-align: center; }

.mf-academy__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-ac-plum-dark);
  background: rgba(91, 75, 138, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.mf-academy__title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.32;
  margin: 0 0 18px;
}

.mf-academy__subtitle {
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 2;
  color: var(--mf-ac-ink-soft);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------------- چرخه‌ی تبادل دوطرفه (عنصر امضادار) ---------------- */

.mf-academy__loop { max-width: 560px; margin: 40px auto 0; }
.mf-academy__loop svg { width: 100%; height: auto; display: block; }
.mf-academy__loop-label {
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--mf-ac-ink-soft);
}

/* ---------------- چیست؟ ---------------- */

.mf-academy__statement { max-width: 700px; margin: 0 auto; text-align: center; padding: 8px 24px 8px; }
.mf-academy__statement p { font-size: clamp(16.5px, 2vw, 19px); line-height: 2; }
.mf-academy__statement strong { color: var(--mf-ac-plum-dark); }

/* ---------------- مزیت اصلی ---------------- */

.mf-academy__section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 12px;
}

.mf-academy__section-sub {
  text-align: center;
  color: var(--mf-ac-ink-soft);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 15.5px;
  line-height: 1.9;
}

.mf-academy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 780px) {
  .mf-academy__grid { grid-template-columns: 1fr; }
}

.mf-academy__card {
  background: #fff;
  border: 1px solid var(--mf-ac-line);
  border-radius: var(--mf-ac-radius);
  padding: 24px 20px;
  box-shadow: var(--mf-ac-shadow);
}

.mf-academy__card h4 { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; }
.mf-academy__card p { font-size: 14px; line-height: 1.85; color: var(--mf-ac-ink-soft); margin: 0; }

/* ---------------- انواع محتوا (پیل) ---------------- */

.mf-academy__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.mf-academy__pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-ac-plum-dark);
  background: var(--mf-ac-bg-deep);
  border: 1px solid rgba(91, 75, 138, 0.18);
  padding: 9px 18px;
  border-radius: 999px;
}

.mf-academy__gateway {
  background: var(--mf-ac-bg-deep);
  border-radius: 24px;
  width: calc(100% - 32px);
  max-width: 1048px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
}

/* ---------------- لینک اخبار ---------------- */

.mf-academy__news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mf-ac-plum-dark);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.mf-academy__news-link:hover { border-color: var(--mf-ac-plum-dark); }

/* ---------------- انیمیشن ملایم ورود ---------------- */

.mf-academy-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mf-academy-reveal.is-visible { opacity: 1; transform: translateY(0); }

.mf-academy__grid .mf-academy-reveal:nth-child(1) { transition-delay: 0s; }
.mf-academy__grid .mf-academy-reveal:nth-child(2) { transition-delay: 0.08s; }
.mf-academy__grid .mf-academy-reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .mf-academy-reveal { opacity: 1; transform: none; transition: none; }
}