/* ==========================================================================
   تفکر تمدنی — civthink.com
   قالب مجله‌ای تک‌صفحه‌ای | HTML5 + CSS3 + Vanilla JS
   فهرست: ۱)توکن‌ها ۲)ریست ۳)چیدمان ۴)دکمه‌ها ۵)تیکر ۶)نوبار ۷)دراور
          ۸)هیرو ۹)فوتر ۱۰)مودال ۱۱)کی‌فریم‌ها ۱۲)ریسپانسیو
   قانون: هیچ رنگی مستقیم در کامپوننت‌ها استفاده نشود — فقط از متغیرها
   (استثنا: سفیدهای روی تصویر/گرادیان که در هر دو تم ثابت‌اند)
   ========================================================================== */

/* ---------- فونت وزیرمتن (متغیر، وزن ۱۰۰ تا ۹۰۰) ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn[wght].woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
/* جایگزین استاتیک برای مرورگرهای بدون پشتیبانی فونت متغیر */
@supports not (font-variation-settings: normal) {
  @font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
  }
  @font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
  }
}

/* ==========================================================================
   ۱) توکن‌های طراحی — Design Tokens
   ========================================================================== */
:root {
  /* --- جهت ---
     ۱ برای RTL (پیش‌فرض این فایل)، ۱- برای LTR. این فایل تنها نسخه CSS قالب
     است؛ assets/css/ltr.css فقط همین یک متغیر (+ یکی‌دو مورد غیرقابل calc)
     را override می‌کند. هر جلوه‌ای که «جهت جلو رفتن» بصری دارد (فلش‌ها،
     اسلاید بعدی، کشویی هاور، مبدأ پرشدن نوار پیشرفت) باید با
     calc(... * var(--dir, 1)) نوشته شود، نه با راست/چپ هاردکد. */
  --dir: 1;

  /* --- چیدمان --- */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 1.5rem);
  --nav-h: 4.5rem;
  --section-gap: clamp(3rem, 8vw, 5.5rem);

  /* --- تایپوگرافی (واکنش‌گرا با clamp) --- */
  --font-body: "Vazirmatn", "Tahoma", system-ui, sans-serif;
  --fs-hero:  clamp(1.45rem, 0.9rem + 2.6vw, 2.9rem);  /* تیتر اسلایدر */
  --fs-h2:    clamp(1.3rem, 1rem + 1.3vw, 2rem);        /* عنوان بخش‌ها */
  --fs-h3:    clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); /* عنوان کارت‌ها */
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-xs:    0.78rem;
  --lh-tight: 1.45;
  --lh-body:  1.9; /* متن فارسی به ارتفاع خط بیشتری نیاز دارد */

  /* --- گردی، سایه، حرکت --- */
  --radius-sm: 0.5rem;
  --radius:    0.9rem;
  --radius-lg: 1.4rem;
  --radius-full: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.35s;
  --dur-slow: 0.6s;

  /* --- لایه‌ها --- */
  --z-nav: 100;
  --z-dropdown: 110;
  --z-modal: 200;
  --z-toast: 300;

  /* --- تم روشن (پیش‌فرض) --- */
  color-scheme: light;
  --c-bg:          #f4f9f9;
  --c-surface:     #ffffff;
  --c-surface-2:   #e9f2f2;
  --c-surface-3:   #dcebeb;
  --c-text:        #10282c;
  --c-text-2:      #3f5c60;
  --c-text-3:      #6f8a8e;
  --c-heading:     #0c2124;
  --c-primary:     #0f766e;  /* فیروزه‌ای تیره — متن و لینک روی زمینه روشن */
  --c-primary-2:   #0d9488;  /* فیروزه‌ای اصلی برند */
  --c-primary-soft: rgba(13, 148, 136, 0.1);
  --c-secondary:   #0e7490;  /* سبزآبی */
  --c-secondary-2: #06b6d4;
  --c-gold:        #a1720e;  /* طلایی باستانی — تاکید ظریف */
  --c-border:      #d3e3e3;
  --c-border-2:    #b9d2d2;
  --c-hero-overlay: rgba(8, 26, 28, 0.55);
  --shadow-sm: 0 1px 3px rgba(15, 60, 58, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 60, 58, 0.12);
  --shadow-lg: 0 16px 44px rgba(15, 60, 58, 0.18);
  --gradient-brand: linear-gradient(135deg, #0d9488, #06b6d4);
  --gradient-deep:  linear-gradient(135deg, #0f766e, #155e75);
  /* گرادیان متن عنوان بخش‌ها: فیروزه‌ای ← سبزآبی (هم‌خانواده و ملایم) */
  --gradient-title: linear-gradient(110deg, #0d9488 15%, #0e7490 85%);
}

/* --- تم تیره: انتخاب دستی کاربر --- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg:          #0a1416;
  --c-surface:     #0f1e21;
  --c-surface-2:   #15282c;
  --c-surface-3:   #1c3438;
  --c-text:        #d9e9e9;
  --c-text-2:      #9fbcbe;
  --c-text-3:      #74969a;
  --c-heading:     #f0f8f8;
  --c-primary:     #2dd4bf;
  --c-primary-2:   #14b8a6;
  --c-primary-soft: rgba(45, 212, 191, 0.12);
  --c-secondary:   #22d3ee;
  --c-secondary-2: #67e8f9;
  --c-gold:        #d9b45b;
  --c-border:      #1e3a3f;
  --c-border-2:    #2a4d53;
  --c-hero-overlay: rgba(4, 14, 16, 0.66);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.55);
  --gradient-brand: linear-gradient(135deg, #14b8a6, #0891b2);
  --gradient-deep:  linear-gradient(135deg, #115e59, #164e63);
  --gradient-title: linear-gradient(110deg, #5eead4 15%, #22d3ee 85%);
}

/* --- تم تیره: پیش‌فرض سیستم (وقتی کاربر دستی تم روشن را انتخاب نکرده) --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-bg:          #0a1416;
    --c-surface:     #0f1e21;
    --c-surface-2:   #15282c;
    --c-surface-3:   #1c3438;
    --c-text:        #d9e9e9;
    --c-text-2:      #9fbcbe;
    --c-text-3:      #74969a;
    --c-heading:     #f0f8f8;
    --c-primary:     #2dd4bf;
    --c-primary-2:   #14b8a6;
    --c-primary-soft: rgba(45, 212, 191, 0.12);
    --c-secondary:   #22d3ee;
    --c-secondary-2: #67e8f9;
    --c-gold:        #d9b45b;
    --c-border:      #1e3a3f;
    --c-border-2:    #2a4d53;
    --c-hero-overlay: rgba(4, 14, 16, 0.66);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.55);
    --gradient-brand: linear-gradient(135deg, #14b8a6, #0891b2);
    --gradient-deep:  linear-gradient(135deg, #115e59, #164e63);
    --gradient-title: linear-gradient(110deg, #5eead4 15%, #22d3ee 85%);
  }
}

/* ==========================================================================
   ۲) ریست و پایه
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  color: var(--c-heading);
  line-height: var(--lh-tight);
  font-weight: 800;
  overflow-wrap: break-word;
}

p { overflow-wrap: break-word; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* صفت hidden باید بر display ریست غالب باشد */
[hidden] { display: none !important; }

img { height: auto; }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

ul[role="list"], ol[role="list"] { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--c-primary-2);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* احترام به کاربرانی که حرکت کمتر می‌خواهند */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   ۳) چیدمان پایه و ابزارها
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--container-pad));
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  z-index: var(--z-toast);
  background: var(--c-primary-2);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus-visible { top: 1rem; }

/* آیکون جهت‌دار (شورون/فلش قبلی-بعدی): در RTL بدون تغییر، در LTR با scaleX(-1)
   آینه می‌شود چون var(--dir) در ltr.css به ۱- تغییر می‌کند. کلاس را روی svg
   بگذار، نه روی دکمه دربرگیرنده — با انتقال هاور مربوطه (اگر بود) ترکیب می‌شود. */
.i-flip {
  display: inline-block;
  transform: scaleX(var(--dir, 1));
}

/* ==========================================================================
   ۴) دکمه‌ها
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}

.btn svg { width: 1.1em; height: 1.1em; }

.btn--primary {
  background-image: var(--gradient-brand);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.07);
}

/* دکمه شبح: با hover از سمت جلو (راست در RTL، چپ در LTR) با گرادیان پر می‌شود */
.btn--ghost {
  border: 1px solid var(--c-border-2);
  color: var(--c-text-2);
  background-image: var(--gradient-brand);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: calc(50% + 50% * var(--dir, 1)) center;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-size: 100% 100%;
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.icon-btn {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: var(--radius-full);
  display: inline-grid;
  place-items: center;
  color: var(--c-text-2);
  transition: all var(--dur) var(--ease);
}

.icon-btn svg { width: 1.3rem; height: 1.3rem; transition: transform var(--dur) var(--ease-spring); }

.icon-btn:hover {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}

.icon-btn:hover svg { transform: rotate(12deg) scale(1.08); }

/* ==========================================================================
   ۵) تیکر خبر فوری
   ========================================================================== */
.ticker {
  background-image: var(--gradient-deep);
  color: #eafcfa;
  font-size: var(--fs-sm);
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
}

.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-weight: 800;
  font-size: var(--fs-xs);
  color: #ffe4a8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
}

.ticker__pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: #ffd166;
  animation: pulse 1.6s var(--ease) infinite;
}

.ticker__viewport {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5% 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5% 95%, transparent);
}

.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-move var(--ticker-dur, 42s) linear infinite;
  will-change: transform;
}

.ticker__track:hover { animation-play-state: paused; }

.ticker__item { padding-inline-end: 2.75rem; position: relative; }

.ticker__item::after {
  content: "✦";
  position: absolute;
  inset-inline-end: 1.05rem;
  color: #ffd166;
  opacity: 0.7;
}

/* ==========================================================================
   ۶) هدر و نوبار
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--c-bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: all var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--c-bg) 90%, transparent);
  border-color: var(--c-border);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--nav-h);
  transition: min-height var(--dur) var(--ease);
}

.site-header.is-scrolled .nav { min-height: 3.7rem; }

/* --- برند --- */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.nav__logo {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-spring);
}

.nav__brand:hover .nav__logo { transform: rotate(-7deg) scale(1.06); }

.nav__brand-text { display: grid; line-height: 1.5; }

.nav__brand-text strong {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--c-heading);
  transition: color var(--dur) var(--ease);
}

.nav__brand:hover .nav__brand-text strong { color: var(--c-primary); }

.nav__brand-text small {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

/* --- منوی وسط --- */
.nav__menu { margin-inline: auto; }

.nav__list { display: flex; gap: 0.2rem; }

.nav__item { position: relative; }

/* پل نامرئی بین لینک و زیرمنو تا hover قطع نشود */
.nav__item::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 0.9rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.05rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-text-2);
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--dur) var(--ease);
}

.nav__link svg {
  width: 0.85em;
  height: 0.85em;
  transition: transform var(--dur) var(--ease);
}

/* خط زیرین گرادیانی که از وسط باز می‌شود */
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 1.1rem;
  bottom: 0.3rem;
  height: 2.5px;
  border-radius: 2px;
  background-image: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}

.nav__item:hover .nav__link,
.nav__item:focus-within .nav__link,
.nav__item.is-open .nav__link { color: var(--c-primary); }

.nav__item:hover .nav__link::after,
.nav__item:focus-within .nav__link::after,
.nav__item.is-open .nav__link::after { transform: scaleX(1); }

.nav__item:hover .nav__link svg,
.nav__item:focus-within .nav__link svg,
.nav__item.is-open .nav__link svg { transform: rotate(180deg); }

/* --- زیرمنو --- */
.nav__sub {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  transform: translate(-50%, 12px);
  min-width: 13.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: var(--z-dropdown);
}

/* فلش رو به بالای زیرمنو — با مربع چرخیده؛ گوشه بالا از border فیزیکی
   top+left ساخته می‌شود (در RTL خواص logical جهت فلش را می‌چرخاندند) */
.nav__sub::before {
  content: "";
  position: absolute;
  top: -5.5px;
  left: 50%;
  width: 11px;
  height: 11px;
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border);
  transform: translateX(-50%) rotate(45deg);
}

.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub,
.nav__item.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav__sub-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

/* لوزی طلایی — الهام از نقوش کاشی ایرانی */
.nav__sub-link::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  background: var(--c-gold);
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease-spring);
}

.nav__sub-link:hover,
.nav__sub-link:focus-visible {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  padding-inline-start: 1.1rem;
}

.nav__sub-link:hover::before,
.nav__sub-link:focus-visible::before { transform: rotate(45deg) scale(1); }

/* --- دکمه‌های سمت چپ --- */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* --- سوییچر زبان --- */
.lang { position: relative; }

.lang__btn {
  width: auto;
  padding-inline: 0.7rem;
  gap: 0.35rem;
  display: inline-flex;
  align-items: center;
}

.lang__current { font-size: var(--fs-xs); font-weight: 800; }

.lang__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  inset-inline-end: 0;
  min-width: 9.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: var(--z-dropdown);
}

.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  transition: all 0.25s var(--ease);
}

.lang__item small { font-size: var(--fs-xs); color: var(--c-text-3); }

.lang__item:hover { background: var(--c-primary-soft); color: var(--c-primary); }

.lang__item.is-active { color: var(--c-primary); font-weight: 800; }

.lang__item.is-active::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--radius-full);
  background-image: var(--gradient-brand);
}

.nav__burger { display: none; }

/* ==========================================================================
   ۷) دراور موبایل
   ========================================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.5s;
}

.drawer.is-open {
  visibility: visible;
  transition: visibility 0s;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 16, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(21rem, 86vw);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem;
  /* بسته = بیرون از صفحه هم‌سمت با محل لنگر پنل (inset-inline-start)؛
     در RTL آن سمت فیزیکی-راست است (+۱۰۰٪)، در LTR فیزیکی-چپ (-۱۰۰٪) */
  transform: translateX(calc(100% * var(--dir, 1)));
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}

.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--c-border);
}

.drawer__title { font-weight: 900; font-size: 1.1rem; color: var(--c-heading); }

.drawer__list { padding-block: 0.6rem; }

.drawer__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.4rem;
  font-weight: 700;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  transition: color var(--dur) var(--ease);
}

.drawer__toggle svg {
  width: 1em;
  height: 1em;
  transition: transform var(--dur) var(--ease);
}

.drawer__item.is-open .drawer__toggle { color: var(--c-primary); }
.drawer__item.is-open .drawer__toggle svg { transform: rotate(180deg); }

.drawer__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.drawer__sub > ul { overflow: hidden; min-height: 0; }

.drawer__item.is-open .drawer__sub { grid-template-rows: 1fr; }

.drawer__sub a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

.drawer__sub a::before {
  content: "";
  width: 0.85rem;
  height: 1.5px;
  background: var(--c-gold);
  opacity: 0.6;
}

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

.drawer__foot {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}

/* ==========================================================================
   ۸) اسلایدر هیرو
   ========================================================================== */
.hero {
  position: relative;
  height: min(80vh, 41rem);
  min-height: 29rem;
  overflow: hidden;
  background: var(--c-surface-3);
  /* هم‌عرض محتوا، جدا از لبه‌ها و با قاب گرد */
  width: min(var(--container-max), calc(100% - 2 * var(--container-pad)));
  margin-inline: auto;
  margin-top: clamp(0.9rem, 2vw, 1.4rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* لایه تصویر: inset منفی فضای حرکت پارالاکس را می‌دهد */
.hero__bg {
  position: absolute;
  inset: -14% 0;
  transform: translateY(var(--plx, 0px));
  will-change: transform;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

/* زوم آرام کن-برنز روی اسلاید فعال */
.hero__slide.is-active .hero__bg img {
  animation: hero-zoom 8s var(--ease) forwards;
}

.hero__shade {
  position: absolute;
  inset: 0;
  /* زاویه اول باید هم‌سمت متن هیرو تیره باشد: 270deg(به‌چپ) در RTL، 90deg(به‌راست) در LTR.
     فرمول: 180deg + 90deg*dir → dir=1:270deg, dir=-1:90deg. لایه دوم (به‌بالا) جهت‌مستقل است. */
  background:
    linear-gradient(calc(180deg + 90deg * var(--dir, 1)), var(--c-hero-overlay) 32%, transparent 80%),
    linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 42%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.05rem;
  padding-bottom: 2.5rem;
}

/* در دسکتاپ (وقتی فلش‌ها هستند) متن از حریم فلش‌های کناری فاصله بگیرد */
@media (min-width: 768px) {
  .hero__content { padding-inline: 4.5rem; }
}

/* ورود پلکانی محتوای اسلاید فعال */
.hero__slide .hero__content > * {
  opacity: 0;
  transform: translateY(26px);
}

.hero__slide.is-active .hero__content > * {
  animation: fade-up 0.7s var(--ease) forwards;
}

.hero__slide.is-active .hero__content > *:nth-child(1) { animation-delay: 0.15s; }
.hero__slide.is-active .hero__content > *:nth-child(2) { animation-delay: 0.3s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { animation-delay: 0.45s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { animation-delay: 0.6s; }

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hero__badge {
  background-image: var(--gradient-brand);
  color: #ffffff;
  padding: 0.28rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero__date {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  color: #ffffff;
  max-width: 34rem;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* متن گرادیانی روشن — هم‌خانواده با عنوان بخش‌ها ولی درخشان روی عکس */
.hero__title a {
  color: transparent;
  background-image: linear-gradient(110deg, #f2fffc 12%, #b8f5ee 55%, #b9edf5 95%);
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: 0.25rem;
  transition: filter var(--dur) var(--ease);
}

.hero__title a:hover {
  filter: brightness(1.15) drop-shadow(0 0 14px rgba(103, 232, 249, 0.4));
}

/* لید کم‌رنگ‌تر و خاکستری — تمرکز اصلی روی عنوان بماند */
.hero__lead {
  color: rgba(205, 219, 221, 0.68);
  max-width: 36rem;
  font-size: 1.02rem;
}

.hero__cta { margin-top: 0.35rem; }

/* --- فلش‌ها --- */
.hero__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: all var(--dur) var(--ease);
}

.hero__arrow svg { width: 1.35rem; height: 1.35rem; }

.hero__arrow:hover {
  background-image: var(--gradient-brand);
  border-color: transparent;
  transform: scale(1.1);
}

.hero__arrow--prev { inset-inline-start: 1.1rem; }
.hero__arrow--next { inset-inline-end: 1.1rem; }

/* --- نقطه‌ها با نوار پیشرفت --- */
.hero__dots {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}

.hero__dot:hover { background: rgba(255, 255, 255, 0.75); }

.hero__dot.is-active {
  width: 2.9rem;
  background: rgba(255, 255, 255, 0.28);
}

.hero__dot-bar {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--gradient-brand);
  transform: scaleX(0);
  /* پرشدن هم‌جهت با خواندن: راست در RTL (100%)، چپ در LTR (0%) */
  transform-origin: calc(50% + 50% * var(--dir, 1)) center;
}

.hero__dot.is-active .hero__dot-bar {
  animation: dot-progress var(--hero-interval, 7s) linear forwards;
}

.hero.is-paused .hero__dot-bar { animation-play-state: paused; }

/* ==========================================================================
   ۸ب) بخش دو ستونه: فید اخبار + سایدبار (فاز ۳)
   ========================================================================== */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* هر دو ستون sticky — ستون کوتاه‌تر هنگام اسکرول می‌چسبد
   و فضای خالی زیر آن دیده نمی‌شود */
.news-col,
.side-col {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  align-self: start;
}

.news-col { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.side-col {
  display: grid;
  gap: 1.5rem;
}

/* --- سربرگ بخش‌ها (قابل استفاده در همه فازها) --- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-h2);
  font-weight: 900;
  background-image: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ستاره گره هشت‌پر — امضای بصری سربرگ‌ها (نقش هندسی ایرانی) */
.section-head__title::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background-image: var(--gradient-brand);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6'/%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6' transform='rotate(45 12 12)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6'/%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6' transform='rotate(45 12 12)'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px rgba(15, 60, 58, 0.3));
}

/* خط تزئینی طلایی با دو لوزی — الهام از حاشیه تذهیب؛ رو به دور از عنوان محو می‌شود.
   گرادیان و شکل mask هر دو برای «به‌چپ محو شدن در RTL» طراحی شده‌اند؛ به‌جای
   بازنویسی جداگانه گرادیان و مختصات mask، کل المان با scaleX(var(--dir)) در
   LTR آینه می‌شود — گرادیان و mask با هم درست می‌چرخند. */
.section-head__title::after {
  content: "";
  width: 4.5rem;
  height: 0.65rem;
  flex-shrink: 0;
  opacity: 0.8;
  transform: scaleX(var(--dir, 1));
  background-image: linear-gradient(to left, var(--c-gold), transparent 92%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 10'%3E%3Cpath d='M74.5 0.8 78.7 5 74.5 9.2 70.3 5Z'/%3E%3Cpath d='M64.5 2.6 66.9 5 64.5 7.4 62.1 5Z'/%3E%3Crect x='0' y='4.3' width='60' height='1.4' rx='0.7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 10'%3E%3Cpath d='M74.5 0.8 78.7 5 74.5 9.2 70.3 5Z'/%3E%3Cpath d='M64.5 2.6 66.9 5 64.5 7.4 62.1 5Z'/%3E%3Crect x='0' y='4.3' width='60' height='1.4' rx='0.7'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-primary);
}

.section-head__link svg {
  width: 1.05em;
  height: 1.05em;
  transition: transform var(--dur) var(--ease);
}

/* i-flip در حالت پایه scaleX(var(--dir)) دارد؛ روی هاور باید هم آن فلیپ و هم لغزش حفظ شود */
.section-head__link:hover svg { transform: scaleX(var(--dir, 1)) translateX(calc(-4px * var(--dir, 1))); }

/* --- کارت خبر --- */
.news-list {
  display: grid;
  gap: 1.1rem;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  animation: card-in 0.55s var(--ease) both;
}

/* نوار تاکید گرادیانی سمت راست — با hover باز می‌شود */
.news-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-image: var(--gradient-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
  z-index: 1;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-2);
}

.news-card:hover::before { transform: scaleY(1); }

.news-card__media {
  display: block;
  overflow: hidden;
  height: 100%;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  min-height: 9rem;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.news-card:hover .news-card__media img { transform: scale(1.09); }

.news-card__body {
  padding: 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.news-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: var(--fs-xs);
}

.news-card__cat {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 0.12rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.news-card__region {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-text-3);
}

.news-card__region::before {
  content: "";
  width: 0.32rem;
  height: 0.32rem;
  background: var(--c-gold);
  transform: rotate(45deg);
}

.news-card__title {
  font-size: var(--fs-h3);
  line-height: 1.55;
}

.news-card__title a {
  color: var(--c-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .news-card__title a { color: var(--c-primary); }

.news-card__excerpt {
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__date {
  margin-top: auto;
  color: var(--c-text-3);
  font-size: var(--fs-xs);
}

/* --- صفحه‌بندی --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.8rem;
}

.pagination__btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.6rem;
  border-radius: var(--radius-full);
  display: inline-grid;
  place-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all var(--dur) var(--ease);
}

.pagination__btn svg { width: 1.1rem; height: 1.1rem; }

.pagination__btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--c-primary-2);
  color: var(--c-primary);
  transform: translateY(-2px);
}

.pagination__btn.is-active {
  background-image: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- بلوک‌های سایدبار --- */
.side-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  /* آیتم grid نباید با محتوای اسلایدر پهن شود (min-width:auto پیش‌فرض) */
  min-width: 0;
}

.side-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.side-block__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.side-block__title::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  flex-shrink: 0;
  border-radius: 2px;
  background-image: var(--gradient-brand);
  transform: rotate(45deg);
}

.side-block__nav {
  display: flex;
  gap: 0.3rem;
}

.side-block__arrow {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: var(--radius-full);
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  transition: all var(--dur) var(--ease);
}

.side-block__arrow svg { width: 1rem; height: 1rem; }

.side-block__arrow:hover {
  background-image: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
}

/* --- اسلایدر عمومی سایدبار --- */
.side-slider { overflow: hidden; }

.side-slider__track {
  display: flex;
  transition: transform 0.55s var(--ease);
  /* آیتم بعدی در RTL از چپ می‌آید (dir=1)، در LTR از راست (dir=-1) */
  transform: translateX(calc(var(--i, 0) * var(--dir, 1) * 100%));
}

.side-slider__item {
  flex: 0 0 100%;
  min-width: 0;
}

.side-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.side-slider__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--c-border-2);
  transition: all var(--dur) var(--ease);
}

.side-slider__dot.is-active {
  width: 1.25rem;
  background-image: var(--gradient-brand);
}

/* --- کارت مصاحبه --- */
.iv-card {
  display: grid;
  gap: 0.55rem;
}

.iv-card__media {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.iv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.iv-card__media:hover img { transform: scale(1.07); }

.iv-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 14, 16, 0.55), transparent 55%);
}

.iv-card__tag {
  position: absolute;
  bottom: 0.7rem;
  inset-inline-start: 0.7rem;
  z-index: 1;
  background-image: var(--gradient-brand);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 0.18rem 0.75rem;
  border-radius: var(--radius-full);
}

.iv-card__title {
  font-size: 1rem;
  line-height: 1.6;
}

.iv-card__title a {
  color: var(--c-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iv-card__title a:hover { color: var(--c-primary); }

/* نشان طلایی — تمایز «خبر ویژه» از «گفت‌وگو» */
.iv-card__tag--gold {
  background-image: none;
  background-color: var(--c-gold);
}

.iv-card__desc {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iv-card__guest {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-gold);
}

.iv-card__guest span {
  font-weight: 400;
  color: var(--c-text-3);
}

.iv-card__date {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

/* --- کارت کتاب --- */
.book-card {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 1rem;
  align-items: stretch;
}

/* جلد کتاب با CSS — گرادیان‌های ثابت مستقل از تم (اثر هنری) */
.book-card__cover {
  aspect-ratio: 10 / 14;
  border-radius: 0.55rem 0.3rem 0.3rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0.85rem 0.6rem;
  position: relative;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease);
}

/* قاب داخلی جلد — الهام از تذهیب */
.book-card__cover::before {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.35rem 0.2rem 0.2rem 0.35rem;
  pointer-events: none;
}

/* عطف کتاب */
.book-card__cover::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 0.32rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0 0.3rem 0.3rem 0;
}

.book-card:hover .book-card__cover {
  transform: rotate(-3deg) translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.book-card__cover--teal  { background-image: linear-gradient(160deg, #0f766e, #134e4a); }
.book-card__cover--gold  { background-image: linear-gradient(160deg, #b8860b, #6d4a04); }
.book-card__cover--night { background-image: linear-gradient(160deg, #164e63, #0b1c24); }
.book-card__cover--jade  { background-image: linear-gradient(160deg, #14b8a6, #115e59); }
.book-card__cover--cyan  { background-image: linear-gradient(160deg, #0891b2, #155e75); }

.book-card__orn {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  line-height: 1;
}

.book-card__cover strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

.book-card__cover em {
  font-style: normal;
  font-size: 0.66rem;
  opacity: 0.85;
}

.book-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.book-card__info h4 { font-size: 0.98rem; }

.book-card__author {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-gold);
}

.book-card__desc {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 800;
}

.book-card__link svg {
  width: 1em;
  height: 1em;
  transition: transform var(--dur) var(--ease);
}

.book-card__link:hover svg { transform: scaleX(var(--dir, 1)) translateX(calc(-3px * var(--dir, 1))); }

/* --- ریسپانسیو بخش دو ستونه --- */
@media (max-width: 1023px) {
  .home-grid { grid-template-columns: 1fr; }

  /* در حالت تک‌ستونه sticky لازم نیست */
  .news-col,
  .side-col { position: static; }

  .side-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 679px) {
  .side-col { grid-template-columns: 1fr; }

  .news-card { grid-template-columns: 1fr; }

  .news-card__media { aspect-ratio: 16 / 9; }

  .news-card__media img { min-height: 0; }
}

/* ==========================================================================
   ۸ج) بخش فیلم و مستند + گالری + لایت‌باکس (فاز ۴)
   ========================================================================== */

/* --- نوار تیره — در هر دو تم ثابت است (مثل هیرو، رنگ‌های روی آن هاردکد مجاز)
   لایه‌ها: هاله فیروزه‌ای + هاله سبزآبی + گره هشت‌پر بزرگ (تزئین لبه) +
   کاشی گره تکرارشونده + گرادیان پایه --- */
.videos-band {
  position: relative;
  overflow: hidden;
  margin-top: var(--section-gap);
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  background-color: #09171c;
  background-image:
    radial-gradient(44rem 28rem at 88% -10%, rgba(20, 184, 166, 0.17), transparent 65%),
    radial-gradient(38rem 26rem at 3% 112%, rgba(8, 145, 178, 0.19), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Cpath d='M32 4 40 24 60 32 40 40 32 60 24 40 4 32 24 24Z'/%3E%3Ccircle cx='32' cy='32' r='7'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(150deg, #0c242a, #08161b 52%, #0d2b31);
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-size: auto, auto, 64px 64px, auto;
  background-position: 0 0, 0 0, center top, 0 0;
}

/* نوارهای کنگره‌ای بالا و پایین — پیوند بصری با زیگورات */
.videos-band::before,
.videos-band::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 0.5rem;
  background-image: var(--gradient-brand);
  opacity: 0.4;
  pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 10V4h8V0h8v4h8V0h8v4h8v6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 10V4h8V0h8v4h8V0h8v4h8v6Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 2.5rem 100%;
  mask-size: 2.5rem 100%;
}

.videos-band::before {
  top: 0;
  transform: scaleY(-1);
}

.videos-band::after { bottom: 0; }

/* روی نوارهای تیره ثابت، همیشه نسخه روشن گرادیان استفاده می‌شود */
.section-head--ondark .section-head__title {
  background-image: linear-gradient(110deg, #5eead4 15%, #22d3ee 85%);
}

.section-head--ondark .section-head__title::after {
  background-image: linear-gradient(to left, #ffd166, transparent 92%);
}

.section-head--ondark .section-head__link { color: #2dd4bf; }

/* --- گرید ویدیوها: شاخص ۲×۲ + چهار کارت کوچک --- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.25rem;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: start;
  min-width: 0;
}

.video-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.video-card__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.video-card--featured .video-card__media { aspect-ratio: auto; flex: 1; min-height: 16rem; }

.video-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.video-card:hover .video-card__media img { transform: scale(1.06); }

.video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 12, 14, 0.65), rgba(4, 12, 14, 0.08) 55%);
  transition: background var(--dur) var(--ease);
}

/* --- دکمه پخش با حلقه ضربان در hover --- */
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: all var(--dur) var(--ease);
}

.video-card--featured .video-card__play { width: 4.6rem; height: 4.6rem; }

.video-card__play svg {
  width: 38%;
  height: 38%;
  margin-inline-end: -6%; /* مثلث پخش را بصری وسط می‌کند */
}

.video-card:hover .video-card__play {
  background-image: var(--gradient-brand);
  border-color: transparent;
  animation: play-pulse 1.5s var(--ease) infinite;
}

.video-card__duration {
  position: absolute;
  bottom: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 1;
  background: rgba(4, 12, 14, 0.72);
  color: #eafcfa;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.12rem 0.55rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.video-card__cat {
  position: absolute;
  top: 0.65rem;
  inset-inline-start: 0.65rem;
  z-index: 1;
  background-image: var(--gradient-brand);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-full);
}

.video-card__title {
  color: #e9f5f5;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur) var(--ease);
}

.video-card--featured .video-card__title { font-size: var(--fs-h3); font-weight: 800; }

.video-card:hover .video-card__title { color: #2dd4bf; }

.video-card__desc {
  color: rgba(233, 245, 245, 0.62);
  font-size: var(--fs-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__date {
  color: rgba(233, 245, 245, 0.45);
  font-size: var(--fs-xs);
}

/* --- گالری موزاییکی --- */
.gallery-section { margin-top: var(--section-gap); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 10.5rem;
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

/* الگوی موزاییک — با ۸ آیتم دقیقا ۳ ردیف بدون حفره می‌سازد */
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.9rem;
  background: linear-gradient(to top, rgba(4, 14, 16, 0.78), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay { opacity: 1; }

.gallery-item__title {
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 800;
  text-align: start;
  transform: translateY(10px);
  transition: transform var(--dur) var(--ease);
}

.gallery-item__count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-xs);
  transform: translateY(10px);
  transition: transform var(--dur) var(--ease) 0.05s;
}

.gallery-item__count svg { width: 0.95rem; height: 0.95rem; }

.gallery-item:hover .gallery-item__title,
.gallery-item:hover .gallery-item__count { transform: translateY(0); }

/* آیکون زوم گوشه بالا */
.gallery-item__zoom {
  position: absolute;
  top: 0.7rem;
  inset-inline-end: 0.7rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--dur) var(--ease-spring);
}

.gallery-item__zoom svg { width: 1.05rem; height: 1.05rem; }

.gallery-item:hover .gallery-item__zoom {
  opacity: 1;
  transform: scale(1);
}

/* --- لایت‌باکس --- */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}

.lightbox[open] { display: flex; }

.lightbox::backdrop {
  background: rgba(3, 10, 12, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox__stage {
  display: grid;
  place-items: center;
  animation: lightbox-in 0.45s var(--ease);
}

.lightbox__stage img {
  max-width: min(72rem, 92vw);
  max-height: 74dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.lightbox__stage video {
  width: min(60rem, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

/* حالت نمایشی ویدیو (بدون src) */
.lightbox__demo {
  position: relative;
  width: min(60rem, 92vw);
}

.lightbox__demo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: none;
}

.lightbox__demo-note {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(4, 12, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eafcfa;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: min(72rem, 92vw);
}

.lightbox__caption {
  color: #eef8f8;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.lightbox__counter {
  color: rgba(238, 248, 248, 0.6);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

.lightbox__close {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: 1.1rem;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: all var(--dur) var(--ease);
}

.lightbox__close svg { width: 1.25rem; height: 1.25rem; }

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: all var(--dur) var(--ease);
}

.lightbox__arrow svg { width: 1.3rem; height: 1.3rem; }

.lightbox__arrow:hover {
  background-image: var(--gradient-brand);
  border-color: transparent;
  transform: scale(1.08);
}

.lightbox__arrow--prev { inset-inline-start: 1.1rem; }
.lightbox__arrow--next { inset-inline-end: 1.1rem; }

.lightbox__arrow[hidden],
.lightbox__counter[hidden] { display: none !important; }

/* --- ریسپانسیو فاز ۴ --- */
@media (max-width: 899px) {
  .videos-grid { grid-template-columns: 1fr 1fr; }

  .video-card--featured { grid-column: span 2; grid-row: auto; }

  .video-card--featured .video-card__media {
    aspect-ratio: 16 / 9;
    flex: none;
    min-height: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 9rem;
  }

  .lightbox__arrow--prev { inset-inline-start: 0.5rem; }
  .lightbox__arrow--next { inset-inline-end: 0.5rem; }
}

@media (max-width: 519px) {
  .videos-grid { grid-template-columns: 1fr; }

  .video-card--featured { grid-column: auto; }
}

/* ==========================================================================
   ۸د) بخش‌های موضوعی فاز ۵ + خبرنامه، جستجو، بازگشت به بالا (فاز ۶)
   ========================================================================== */

.section-head__hint {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

/* --- کاوش تمدن‌ها: اسکرول افقی با snap --- */
.civs-section { margin-top: var(--section-gap); }

/* اسلایدر بی‌پایان: محتوا دو بار تکرار و ترک با transform جابه‌جا می‌شود */
.civs-scroller {
  overflow: hidden;
  /* فضای بالا برای حرکت hover (translateY -5px + حلقه outline) تا لبه کارت بریده نشود */
  padding: 0.9rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
}

.civs-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
  touch-action: pan-y;
}

.civ-chip {
  flex: 0 0 10.5rem;
  display: grid;
  gap: 0.55rem;
  text-align: center;
  transition: transform var(--dur) var(--ease);
}

.civ-chip:hover { transform: translateY(-5px); }

.civ-chip__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.civ-chip:hover .civ-chip__media {
  outline-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}

.civ-chip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.civ-chip:hover .civ-chip__media img { transform: scale(1.08); }

.civ-chip strong {
  color: var(--c-heading);
  font-size: 0.95rem;
  font-weight: 800;
  transition: color var(--dur) var(--ease);
}

.civ-chip:hover strong { color: var(--c-primary); }

.civ-chip small {
  color: var(--c-text-3);
  font-size: var(--fs-xs);
}

/* --- پادکست: نوار گرادیانی برند --- */
.podcast-band {
  margin-top: var(--section-gap);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
    linear-gradient(140deg, #0f766e, #0e5a66 55%, #155e75);
  background-size: 24px 24px, auto;
  color: #eafcfa;
}

.podcast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: center;
}

.podcast__icon {
  display: inline-grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffe4a8;
  margin-bottom: 1rem;
}

.podcast__icon svg { width: 1.9rem; height: 1.9rem; }

.podcast__title {
  color: #ffffff;
  font-size: var(--fs-h2);
  margin-bottom: 0.6rem;
}

.podcast__desc {
  color: rgba(234, 252, 250, 0.8);
  font-size: var(--fs-sm);
  margin-bottom: 1.2rem;
}

.podcast__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.podcast__platform {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background var(--dur) var(--ease);
}

.podcast__platform:hover { background: rgba(255, 255, 255, 0.22); }

.podcast__list {
  display: grid;
  gap: 0.7rem;
}

.podcast-ep {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eafcfa;
  text-align: start;
  transition: all var(--dur) var(--ease);
}

.podcast-ep:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(calc(-6px * var(--dir, 1)));
  border-color: rgba(255, 255, 255, 0.3);
}

.podcast-ep__num {
  flex-shrink: 0;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #ffe4a8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 228, 168, 0.5);
}

.podcast-ep__body {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
  flex: 1;
}

.podcast-ep__body strong {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-ep__body small {
  color: rgba(234, 252, 250, 0.6);
  font-size: var(--fs-xs);
}

.podcast-ep__dur {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: rgba(234, 252, 250, 0.75);
}

.podcast-ep__play {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transition: all var(--dur) var(--ease);
}

.podcast-ep__play svg { width: 1rem; height: 1rem; margin-inline-end: -2px; }

.podcast-ep:hover .podcast-ep__play {
  background-image: var(--gradient-brand);
  animation: play-pulse 1.5s var(--ease) infinite;
}

/* --- خط زمان --- */
.timeline-section { margin-top: var(--section-gap); }

.timeline {
  display: flex;
  gap: 2.4rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.6rem 0.4rem 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-2) transparent;
}

.timeline__item {
  position: relative;
  flex: 0 0 11rem;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

/* خط اتصال — هر آیتم قطعه خط تا آیتم بعدی را می‌کشد */
.timeline__item::after {
  content: "";
  position: absolute;
  top: calc(5.5rem + 0.8rem);
  inset-inline-start: 50%;
  width: calc(100% + 2.4rem);
  height: 2px;
  background: linear-gradient(90deg, var(--c-border-2), var(--c-border));
  z-index: -1;
}

.timeline__item:last-child::after { display: none; }

.timeline__img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--c-surface);
  outline: 2px solid var(--c-border-2);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}

.timeline__item:hover .timeline__img {
  outline-color: var(--c-gold);
  transform: scale(1.07);
  box-shadow: var(--shadow-md);
}

.timeline__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline__dot {
  width: 0.8rem;
  height: 0.8rem;
  background: var(--c-gold);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 0 4px var(--c-bg), var(--shadow-sm);
}

.timeline__year {
  font-weight: 900;
  color: var(--c-primary);
  font-size: 0.95rem;
}

.timeline__item p {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  line-height: 1.8;
}

/* --- نوار پارالاکس آمار و نقل‌قول --- */
.stats-band {
  position: relative;
  margin-top: var(--section-gap);
  padding-block: clamp(3.5rem, 9vw, 6rem);
  overflow: hidden;
  /* تا قبل از لود تصویر، متن سفید روی زمینه تیره خوانا بماند */
  background-color: #0d2026;
  /* stacking context جدید: وگرنه تصویرِ z-index:-1 زیر background-color می‌رود */
  isolation: isolate;
}

/* یادداشت: سیلوئت «افق تمدن‌ها» به درخواست کاربر حذف شد؛
   پس‌زمینه فقط عکس پارالاکس + هاله‌های رنگی اورلی است */

.stats-band__bg {
  position: absolute;
  inset: -18% 0;
  z-index: -1;
  transform: translateY(var(--plx2, 0px));
  will-change: transform;
}

.stats-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* اورلی: تیره‌کننده + دو هاله رنگی ملایم برای عمق (بدون نقطه و ستاره) */
.stats-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52rem 30rem at 90% -8%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(42rem 28rem at 6% 112%, rgba(8, 145, 178, 0.15), transparent 60%),
    linear-gradient(rgba(5, 18, 20, 0.82), rgba(5, 18, 20, 0.73));
}

.stats-band__inner {
  display: grid;
  gap: 2.6rem;
  justify-items: center;
  text-align: center;
}

.stats-band__quote p {
  color: #ffffff;
  font-size: clamp(1.15rem, 1rem + 1.2vw, 1.7rem);
  font-weight: 800;
  line-height: 2;
  max-width: 44rem;
  text-wrap: balance;
}

.stats-band__quote p::before { content: "«"; color: #ffd166; }
.stats-band__quote p::after { content: "»"; color: #ffd166; }

.stats-band__quote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
}

.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 56rem;
}

.stat {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 0.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.stat__value {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
}

.stat__value::after {
  content: "+";
  color: #2dd4bf;
  margin-inline-start: 0.15rem;
}

.stat__label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* --- پیشنهاد سردبیر --- */
.picks-band {
  margin-top: var(--section-gap);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--c-surface-2);
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pick-card {
  position: relative; /* برای جلای نور و تیلت */
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--dur) var(--ease);
}

.pick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.pick-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.pick-card:hover .pick-card__media img { transform: scale(1.07); }

.pick-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: grid;
  gap: 0.55rem;
}

.pick-card__cat {
  justify-self: start;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--c-gold);
  border: 1px solid currentColor;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-full);
}

.pick-card__title {
  font-size: var(--fs-h3);
  line-height: 1.55;
}

.pick-card__title a { color: var(--c-heading); }

.pick-card:hover .pick-card__title a { color: var(--c-primary); }

.pick-card__excerpt {
  color: var(--c-text-2);
  font-size: var(--fs-sm);
}

/* --- خبرنامه --- */
.newsletter { margin-top: var(--section-gap); }

.newsletter__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.5px),
    var(--gradient-deep);
  background-size: 22px 22px, auto;
  color: #ffffff;
  padding: clamp(1.8rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.6rem 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.newsletter__title {
  color: #ffffff;
  font-size: var(--fs-h2);
  margin-bottom: 0.5rem;
}

.newsletter__desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-sm);
}

.newsletter__form {
  display: flex;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  backdrop-filter: blur(6px);
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  padding-inline: 1rem;
  font-size: var(--fs-sm);
  text-align: start;
}

.newsletter__input::placeholder { color: rgba(255, 255, 255, 0.55); }

.btn--light {
  background: #ffffff;
  color: var(--c-secondary);
  font-weight: 800;
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.newsletter__note {
  grid-column: 1 / -1;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--dur) var(--ease);
}

.newsletter__note.is-success {
  color: #a7f3d0;
  font-weight: 700;
}

/* --- جستجوی اورلی --- */
.search-modal {
  border: none;
  padding: 0;
  background: transparent;
  width: min(38rem, calc(100vw - 2rem));
  /* وسط‌چین افقی صریح — margin-top تنها، وسط‌چینی پیش‌فرض dialog را به‌هم می‌زد */
  margin: 9vh auto auto;
}

.search-modal::backdrop {
  background: rgba(5, 16, 18, 0.6);
  backdrop-filter: blur(6px);
}

.search-modal[open] { animation: modal-in 0.45s var(--ease-spring); }

.search-modal__box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-modal__field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--c-border);
}

.search-modal__field > svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--c-primary);
  flex-shrink: 0;
}

.search-modal__field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 1.05rem;
  color: var(--c-text);
}

.search-modal__field input::placeholder { color: var(--c-text-3); }

.search-modal__results {
  max-height: min(50vh, 24rem);
  overflow-y: auto;
  padding: 0.6rem;
}

.search-hint {
  text-align: center;
  color: var(--c-text-3);
  font-size: var(--fs-sm);
  padding: 1.4rem;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  transition: all 0.2s var(--ease);
}

.search-result:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.search-result__type {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-full);
}

.search-result__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- دکمه بازگشت به بالا --- */
.to-top {
  position: fixed;
  bottom: 1.4rem;
  inset-inline-end: 1.4rem;
  z-index: var(--z-toast);
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background-image: var(--gradient-brand);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--dur) var(--ease);
}

.to-top svg { width: 1.3rem; height: 1.3rem; }

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover { transform: translateY(-4px); }

/* ==========================================================================
   تزئینات پارالاکس لایه‌ای و افکت‌های لوکس (فاز پرداخت)
   هر سکشن دارای data-parallax دو متغیر می‌گیرد:
   --sec-plx (پیکسل، فاصله مرکز سکشن از مرکز دید) و --sec-plxn (همان عدد بدون واحد)
   لایه‌های تزئینی با ضرایب متفاوت از آن‌ها حرکت/چرخش می‌گیرند = عمق
   ========================================================================== */
.orn {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* گره هشت‌پر چرخان */
.orn--star {
  width: clamp(16rem, 30vw, 27rem);
  aspect-ratio: 1;
  background-image: var(--gradient-brand);
  opacity: 0.14;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.7'%3E%3Cpath d='M32 2 41 23 62 32 41 41 32 62 23 41 2 32 23 23Z'/%3E%3Cpath d='M32 12 38 26 52 32 38 38 32 52 26 38 12 32 26 26Z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.7'%3E%3Cpath d='M32 2 41 23 62 32 41 41 32 62 23 41 2 32 23 23Z'/%3E%3Cpath d='M32 12 38 26 52 32 38 38 32 52 26 38 12 32 26 26Z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: translateY(calc(var(--sec-plx, 0px) * -0.7))
             rotate(calc(var(--sec-plxn, 0) * 0.06deg));
  will-change: transform;
}

/* حلقه‌های اسطرلابی */
.orn--ring {
  width: clamp(18rem, 34vw, 30rem);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 45.5%,
    rgba(255, 255, 255, 0.09) 46% 46.6%,
    transparent 47% 55.5%,
    rgba(255, 255, 255, 0.055) 56% 56.6%,
    transparent 57%
  );
  transform: translateY(calc(var(--sec-plx, 0px) * 0.5));
  will-change: transform;
}

/* نسخه حلقه برای زمینه‌های روشن */
.orn--ring-soft {
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 45.5%,
    color-mix(in srgb, var(--c-primary) 22%, transparent) 46% 46.6%,
    transparent 47% 55.5%,
    color-mix(in srgb, var(--c-gold) 20%, transparent) 56% 56.6%,
    transparent 57%
  );
}

/* گوی نورانی محو */
.orn--orb {
  width: 13rem;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background-image: var(--gradient-brand);
  filter: blur(46px);
  opacity: 0.42;
  will-change: transform;
}

/* جای‌گذاری در هر نوار */
.videos-band__star { top: -3.5rem; inset-inline-end: -7rem; }

.podcast-band__ring { bottom: -11rem; inset-inline-end: -9rem; }

.podcast-band__star {
  top: -5rem;
  inset-inline-start: -5rem;
  width: 17rem;
  opacity: 0.1;
}

.picks-band__ring { top: -13rem; inset-inline-start: -10rem; }

.newsletter__orb--1 {
  top: -4rem;
  inset-inline-start: -3rem;
  transform: translateY(calc(var(--sec-plx, 0px) * 0.55));
}

.newsletter__orb--2 {
  bottom: -5.5rem;
  inset-inline-end: -4rem;
  width: 17rem;
  opacity: 0.3;
  transform: translateY(calc(var(--sec-plx, 0px) * -0.45));
}

/* محتوای نوارها بالای تزئینات بماند */
.videos-band > .container,
.podcast-band > .container,
.picks-band > .container,
.newsletter__card > :not(.orn) {
  position: relative;
  z-index: 1;
}

.podcast-band,
.picks-band {
  position: relative;
  overflow: hidden;
}

/* پارالاکس محتوای هیرو — متن آرام‌تر از تصویر بالا می‌رود = عمق */
.hero__content {
  transform: translateY(calc(var(--plx, 0px) * -0.35));
  will-change: transform;
}

/* --- جلای نور لوکس هنگام hover: نوار نور مورب از راست به چپ می‌گذرد --- */
.news-card::after,
.pick-card::after,
.video-card__media::before,
.iv-card__media::before,
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.05) 54%,
    transparent 68%
  );
  transform: translateX(85%);
  opacity: 0;
}

.news-card:hover::after,
.pick-card:hover::after,
.video-card:hover .video-card__media::before,
.iv-card__media:hover::before,
.gallery-item:hover::after {
  animation: shine-sweep 0.9s var(--ease);
}

/* --- درگ با موس در اسلایدرها (فاز ۷) --- */
.hero__slides,
.side-slider,
.civs-scroller,
.timeline,
.lightbox__stage {
  user-select: none;
  -webkit-user-select: none;
}

/* حرکت افقی به JS برسد، اسکرول عمودی صفحه دست مرورگر بماند */
.hero__slides,
.side-slider__track,
.lightbox__stage {
  touch-action: pan-y;
}

.hero__slides img,
.side-slider img,
.civs-scroller img,
.timeline img,
.lightbox__stage img {
  -webkit-user-drag: none;
}

.side-slider,
.civs-scroller,
.timeline { cursor: grab; }

.side-slider.is-dragging,
.civs-scroller.is-dragging,
.timeline.is-dragging { cursor: grabbing; }

/* هنگام درگ، snap موقتا خاموش می‌شود تا با scrollLeft نجنگد */
.civs-scroller.is-dragging,
.timeline.is-dragging { scroll-snap-type: none; }

.side-slider.is-dragging .side-slider__track { transition: none; }

/* --- انیمیشن‌های ورود با اسکرول (فاز ۶) ---
   فقط وقتی کاربر کاهش حرکت نخواسته؛ وگرنه محتوا از ابتدا دیده می‌شود */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* --- ریسپانسیو فازهای ۵ و ۶ --- */
@media (max-width: 899px) {
  .podcast { grid-template-columns: 1fr; gap: 1.8rem; }

  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }

  .picks-grid { grid-template-columns: 1fr; }

  .newsletter__card { grid-template-columns: 1fr; }
}

@media (max-width: 519px) {
  .newsletter__form { flex-direction: column; border-radius: var(--radius-lg); }

  .newsletter__form .btn { width: 100%; }

  .newsletter__input { padding-block: 0.6rem; }
}

/* ==========================================================================
   ۸ه) صفحه نمایش خبر و صفحه دسته‌بندی (article.html / category.html)
   ========================================================================== */

/* --- نوار پیشرفت مطالعه --- */
.read-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: calc(var(--z-nav) + 2);
  background-image: var(--gradient-brand);
  transform-origin: calc(50% + 50% * var(--dir, 1)) center; /* پرشدن هم‌جهت خواندن */
  transform: scaleX(var(--rp, 0));
  pointer-events: none;
}

/* --- بردکرامب --- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.1rem 0.4rem;
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  list-style: none;
}

.breadcrumb a { color: var(--c-text-3); }

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

.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }

.breadcrumb li + li::before {
  content: "‹";
  opacity: 0.55;
}

.breadcrumb [aria-current] {
  color: var(--c-heading);
  font-weight: 700;
  max-width: 24rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb--ondark,
.breadcrumb--ondark a { color: rgba(234, 252, 250, 0.65); }

.breadcrumb--ondark a:hover { color: #5eead4; }

.breadcrumb--ondark [aria-current] { color: #ffffff; }

/* --- چیدمان صفحه خبر: مثل صفحه اصلی دو ستونه و sticky --- */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 0.8rem;
}

.article-grid > * {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  align-self: start;
}

/* --- سربرگ مقاله --- */
.article { min-width: 0; }

.article__head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.article__title {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  font-weight: 900;
  line-height: 1.6;
  text-wrap: balance;
}

.article__lead {
  color: var(--c-text-2);
  font-size: 1.05rem;
}

.article__metabar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

.avatar {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  display: inline-grid;
  place-items: center;
  background-image: var(--gradient-brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
}

.avatar--lg { width: 3.4rem; height: 3.4rem; font-size: 1.3rem; }

.article__author {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--c-text-2);
}

.article__dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: var(--radius-full);
  background: var(--c-border-2);
}

.article__share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  transition: all var(--dur) var(--ease);
}

.share-btn svg { width: 1.1rem; height: 1.1rem; }

.share-btn:hover {
  background-image: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
}

.share-btn--copy.is-done {
  background-image: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
}

.article__cover { margin-bottom: 1.5rem; }

.article__cover img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.article__cover figcaption,
.article-fig figcaption {
  margin-top: 0.6rem;
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

/* --- بدنه مقاله --- */
.article-body {
  display: grid;
  gap: 1.05rem;
  font-size: 1.02rem;
  line-height: 2.1;
}

.article-body p { color: var(--c-text); }

.article-body h2,
.article-body h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.article-body h2 { font-size: 1.35rem; }
.article-body h3 { font-size: 1.12rem; }

/* ستاره گره کوچک کنار میان‌تیترها */
.article-body h2::before,
.article-body h3::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  background-image: var(--gradient-brand);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6'/%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6' transform='rotate(45 12 12)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6'/%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6' transform='rotate(45 12 12)'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.article-quote {
  position: relative;
  background: var(--c-primary-soft);
  border-inline-start: 3px solid var(--c-primary-2);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
}

.article-quote p {
  font-weight: 700;
  color: var(--c-heading);
}

.article-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--c-gold);
}

.article-list { display: grid; gap: 0.55rem; }

.article-list li {
  display: flex;
  gap: 0.65rem;
  color: var(--c-text-2);
  font-size: 0.98rem;
}

.article-list li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex-shrink: 0;
  margin-top: 0.85em;
  background: var(--c-gold);
  transform: rotate(45deg);
}

.article-fig img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.article-callout {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border: 1px dashed var(--c-gold);
  background: color-mix(in srgb, var(--c-gold) 7%, transparent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.article-callout span {
  color: var(--c-gold);
  line-height: 2.1;
}

.article-callout p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

/* --- برچسب‌ها --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-2);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
  transition: all var(--dur) var(--ease);
}

.tag::before {
  content: "#";
  color: var(--c-gold);
  margin-inline-end: 0.2rem;
}

.tag:hover {
  background-image: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
}

.tag:hover::before { color: rgba(255, 255, 255, 0.8); }

/* --- جعبه نویسنده --- */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.author-box strong {
  display: block;
  color: var(--c-heading);
}

.author-box__role {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-gold);
  margin-block: 0.15rem 0.4rem;
}

.author-box p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

/* --- ناوبری مطلب قبلی/بعدی --- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}

.post-nav__item {
  display: grid;
  gap: 0.35rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  transition: all var(--dur) var(--ease);
}

.post-nav__item small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

.post-nav__item small svg { width: 1em; height: 1em; }

.post-nav__item strong {
  font-size: var(--fs-sm);
  color: var(--c-heading);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav__item--next { text-align: end; }

.post-nav__item--next small { justify-content: flex-end; }

.post-nav__item:hover {
  border-color: var(--c-primary-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-nav__item:hover strong { color: var(--c-primary); }

/* --- بخش‌های انتهایی مقاله --- */
.article-extra { margin-top: var(--section-gap); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* --- دیدگاه‌ها --- */
.comments-count {
  font-size: var(--fs-sm);
  font-weight: 400;
}

.comments {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.comment {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.comment .avatar {
  background-image: none;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-primary);
}

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.comment__head strong { color: var(--c-heading); font-size: var(--fs-sm); }

.comment__head time { font-size: var(--fs-xs); color: var(--c-text-3); }

.comment__body p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  margin-top: 0.2rem;
}

.comment-form {
  display: grid;
  gap: 0.8rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.field {
  width: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: var(--fs-sm);
  color: var(--c-text);
  transition: all var(--dur) var(--ease);
}

.field:focus {
  outline: none;
  border-color: var(--c-primary-2);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}

textarea.field { resize: vertical; min-height: 7rem; }

.comment-form__note {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

.comment-form__note.is-success {
  color: var(--c-primary);
  font-weight: 700;
}

/* --- هیروی صفحه دسته‌بندی --- */
.cat-hero {
  position: relative;
  overflow: hidden;
  padding-block: 1rem clamp(2.2rem, 5vw, 3.2rem);
  color: #eafcfa;
  background:
    radial-gradient(40rem 24rem at 88% -12%, rgba(20, 184, 166, 0.2), transparent 62%),
    radial-gradient(34rem 22rem at 6% 118%, rgba(8, 145, 178, 0.18), transparent 60%),
    linear-gradient(150deg, #0c242a, #08161b 55%, #0d2b31);
}

.cat-hero > .container { position: relative; z-index: 1; }

.cat-hero__title {
  color: #ffffff;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-block: 0.6rem 0.7rem;
}

.cat-hero__title::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  background-image: var(--gradient-brand);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6'/%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6' transform='rotate(45 12 12)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6'/%3E%3Crect x='5.2' y='5.2' width='13.6' height='13.6' transform='rotate(45 12 12)'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.cat-hero__star {
  top: -4rem;
  inset-inline-start: -6rem;
  opacity: 0.12;
}

#cat-top { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.cat-hero__desc {
  color: rgba(234, 252, 250, 0.75);
  font-size: var(--fs-sm);
  max-width: 42rem;
  margin-bottom: 1.1rem;
}

.cat-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cat-hero__count {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: #ffe4a8;
  border: 1px solid rgba(255, 228, 168, 0.45);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.85rem;
}

/* --- چیپ‌ها (فیلتر و دسته‌های هم‌رده) --- */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-text-2);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-full);
  padding: 0.32rem 1rem;
  transition: all var(--dur) var(--ease);
}

.chip:hover {
  color: var(--c-primary);
  border-color: var(--c-primary-2);
  transform: translateY(-2px);
}

.chip.is-active {
  background-image: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* چیپ‌های داخل هیروی تیره دسته */
.cat-hero .chip {
  color: rgba(234, 252, 250, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.cat-hero .chip:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.55); }

.cat-hero .chip.is-active { color: #ffffff; border-color: transparent; }

/* --- نوار ابزار فهرست دسته --- */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.cat-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.select {
  appearance: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-full);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  padding-inline-end: 2.3rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8a8e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.8rem center;
  background-size: 1rem;
  transition: border-color var(--dur) var(--ease);
}

.select:hover,
.select:focus-visible { border-color: var(--c-primary-2); }

/* --- ریسپانسیو صفحات جدید --- */
@media (max-width: 1023px) {
  .article-grid { grid-template-columns: 1fr; }

  .article-grid > * { position: static; }
}

@media (max-width: 767px) {
  .related-grid { grid-template-columns: 1fr; }

  .post-nav { grid-template-columns: 1fr; }

  .comment-form__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ۹) فوتر
   ========================================================================== */
.site-footer {
  margin-top: var(--section-gap);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

/* نوار کنگره‌ای — الهام از دیوار زیگورات‌ها و کنگره‌های تخت‌جمشید */
.site-footer::before {
  content: "";
  display: block;
  height: 0.6rem;
  background-image: var(--gradient-brand);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 10V4h8V0h8v4h8V0h8v4h8v6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 10V4h8V0h8v4h8V0h8v4h8v6Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 2.5rem 100%;
  mask-size: 2.5rem 100%;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-block: 3.25rem;
}

.footer__desc {
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  margin-block: 1.1rem 1.2rem;
}

.footer__heading {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 1.15rem;
  position: relative;
  padding-inline-start: 0.85rem;
}

.footer__heading::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.28em;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background-image: var(--gradient-brand);
}

.footer__links li a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-block: 0.38rem;
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  transition: all 0.25s var(--ease);
}

.footer__links li a::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  background: var(--c-gold);
  opacity: 0.55;
  transform: rotate(45deg);
  transition: all 0.25s var(--ease);
}

.footer__links li a:hover {
  color: var(--c-primary);
  transform: translateX(calc(-5px * var(--dir, 1)));
}

.footer__links li a:hover::before { opacity: 1; }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-block: 0.45rem;
  color: var(--c-text-2);
  font-size: var(--fs-sm);
}

.footer__contact svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--c-primary);
  margin-top: 0.25rem;
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.social-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  transition: all var(--dur) var(--ease);
}

.social-btn svg { width: 1.2rem; height: 1.2rem; }

.social-btn:hover {
  background-image: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.footer__bar {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-2);
  padding-block: 1.05rem;
}

.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

.footer__bar-inner a { font-weight: 800; }

/* ==========================================================================
   ۱۰) مودال‌ها
   ========================================================================== */
.modal {
  border: none;
  padding: 0;
  width: min(34rem, calc(100vw - 2rem));
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal::before {
  content: "";
  display: block;
  height: 4px;
  background-image: var(--gradient-brand);
}

.modal[open] { animation: modal-in 0.5s var(--ease-spring); }

.modal::backdrop {
  background: rgba(5, 16, 18, 0.55);
  backdrop-filter: blur(5px);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--c-border);
}

.modal__title { font-size: 1.15rem; }

.modal__body {
  padding: 1.4rem;
  display: grid;
  gap: 0.95rem;
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  line-height: 2;
  max-height: min(60vh, 30rem);
  overflow-y: auto;
}

.contact-list li {
  display: grid;
  gap: 0.1rem;
  padding-block: 0.6rem;
  border-bottom: 1px dashed var(--c-border);
}

.contact-list li:last-child { border-bottom: none; }

.contact-list__label {
  font-weight: 800;
  color: var(--c-heading);
}

/* ==========================================================================
   ۱۱) کی‌فریم‌ها
   ========================================================================== */
@keyframes ticker-move {
  /* ۵۰٪ باید هم‌جهت با محل قرارگیری فیزیکی گروه تکراری دوم باشد؛ در RTL گروه دوم
     به فیزیکی-چپ می‌افتد (حرکت +) و در LTR به فیزیکی-راست (حرکت -) — وگرنه چرخه
     بی‌پایان شکاف خالی نشان می‌دهد. */
  to { transform: translateX(calc(50% * var(--dir, 1))); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.6); }
  60% { box-shadow: 0 0 0 6px rgba(255, 209, 102, 0); }
}

@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.02); }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dot-progress {
  to { transform: scaleX(1); }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes play-pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
  100% { box-shadow: 0 0 0 18px rgba(20, 184, 166, 0); }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}

@keyframes shine-sweep {
  0% {
    transform: translateX(calc(85% * var(--dir, 1)));
    opacity: 0;
  }
  12% { opacity: 1; }
  100% {
    transform: translateX(calc(-95% * var(--dir, 1)));
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
}

/* ==========================================================================
   ۱۲) ریسپانسیو
   ========================================================================== */
@media (max-width: 1023px) {
  .nav__menu { display: none; }
  .nav__txt-btn { display: none; }
  .nav__burger { display: inline-grid; }

  /* با حذف منوی وسط (که margin:auto داشت) دکمه‌ها باید خودشان به انتها بچسبند */
  .nav__actions { margin-inline-start: auto; }
}

@media (max-width: 767px) {
  .hero {
    height: min(74vh, 36rem);
    min-height: 26rem;
  }

  .hero__arrow { display: none; }

  .hero__lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
  line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 899px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-block: 2.5rem;
  }
}

@media (max-width: 559px) {
  .footer__grid { grid-template-columns: 1fr; }

  .ticker__label { display: none; }
}

/* ==========================================================================
   ۱۳) لایه تعاملی و پرداخت نهایی — ناوبری بخش‌ها، افکت‌های ماوس، دسترس‌پذیری
   این بخش عمداً جدا و در انتهای فایل نگه داشته شده تا مرور/بازگشت آن در صورت
   نیاز ساده باشد. همه با --dir سازگارند و زیر prefers-reduced-motion که لازم
   باشد غیرفعال می‌شوند (بخشی هم از قاعده سراسری خط ۲۴۴ پوشش داده می‌شود).
   ========================================================================== */

/* --- افست هدر چسبان برای مقصد ناوبری نقطه‌ای/نشانه هیرو/لینک‌های #id --- */
#hero,
#news,
#videos,
#gallery,
#civilizations,
#podcast,
#timeline-section,
#stats-band,
#picks,
#newsletter {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* --- ناوبری نقطه‌ای بخش‌های صفحه اصلی (CivScrollSpy، فقط دسکتاپ بزرگ) --- */
.civ-navdots {
  position: fixed;
  top: 50%;
  inset-inline-start: 1.15rem;
  transform: translateY(-50%);
  z-index: var(--z-dropdown);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.civ-navdots__item {
  position: relative;
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: var(--radius-full);
  background: var(--c-border-2);
  transition: all var(--dur) var(--ease);
}

.civ-navdots__item:hover,
.civ-navdots__item:focus-visible {
  background: var(--c-primary);
  transform: scale(1.35);
}

.civ-navdots__item.is-active {
  height: 1.6rem;
  border-radius: var(--radius-full);
  background-image: var(--gradient-brand);
  box-shadow: 0 0 0 4px var(--c-primary-soft);
}

.civ-navdots__tip {
  position: absolute;
  inset-inline-start: calc(100% + 0.85rem);
  top: 50%;
  transform: translateY(-50%) translateX(calc(-6px * var(--dir, 1)));
  background: var(--c-heading);
  color: var(--c-bg);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur) var(--ease);
}

.civ-navdots__item:hover .civ-navdots__tip,
.civ-navdots__item:focus-visible .civ-navdots__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1279px), (pointer: coarse) {
  .civ-navdots { display: none; }
}

/* --- افکت نور دنبال‌کننده ماوس روی نوارهای تیره (CivSpotlight) ---
   div.orn.spotlight فقط برای اشاره‌گر دقیق و توسط main.js درج می‌شود؛
   کلاس orn را هم می‌گیرد تا قانون «محتوا بالای تزئینات بماند» آن را هم دربر بگیرد. */
.spotlight {
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  background: radial-gradient(38rem circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.1), transparent 55%);
}

:is(.videos-band, .podcast-band, .picks-band, .newsletter__card):hover .spotlight { opacity: 1; }

/* --- دکمه توقف/پخش تیکر — hover به‌تنهایی برای کاربران لمسی/کیبورد کافی نبود --- */
.ticker__toggle {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--radius-full);
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--dur) var(--ease);
}

.ticker__toggle:hover,
.ticker__toggle:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
}

.ticker__toggle svg { width: 0.8rem; height: 0.8rem; }

.ticker__track.is-paused { animation-play-state: paused; }

/* --- نشانه پیمایش هیرو --- */
.hero__scrollcue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.85;
  animation: cue-bounce 2.2s var(--ease) infinite;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.hero__scrollcue:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.24);
}

.hero__scrollcue.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.hero__scrollcue svg { width: 1.15rem; height: 1.15rem; }

/* --- حلقه پیشرفت روی دکمه بازگشت به بالا --- */
.to-top .to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg) scaleX(calc(-1 * var(--dir, 1)));
  pointer-events: none;
}

.to-top__ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2.5;
}

.to-top__ring-fg {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 106.8;
  stroke-dashoffset: calc(106.8 * (1 - var(--rp, 0)));
  transition: stroke-dashoffset 0.15s linear;
}

/* --- نشان میان‌بر کیبورد روی دکمه جستجو --- */
#search-btn { position: relative; }

.icon-btn__kbd {
  position: absolute;
  bottom: -0.3rem;
  inset-inline-end: -0.4rem;
  font-family: system-ui, sans-serif;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-sm);
  padding: 0.06rem 0.32rem;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .icon-btn__kbd { display: none; }
}

/* --- واکنش موفقیت/خطای فرم خبرنامه --- */
.newsletter__note.is-success { animation: note-pop 0.5s var(--ease-spring); }

.newsletter__note.is-error {
  color: #fca5a5;
  font-weight: 700;
  animation: note-shake 0.5s var(--ease);
}

/* --- محو ملایم تصاویر lazy هنگام بارگذاری به‌جای پاپ ناگهانی؛
   اسلاید اول هیرو (fetchpriority=high) عمداً مستثناست تا بی‌درنگ نمایان شود.
   مرورگرهای بدون پشتیبانی @starting-style فقط قانون opacity:1 را می‌بینند. --- */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}

@starting-style {
  img[loading="lazy"] { opacity: 0; }
}

/* --- بلندشدن ظریف رسانه کارت ویدیو/گالری هنگام هاور --- */
.video-card__media { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }

.video-card:hover .video-card__media {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.gallery-item { transition: box-shadow var(--dur) var(--ease); }

.gallery-item:hover { box-shadow: var(--shadow-lg); }

/* --- اسکرول‌بار سفارشی هماهنگ با برند --- */
html { scrollbar-width: thin; scrollbar-color: var(--c-primary-2) transparent; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background-color: var(--c-border-2);
  border-radius: var(--radius-full);
  border: 2px solid var(--c-bg);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover { background-color: var(--c-primary-2); }

/* --- کی‌فریم‌های این بخش --- */
@keyframes cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes note-pop {
  0% { transform: scale(0.92); opacity: 0; }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes note-shake {
  10%, 90% { transform: translateX(calc(-1px * var(--dir, 1))); }
  20%, 80% { transform: translateX(calc(2px * var(--dir, 1))); }
  30%, 50%, 70% { transform: translateX(calc(-4px * var(--dir, 1))); }
  40%, 60% { transform: translateX(calc(4px * var(--dir, 1))); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scrollcue { animation: none; }
  .civ-navdots__item,
  .spotlight { transition: none; }
}

@media (max-width: 767px) {
  .hero__scrollcue { display: none; }
}
