/* =========================================================
   ایران ILO — پوسته رنگی (۱۴۰۵)
   بعد از همه فایل‌ها بارگذاری می‌شود (inc/assets.php) و فقط رنگ، عمق
   و بافت اضافه می‌کند؛ ساختار صفحات دست نمی‌خورد. برای برگشت به طرح
   ساده قبلی کافی است این فایل بارگذاری نشود.
   ========================================================= */

:root {
  --brand-950: #04211d;
  --brand-900: #072f2a;
  --brand-800: #0a4f47;
  --brand-600: #12857a;
  --brand-300: #6ebeb0;
  --gold: #f2b84b;
  --gold-soft: #fff6e3;
  --tint: #eef7f5;
  --shadow-card: 0 1px 2px rgba(11,18,32,.04), 0 12px 32px -18px rgba(11,18,32,.28);
  --shadow-lift: 0 28px 56px -28px rgba(7,47,42,.45);
}

body { background: #fbfcfc; }

/* ---------- سربرگ: نوار طلایی باریک بالا + سایه نرم ---------- */
.header { box-shadow: 0 1px 0 rgba(11,18,32,.04); }
.header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-800), var(--accent) 40%, var(--gold) 100%);
}
.header.is-stuck { box-shadow: 0 10px 30px -20px rgba(11,18,32,.35); }

/* ---------- دکمه‌ها ---------- */
.btn--solid {
  background: linear-gradient(135deg, var(--brand-600), var(--accent) 55%, var(--brand-800));
  border-color: transparent;
}
.btn--solid:hover { background: linear-gradient(135deg, var(--accent), var(--brand-800)); }

/* ---------- عنوان بخش‌ها در همه صفحات ---------- */
.section__title { position: relative; }
.section__title::after {
  content: ""; display: block;
  width: 56px; height: 4px; margin-top: .8rem; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.section__head--row .section__title::after,
.section__head .section__title::after { margin-inline-start: 0; }

/* ---------- بخش‌های نرم: زمینه سبز کم‌رنگ با بافت نقطه‌ای ---------- */
.section--soft {
  position: relative; isolation: isolate;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(15,110,99,.07), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(242,184,75,.08), transparent 70%),
    var(--tint);
}
.section--soft::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(15,110,99,.10) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
          mask-image: linear-gradient(180deg, #000, transparent 60%);
}

/* =========================================================
   کارت دوره (صفحه اصلی، آرشیو، دپارتمان، مرتبط‌ها)
   ========================================================= */
.course {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.course__media img.is-cover { object-fit: cover; padding: 0; background: var(--brand-800); }
.course__media figcaption {
  background: linear-gradient(to top, rgba(4,33,29,.92) 0%, rgba(7,47,42,.55) 55%, rgba(7,47,42,0) 100%);
}
.course__specs { background: linear-gradient(180deg, #fff, #f8fbfa); }
.course__specs dd.is-price { color: var(--brand-800); font-weight: 900; }

/* تصویر برندینگ جایگزین در بقیه کارت‌ها */
img.is-cover { object-fit: cover; background: var(--brand-800); }
.fcard img.is-cover, .pcard__media img.is-cover { padding: 0; object-fit: cover; }

/* =========================================================
   صفحه اصلی: هیرو تیره برند
   ========================================================= */
.hero {
  color: #d5e6e2;
  border-bottom: 0;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(110,190,176,.28), transparent 65%),
    radial-gradient(45% 60% at 0% 100%, rgba(242,184,75,.16), transparent 70%),
    linear-gradient(160deg, var(--brand-800) 0%, var(--brand-900) 55%, var(--brand-950) 100%);
}
.hero::before {
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px);
}
.hero::after { background: linear-gradient(90deg, transparent, rgba(242,184,75,.5), transparent); }
.hero__title { color: #fff; }
.hero__lead { color: rgba(226,240,237,.82); }
.hero__lead strong, .hero__lead b { color: #fff; }
.hero .eyebrow {
  color: var(--gold);
  background: rgba(255,255,255,.06);
  border-color: rgba(242,184,75,.35);
  box-shadow: none;
}
.hero .eyebrow::before { background: var(--gold); }
.hero .btn--solid {
  background: linear-gradient(135deg, #ffd27a, var(--gold));
  color: var(--brand-950);
  box-shadow: 0 14px 30px -14px rgba(242,184,75,.8);
}
.hero .btn--solid:hover { background: #ffd27a; }
.hero .btn--outline { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #fff; }
.hero .btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero__stats {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.hero__stats li + li { border-color: rgba(255,255,255,.14); }
.hero__stats strong { color: #fff; }
.hero__stats span { color: rgba(226,240,237,.75); }
.hero__stats .ic { color: var(--gold); }

.hero__aside::before {
  background:
    radial-gradient(46% 50% at 30% 36%, rgba(110,190,176,.35), transparent 72%),
    radial-gradient(44% 48% at 72% 70%, rgba(242,184,75,.22), transparent 74%);
}
.hero__aside .tiles {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.hero .tile { border-color: rgba(255,255,255,.1); box-shadow: 0 6px 16px -10px rgba(0,0,0,.4); }

/* ---------- دپارتمان‌ها: هر کارت رنگ خودش ---------- */
.dept-grid > .dept:nth-child(5n+1) { --c: #0f6e63; --c2: #0a4f47; --cs: #e6f2f0; }
.dept-grid > .dept:nth-child(5n+2) { --c: #1f6aa8; --c2: #123a66; --cs: #e8f1fa; }
.dept-grid > .dept:nth-child(5n+3) { --c: #c27c0e; --c2: #8a560a; --cs: #fdf3e1; }
.dept-grid > .dept:nth-child(5n+4) { --c: #7a4bc2; --c2: #4f2d8a; --cs: #f1ebfa; }
.dept-grid > .dept:nth-child(5n+5) { --c: #c2410c; --c2: #8a2d08; --cs: #fdece4; }
.dept-grid > .dept { border-top: 4px solid var(--c, var(--accent)); }
.dept-grid > .dept .ic--lg { background: var(--cs, var(--accent-soft)); color: var(--c, var(--accent)); }
.dept-grid > .dept::before { background: linear-gradient(145deg, var(--c, var(--accent)), var(--c2, var(--accent-ink))); }
.dept-grid > .dept:hover { box-shadow: 0 24px 44px -22px var(--c, var(--accent)); }
.dept__more { color: var(--c, var(--accent)); }

/* ---------- چرا ما: کارت‌های سفید روی زمینه رنگی ---------- */
.why__list li { background: #fff; border-color: transparent; box-shadow: var(--shadow-card); }
.why__list .ic:not(.ic--img) {
  background: linear-gradient(145deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(15,110,99,.6);
}
.why__list li::before { background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* ---------- درباره ما ---------- */
.offer__media::before {
  background: linear-gradient(145deg, var(--gold), #ffd27a) !important;
  opacity: .9;
}
.offer .eyebrow { color: var(--brand-600); }

/* =========================================================
   صفحات داخلی: سربرگ رنگی
   ========================================================= */
.ahead, .chero, .ahero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(45% 90% at 100% 0%, rgba(15,110,99,.13), transparent 70%),
    radial-gradient(35% 80% at 0% 100%, rgba(242,184,75,.12), transparent 70%),
    linear-gradient(180deg, var(--tint), #fbfcfc);
}
.ahero { padding-bottom: 2.5rem; }
.ahero::before, .chero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(15,110,99,.12) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 80% at 90% 10%, #000, transparent 70%);
          mask-image: radial-gradient(60% 80% at 90% 10%, #000, transparent 70%);
}
.ahead__icon { background: linear-gradient(145deg, var(--brand-600), var(--brand-800)); }
.ahead__title, .chero__title, .ahero__title { color: var(--brand-950); }

/* تصویر/ویدیوی هیرو دوره: قاب طلایی تزئینی */
.chero__media { position: relative; isolation: isolate; }
.chero__media > .cvideo { box-shadow: var(--shadow-lift); }
.cvideo--image img.is-cover { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; }

/* زبانه‌های بخش‌های دوره */
.ctabs { background: rgba(255,255,255,.92); }

/* کارت‌های کلاس */
.session { border-radius: 18px; box-shadow: var(--shadow-card); border-color: transparent; }
.session.is-selected { border-color: var(--accent); }
.session__title strong { color: var(--brand-950); }

/* جعبه خرید کنار صفحه */
.buy { border: 0; border-top: 4px solid var(--accent); box-shadow: var(--shadow-lift); }

/* =========================================================
   فوتر: سبز تیره برند به‌جای مشکی
   ========================================================= */
.footer {
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(110,190,176,.14), transparent 70%),
    linear-gradient(180deg, var(--brand-900), var(--brand-950));
  color: #a9c4bf;
}
.footer::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); height: 2px; }
.footer__cta { border-color: rgba(242,184,75,.25); }

@media (prefers-reduced-motion: reduce) {
  .course:hover, .dept-grid > .dept:hover { transform: none; }
}
