/* =====================================================================
   سینما حرفه — استایل اصلی
   رنگ‌ها و اندازه‌ها از فایل طرح استخراج شده‌اند
===================================================================== */

:root {
  /* رنگ برند */
  --c-primary: #f0501e;
  --c-primary-dark: #d6451a;
  --c-primary-soft: #ff6a38;

  /* پس‌زمینه تیره هیرو */
  --c-dark: #12151a;
  --c-dark-2: #191d23;

  --c-text: #33363b;
  --c-text-muted: #a9b0bb;
  --c-search: #c7c7c7;

  --radius-pill: 999px;
  --radius-card: 24px;

  --container: 1280px;
  --header-h: 146px; /* ارتفاع back-logo-top.png */
  --header-bar: 36px; /* ضخامت مستطیل نارنجی بالای هدر */
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- ریست ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  /* جلوگیری از سرریز افقی (زبانه لوگو در موبایل عریض‌تر از صفحه است) */
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background: #fff;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
input { font-family: inherit; }
address { font-style: normal; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- دکمه ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 80, 30, .3);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 80, 30, .4);
}

/*
 * دکمه اول (Primary CTA) — مرجع بصری: «ورود به اپلیکیشن» در هدر
 * کلاس‌ها: btn btn-primary btn-first
 */
.btn-first,
.btn-app,
.hero-cta {
  height: 34px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-sm { padding: 8px 22px; font-size: 13px; }

/* ---------- (لوگوی SVG فوتر حذف شد؛ از logo-01.png استفاده می‌شود) ---------- */

/* =====================================================================
   هدر
   ۱) مستطیل نارنجی سراسری بالا
   ۲) وسط: back-logo-top + logo-01 (ارتفاع = ارتفاع هدر)
   ۳) راست: منو | چپ: ورود به اپ + جستجو
===================================================================== */
.site-header {
  position: relative;
  background: #fff;
  z-index: 50;
}

/* مستطیل نارنجی سراسری بالای هدر */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--header-bar);
  background: var(--c-primary);
  z-index: 1;
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* --- لوگو و پس‌زمینه زبانه (وسط، تمام‌ارتفاع هدر) --- */
.brand {
  position: absolute;
  top: 0;
  left: 50%;
  /* کمی به چپ تا از منوی راست فاصله بگیرد */
  transform: translateX(calc(-50% - 14px));
  width: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: top center;
  z-index: 3;
}

.brand-bg {
  display: block;
  position: relative;
  top: -2px;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.brand-logo {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(110px, 12vw, 150px);
  height: auto;
  max-width: none;
}

/* --- منوی اصلی (راست) --- */
.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav li { display: flex; align-items: center; }

.main-nav li + li::before {
  content: "";
  width: 1px;
  height: 14px;
  background: #d4d4d4;
  margin-inline: 0.35em; /* یک اسپیس از هر طرف */
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #4b4e53;
  transition: color .2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--c-primary);
  font-weight: 700;
}

/* --- جستجو و دکمه اپ (چپ) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--c-search);
  border-radius: var(--radius-pill);
  height: 34px;
  width: clamp(150px, 14vw, 220px);
  padding-inline: 14px 6px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.search-box input::placeholder { color: rgba(255, 255, 255, .95); }

.search-box input::-webkit-search-cancel-button { display: none; }

.search-box button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
  flex-shrink: 0;
}

.search-box button svg { width: 16px; height: 16px; }

/* --- منوی موبایل --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  order: -1;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform .25s ease, opacity .25s ease;
}

.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: #fff;
  box-shadow: 0 14px 24px rgba(0, 0, 0, .08);
  transition: max-height .3s ease;
}

.site-header.is-open .mobile-menu { max-height: 420px; }

.mobile-menu nav ul { padding: 12px 24px; }

.mobile-menu a {
  display: block;
  padding: 11px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #4b4e53;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a.is-active { color: var(--c-primary); }

.mobile-menu .search-box {
  margin: 8px 24px 20px;
  width: auto;
}

/* =====================================================================
   هیرو
===================================================================== */
.hero { padding-block: 26px 10px; }

.hero-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 470px;
  background:
    radial-gradient(120% 170% at 88% 0%, var(--c-dark-2) 0%, var(--c-dark) 55%);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* واترمارک C در لبه چپِ تصویر / راست کارت */
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -170px;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 92px solid rgba(255, 255, 255, .028);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px clamp(24px, 6vw, 96px) 56px 24px;
}

.hero-title {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(21px, 2.6vw, 33px);
  font-weight: 800;
  color: var(--c-primary);
  margin-top: 4px;
}

.hero-subtitle .script {
  font-family: "Gulzar", var(--font);
  font-weight: 400;
  font-size: 1.2em;
  color: var(--c-primary-soft);
  display: inline-block;
  transform: translateY(-10px) rotate(-4deg);
  margin-inline: 4px;
}

.hero-divider {
  position: relative;
  display: block;
  width: min(350px, 90%);
  height: 2px;
  margin: 26px 0 20px;
  background: linear-gradient(to left, #39404a 0%, #39404a 78%, transparent 100%);
}

.hero-divider::before {
  content: "";
  position: absolute;
  inset-inline-end: -2px;
  top: -5px;
  width: 14px;
  height: 2px;
  background: #39404a;
  transform: rotate(-38deg);
}

.hero-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--c-text-muted);
  line-height: 2.15;
  max-width: 400px;
}

.hero-cta {
  align-self: flex-start; /* در RTL = سمت راست */
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  flex: 0 0 42%;
  min-height: 300px;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* محو شدن لبه تصویر به سمت مرکز کارت */
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%);
          mask-image: linear-gradient(to right, #000 72%, transparent 100%);
}

/* =====================================================================
   نوارهای مشاوره / آموزش (دو نیم‌کپسول + دو نوار عمودی)
===================================================================== */
.services-strips {
  padding-block: 22px 10px;
}

.services-strips__row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-height: 94px;
}

.services-strips__panel {
  --ss-bg: #C3E2FF;
  --ss-fg: #1C8BED;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  min-width: 0;
  padding: 0 clamp(28px, 4vw, 48px);
  background: var(--ss-bg);
  color: var(--ss-fg);
  transition: filter .2s ease, transform .2s ease;
}

.services-strips__panel:hover {
  filter: brightness(.97);
  transform: translateY(-1px);
}

.services-strips__panel--left {
  justify-content: space-between;
  border-radius: 999px 0 0 999px;
}

.services-strips__panel--right {
  justify-content: space-between;
  border-radius: 0 999px 999px 0;
}

/* فقط مشاوره (آموزش خالی): نوارها چپ | کپسول راست‌گرد — از راست: گرد، آیکون، نوشته، کشیدگی */
.services-strips__panel--solo-right {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 36px);
  border-radius: 0 999px 999px 0;
}

/* فقط آموزش (مشاوره خالی): کپسول چپ‌گرد | نوارها راست — از چپ: گرد، آیکون، نوشته، کشیدگی */
.services-strips__panel--solo-left {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: clamp(18px, 3vw, 36px);
  border-radius: 999px 0 0 999px;
}

.services-strips__icon {
  width: auto;
  height: 56px;
  max-width: 78px;
  object-fit: contain;
  flex-shrink: 0;
}

.services-strips__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.services-strips__dividers {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex: 0 0 auto;
  padding-block: 0;
}

.services-strips__bar {
  display: block;
  width: 26px;
  border-radius: 0;
  background: #b7b7b7;
  align-self: stretch;
}

/* =====================================================================
   معرفی واحد (consulting-intro)
===================================================================== */
.unit-intro {
  --ui-green: #108155;
  --ui-green-soft: #94e9c8;
  --ui-tab-idle: #b2b2b2;
  padding-block: 36px 20px;
}

.unit-intro__grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
  align-items: start;
}

.unit-intro__nav {
  padding-top: 4px;
}

.unit-intro__label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 400;
  color: #9a9a9a;
}

.unit-intro__unit {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--ui-green);
  line-height: 1.15;
}

.unit-intro__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 12px 0 18px;
  background: #6e6e6e;
}

.unit-intro__tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  padding-bottom: 18px;
}

.unit-intro__tab {
  position: relative;
  width: 100%;
  justify-content: center;
  background: var(--ui-tab-idle);
  color: #fff;
  box-shadow: none;
  border: 0;
  cursor: pointer;
}

.unit-intro__tab:hover {
  background: #a3a3a3;
  transform: none;
  box-shadow: none;
}

.unit-intro__tab.is-active {
  background: var(--ui-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 129, 85, .28);
}

.unit-intro__tab.is-active:hover {
  background: #0d6f48;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 129, 85, .34);
}

/* نشانگر فعال سمت راست دکمه */
.unit-intro__tab.is-active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 5px;
  height: 70%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--ui-green);
}

.unit-intro__main {
  position: relative;
  min-width: 0;
}

.unit-intro__panel {
  position: relative;
  display: none;
}

.unit-intro__panel.is-active {
  display: block;
}

/* مثلث سبز: قاعده روی باکس چپ، نوک به سمت تب‌های مشاوره */
.unit-intro__panel.is-active::after {
  content: "";
  position: absolute;
  top: var(--ui-pointer-top, 78px);
  right: -13px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 13px;
  border-color: transparent transparent transparent var(--ui-green);
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.unit-intro__bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 373px;
  height: 373px;
  padding: 28px 32px 24px;
  background: var(--ui-green-soft);
  /* فقط گوشه بالا-چپ خیلی گرد؛ بقیه تیز — مطابق طرح */
  border-radius: 120px 0 0 0;
  overflow: hidden;
  isolation: isolate;
}

.unit-intro__watermark {
  position: absolute;
  right: 2%;
  left: auto;
  top: 50%;
  width: min(380px, 72%);
  height: auto;
  opacity: .16;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  filter: grayscale(.15);
}

.unit-intro__tab-title {
  font-weight: 700;
}

.unit-intro__tab-paren {
  font-weight: 400;
}

.unit-intro__heading {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  color: var(--ui-green);
}

.unit-intro__heading-main {
  font-weight: 800;
}

.unit-intro__heading-paren {
  font-weight: 400;
}

.unit-intro__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  color: #4a4a4a;
  text-align: justify;
}

.unit-intro__cta {
  position: relative;
  z-index: 1;
  align-self: flex-end; /* RTL: پایین-چپ حباب */
  margin-top: auto;
  background: var(--ui-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 129, 85, .3);
}

.unit-intro__cta:hover {
  background: #0d6f48;
  box-shadow: 0 8px 20px rgba(16, 129, 85, .4);
}

/* =====================================================================
   اسلایدر رویداد (event-carousel)
===================================================================== */
.event-carousel {
  padding-block: 28px 12px;
}

.event-carousel__frame {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #62250f;
  aspect-ratio: 684 / 280;
  min-height: 280px;
}

.event-carousel__track {
  position: absolute;
  inset: 0;
}

.event-carousel__slide {
  position: absolute;
  inset: 0;
  display: none;
  color: #fff;
}

.event-carousel__slide.is-active {
  display: block;
}

.event-carousel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.event-carousel__bg--placeholder {
  background:
    radial-gradient(70% 120% at 85% 40%, #8a3d22 0%, transparent 55%),
    linear-gradient(135deg, #4a1a0c 0%, #702d15 45%, #5a220f 100%);
}

.event-carousel__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(98, 37, 15, .55) 0%, rgba(98, 37, 15, .2) 42%, transparent 68%),
    linear-gradient(0deg, rgba(70, 25, 10, .35) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.event-carousel__logo {
  position: absolute;
  top: 18px;
  right: 22px;
  width: clamp(72px, 9vw, 110px);
  height: auto;
  z-index: 3;
}

.event-carousel__center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* راستِ نیمه چپ = نزدیک خط وسط */
  justify-content: center;
  text-align: right;
  padding: 24px clamp(16px, 3vw, 36px) 96px;
  box-sizing: border-box;
  pointer-events: none;
}

.event-carousel__title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  width: 100%;
  text-align: right;
}

.event-carousel__subtitle {
  margin: 10px 0 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  color: #fff;
  width: 100%;
  text-align: right;
}

.event-carousel__line {
  display: block;
  width: min(220px, 70%);
  height: 1px;
  margin: 14px 0 12px auto; /* راست‌چین نسبت به ستون */
  background: rgba(255, 255, 255, .95);
  align-self: flex-end;
}

.event-carousel__text {
  margin: 0;
  font-size: clamp(12px, 1.35vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, .95);
  line-height: 1.7;
  width: 100%;
  text-align: right;
}

.event-carousel__action {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 3vw, 36px);
  bottom: clamp(78px, 14%, 96px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 46%;
  gap: 6px;
  text-align: center;
}

.event-carousel__cta {
  pointer-events: auto;
  width: 100%;
  justify-content: center;
}

.event-carousel__deadline-label {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  opacity: .95;
  white-space: nowrap;
}

.event-carousel__deadline-date {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.event-carousel__dots {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: 0;
  width: clamp(170px, 28%, 250px);
  aspect-ratio: 199 / 65;
  pointer-events: none;
}

.event-carousel__dots-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.event-carousel__dots-list {
  position: absolute;
  left: 0;
  right: 0;
  /* مرکز عمودی ناحیه تخت/منحنی car-dot (نه کل باکس) */
  top: 62%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px 0 16px;
  height: auto;
  pointer-events: auto;
}

.event-carousel__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.event-carousel__dot.is-active {
  background: var(--c-primary);
  transform: scale(1.15);
}

.event-carousel__dot:hover {
  background: #a8a8a8;
}

.event-carousel__dot.is-active:hover {
  background: var(--c-primary);
}

/* =====================================================================
   اساتید و مشاورین (instructors carousel)
===================================================================== */
.instructors {
  padding-block: 40px 20px;
}

.instructors__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.instructors__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* مثلث خاکستری — نوک به سمت عنوان */
.instructors__mark {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 12px 7px 0;
  border-color: transparent #9b9b9b transparent transparent;
}

.instructors__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.3;
}

.instructors__view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: #ffe4d8;
  color: var(--c-primary);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.instructors__view-all:hover {
  background: #ffd4c2;
  transform: translateY(-1px);
}

.instructors__carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px; /* مساوی بین آیکون قبلی و بعدی */
}

.instructors__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5c5c5;
  cursor: pointer;
  transition: color .2s ease;
}

.instructors__nav:hover {
  color: #888;
}

.instructors__viewport {
  overflow: hidden;
  min-width: 0;
}

.instructors__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.instructors__track::-webkit-scrollbar {
  display: none;
}

.instructors__empty {
  margin: 0;
  padding: 24px;
  color: #888;
}

.instructor-card {
  flex: 0 0 auto;
  width: clamp(205px, calc((100% - 54px) / 4), 260px);
  scroll-snap-align: start;
}

.instructor-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 553 / 758;
  background: #ccc;
  overflow: hidden;
}

.instructor-card__ribbon-row {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6.8%;
  z-index: 5;
  display: flex;
  align-items: stretch;
  direction: ltr;
  background: #fff; /* رنگ زمینه صفحه */
}

.instructor-card__ribbon {
  position: relative;
  top: 4px;
  flex: 0 0 66%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 9% 0 4%;
  background: var(--c-primary);
  color: #fff;
  clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
  direction: rtl;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
}

.instructor-card__ribbon-rest {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
}

.instructor-card__type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.instructor-card__type-icon {
  opacity: .95;
}

.instructor-card__sep {
  opacity: .85;
  font-weight: 400;
}

.instructor-card__media {
  position: absolute;
  top: 6.7%;
  right: 0;
  left: 0;
  height: 70.2%;
  z-index: 2;
  background: var(--c-primary);
  clip-path: polygon(0 0, 100% 0, 100% 76.7%, 0 100%);
}

.instructor-card__photo {
  position: absolute;
  inset: 2.2%;
  overflow: hidden;
  background: #222;
  clip-path: polygon(0 0, 100% 0, 100% 76.7%, 0 100%);
}

.instructor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  display: block;
}

.instructor-card__media-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #444, #222);
}

.instructor-card__body {
  position: absolute;
  top: 69%;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 0 5% 3.5%;
  display: flex;
  flex-direction: column;
  gap: 4%;
}

.instructor-card__name {
  margin: 0;
  text-align: right;
  color: #3a3a3a;
  line-height: 1.15;
}

.instructor-card__first {
  display: block;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 400;
  color: #858585;
}

.instructor-card__last {
  display: block;
  margin-top: 1%;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.instructor-card__badges {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.instructor-card__badges li {
  display: inline-flex;
  align-items: center;
  height: clamp(22px, 2.3vw, 28px);
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--c-primary);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

/* قطعه واقعی گوشهٔ پایین‌چپ طرح */
.instructor-card__corner {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 6;
  display: block;
  width: 26.5%;
  height: auto;
}

/* =====================================================================
   بلاگ (سه مطلب + برگزیده)
===================================================================== */
.home-blog {
  padding-block: 36px 24px;
}

.home-blog__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.home-blog__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-blog__mark {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 12px 7px 0;
  border-color: transparent #9b9b9b transparent transparent;
}

.home-blog__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.3;
}

.home-blog__view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: #ffe4d8;
  color: var(--c-primary);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.home-blog__view-all:hover {
  background: #ffd4c2;
  transform: translateY(-1px);
}

.home-blog__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  align-items: stretch;
  max-height: 580px;
  overflow: hidden;
}

.home-blog__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.home-blog__empty {
  margin: 0;
  padding: 20px;
  color: #888;
  font-size: 14px;
  background: #ececec;
}

.blog-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 124px;
  padding: 12px;
  background: #e8e8e8;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.blog-item__media {
  flex: 0 0 118px;
  width: 118px;
  height: 118px;
  display: block;
  position: relative;
  overflow: hidden;
  background: #cfcfcf;
}

.blog-item__media img,
.blog-item__ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-item__ph {
  background: linear-gradient(135deg, #d5d5d5, #bdbdbd);
}

.blog-item__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding-block: 2px;
}

.blog-item__title {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 800;
  line-height: 1.45;
  color: #5a5a5a;
}

.blog-item__title a {
  color: inherit;
}

.blog-item__title a:hover {
  color: #3f3f3f;
}

.blog-item__excerpt {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #7a7a7a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 580px;
  height: 100%;
  overflow: hidden;
  background: var(--c-primary);
}

.blog-featured__media {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  position: relative;
  overflow: hidden;
  background: #222;
}

.blog-featured__media img,
.blog-featured__ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured__ph {
  background: linear-gradient(135deg, #3a3a3a, #1c1c1c);
}

.blog-featured__body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px 96px; /* چپ: جا برای گوشه */
  color: #fff;
  position: relative;
  z-index: 1;
  background: var(--c-primary);
}

/* مثلث کوچک روی خط باکس محتوا — کارت برگزیده */
.blog-featured__peak {
  position: absolute;
  top: 0;
  right: 50px;
  z-index: 2;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 9px 12px 9px;
  border-color: transparent transparent var(--c-primary) transparent;
  transform: translateY(-100%);
  pointer-events: none;
}

.blog-featured__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.blog-featured__title {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 800;
  line-height: 1.4;
}

.blog-featured__title a {
  color: #fff;
}

.blog-featured__excerpt {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured__cta {
  margin-top: 4px;
  align-self: flex-end; /* پایین سمت چپ در RTL */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  background: transparent;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.blog-featured__cta:hover {
  background: #fff;
  color: var(--c-primary);
  transform: translateY(-1px);
}

/* گوشه پایین‌چپ — تصویر نارنجی / سفید / خاکستری */
.blog-featured__corner {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  width: 88px;
  height: auto;
  pointer-events: none;
}

/* =====================================================================
   اسلایدر اخبار ویژه (آرشیو بلاگ)
===================================================================== */
.featured-news {
  padding-block: 28px 20px;
}

.featured-news__frame {
  position: relative;
  width: 100%;
}

.featured-news__stage {
  display: flex;
  align-items: center;
  gap: 16px;
}

.featured-news__track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.featured-news__slide {
  width: 100%;
  height: 470px; /* هم‌ارتفاع تقریبی هیرو */
  max-height: 470px;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 4px; /* نزدیک به گوشه تیز */
  display: none !important; /* فقط اسلاید فعال دیده شود (پریویو ادیتور هم) */
}

.featured-news__slide.is-active {
  display: flex !important;
}

.featured-news__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b0b0b0;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.featured-news__arrow:hover {
  background: transparent;
  color: var(--c-primary);
  transform: scale(1.08);
}

.featured-news__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.featured-news__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d0d0d0;
  cursor: pointer;
  transition:
    width .35s ease,
    background-color .35s ease,
    border-radius .35s ease;
}

.featured-news__dot.is-active {
  width: 28px;
  height: 9px;
  border-radius: 999px; /* کپسول: نیم‌دایره چپ/راست */
  background: var(--c-primary);
  transform: none;
}

.featured-news__empty {
  margin: 0;
  padding: 20px;
  background: #ececec;
  color: #888;
  font-size: 14px;
  border-radius: 4px;
  text-align: center;
}

@media (max-width: 860px) {
  .featured-news__stage {
    gap: 10px;
  }

  .featured-news__slide {
    height: 380px;
    max-height: 380px;
  }

  .featured-news__arrow {
    width: auto;
    height: auto;
  }
}

@media (max-width: 640px) {
  .featured-news__slide {
    height: 340px;
    max-height: 340px;
  }
}

/* =====================================================================
   گرید آرشیو بلاگ
===================================================================== */
.blog-grid {
  padding-block: 28px 40px;
}

.blog-grid__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.blog-grid__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.blog-grid__mark {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 12px 7px 0;
  border-color: transparent #9b9b9b transparent transparent;
}

.blog-grid__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.3;
}

.blog-grid__view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: #ffe4d8;
  color: var(--c-primary);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.blog-grid__view-all:hover {
  background: #ffd4c2;
  transform: translateY(-1px);
}

.blog-grid__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.blog-grid__filter:not(.is-active) {
  background: #ffe4d8;
  color: var(--c-primary);
  box-shadow: none;
}

.blog-grid__filter:not(.is-active):hover {
  background: #ffd4c2;
  box-shadow: none;
}

.blog-grid__stage {
  position: relative;
  min-height: 120px;
}

.blog-grid__loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(1px);
}

.blog-grid.is-loading .blog-grid__loading {
  display: flex;
}

.blog-grid__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #ffe4d8;
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: blog-grid-spin .7s linear infinite;
}

@keyframes blog-grid-spin {
  to { transform: rotate(360deg); }
}

.blog-grid.is-loading .blog-grid__grid {
  pointer-events: none;
  opacity: .45;
  transition: opacity .2s ease;
}

.blog-grid__grid {
  display: grid;
  grid-template-columns: repeat(var(--bg-cols, 2), minmax(0, 1fr));
  gap: 28px 24px;
  transition: opacity .2s ease;
}

.blog-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0;
  text-align: center;
  color: #7a8088;
  font-size: 14px;
}

.bg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/*
 * هیرو کارت:
 * چپ ≈ ۱/۵ از پایین، راست ≈ ۲/۵ از پایین → مورب به بالا-راست
 * نوار سفید روی درز + تایتل روی پس‌زمینه نارنجی روشن
 */
.bg-card__hero {
  --bg-cut-left: 70%;   /* عکس کمتر؛ فضای عنوان بیشتر */
  --bg-cut-right: 52%;
  --bg-slash: 2.8%;

  position: relative;
  display: block;
  aspect-ratio: 16 / 12;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #ffd9ce;
  color: inherit;
}

.bg-card__img,
.bg-card__ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(
    0 0,
    100% 0,
    100% var(--bg-cut-right),
    0 var(--bg-cut-left)
  );
}

.bg-card__ph {
  display: block;
  background: linear-gradient(135deg, #e8ebf0, #d5dae2);
}

.bg-card__slash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #fff;
  clip-path: polygon(
    0 calc(var(--bg-cut-left) - var(--bg-slash)),
    100% calc(var(--bg-cut-right) - var(--bg-slash)),
    100% var(--bg-cut-right),
    0 var(--bg-cut-left)
  );
}

.bg-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.bg-card__badge-icon {
  flex: 0 0 auto;
  display: block;
}

.bg-card__title-band {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 18px 16px;
  pointer-events: none;
}

.bg-card__title {
  display: -webkit-box;
  margin: 0;
  max-width: 100%;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 800;
  line-height: 1.45;
  color: var(--c-primary);
  text-align: right;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bg-card__hero:hover .bg-card__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bg-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}

.bg-card__excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #6a7078;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bg-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a9098;
}

.bg-card__date-icon {
  flex: 0 0 auto;
  color: var(--c-primary);
}

.blog-grid__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  direction: rtl;
}

.blog-grid__pager.is-empty,
.blog-grid__pager[hidden] {
  display: none;
}

.blog-grid__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #33363b;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.blog-grid__nav:hover:not(:disabled) {
  color: var(--c-primary);
  transform: scale(1.06);
}

.blog-grid__nav:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.blog-grid__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-grid__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 2px 0 0; /* کمی پایین‌تر برای وسط‌چین نوری فونت فارسی */
  border: 0;
  border-radius: 50%;
  background: #e6e6e6;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.blog-grid__page:hover:not(.is-active) {
  background: #d8d8d8;
}

.blog-grid__page.is-active {
  background: var(--c-primary);
  color: #fff;
  cursor: default;
  transform: none;
}

@media (max-width: 760px) {
  .blog-grid__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* =====================================================================
   ویدیو بلاگ (هوم)
===================================================================== */
.home-videoblog {
  padding-block: 28px 20px;
}

.home-videoblog__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.home-videoblog__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-videoblog__mark {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 12px 7px 0;
  border-color: transparent #9b9b9b transparent transparent;
}

.home-videoblog__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.3;
}

.home-videoblog__view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: #ffe4d8;
  color: var(--c-primary);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.home-videoblog__view-all:hover {
  background: #ffd4c2;
  transform: translateY(-1px);
}

.home-videoblog__stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-videoblog__empty {
  margin: 0;
  padding: 18px 20px;
  background: #ececec;
  color: #888;
  font-size: 14px;
  border-radius: 12px;
}

.vb-featured {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.6 / 1; /* کوتاه‌تر از نسبت طلایی */
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
}

.vb-featured__img,
.vb-featured__ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vb-featured__ph {
  background: linear-gradient(135deg, #2a2a2a, #111);
}

.vb-featured__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .18) 48%, rgba(0, 0, 0, .32) 100%);
  pointer-events: none;
}

.vb-featured__text {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* در RTL = سمت راست */
  gap: 4px;
  max-width: min(440px, 55%);
  text-align: right;
  direction: rtl;
}

.vb-featured .vb-card__title {
  font-size: clamp(15px, 1.6vw, 20px);
}

.vb-featured .vb-card__subtitle {
  font-size: clamp(12px, 1.2vw, 14px);
}

.vb-featured .vb-card__date,
.vb-featured .vb-card__badges {
  z-index: 2;
}

.vb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(240, 80, 30, .4);
  pointer-events: none;
  transition: transform .2s ease, background .2s ease;
}

.vb-play svg {
  margin-inline-start: 3px;
}

.vb-featured:hover .vb-play,
.vb-card:hover .vb-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--c-primary-dark);
}

.vb-play--sm {
  width: 42px;
  height: 42px;
  box-shadow: 0 6px 16px rgba(240, 80, 30, .35);
}

.vb-play--sm svg {
  margin-inline-start: 2px;
}

.vb-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--vb-cols, 4), minmax(0, 1fr));
}

.vb-row[data-count="1"] { --vb-cols: 1; }
.vb-row[data-count="2"] { --vb-cols: 2; }
.vb-row[data-count="3"] { --vb-cols: 3; }
.vb-row[data-count="4"] { --vb-cols: 4; }

.vb-card {
  display: block;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
}

.vb-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.vb-card__media img,
.vb-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vb-card__ph {
  background: linear-gradient(135deg, #2a2a2a, #111);
}

.vb-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .35) 100%);
  pointer-events: none;
}

.vb-card__date {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  backdrop-filter: blur(4px);
}

.vb-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 48%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vb-card__badges li {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--c-primary);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.vb-card__text {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* در RTL = سمت راست */
  gap: 3px;
  max-width: 85%;
  text-align: right;
  direction: rtl;
}

.vb-card__title {
  color: #fff;
  font-size: clamp(12.5px, 1.15vw, 14.5px);
  font-weight: 800;
  line-height: 1.4;
  width: 100%;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vb-card__subtitle {
  color: rgba(255, 255, 255, .82);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  width: 100%;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .vb-row[data-count="3"],
  .vb-row[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vb-row {
    grid-template-columns: 1fr !important;
  }

  .vb-play {
    width: 52px;
    height: 52px;
  }
}

/* =====================================================================
   پرسش و پاسخ (آکاردئون)
===================================================================== */
.home-faq {
  --faq-item-bg: #ffd9ce;
  --faq-title: #ff3c00;
  --faq-text: #5e5e5e;
  --faq-icon: #ff9777;
  padding-block: 36px 28px;
}

.home-faq__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.home-faq__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-faq__mark {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 12px 7px 0;
  border-color: transparent #9b9b9b transparent transparent;
}

.home-faq__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.3;
}

.home-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-faq__empty {
  margin: 0;
  padding: 18px 20px;
  background: var(--faq-item-bg);
  color: var(--faq-text);
  font-size: 14px;
}

.faq-acc {
  background: var(--faq-item-bg);
  border-radius: 4px;
  overflow: hidden;
}

.faq-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: right;
  color: var(--faq-title);
}

.faq-acc__q {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 800;
  line-height: 1.5;
}

.faq-acc__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--faq-icon);
  transition: transform .38s ease;
}

.faq-acc.is-open .faq-acc__icon {
  transform: rotate(180deg);
}

.faq-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s ease;
}

.faq-acc.is-open .faq-acc__panel {
  grid-template-rows: 1fr;
}

.faq-acc__answer {
  overflow: hidden;
  min-height: 0;
  padding: 0 18px 16px;
  color: var(--faq-text);
  font-size: 13.5px;
  line-height: 1.85;
  opacity: 0;
  transition: opacity .2s ease;
}

.faq-acc.is-open .faq-acc__answer {
  opacity: 1;
  transition: opacity .28s ease .08s;
}

.faq-acc__answer p {
  margin: 0 0 .7em;
}

.faq-acc__answer p:last-child {
  margin-bottom: 0;
}

.faq-acc__answer a {
  color: var(--faq-title);
  text-decoration: underline;
}

/* =====================================================================
   فوتر
===================================================================== */
.site-footer {
  background: var(--c-primary);
  color: #fff;
  margin-top: 70px;
  padding-block: 56px 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr .85fr auto 1.25fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* ستون‌های لینک با خط عمودی سمت راست */
.footer-links {
  border-inline-start: 5px solid #ff9877;
  padding-inline-start: 20px;
}

.footer-links h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-links a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 300;
  padding-block: 6px;
  opacity: .95;
  transition: opacity .2s ease, transform .2s ease;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(-4px);
}

.footer-badges { align-self: center; }

.footer-badges img { width: 220px; height: auto; }

/* ستون برند */
.footer-brand {
  justify-self: left;
  text-align: left;
}

.footer-logo {
  display: block;
  width: 175px;
  height: auto;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}

.footer-loc {
  font-size: 15px;
  font-weight: 800;
  margin: 16px 0 4px;
}

.footer-brand address p,
.footer-brand address a {
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
}

.footer-socials {
  display: flex;
  justify-content: left;
  gap: 16px;
  margin-top: 18px;
}

.footer-socials a {
  display: flex;
  width: 24px;
  height: 24px;
  opacity: .95;
  transition: opacity .2s ease, transform .2s ease;
}

.footer-socials a:hover { opacity: 1; transform: translateY(-2px); }

.footer-socials svg { width: 100%; height: 100%; }

/* پایین فوتر */
.footer-bottom {
  text-align: center;
  margin-top: 48px;
  font-size: 12px;
  font-weight: 300;
  line-height: 2.1;
}

.footer-bottom a { font-weight: 700; }

.footer-copy-fa { font-size: 11.5px; opacity: .9; }

.footer-copy-en {
  font-size: 11px;
  letter-spacing: 1.5px;
  opacity: .85;
}

/* =====================================================================
   ریسپانسیو
===================================================================== */
@media (max-width: 1240px) {
  .brand { transform: translateX(calc(-50% - 14px)) scale(.9); }
}

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-actions .search-box { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: block; }
  .brand { transform: translateX(calc(-50% - 10px)) scale(.82); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-badges { justify-self: center; }
}

@media (max-width: 860px) {
  .hero-card { flex-direction: column-reverse; min-height: 0; }
  .hero-visual { flex: none; width: 100%; min-height: 320px; }
  .hero-visual img {
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  }
  .hero-content {
    padding: 8px 28px 40px;
    align-items: center;
    text-align: center;
  }
  .hero-cta { align-self: center; }

  .services-strips__row {
    min-height: 78px;
    gap: 10px;
  }
  .services-strips__panel {
    gap: 14px;
    padding: 0 22px;
  }
  .services-strips__icon { height: 44px; max-width: 60px; }
  .services-strips__title { font-size: 24px; }
  .services-strips__dividers { gap: 10px; }
  .services-strips__bar { width: 18px; }

  .unit-intro__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .unit-intro__nav { order: -1; }
  .unit-intro__tab.is-active::after { display: none; }
  .unit-intro__panel.is-active::after { display: none; }
  .unit-intro__bubble {
    border-radius: 80px 0 0 0;
    height: auto;
    min-height: 320px;
  }

  .event-carousel__frame {
    aspect-ratio: auto;
    min-height: 340px;
    border-radius: 0;
  }
  .event-carousel__center { padding: 56px 20px 100px; }
  .event-carousel__action { bottom: 88px; left: 16px; }
  .event-carousel__dots { width: 180px; }

  .instructors__carousel { gap: 12px; }
  .instructors__nav { width: 28px; }

  .home-blog__grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .blog-featured {
    order: -1;
    max-height: 580px;
    min-height: 0;
    height: auto;
  }

  .blog-featured__media {
    min-height: 220px;
    max-height: 420px;
  }

  .blog-item {
    min-height: 96px;
  }

  .blog-item__media {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }
  .instructor-card { width: min(220px, 70vw); }
}

@media (max-width: 640px) {
  :root {
    --header-h: 110px;
    --header-bar: 28px;
  }
  .brand { transform: translateX(calc(-50% - 8px)) scale(.72); }
  .brand-logo { width: 100px; }
  .btn-first,
  .btn-app,
  .hero-cta {
    height: 32px;
    padding: 0 14px;
    font-size: 12.5px;
  }

  .unit-intro__bubble { padding: 22px 18px 18px; height: auto; min-height: 280px; }
  .unit-intro__cta { max-width: 100%; white-space: normal; height: auto; min-height: 32px; padding: 8px 14px; line-height: 1.4; }

  .event-carousel__frame { min-height: 300px; }
  .event-carousel__logo { top: 12px; right: 14px; width: 64px; }
  .event-carousel__title { font-size: 22px; }
  .event-carousel__subtitle { font-size: 14px; }
  .event-carousel__text { font-size: 11px; }
  .event-carousel__action { bottom: 72px; gap: 4px; }
  .event-carousel__deadline-date { font-size: 13px; }
  .event-carousel__dots { width: 150px; }
  .event-carousel__dots-list { gap: 9px; padding: 0 14px 0 10px; top: 62%; }
  .event-carousel__dot { width: 10px; height: 10px; }

  .instructors__head { flex-wrap: wrap; margin-bottom: 16px; }
  .instructors__title { font-size: 16px; }
  .instructor-card { width: min(200px, 78vw); }
  .instructor-card__last { font-size: 24px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { border-inline-start-width: 0; padding-inline-start: 0; }
  .footer-brand { justify-self: left; text-align: left; }

  .services-strips__row {
    min-height: 64px;
    gap: 8px;
  }
  .services-strips__panel {
    gap: 10px;
    padding: 0 14px;
  }
  .services-strips__icon { height: 34px; max-width: 46px; }
  .services-strips__title { font-size: 18px; }
  .services-strips__dividers { gap: 8px; }
  .services-strips__bar { width: 12px; }
}

/* =====================================================================
   ???? ???? /login
===================================================================== */
body.login-page-body {
  margin: 0;
  min-height: 100vh;
  background: #f7f7f7;
}

body.login-page-body #wpadminbar {
  display: none !important;
}

.login-page {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  min-height: 100vh;
  width: 100%;
}

.login-page__visual {
  position: relative;
  min-height: 100vh;
  background:
    var(--login-bg) center / cover no-repeat,
    #12151a;
  overflow: hidden;
}

.login-page__visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 42%, rgba(0, 0, 0, .35) 100%);
  pointer-events: none;
}

.login-page__tagline {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 1;
  margin: 0;
  max-width: min(420px, 80%);
  color: #fff;
  font-family: var(--font);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  direction: rtl;
}

.login-page__panel {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  background: #fafafa;
}

.login-page__card {
  width: 100%;
  max-width: 380px;
}

.login-page__logo {
  display: inline-flex;
  margin-bottom: 28px;
}

.login-page__logo img {
  display: block;
  width: auto;
  height: 64px;
  object-fit: contain;
}

.login-page__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #2f3237;
  line-height: 1.35;
}

.login-page__lead {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: #7a8088;
  line-height: 1.7;
}

.login-page__error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffece8;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.login-page__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-page__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #4b4e53;
}

.login-page__field input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-page__field input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(240, 80, 30, .15);
}

.login-page__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a5e64;
  cursor: pointer;
  user-select: none;
}

.login-page__remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--c-primary);
}

.login-page__submit {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
}

.login-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 0;
  font-size: 12.5px;
}

.login-page__links a {
  color: #7a8088;
  transition: color .2s ease;
}

.login-page__links a:hover {
  color: var(--c-primary);
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 34vh) auto;
  }

  .login-page__visual {
    min-height: 220px;
  }

  .login-page__tagline {
    font-size: 20px;
    bottom: 20px;
    left: 20px;
  }

  .login-page__panel {
    align-items: flex-start;
    padding-block: 32px 48px;
  }
}
