/* =========================================================
   مفیدهاب — استایل صفحه لندینگ /mofidhub
   تمام کلاس‌ها با پیشوند mf-hub محدود (scoped) شده‌اند.
   این فایل فقط در صفحه‌ی mofidhub بارگذاری می‌شود
   (نگاه کن به functions-snippet-mofidhub.php).
   ========================================================= */

.mf-hub {
  --mf-h-bg: #FAF8F4;
  --mf-h-bg-deep: #F1ECE1;
  --mf-h-ink: #1E2430;
  --mf-h-ink-soft: #4B5563;
  --mf-h-blue: #35507A;
  --mf-h-blue-dark: #253A57;
  --mf-h-line: rgba(30, 36, 48, 0.08);
  --mf-h-radius: 18px;
  --mf-h-shadow: 0 8px 30px rgba(30, 36, 48, 0.06);

  /* هویت رسمی باشگاه مدیران، فقط برای کارت ویژه */
  --mf-h-mgr-navy: #0B1F33;
  --mf-h-mgr-navy-light: #14304D;
  --mf-h-mgr-gold: #C6A15B;

  background: var(--mf-h-bg);
  color: var(--mf-h-ink);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.mf-hub * {
  box-sizing: border-box;
}

.mf-hub__section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}

.mf-hub__section--tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ---------------- Hero ---------------- */

.mf-hub__hero {
  position: relative;
  padding: 96px 24px 72px;
}

.mf-hub__hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mf-hub__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-h-blue-dark);
  background: rgba(53, 80, 122, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.mf-hub__title {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 20px;
}

.mf-hub__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.95;
  color: var(--mf-h-ink-soft);
  max-width: 600px;
  margin: 0 auto 36px;
}

.mf-hub__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mf-h-blue);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(53, 80, 122, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mf-hub__cta:hover {
  background: var(--mf-h-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(53, 80, 122, 0.35);
}

.mf-hub__cta:focus-visible {
  outline: 3px solid var(--mf-h-mgr-gold);
  outline-offset: 3px;
}

/* ---------------- مفیدهاب چیست؟ ---------------- */

.mf-hub__statement {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 24px 40px;
}

.mf-hub__statement p {
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 2;
}

.mf-hub__statement strong {
  color: var(--mf-h-blue-dark);
}

.mf-hub__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.mf-hub__pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-h-blue-dark);
  background: var(--mf-h-bg-deep);
  border: 1px solid rgba(53, 80, 122, 0.18);
  padding: 9px 18px;
  border-radius: 999px;
}

.mf-hub__pill--highlight {
  background: var(--mf-h-mgr-navy);
  color: #fff;
  border-color: var(--mf-h-mgr-navy);
}

/* ---------------- کارت ویژه: باشگاه مدیران مفید ---------------- */

.mf-hub__spotlight {
  width: calc(100% - 32px);
  max-width: 1048px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--mf-h-mgr-navy) 0%, var(--mf-h-mgr-navy-light) 100%);
  border-radius: 28px;
  padding: 56px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mf-hub__spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(198, 161, 91, 0.18), transparent 45%),
    radial-gradient(circle at 6% 92%, rgba(198, 161, 91, 0.12), transparent 40%);
  pointer-events: none;
}

.mf-hub__spotlight-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mf-hub__spotlight-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mf-h-mgr-gold);
  border: 1px solid rgba(198, 161, 91, 0.45);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.mf-hub__spotlight h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}

.mf-hub__spotlight-tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--mf-h-mgr-gold);
  margin: 0 0 22px;
}

.mf-hub__spotlight p.mf-hub__spotlight-desc {
  font-size: 15.5px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 30px;
}

.mf-hub__spotlight-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.mf-hub__spotlight-stat {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 16px;
  border-radius: 999px;
}

.mf-hub__spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mf-h-mgr-gold);
  color: var(--mf-h-mgr-navy) !important;
  font-size: 16.5px;
  font-weight: 800;
  padding: 15px 34px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mf-hub__spotlight-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
}

.mf-hub__spotlight-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---------------- چطور کار می‌کند ---------------- */

.mf-hub__section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 12px;
}

.mf-hub__section-sub {
  text-align: center;
  color: var(--mf-h-ink-soft);
  max-width: 540px;
  margin: 0 auto 44px;
  font-size: 15.5px;
  line-height: 1.9;
}

.mf-hub__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 780px) {
  .mf-hub__steps {
    grid-template-columns: 1fr;
  }
}

.mf-hub__step {
  background: #fff;
  border: 1px solid var(--mf-h-line);
  border-radius: var(--mf-h-radius);
  padding: 30px 22px 24px;
  box-shadow: var(--mf-h-shadow);
}

.mf-hub__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mf-h-blue);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.mf-hub__step h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.mf-hub__step p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mf-h-ink-soft);
  margin: 0;
}

/* ---------------- ارتباط با اکوسیستم باشگاه ---------------- */

.mf-hub__ecosystem {
  text-align: center;
  font-size: 14.5px;
  color: var(--mf-h-ink-soft);
  padding: 48px 24px 8px;
}

.mf-hub__ecosystem a {
  color: var(--mf-h-blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- CTA پایانی ---------------- */

.mf-hub__final {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 96px;
}

.mf-hub__final h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 14px;
}

.mf-hub__final p {
  color: var(--mf-h-ink-soft);
  margin-bottom: 30px;
  font-size: 15.5px;
}

/* ---------------- انیمیشن ملایم ورود ---------------- */

.mf-hub-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mf-hub-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mf-hub__steps .mf-hub-reveal:nth-child(1) { transition-delay: 0s; }
.mf-hub__steps .mf-hub-reveal:nth-child(2) { transition-delay: 0.08s; }
.mf-hub__steps .mf-hub-reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .mf-hub-reveal,
  .mf-hub__cta,
  .mf-hub__spotlight-cta {
    transition: none;
  }
  .mf-hub-reveal {
    opacity: 1;
    transform: none;
  }
}