/* ═══════════════════════════════════════════════════════════════
   ns-theme.css
   کامپوننت‌های اختصاصی سایت خبری — CSS خالص، بدون Tailwind، بدون build
   تبدیل‌شده از resources/css/app.css (بخش فرانت‌اند)
   ───────────────────────────────────────────────────────────────
   • هر @apply به CSS استاندارد تبدیل شده
   • هر .dark به [data-bs-theme="dark"] تبدیل شده
   • اجزایی که بوت‌استرپ نسخهٔ بومی دارد (مودال، آف‌کانواس، تب، دراپ‌داون،
     پاگینیشن، سوییچ، آلرت، بج) از این فایل حذف شده‌اند
   • استایل‌های مخصوص پنل ادمین اینجا نیست (پنل هنوز Tailwind است)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   ۱) هدر
   ═══════════════════════════════════════════ */

/* ── هدر چسبان هنگام اسکرول ── */
/* ── هدر چسبان ──
   دقیقاً همان رنگ هدر اصلی (.main-header-el): توپر، بدون شیشه و بدون
   blur. تنها تفاوتش سایهٔ زیر آن است تا از محتوای پشتش جدا دیده شود.
   ارتفاعش را StickyHeader.js اندازه می‌گیرد و در --ns-sticky-h
   می‌گذارد؛ ستون‌های چسبان از همان برای فاصله‌گرفتن استفاده می‌کنند. */
.sticky-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1031;
  background-color: var(--ns-primary);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
  transform: translateY(-100%);
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}
.sticky-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* تم تیره: همان گرادیان هدر اصلی */
[data-bs-theme="dark"] .sticky-header {
  background: linear-gradient(135deg, #0a1628 0%, #0e1b36 60%, #152040 100%);
  border-bottom-color: rgba(255, 255, 255, .06);
}

/* ── پس‌زمینهٔ گرافیکی هدر ── */
.header-bg-art {
  position: absolute; inset: 0;
  overflow: hidden; z-index: 0; pointer-events: none;
}
.header-bg-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}
.header-art-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  animation: headerPulse 6s ease-in-out infinite;
}
.header-art-circle-1 { width: 220px; height: 220px; top: -90px;    left:  8%; animation-delay: 0s; }
.header-art-circle-2 { width: 160px; height: 160px; bottom: -70px; left: 38%; animation-delay: 2s;
                       background: rgba(255, 255, 255, .04); }
.header-art-news-line {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 119px,
    rgba(255,255,255,.03) 119px, rgba(255,255,255,.03) 120px
  );
}
@keyframes headerPulse {
  0%, 100% { transform: scale(1);   opacity: .6; }
  50%      { transform: scale(1.1); opacity: 1; }
}

[data-bs-theme="dark"] .main-header-el {
  background: linear-gradient(135deg, #0a1628 0%, #0e1b36 60%, #152040 100%) !important;
  border-bottom-color: rgba(255, 255, 255, .06) !important;
}
[data-bs-theme="dark"] .main-header-el .header-art-circle {
  background: rgba(255, 255, 255, .03) !important;
}

/* ── شبکه‌های اجتماعی هدر ── */
.header-socials {
  border-right: 1px solid rgba(255, 255, 255, .2);
  padding-right: 12px;
  margin-right: 4px;
}
.header-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: all .25s ease;
  background: rgba(255, 255, 255, .08);
}
.header-social-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

/* ── دکمهٔ آیکونی هدر با افکت ripple ── */
.header-icon-btn { position: relative; }
.header-icon-btn::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transform: scale(0);
  transition: transform .2s ease;
}
.header-icon-btn:hover::after { transform: scale(1); }

/* ── لوگوی روشن/تیره ── */
.site-logo-dark  { display: none; }
.site-logo-light { display: inline-block; }
[data-bs-theme="dark"] .site-logo-light { display: none; }
[data-bs-theme="dark"] .site-logo-dark  { display: inline-block; }


/* ═══════════════════════════════════════════
   ۲) سر ستون بخش‌ها (section-header-creative)
   ═══════════════════════════════════════════ */
.section-header-creative {
  position: relative;
  overflow: hidden;
  font-family: var(--ns-font-dibaj-b);
  background: linear-gradient(to left,
    rgba(217,57,53,.04) 0%, rgba(217,57,53,.08) 50%, transparent 100%);
}
[data-bs-theme="dark"] .section-header-creative {
  background: linear-gradient(to left,
    rgba(217,57,53,.06) 0%, rgba(217,57,53,.12) 50%, transparent 100%);
}
.section-header-creative::before {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #d93935, #ff7b77);
  border-radius: 0 2px 2px 0;
}
.section-header-creative::after {
  content: '';
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 10px solid rgba(217,57,53,.12);
}
.section-header-creative > div:first-child {
  position: relative;
  padding-right: 8px;
}
.section-header-creative .ns-text-primary { animation: iconBounce 3s ease-in-out infinite; }
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ── سرستون‌های صفحهٔ اصلی ──
   نسخهٔ اولِ سایت یک نوار توپرِ قرمزِ تمام‌عرض بود (راه‌راه مورب + سایهٔ
   داخلی + متن سفیدِ سایه‌دار) که زمخت به‌نظر می‌آمد و ارتفاع زیادی
   می‌گرفت.

   طرح فعلی: خودِ نوار روشن و بی‌سر و صداست و رنگِ برند فقط در یک
   «برچسبِ» قرمز دور تیتر می‌نشیند. نتیجه هم جمع‌وجورتر است و هم تیتر
   بیشتر به چشم می‌آید، چون تنها لکهٔ رنگیِ آن ناحیه است.

   ⚠️ overflow اینجا باید visible بماند: عناصر تزیینیِ نسخهٔ قبل حذف
   شده‌اند و hidden باعث می‌شد قرصِ تب‌های باکس اخبار از بالا و پایین
   بریده شود. */
.page-home .section-header-creative {
  background: transparent;
  background-image: none;
  border-bottom: 1px solid var(--ns-border);
  box-shadow: none;
  overflow: visible;
  padding: .5rem .75rem;
  gap: .5rem;
}
[data-bs-theme="dark"] .page-home .section-header-creative {
  background: transparent;
  background-image: none;
}

/* نوار عمودی و مثلث تزیینیِ نسخهٔ قبل حذف شدند */
.page-home .section-header-creative::before,
.page-home .section-header-creative::after { content: none; }

/* ── برچسب تیتر ── */
.page-home .section-header-creative > div:first-child {
  background: var(--ns-primary);
  color: #fff;
  padding: .375rem .75rem;
  border-radius: .5rem;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(217, 57, 53, .28);
  flex-shrink: 0;
  white-space: nowrap;
}
.page-home .section-header-creative > div:first-child * { color: #fff; }
.page-home .ns-section-head-title svg {
  width: 1rem; height: 1rem;
  color: #fff;
  opacity: .95;
  background: none;
  padding: 0;
  animation: none;               /* پرشِ همیشگیِ آیکون حذف شد */
  flex-shrink: 0;
}

/* ── دکمهٔ «آرشیو» ── */
.page-home .section-header-creative > a {
  color: var(--ns-text-muted);
  background: var(--ns-surface-2);
  border: 1px solid var(--ns-border);
  padding: .3125rem .75rem;
  border-radius: .5rem;
  font-size: .75rem;
  font-weight: 700;
  gap: 3px;
  flex-shrink: 0;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.page-home .section-header-creative > a svg { width: .875rem; height: .875rem; }
.page-home .section-header-creative > a:hover {
  color: var(--ns-primary);
  background: rgba(217, 57, 53, .08);
  border-color: rgba(217, 57, 53, .25);
  transform: none;
}
[data-bs-theme="dark"] .page-home .section-header-creative > a {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
}


/* ═══════════════════════════════════════════
   ۳) لیست اخبار و تب‌های ویجت
   ═══════════════════════════════════════════ */
.news-list-item {
  padding: 12px 15px 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
}
[data-bs-theme="dark"] .news-list-item { border-bottom-color: rgba(255,255,255,.05); }
.news-list-item::before {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background-color: #d93935;
  border-radius: 50%;
}
.news-list-item a {
  font-family: var(--ns-font-vazir);
  font-weight: 700;
}

/* ── تب‌های pill ویجت آخرین اخبار ── */
.wn-tab-wrap {
  display: flex; align-items: center; gap: 2px;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  padding: 3px;
}
[data-bs-theme="dark"] .wn-tab-wrap { background: rgba(255,255,255,.08); }

.wn-tab-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #6b7280;
  white-space: nowrap;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
}
[data-bs-theme="dark"] .wn-tab-pill { color: #94a3b8; }
.wn-tab-pill:hover:not(.active):not(.wn-tab-active) { color: #d93935; }

/* بوت‌استرپ هنگام کلیک روی تب، کلاس .active را جابه‌جا می‌کند —
   نه .wn-tab-active. هر دو پوشش داده شده‌اند تا اگر جایی از نام قدیمی
   استفاده شده باشد هم درست دیده شود. */
.wn-tab-pill.active,
.wn-tab-active {
  background: #d93935 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(217,57,53,.35);
}
.wn-pane { animation: wnFadeIn .25s ease; }

/* ۳۰ خبر داخل باکس.
   ⚠️ نسخهٔ اول max-height ثابت داشت؛ اگر پانل از آن بلندتر می‌شد،
   ناحیهٔ اسکرول همان‌جا تمام می‌شد و زیرش فضای سفید می‌ماند. حالا
   ناحیهٔ اسکرول تمام ارتفاع باقی‌ماندهٔ پانل را می‌گیرد:
     flex: 1 1 auto  → تا ته پانل کش می‌آید
     min-height: 0   → بدون این، آیتم فلکس زیر محتوای خودش جمع نمی‌شود
                       و به‌جای اسکرول، پانل را بلند می‌کند */
.wn-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* ارتفاع پانل از ستون کناری می‌آید، نه از محتوای خودش.
   بدون این، ۳۰ خبر پانل را بلند می‌کردند و اسکرولی در کار نبود. */
@media (min-width: 992px) {
  .wn-col { position: relative; }
  .wn-col > .wn-panel { position: absolute; inset: 0; }
}
@media (max-width: 991.98px) {
  /* موبایل ستون هم‌قدی ندارد که ارتفاع را تعیین کند */
  .wn-scroll { max-height: 26rem; }
}
@keyframes wnFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* نسخهٔ داخل سر ستون قرمز صفحهٔ اصلی */
/* تب‌های باکس اخبار — حالا روی نوارِ روشن می‌نشینند، پس همان اندازهٔ
   استاندارد خودشان را نگه می‌دارند و فقط رنگ‌ها خواناتر شده‌اند.
   اندازه دست‌نخورده ماند تا قرص‌ها بریده یا فشرده نشوند. */
.page-home .section-header-creative .wn-tab-wrap {
  background: var(--ns-surface-2);
  border: 1px solid var(--ns-border);
  flex-shrink: 0;
}
[data-bs-theme="dark"] .page-home .section-header-creative .wn-tab-wrap {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
}
.page-home .section-header-creative .wn-tab-pill {
  color: var(--ns-text-muted);
}
.page-home .section-header-creative .wn-tab-pill:hover:not(.active):not(.wn-tab-active) {
  color: var(--ns-primary);
  background: rgba(217, 57, 53, .08);
}
.page-home .section-header-creative .wn-tab-pill.active,
.page-home .section-header-creative .wn-tab-active {
  background: #fff !important;
  color: #d93935 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}


/* ═══════════════════════════════════════════
   ۴) اسلایدر خبری
   (روی <div class="carousel slide"> بوت‌استرپ سوار می‌شود)
   ═══════════════════════════════════════════ */
.slider-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  --slider-h: 250px;
  height: var(--slider-h);
  background-color: #0f172a;
}
@media (min-width: 640px)  { .slider-wrap { --slider-h: 330px; } }
@media (min-width: 768px)  { .slider-wrap { --slider-h: 400px; } }
@media (min-width: 1024px) { .slider-wrap { --slider-h: 470px; } }

.slider-wrap .carousel-inner,
.slider-wrap .carousel-item,
.slider-wrap .slide { height: 100%; }
.slider-wrap .slide { cursor: pointer; }

.slider-wrap .slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
/* عکس مربعی/عمودی: کامل و وسط‌چین، پس‌زمینهٔ بلورِ همان عکس */
.slider-wrap .slide--contain .slide-img {
  position: relative; z-index: 2;
  width: auto; height: 100%;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}
.slider-wrap .slide-bg {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(32px) saturate(1.3);
  transform: scale(1.2);
  opacity: .55;
  pointer-events: none; user-select: none;
}
.slider-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 70%;
  z-index: 3;
  background: linear-gradient(to top,
    rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 40%, transparent 100%);
  pointer-events: none;
}
.slider-content {
  position: absolute; bottom: 0; right: 0; left: 0;
  padding: 30px;
  z-index: 10;
  pointer-events: none;
}
.slider-content a { pointer-events: auto; }
.slider-content h2 { font-family: var(--ns-font-dibaj-b); }
@media (max-width: 767px) { .slider-content { padding: 16px; } }

/* انیمیشن ورود متن اسلاید */
.slide-anim   { opacity: 0; transform: translateY(20px); animation: slideUp .6s ease forwards; }
.slide-anim-1 { animation-delay: .2s; }
.slide-anim-2 { animation-delay: .4s; }
.slide-anim-3 { animation-delay: .6s; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }


/* ═══════════════════════════════════════════
   ۵) کاروسل و کارت یادداشت‌ها
   ═══════════════════════════════════════════ */
.notes-carousel-container { position: relative; padding: 16px 20px 20px; }

.notes-card {
  transition: background .3s, border-color .3s, box-shadow .3s;
  background-color: var(--ns-surface-2);
  border: 1px solid var(--ns-border);
}
.notes-card:hover { box-shadow: 0 4px 20px rgba(217,57,53,.12); }
[data-bs-theme="dark"] .notes-card {
  background-color: #0a1525;
  border-color: rgba(255,255,255,.07);
}
[data-bs-theme="dark"] .notes-card:hover {
  background-color: rgba(217,57,53,.06);
  border-color: rgba(217,57,53,.25);
}
.notes-card h4   { font-family: var(--ns-font-dibaj-b); }
.notes-card span { font-family: var(--ns-font-dibaj-r); font-weight: 400; }

/* ── دکمه‌های عقب/جلوی کاروسل یادداشت ──
   .carousel-control-* بوت‌استرپ تمام‌قدِ کاروسل و نیمه‌شفاف است؛
   اینجا به دو دکمهٔ گرد کنار کارت‌ها تبدیل می‌شود. */
.notes-carousel-container .notes-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ns-border);
  border-radius: 50%;
  background: var(--ns-surface);
  color: var(--ns-text-muted);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
  transition: background .2s, color .2s, box-shadow .2s;
  z-index: 3;
}
.notes-carousel-container .notes-nav svg { width: 1.05rem; height: 1.05rem; }
.notes-carousel-container .notes-nav:hover {
  background: #d93935;
  border-color: #d93935;
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 57, 53, .32);
}
/* در RTL، «قبلی» سمت راست و «بعدی» سمت چپ می‌نشیند */
.notes-carousel-container .carousel-control-prev.notes-nav { inset-inline-start: auto; inset-inline-end: -2px; }
.notes-carousel-container .carousel-control-next.notes-nav { inset-inline-end: auto; inset-inline-start: -2px; }
[data-bs-theme="dark"] .notes-carousel-container .notes-nav {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  color: #cbd5e1;
}

/* نشانگرهای کاروسل — روی .carousel-indicators بوت‌استرپ */
.notes-carousel-container .carousel-indicators {
  position: static;
  margin: 14px 0 0;
  justify-content: center;
  gap: 6px;
}
.notes-carousel-container .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border: none; border-radius: 50%;
  background: rgba(217,57,53,.25);
  opacity: 1;
  margin: 0;
  text-indent: 0;
  transition: all .3s ease;
}
.notes-carousel-container .carousel-indicators .active {
  width: 22px;
  border-radius: 4px;
  background: #d93935;
}
[data-bs-theme="dark"] .notes-carousel-container .carousel-indicators [data-bs-target] {
  background: rgba(255,255,255,.15);
}
[data-bs-theme="dark"] .notes-carousel-container .carousel-indicators .active {
  background: #d93935;
}


/* ═══════════════════════════════════════════
   ۶) باکس‌های دسته‌بندی
   ═══════════════════════════════════════════ */

/* ── تصویر خبر شاخص: ۳۱۳×۲۱۷ ──
   قبلاً w-100 + height:11rem بود، یعنی عرض کشسان و ارتفاع ثابت — روی
   ستون‌های پهن، قاب واید می‌شد. حالا نسبت ۳۱۳:۲۱۷ قفل است: روی
   دسکتاپ دقیقاً همان ۳۱۳×۲۱۷ و روی عرض‌های کمتر به همان نسبت
   کوچک می‌شود، پس هیچ‌وقت واید نمی‌شود. */
/* دسکتاپ: عرض دقیقاً ۳۱۳px (ستونش هم به همان اندازه قفل است).
   زیر lg: ستون تمام‌عرض می‌شود و ۳۱۳px از آن باریک‌تر است، پس تصویر
   در ابتدای بلاک (در RTL یعنی سمت راست) می‌نشست و سمت چپش خالی
   می‌ماند. آنجا تمام‌عرض می‌شود؛ نسبت ۳۱۳:۲۱۷ سرِ جایش می‌ماند، فقط
   بزرگ‌تر می‌شود. */
.cat-box-cover {
  width: 313px;
  max-width: 100%;
  aspect-ratio: 313 / 217;
}
@media (max-width: 991.98px) {
  .cat-box-cover { width: 100%; max-width: none; }
}
.cat-box-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── فهرست کناری: اسکرول فقط در صورت نیاز ──
   ستون فهرست با position:absolute دقیقاً هم‌قدِ ستون شاخص می‌شود، پس
   اگر ۱۰ خبر جا شد اسکرولی ظاهر نمی‌شود و اگر نشد، داخل خودِ باکس
   اسکرول می‌خورد — نه اینکه باکس را بلند کند. */
/* پنل → بدنه → ردیف، همه باید تمام‌قد شوند تا اسکرولِ فهرست کلِ
   ارتفاع باکس را بگیرد، نه فقط قدِ ستون تصویر را. */
.cat-box-panel { display: flex; flex-direction: column; }
.cat-box-body  { flex: 1 1 auto; min-height: 0; }
.cat-box-body > .cat-box-row { height: 100%; }

@media (min-width: 992px) {
  /* row-cols-lg-2 هر ستون را ۵۰٪ می‌کند و ۵۰٪ اینجا کمتر از ۳۱۳px
     در می‌آید. پس ستون شاخص عرض ثابت می‌گیرد و فهرست باقیِ عرض را.
     flex-shrink صفر است تا تصویر دقیقاً ۳۱۳×۲۱۷ بماند؛ ستون فهرست
     با min-width:0 خودش را جمع می‌کند و چیزی سرریز نمی‌شود. */
  .cat-box-row > .cat-box-main-col {
    /* ستون باید به‌اندازهٔ گاتر پهن‌تر باشد تا خودِ تصویر ۳۱۳px شود:
       بوت‌استرپ نصف --bs-gutter-x را به هر طرفِ ستون padding می‌دهد. */
    flex: 0 0 auto;
    width: calc(313px + var(--bs-gutter-x, 1.5rem));
    max-width: calc(313px + var(--bs-gutter-x, 1.5rem));
  }
  .cat-box-row > .cat-box-list-col {
    flex: 1 1 0;
    max-width: 100%;
    min-width: 0;
    position: relative;
  }
  .cat-box-list-scroll {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 991.98px) {
  /* روی موبایل ستون‌ها زیر هم‌اند؛ ارتفاع مرجعی وجود ندارد */
  .cat-box-list-scroll { max-height: 22rem; overflow-y: auto; }
}

.cat-main-news-box {
  display: block; position: relative;
  border-radius: 8px; overflow: hidden;
  min-height: 350px;
  text-decoration: none;
}
@media (max-width: 767px) { .cat-main-news-box { min-height: 250px; } }
.cat-main-news-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
  transition: transform .5s ease;
}
.cat-main-news-box:hover img { transform: scale(1.05); }
.cat-main-news-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px;
  background: linear-gradient(to top,
    rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 50%, transparent 100%);
  z-index: 2;
}

.cat-side-news-box {
  display: block; position: relative;
  border-radius: 8px; overflow: hidden;
  flex: 1; min-height: 165px;
  text-decoration: none;
}
@media (max-width: 767px) { .cat-side-news-box { min-height: 130px; } }
.cat-side-news-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
  transition: transform .5s ease;
}
.cat-side-news-box:hover img { transform: scale(1.05); }
.cat-side-news-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  z-index: 2;
}

.cat-label {
  position: absolute; top: 15px; right: 15px;
  z-index: 5;
  background-color: #d93935;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem 1rem;
  border-radius: .25rem;
}

/* ── گرید اخبار دسته ── */
.cat-grid-item {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all .3s;
  background-color: var(--ns-surface-2);
  border: 1px solid var(--ns-border);
}
[data-bs-theme="dark"] .cat-grid-item {
  background-color: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.cat-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.cat-grid-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.cat-grid-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.cat-grid-item:hover .cat-grid-image img { transform: scale(1.05); }
@media (max-width: 767px) {
  .cat-grid-item  { display: flex; flex-direction: row; }
  .cat-grid-image { width: 120px; flex-shrink: 0; aspect-ratio: auto; height: 90px; }
}

/* ── فونت باکس‌های دسته ── */
.cat-news-box-title  { font-family: var(--ns-font-dibaj-b); }
.cat-news-box-lead   { font-family: var(--ns-font-dibaj-r); }
.cat-news-box-list a { font-family: var(--ns-font-vazir); font-weight: 700; }

/* ── دکمهٔ صفحه‌بندی باکس دسته ── */
.cat-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: .5rem;
  background-color: var(--ns-surface-3);
  color: var(--ns-text-muted);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: .875rem;
  transition: all .2s ease;
}
[data-bs-theme="dark"] .cat-page-btn {
  background-color: rgba(255,255,255,.08);
  color: #d0d0d0;
}
.cat-page-btn:hover {
  background-color: rgba(217,57,53,.1);
  color: #d93935;
  border-color: rgba(217,57,53,.3);
}
.cat-page-btn.active {
  background-color: #d93935;
  color: #fff;
  border-color: #d93935;
}

/* ── اسپینر ── */
.cat-spinner {
  width: 40px; height: 40px;
  border: 3px solid #f0f2f5;
  border-top-color: #d93935;
  border-radius: 50%;
  animation: catSpin .8s linear infinite;
}
[data-bs-theme="dark"] .cat-spinner { border-color: #16213e; border-top-color: #d93935; }
@keyframes catSpin { to { transform: rotate(360deg); } }


/* ═══════════════════════════════════════════
   ۷) ویدیو
   ═══════════════════════════════════════════ */
.main-video-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}
.main-video-image img {
  width: 100%; height: 350px;
  object-fit: cover;
  transition: transform .5s;
}
.main-video-image:hover img { transform: scale(1.05); }


/* ═══════════════════════════════════════════
   ۸) نوار متادیتای مقاله / ویدیو / یادداشت
   ═══════════════════════════════════════════ */
.article-meta-bar {
  background: linear-gradient(to left,
    rgba(217,57,53,.04) 0%, rgba(248,250,252,1) 60%, #f8fafc 100%);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
[data-bs-theme="dark"] .article-meta-bar {
  background: linear-gradient(to left,
    rgba(217,57,53,.08) 0%, rgba(14,27,54,.9) 50%, rgba(14,27,54,.7) 100%);
  border-bottom-color: rgba(255,255,255,.06);
}

.meta-font-group {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 8px;
  padding: 3px 6px;
}
[data-bs-theme="dark"] .meta-font-group {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
.meta-font-label {
  font-size: 11px; font-weight: 700;
  color: #94a3b8;
  padding: 0 3px;
  user-select: none;
  letter-spacing: .02em;
}

.font-size-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all .18s ease;
}
.font-size-btn:hover { background: #d93935; color: #fff; transform: scale(1.05); }
[data-bs-theme="dark"] .font-size-btn { color: #94a3b8; }
[data-bs-theme="dark"] .font-size-btn:hover { background: #d93935; color: #fff; }

.meta-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 12px; font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s ease;
}
.meta-action-btn:hover {
  border-color: #d93935;
  color: #d93935;
  background: rgba(217,57,53,.04);
  box-shadow: 0 2px 8px rgba(217,57,53,.15);
  transform: translateY(-1px);
}
[data-bs-theme="dark"] .meta-action-btn {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #94a3b8;
}
[data-bs-theme="dark"] .meta-action-btn:hover {
  background: rgba(217,57,53,.1);
  border-color: rgba(217,57,53,.5);
  color: #ff8080;
  box-shadow: 0 2px 12px rgba(217,57,53,.2);
}

.meta-sep-v {
  display: inline-block;
  width: 1px; height: 20px;
  background: rgba(0,0,0,.1);
  border-radius: 1px;
}
[data-bs-theme="dark"] .meta-sep-v { background: rgba(255,255,255,.1); }


/* ═══════════════════════════════════════════
   ۹) تصویر شاخص خبر
   ═══════════════════════════════════════════ */
.article-thumb-box {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-height: 180px;
  max-height: 520px;
  background-color: #eef2f7;
}
[data-bs-theme="dark"] .article-thumb-box { background-color: #0f172a; }

.article-thumb-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(1.25);
  transform: scale(1.15);
  opacity: .5;
  pointer-events: none; user-select: none;
}
[data-bs-theme="dark"] .article-thumb-bg { opacity: .35; }

.article-thumb-img {
  position: relative; z-index: 1;
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .article-thumb-box { max-height: 380px; min-height: 140px; }
  .article-thumb-img { max-height: 380px; }
}


/* ═══════════════════════════════════════════
   ۱۰) تایپوگرافی متن مقاله (.article-body)
   خروجی ArticleBodyTransformer
   ═══════════════════════════════════════════ */
.article-body {
  font-family: var(--ns-font-vazir);
  font-size: 1rem;
  color: #1f2937;
  line-height: 1.95;
  text-align: justify;
  word-spacing: .03em;
}
[data-bs-theme="dark"] .article-body { color: #cbd5e1; }

/* پاراگراف — فاصله‌ی زیرین مثل ادیتور پنل (margin پیش‌فرض بوت‌استرپ).
   قبلاً صفر بود؛ محتوای منتقل‌شده از وردپرس فقط <p> پشت‌سرهم دارد و
   <p> خالیِ فاصله‌ساز ندارد، پس با margin:0 همه‌ی متن به هم می‌چسبید. */
.article-body p {
  margin: 0 0 1rem;
  line-height: 1.95;
  text-align: justify;
  color: inherit;
}
/* آخرین پاراگراف فاصله‌ی اضافه‌ی انتهایی نگیرد */
.article-body > p:last-child { margin-bottom: 0; }
.article-body p:empty,
.article-body p > br:only-child { display: block; height: 1.2em; }

.article-body > p:first-of-type { font-size: 1.02rem; line-height: 2; }

/* عنوان‌ها */
.article-body h2 {
  font-size: 1.5rem; font-weight: 700; line-height: 1.55;
  margin: 0; color: #111827;
  padding-right: 13px;
  border-right: 4px solid #d93935;
  text-align: right;
}
.article-body h3 {
  font-size: 1.25rem; font-weight: 700; line-height: 1.55;
  margin: 0; color: #1f2937; text-align: right;
}
.article-body h4 {
  font-size: 1.02rem; font-weight: 600; line-height: 1.55;
  margin: 1.5rem 0 .6rem; color: #374151; text-align: right;
}
.article-body h5,
.article-body h6 {
  font-size: .92rem; font-weight: 600; line-height: 1.5;
  margin: 1.25rem 0 .5rem; color: #4b5563; text-align: right;
}
[data-bs-theme="dark"] .article-body h2 { color: #f1f5f9; }
[data-bs-theme="dark"] .article-body h3 { color: #e2e8f0; }
[data-bs-theme="dark"] .article-body h4 { color: #cbd5e1; }
[data-bs-theme="dark"] .article-body h5,
[data-bs-theme="dark"] .article-body h6 { color: #94a3b8; }

/* لیست‌ها (RTL) */
.article-body ul,
.article-body ol { margin: 0 1.5rem 1.25rem 0; padding: 0; text-align: justify; }
.article-body ul { list-style-type: disc; }
.article-body ol { list-style-type: decimal; }
.article-body li { line-height: 1.85; margin-bottom: .45rem; }
.article-body ul ul, .article-body ul ol,
.article-body ol ul, .article-body ol ol { margin-top: .35rem; margin-bottom: .1rem; }

/* بلاک‌کوت */
.article-body blockquote {
  margin: 1.5rem 0;
  padding: 14px 18px 14px 14px;
  border-right: 4px solid #d93935;
  background: rgba(217,57,53,.045);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4b5563;
  text-align: justify;
}
[data-bs-theme="dark"] .article-body blockquote {
  background: rgba(217,57,53,.08);
  color: #94a3b8;
}
.article-body blockquote p { margin-bottom: 0; }

/* لینک‌ها */
.article-body a {
  color: #d93935;
  text-decoration: underline;
  text-decoration-color: rgba(217,57,53,.4);
  text-underline-offset: 3px;
  transition: color .18s, text-decoration-color .18s;
}
.article-body a:hover { color: #b52f2b; text-decoration-color: #b52f2b; }
[data-bs-theme="dark"] .article-body a       { color: #f87171; text-decoration-color: rgba(248,113,113,.4); }
[data-bs-theme="dark"] .article-body a:hover { color: #fca5a5; text-decoration-color: #fca5a5; }

/* تصاویر */
.article-body img {
  max-width: 100%; height: auto;
  border-radius: 8px;
  margin: 1.1rem auto;
  display: block;
}
.article-body p > img { display: inline-block; margin: 0; vertical-align: middle; }
.article-body figure { margin: 1.5rem 0; text-align: center; }
.article-body figcaption {
  font-size: .8rem; color: #6b7280;
  margin-top: 6px; font-style: italic; text-align: center;
}
[data-bs-theme="dark"] .article-body figcaption { color: #94a3b8; }

/* جدول */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
  display: block;
  overflow-x: auto;
}
.article-body th,
.article-body td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  text-align: right;
  vertical-align: top;
}
.article-body th { background: #f9fafb; font-weight: 600; color: #111827; }
[data-bs-theme="dark"] .article-body th {
  background: rgba(14,27,54,.7);
  color: #e2e8f0;
  border-color: rgba(255,255,255,.1);
}
[data-bs-theme="dark"] .article-body td { border-color: rgba(255,255,255,.07); }

/* کد */
.article-body pre,
.article-body code {
  font-family: 'Courier New', monospace;
  font-size: .875rem;
  background: #f8fafc;
  border-radius: 6px;
}
.article-body code { padding: 2px 6px; }
.article-body pre  { padding: 1rem 1.25rem; margin: 1.25rem 0; overflow-x: auto; direction: ltr; text-align: left; }
[data-bs-theme="dark"] .article-body pre,
[data-bs-theme="dark"] .article-body code { background: #0a1525; color: #7dd3fc; }

/* خط افقی */
.article-body hr { border: none; border-top: 2px solid #f3f4f6; margin: 2rem 0; }
[data-bs-theme="dark"] .article-body hr { border-top-color: rgba(255,255,255,.07); }

/* رسانه */
.article-body audio  { width: 100%; margin: 1rem 0; }
.article-body iframe { max-width: 100%; border-radius: 8px; margin: 1rem 0; }

/* قالب‌بندی inline */
.article-body strong, .article-body b { font-weight: 700; }
.article-body em,     .article-body i { font-style: italic; }
.article-body u { text-decoration: underline; text-underline-offset: 3px; }
.article-body s { text-decoration: line-through; }

/* اندازهٔ فونت متحرک (کنترل نوار متا) */
.article-body[style*="font-size"] p,
.article-body[style*="font-size"] li { font-size: inherit; }

/* عنوان‌های صفحات تکی → Dibaj */
article :is(h1, h2, h3, h4, h5, h6),
.note-title-h1 { font-family: var(--ns-font-dibaj-b); }


/* ═══════════════════════════════════════════
   ۱۱) سیستم دیدگاه‌ها
   ═══════════════════════════════════════════ */
.cmt-item { position: relative; }
.cmt-item + .cmt-item { margin-top: 12px; }

.cmt-bubble {
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,.06);
  border-right: 3px solid #d93935;
  border-radius: 0 10px 10px 0;
  padding: 10px 14px 12px;
  transition: background .2s;
}
[data-bs-theme="dark"] .cmt-bubble {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.07);
  border-right-width: 3px;
  border-right-color: #d93935;
}
.cmt-item:hover .cmt-bubble { background: #e8eef6; }
[data-bs-theme="dark"] .cmt-item:hover .cmt-bubble { background: rgba(255,255,255,.08); }

.cmt-bubble--reply {
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px 10px;
}
[data-bs-theme="dark"] .cmt-bubble--reply { background: rgba(255,255,255,.04); }
.cmt-item--reply:hover .cmt-bubble--reply { background: #f0f4fb; }
[data-bs-theme="dark"] .cmt-item--reply:hover .cmt-bubble--reply { background: rgba(255,255,255,.07); }

.cmt-head {
  display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap; margin-bottom: 5px;
}
.cmt-author-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.cmt-name { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.4; }
[data-bs-theme="dark"] .cmt-name { color: #e2e8f0; }
.cmt-dot  { color: #cbd5e1; font-size: 12px; }
.cmt-time { font-size: 11px; color: #94a3b8; }
.cmt-reply-badge { display: inline-flex; align-items: center; color: #94a3b8; }

.cmt-reply-btn {
  margin-right: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2px 10px;
  cursor: pointer;
  line-height: 1.6;
  white-space: nowrap;
  transition: all .18s;
}
.cmt-reply-btn:hover {
  color: #d93935;
  border-color: rgba(217,57,53,.4);
  background: rgba(217,57,53,.06);
}
[data-bs-theme="dark"] .cmt-reply-btn { border-color: rgba(255,255,255,.1); color: #64748b; }
[data-bs-theme="dark"] .cmt-reply-btn:hover {
  color: #d93935;
  border-color: rgba(217,57,53,.4);
  background: rgba(217,57,53,.08);
}

.cmt-text {
  font-size: 13.5px; line-height: 1.9;
  color: #374151; margin: 0; word-break: break-word;
}
[data-bs-theme="dark"] .cmt-text { color: #94a3b8; }

.cmt-replies {
  margin-top: 6px; margin-right: 16px;
  padding-top: 4px; padding-right: 14px;
  border-right: 2px solid rgba(217,57,53,.25);
  position: relative;
}
[data-bs-theme="dark"] .cmt-replies { border-right-color: rgba(217,57,53,.4); }
.cmt-replies::before {
  content: "";
  position: absolute; top: 0; right: -5px;
  width: 8px; height: 8px;
  background: rgba(217,57,53,.35);
  border-radius: 50%;
}
.cmt-item--reply + .cmt-item--reply { margin-top: 8px; }

@media (max-width: 640px) {
  .cmt-bubble        { padding: 8px 11px 10px; }
  .cmt-bubble--reply { padding: 7px 10px 9px; }
  .cmt-name          { font-size: 12px; }
}


/* ═══════════════════════════════════════════
   ۱۲) فوتر v2
   ═══════════════════════════════════════════ */
.footer-v2 {
  background: linear-gradient(160deg, #05080f 0%, #0a1120 45%, #060c1a 100%);
  color: #64748b;
  position: relative;
  overflow: hidden;
  border-top: none;
}
.footer-v2::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to left,
    transparent 0%, #d93935 25%, #f59e0b 55%, #d93935 80%, transparent 100%);
}
.footer-v2-bg    { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.footer-v2-lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-55deg,
    transparent 0px, transparent 38px,
    rgba(255,255,255,.012) 38px, rgba(255,255,255,.012) 39px);
}
.footer-v2-glow      { position: absolute; border-radius: 50%; filter: blur(60px); }
.footer-v2-glow-gold {
  width: 360px; height: 360px; top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 70%);
}
.footer-v2-glow-red  {
  width: 280px; height: 280px; bottom: -60px; left: 5%;
  background: radial-gradient(circle, rgba(217,57,53,.08) 0%, transparent 70%);
}

.footer-v2-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 24px 0;
  position: relative; z-index: 1;
}
.footer-v2-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px 40px;
  padding-bottom: 24px;
}
@media (max-width: 900px) { .footer-v2-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-v2-grid { grid-template-columns: 1fr; gap: 20px; } }

.footer-v2-logo-wrap { margin-bottom: 10px; }
.footer-v2-name-link {
  font-size: 1.25rem; font-weight: 800;
  color: #fff; text-decoration: none; letter-spacing: -.01em;
}
.footer-v2-desc { font-size: .75rem; line-height: 1.85; color: #475569; margin: 0 0 14px; }

.footer-v2-accent     { display: flex; align-items: center; gap: 5px; }
.footer-v2-accent-bar {
  width: 32px; height: 3px; border-radius: 2px;
  background: linear-gradient(to left, #d93935, #f59e0b);
}
.footer-v2-accent-dot    { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.footer-v2-accent-dot-sm { width: 5px; height: 5px; background: rgba(245,158,11,.4); }

.footer-v2-col-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  color: #f59e0b; text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.footer-v2-col-title::before {
  content: '';
  width: 16px; height: 2px; border-radius: 1px;
  background: linear-gradient(to left, #d93935, #f59e0b);
  flex-shrink: 0;
}

.footer-v2-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; }
.footer-v2-link {
  font-size: .77rem; color: #475569; text-decoration: none;
  display: flex; align-items: center; gap: 5px;
  transition: color .18s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.footer-v2-link::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(245,158,11,.35);
  flex-shrink: 0;
  transition: background .18s, transform .18s;
}
.footer-v2-link:hover          { color: #e2e8f0; }
.footer-v2-link:hover::before  { background: #f59e0b; transform: scale(1.4); }

.footer-v2-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-v2-social-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: all .22s ease;
}
.footer-v2-social-icon:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #06091a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245,158,11,.3);
}

.footer-v2-contact-hint { font-size: .75rem; color: #3d5070; line-height: 1.8; margin: 0; }
.footer-v2-contact-link { color: #f59e0b; text-decoration: none; }
.footer-v2-contact-link:hover { text-decoration: underline; }

.footer-v2-divider-wrap { padding: 0 24px; position: relative; z-index: 1; }
.footer-v2-divider {
  height: 1px;
  background: linear-gradient(to left,
    transparent 0%, rgba(245,158,11,.25) 20%, rgba(255,255,255,.07) 50%,
    rgba(217,57,53,.2) 80%, transparent 100%);
}
/* نوار پایین فوتر.
   گرید 1fr auto 1fr است نه flex: با flex و justify-content:space-between
   کپی‌رایت وقتی اعتبار طراح خالی است جابه‌جا می‌شد.
   ستون سوم در RTL سمت چپ است. */
.footer-v2-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
  padding: 10px 24px;
  font-size: .7rem; color: #2d3f58;
  position: relative; z-index: 1;
}
.footer-v2-bottom-copy {
  grid-column: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.footer-v2-brand-name { color: #f59e0b; font-weight: 700; }
.footer-v2-bottom-sep { color: rgba(245,158,11,.3); font-size: 1rem; }
.footer-v2-year       { color: #2d3f58; }

/* اعتبار طراح سایت */
.footer-v2-designer {
  grid-column: 3;
  justify-self: end;            /* end = چپ، چون صفحه RTL است */
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.footer-v2-designer-label { color: #2d3f58; }
.footer-v2-designer-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color .25s;
}
a.footer-v2-designer-link:hover,
a.footer-v2-designer-link:focus-visible { color: #f59e0b; text-decoration: underline; }

@media (max-width: 767.98px) {
  .footer-v2-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 6px;
    text-align: center;
  }
  .footer-v2-bottom-copy { grid-column: 1; }
  .footer-v2-designer    { grid-column: 1; justify-self: center; }
}

/* لینک‌های فوتر با underline متحرک */
.footer-link {
  position: relative;
  color: #a0a0a0; text-decoration: none;
  font-size: .95rem; transition: color .3s;
}
.footer-link::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px;
  background-color: #d93935;
  transition: width .3s;
}
.footer-link:hover        { color: #fff; }
.footer-link:hover::after { width: 100%; }

.footer-logo-shape {
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: transparent; padding: 0; border: 0;
}
.footer-logo-shape::before,
.footer-logo-shape::after { display: none !important; content: none !important; }

/* ── فوتر نازک (لایوت تابلوی اخبار) ── */
.ns-slim-footer {
  flex-shrink: 0;
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,.08);
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: nowrap; overflow: hidden;
  padding: 0 16px;
}
.ns-slim-copy { color: #94a3b8; font-size: .68rem; white-space: nowrap; }
.ns-slim-copy strong { color: #cbd5e1; font-weight: 700; }
.ns-slim-sep  { color: #334155; font-size: .65rem; }
.ns-slim-link {
  color: #94a3b8; font-size: .68rem;
  text-decoration: none; white-space: nowrap;
  transition: color .15s;
}
.ns-slim-link:hover { color: #ef4444; }
.ns-slim-mobile  { display: none; align-items: center; gap: 10px; }
.ns-slim-socials { display: flex; align-items: center; gap: 8px; }
.ns-slim-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  transition: background .15s;
  text-decoration: none;
}
.ns-slim-social:hover { background: rgba(255,255,255,.12); }
.ns-slim-social svg   { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 768px) {
  .ns-slim-footer  { height: 44px; padding: 0 12px; }
  .ns-slim-desktop { display: none; }
  .ns-slim-mobile  { display: flex; }
}


/* ═══════════════════════════════════════════
   ۱۳) چاپ
   ═══════════════════════════════════════════ */
@media print {
  .no-print, header, footer, .sticky-header,
  .article-meta-bar, .offcanvas, .modal, .carousel-control-prev,
  .carousel-control-next { display: none !important; }
  .article-body { color: #000; font-size: 12pt; }
  a[href]::after { content: ""; }
}


/* ═══════════════════════════════════════════
   ۱۴) اجزای هدر — معادل کلاس‌های تیلویندِ حذف‌شده
   ═══════════════════════════════════════════ */

.main-header-el {
  background-color: var(--ns-primary);
  position: relative;
  z-index: 1030;
  border-bottom: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  /* ⚠️ لازم است: لایوت صفحهٔ «تابلوی اخبار» یک ستون فلکس با
     height:100vh و overflow:hidden است. آیتم‌های فلکس به‌صورت
     پیش‌فرض shrink می‌شوند، پس وقتی محتوای ستون از ارتفاع صفحه
     بیشتر می‌شد هدر فشرده می‌شد (۵۷px → ۲۲px) و لوگو و ابزارها
     از کادرش بیرون می‌زدند — هدر «ناقص» دیده می‌شد.
     فوتر نازک همان موقع هم flex-shrink:0 داشت، برای همین سالم بود. */
  flex-shrink: 0;
}

/* نقطهٔ مرجعِ هدر چسبان هم نباید در ستون فلکس جمع شود */
#headerSentinel { flex-shrink: 0; }

/* لینک‌های منوی هدر */
.ns-nav-link {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  padding: .5rem .75rem;
  border-radius: .375rem;
  text-decoration: none;
  transition: color .2s, background-color .2s;
  white-space: nowrap;
}
.ns-nav-link:hover  { color: #fff; }
.ns-nav-link.active { background: rgba(255,255,255,.1); color: #fff; }

/* دکمهٔ گرد آیکونی هدر */
.header-icon-btn {
  width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}
.header-icon-btn:hover { color: #fff; background: rgba(255,255,255,.2); }
.header-icon-btn svg   { width: 1.25rem; height: 1.25rem; position: relative; z-index: 1; }

/* دکمهٔ همبرگر / بدون پس‌زمینه */
.header-plain-btn {
  width: 2.25rem; height: 2.25rem;
  border: 0; background: transparent;
  color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* قرص شیشه‌ای (تاریخ شمسی، «دنبال کنید»، «نصب اپ») */
.ns-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 0; border-radius: 999px;
  padding: .375rem .75rem;
  font-size: .75rem;
  cursor: default;
  white-space: nowrap;
}
.ns-pill svg { width: .875rem; height: .875rem; color: rgba(255,255,255,.6); }

.ns-pill-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.ns-pill-btn:hover { background: rgba(255,255,255,.3); color: #fff; }
.ns-pill-btn svg   { color: currentColor; }

/* آیکون SVG داخل دکمه‌های شبکهٔ اجتماعی — جایگزین [&>svg]:… تیلویند */
.ns-icon-slot {
  display: inline-flex; align-items: center; justify-content: center;
}
.ns-icon-slot > svg { width: 100%; height: 100%; fill: currentColor; }

/* نتایج جستجوی زنده — hover روی آیتم */
.ns-search-hit { transition: background-color .2s ease; }
.ns-search-hit:hover { background: rgba(255,255,255,.06); }

/* چیپ‌های فیلتر جستجو */
.search-chip {
  border: 0;
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .75rem;
  background: rgba(255,255,255,.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all .2s ease;
}
.search-chip:hover  { background: rgba(255,255,255,.18); color: #e2e8f0; }
.search-chip.active { background: var(--ns-primary); color: #fff; }

/* آف‌کانواس «دنبال کنید» — گوشه‌های گرد بالا */
#followSheet.offcanvas-bottom {
  height: auto; max-height: 80vh;
  border-radius: 18px 18px 0 0;
  border: 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.4);
}


/* ═══════════════════════════════════════════
   ۱۵) منوی موبایل (offcanvas) و مودال جستجو
   ═══════════════════════════════════════════ */

/* ── لینک‌های منوی موبایل ── */
.ns-mobile-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem;
  color: #d1d5db;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s ease, background-color .2s ease;
}
.ns-mobile-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.ns-mobile-link:hover {
  color: var(--ns-primary);
  background: rgba(217,57,53,.1);
}

/* ── پنل مودال جستجو ── */
.ns-search-panel {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 0;
  border-radius: .5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}

.ns-search-input {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 2px solid transparent;
  border-radius: .5rem;
  color: #fff;
  font-size: 1rem;
  padding: 1rem 1.25rem 1rem 3.5rem;
  outline: none;
  transition: all .2s ease;
}
.ns-search-input::placeholder { color: #6b7280; }
.ns-search-input:focus {
  border-color: var(--ns-primary);
  background: rgba(255,255,255,.15);
  color: #fff;
}

.ns-search-submit {
  position: absolute; left: .5rem; top: 50%;
  transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: .5rem;
  background: linear-gradient(135deg, var(--ns-primary), #c23a51);
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease;
}
.ns-search-submit:hover { transform: translateY(-50%) scale(1.05); }


/* ═══════════════════════════════════════════
   ۱۶) اجزای صفحهٔ اصلی
   ═══════════════════════════════════════════ */

/* ── دکمه‌های ناوبری اسلایدر (بالا-چپ) ── */
.ns-slider-nav {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; gap: .25rem; z-index: 20;
}
.ns-slider-nav button {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: .5rem;
  cursor: pointer;
  transition: transform .2s ease;
  opacity: 1;
}
.ns-slider-nav button:hover { transform: scale(1.1); }
.ns-slider-nav svg { width: 1.25rem; height: 1.25rem; color: #fff; }
.ns-slider-nav .ns-nav-next { background: var(--ns-primary); }
.ns-slider-nav .ns-nav-prev { background: #22c55e; }

/* ── دکمهٔ پخش روی تصویر ویدیو ── */
.ns-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(217,57,53,.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s ease;
}
a:hover > .main-video-image .ns-play-btn,
.main-video-image:hover .ns-play-btn { transform: translate(-50%, -50%) scale(1.1); }
.ns-play-btn svg { width: 1.75rem; height: 1.75rem; color: #fff; margin-left: .25rem; }

.ns-play-btn-sm {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: rgba(217,57,53,.9);
  display: flex; align-items: center; justify-content: center;
}
.ns-play-btn-sm svg { width: .75rem; height: .75rem; color: #fff; margin-left: 1px; }

/* ── آیتم لیست ویدیو ── */
.ns-media-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem;
  border-radius: .5rem;
  text-decoration: none;
  transition: background-color .2s ease;
}
.ns-media-item:not(:last-child) { border-bottom: 1px solid var(--ns-border); }
.ns-media-item:hover { background: rgba(217,57,53,.05); }
.ns-video-rank {
  color: var(--ns-primary);
  font-size: 1.5rem; font-weight: 700;
  min-width: 25px; text-align: center;
}
.ns-video-thumb {
  position: relative; flex-shrink: 0;
  width: 7rem; height: 70px;
  border-radius: .5rem; overflow: hidden;
}

/* ── لیست خبرهای باکس دسته‌بندی (bullet قرمز سمت راست) ──
   جایگزین کلاس‌های before:* تیلویند */
.cat-box-list-item {
  position: relative;
  padding: .625rem 1rem .625rem 0;
}
.cat-box-list-item:not(:last-child) { border-bottom: 1px solid var(--ns-border); }
.cat-box-list-item::before {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--ns-primary);
  border-radius: 50%;
}

/* ── کارت یادداشت: hover ── */
.notes-card {
  display: block;
  padding: 1rem;
  border-radius: .5rem;
  text-decoration: none;
}
.notes-card:hover {
  background: rgba(217,57,53,.05);
  border-color: rgba(217,57,53,.3);
}

/* ── سر ستون بخش‌ها: پوستهٔ مشترک ── */
.ns-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--ns-border);
}
.ns-section-head-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 700;
  color: var(--ns-text);
}
.ns-section-head-title svg { width: 1rem; height: 1rem; color: var(--ns-primary); }
.ns-section-head-link {
  display: flex; align-items: center; gap: .25rem;
  font-size: .875rem;
  color: var(--ns-text-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.ns-section-head-link:hover { color: var(--ns-primary); }
.ns-section-head-link svg { width: 1rem; height: 1rem; }

/* ── پوستهٔ سفید کارت‌های صفحهٔ اصلی ── */
.ns-panel {
  background: var(--ns-surface);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: var(--bs-box-shadow-sm);
}


/* ═══════════════════════════════════════════
   ۱۷) ویجت‌های سایدبار
   ═══════════════════════════════════════════ */

.ns-widget {
  background: var(--ns-surface);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: var(--bs-box-shadow-sm);
  margin-bottom: 1rem;
}

/* لیست اخبار داخل ویجت — ارتفاع محدود با اسکرول */
.ns-widget-scroll { max-height: 20rem; overflow-y: auto; }

/* در ستون‌های تمام‌ارتفاع (صفحهٔ تک روزنامه) تا ته ستون کشیده شود */
.np-side-scroll.ns-widget-scroll { max-height: none; }

/* ── ویجت روزنامه ── */
.ns-paper-box { padding: 1rem; text-align: center; }
.ns-paper-title {
  font-size: .875rem; font-weight: 700;
  color: var(--ns-text);
  margin-bottom: .75rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--ns-border);
}
.ns-paper-cover {
  display: block; border-radius: .5rem; overflow: hidden;
  margin-bottom: .75rem; box-shadow: var(--bs-box-shadow-sm);
}
.ns-paper-cover img { width: 100%; height: auto; transition: transform .5s ease; }
.ns-paper-cover:hover img { transform: scale(1.05); }
.ns-paper-btn {
  display: flex; align-items: center; justify-content: center; gap: .25rem;
  width: 100%;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-primary-dark));
  color: #fff;
  font-size: .75rem;
  text-decoration: none;
  transition: all .2s ease;
}
.ns-paper-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,57,53,.3);
}
.ns-paper-btn svg { width: .875rem; height: .875rem; }

/* ── آیتم ویجت (یادداشت / ویدیو / نویسنده) ── */
.ns-widget-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .5rem;
  border-radius: .5rem;
  text-decoration: none;
  transition: background-color .2s ease;
}
.ns-widget-item:hover { background: rgba(217,57,53,.05); }
.ns-widget-item:not(:last-child) { border-bottom: 1px solid var(--ns-border); }
.ns-widget-item:hover .ns-widget-item-title { color: var(--ns-primary); }
.ns-widget-item-title {
  font-size: .75rem; font-weight: 700;
  line-height: 1.75;
  color: var(--ns-text);
  margin-bottom: .125rem;
  transition: color .2s ease;
}

.ns-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(217,57,53,.2);
}

/* ── تصویر بندانگشتی ویدیو در ویجت ── */
.ns-widget-thumb {
  position: relative; flex-shrink: 0;
  width: 5rem; height: 3.5rem;
  border-radius: .5rem; overflow: hidden;
  background: var(--ns-surface-3);
}
.ns-widget-thumb img { transition: transform .3s ease; }
.ns-widget-item:hover .ns-widget-thumb img { transform: scale(1.05); }
.ns-widget-thumb .ns-play-dot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: rgba(217,57,53,.9);
  display: flex; align-items: center; justify-content: center;
}
.ns-widget-thumb .ns-play-dot svg { width: .75rem; height: .75rem; color: #fff; margin-left: 1px; }

/* ── اسپینر بارگذاری ── */
.ns-spinner-box {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem; padding: 2rem 0;
  color: var(--ns-text-faint);
}

/* ═══════════════════════════════════════════
   ۱۸) ویجت تگ‌های پرکاربرد
   ───────────────────────────────────────────
   نسخهٔ قبلی برای فرار از purge تیلویند، رنگ هر تگ را در style درون‌خطی
   می‌گذاشت و بعد ~۵۰ خط جاوااسکریپت + MutationObserver داشت تا هنگام
   تغییر تم رنگ‌ها را دستی عوض کند.
   حالا رنگ‌ها به‌صورت CSS Custom Property پاس داده می‌شوند و خودِ CSS
   تم روشن/تیره را مدیریت می‌کند — جاوااسکریپتِ این ویجت کاملاً حذف شد.
   ═══════════════════════════════════════════ */

.pt-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; line-height: 1; }
.pt-tags-list  { display: flex; flex-wrap: wrap; gap: 7px; }

.pt-tag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: var(--pt-h, 28px);
  padding: 0 var(--pt-px, 12px);
  border-radius: 999px;
  border: 1.5px solid var(--pt-border);
  background: var(--pt-bg);
  color: var(--pt-text);
  font-size: var(--pt-fs, 12px);
  font-weight: var(--pt-fw, 600);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: all .18s ease;
}
.pt-tag-pill:hover {
  background: var(--pt-hover);
  color: var(--pt-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
[data-bs-theme="dark"] .pt-tag-pill {
  background: var(--pt-dark-bg);
  color: var(--pt-dark-text);
  border-color: var(--pt-dark-border);
}
[data-bs-theme="dark"] .pt-tag-pill:hover {
  background: var(--pt-dark-border);
  color: var(--pt-dark-text);
}

.pt-tag-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.12);
  border-radius: 999px;
  font-weight: 700;
  padding: 0 5px;
  min-width: 18px;
  opacity: .85;
  font-size: var(--pt-count-fs, 10px);
  height: var(--pt-count-h, 16px);
}
[data-bs-theme="dark"] .pt-tag-count { background: rgba(255,255,255,.15); }

/* ═══════════════════════════════════════════
   ۱۹) آگهی
   ═══════════════════════════════════════════ */
.ns-ad-text {
  border-radius: .5rem;
  border: 1px solid var(--ns-border);
  background: var(--ns-surface-2);
  padding: 1rem;
  font-size: .875rem;
  line-height: 1.75;
}
.ns-ad-text.ns-ad-clickable { cursor: pointer; transition: background-color .2s ease; }
.ns-ad-text.ns-ad-clickable:hover { background: var(--ns-surface-3); }
.ns-ad-label { display: block; margin-top: .5rem; font-size: .625rem; color: var(--ns-text-faint); }
.ns-ad-img { width: 100%; border-radius: .5rem; box-shadow: var(--bs-box-shadow-sm); }
.ns-ad-img.ns-ad-clickable { cursor: pointer; transition: opacity .2s ease; }
.ns-ad-img.ns-ad-clickable:hover { opacity: .9; }


/* ═══════════════════════════════════════════
   ۲۰) صفحهٔ خبر / یادداشت / ویدیو
   ═══════════════════════════════════════════ */

/* ── بردکرامب ── */
.ns-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .375rem;
  padding: .75rem 1rem;
  background: var(--ns-surface);
  border-radius: .5rem;
  box-shadow: var(--bs-box-shadow-sm);
  font-size: .75rem;
}
.ns-breadcrumb a {
  display: inline-flex; align-items: center; gap: .25rem;
  color: var(--ns-text-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.ns-breadcrumb a:hover { color: var(--ns-primary); }
.ns-breadcrumb a svg { width: .875rem; height: .875rem; }
.ns-breadcrumb-sep { width: .75rem; height: .75rem; color: var(--ns-text-faint); flex-shrink: 0; }
.ns-breadcrumb-current {
  color: var(--ns-primary); font-weight: 700;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── بج دستهٔ خبر در نوار متا ── */
.ns-cat-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--ns-primary);
  color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity .2s ease;
}
.ns-cat-badge:hover { color: #fff; opacity: .9; }
.ns-cat-badge svg { width: .75rem; height: .75rem; }

/* ── آیتم متای خبر (تاریخ، کد، دیدگاه، منبع) ── */
.ns-meta-item {
  display: inline-flex; align-items: center; gap: .375rem;
  color: var(--ns-text-muted);
  font-size: .75rem;
  text-decoration: none;
}
a.ns-meta-item:hover { color: var(--ns-primary); }
.ns-meta-item svg { width: .875rem; height: .875rem; color: rgba(217,57,53,.6); flex-shrink: 0; }
.ns-meta-item strong { color: var(--ns-text); }

/* ── زیرنویس تصویر شاخص ── */
.ns-figcaption {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .625rem 1.5rem;
  background: var(--ns-surface-2);
  color: var(--ns-text-faint);
  font-size: .75rem; line-height: 1.75;
  border-bottom: 1px solid var(--ns-border);
}
.ns-figcaption svg { width: .875rem; height: .875rem; flex-shrink: 0; margin-top: .125rem; }

/* ── چیپ برچسب ── */
.ns-tag-chip {
  background: var(--ns-surface-3);
  color: var(--ns-text-muted);
  font-size: .75rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all .2s ease;
}
.ns-tag-chip:hover { background: var(--ns-primary); color: #fff; }

/* ── دکمه‌های اشتراک‌گذاری ── */
.ns-share-btn {
  display: inline-flex; align-items: center; gap: .375rem;
  color: #fff;
  font-size: .75rem;
  padding: .5rem .75rem;
  border-radius: .5rem;
  text-decoration: none;
  transition: opacity .2s ease;
}
.ns-share-btn:hover { color: #fff; opacity: .9; }
.ns-share-btn svg { width: 1rem; height: 1rem; }
.ns-share-telegram { background: #0088cc; }
.ns-share-eitaa    { background: #f07605; }
.ns-share-bale     { background: #3a6bcc; }
.ns-share-facebook { background: #1877f2; }
.ns-share-x        { background: #000; }
/* دو رنگ زیر برای صفحهٔ یادداشت/ویدیو اضافه شد (صفحهٔ خبر ندارشان) */
.ns-share-whatsapp { background: #25d366; }
.ns-share-mail     { background: #64748b; }

/* ── اندازهٔ آیکون‌های داخل کارت دیدگاه ──
   قبلاً با کلاس‌های w-3/h-3 تیلویند تعیین می‌شد. حالا اینجا تعریف شده
   تا فایل articles/_comment_card.blade.php بدون تغییر در هر دو نسخه کار کند
   (این فایل از سمت CommentController هم برای AJAX رندر می‌شود). */
.cmt-reply-btn svg   { width: .75rem;  height: .75rem; }
.cmt-reply-badge svg { width: .625rem; height: .625rem; }

/* ── تب دوقلوی سایدبار (آخرین / پربازدیدترین) ── */
.ns-split-tabs { display: flex; }
.ns-split-tab {
  flex: 1;
  padding: .75rem 0;
  border: 0;
  font-size: .875rem;
  cursor: pointer;
  background: var(--ns-surface-3);
  color: var(--ns-text-muted);
  transition: all .2s ease;
}
.ns-split-tab.active {
  background: var(--ns-primary);
  color: #fff;
  font-weight: 700;
}
[data-bs-theme="dark"] .ns-split-tab { background: #152040; color: #7b92b0; }
[data-bs-theme="dark"] .ns-split-tab.active { background: var(--ns-primary); color: #fff; }

/* ── لینک «اخبار بیشتر» ── */
.ns-more-link {
  display: flex; align-items: center; justify-content: center; gap: .375rem;
  padding: .5rem;
  border-radius: .5rem;
  color: var(--ns-primary);
  font-size: .75rem; font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease;
}
.ns-more-link:hover { background: rgba(217,57,53,.05); color: var(--ns-primary); }
.ns-more-link svg { width: .875rem; height: .875rem; }

/* ── جعبهٔ اطلاع پاسخ در فرم دیدگاه ── */
.ns-reply-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem;
  background: rgba(217,57,53,.05);
  border: 1px solid rgba(217,57,53,.2);
  border-radius: .5rem;
}


/* ═══════════════════════════════════════════
   ۲۱) نشانگر حالت آزمایشی — موقتی (تا فاز ۱۰)
   ═══════════════════════════════════════════ */
.ns-ui-badge {
  position: fixed;
  bottom: 12px; left: 12px;
  z-index: 1080;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .88);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 11px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  pointer-events: auto;
}
.ns-ui-badge a {
  color: #fca5a5;
  text-decoration: none;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, .2);
  padding-right: 8px;
}
.ns-ui-badge a:hover { color: #fff; }
@media print { .ns-ui-badge { display: none !important; } }


/* ═══════════════════════════════════════════
   ۲۲) صفحهٔ دسته‌بندی / برچسب / جستجو
   ═══════════════════════════════════════════ */

/* ── دکمه‌های فیلتر زیردسته ── */
.cat-filter-btn {
  font-size: .75rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--ns-border-strong);
  color: var(--ns-text-muted);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.cat-filter-btn:hover {
  border-color: var(--ns-primary);
  color: var(--ns-primary);
}
.cat-filter-btn.active-filter {
  border-color: rgba(217,57,53,.3);
  color: var(--ns-primary);
  background: rgba(217,57,53,.05);
  font-weight: 700;
}
.cat-filter-btn.active-filter:hover {
  background: var(--ns-primary);
  color: #fff;
}

/* ── نشان پخش روی تصویر ویدیو در گرید ── */
.ns-play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ns-play-badge > span {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.ns-play-badge svg { width: 1.25rem; height: 1.25rem; color: #fff; }

/* ── حالت خالی ── */
.ns-empty-note {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--ns-text-faint);
  font-size: .875rem;
}


/* ═══════════════════════════════════════════
   ۲۳) صفحهٔ برچسب (تگ)
   ───────────────────────────────────────────
   این‌ها قبلاً در یک بلوک <style> داخل web/tag.blade.php بودند.
   ⚠️ نسخهٔ قبلی برای حالت تیره از سلکتور body.dark-mode استفاده می‌کرد،
   در حالی که دارک‌مود این سایت با html.dark کار می‌کرد — یعنی این
   قوانین هیچ‌وقت اعمال نمی‌شدند و کارت‌ها در حالت تیره سفید می‌ماندند.
   حالا با [data-bs-theme="dark"] درست کار می‌کنند.
   ═══════════════════════════════════════════ */

.tag-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.tag-hero::before {
  content: '#';
  position: absolute; left: -10px; top: 50%;
  transform: translateY(-50%);
  font-size: 9rem; font-weight: 900;
  color: rgba(255,255,255,.04);
  line-height: 1; pointer-events: none;
  font-family: monospace;
}
.tag-hero::after {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,57,53,.15) 0%, transparent 70%);
}

/* ── ردیف مقاله (لیست افقی) ── */
.article-row {
  display: flex; gap: 16px;
  background: var(--ns-surface);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--ns-border);
  text-decoration: none;
  transition: all .25s;
}
.article-row:hover {
  border-color: rgba(217,57,53,.25);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateX(-3px);
}
[data-bs-theme="dark"] .article-row {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.07);
}
[data-bs-theme="dark"] .article-row:hover {
  border-color: rgba(217,57,53,.3);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

.article-row-thumb {
  width: 120px; height: 84px;
  border-radius: 8px; overflow: hidden;
  flex-shrink: 0;
}
.article-row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.article-row:hover .article-row-thumb img { transform: scale(1.08); }

.article-row-thumb-fallback {
  width: 120px; height: 84px;
  border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center;
}
.article-row-thumb-fallback svg { width: 1.75rem; height: 1.75rem; color: rgba(255,255,255,.2); }

/* ── چیپ تگ روی هدر تیره ── */
.tag-chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.tag-chip:hover {
  background: rgba(217,57,53,.25);
  border-color: rgba(217,57,53,.5);
  color: #fff;
}

/* ── ستون ابزارک چسبان با اسکرول داخلی ── */
/* ── ستون‌های چسبان ──
   ⚠️ top ثابت ۲۰px بود، ولی هدر چسبان یک نوار fixed روی بالای صفحه
   است؛ نتیجه این می‌شد که موقع اسکرول، هدر روی عنوان ستون‌های دوم و
   سوم می‌افتاد. حالا فاصله از ارتفاع واقعی همان هدر می‌آید
   (StickyHeader.js آن را اندازه می‌گیرد و در --ns-sticky-h می‌ریزد). */
.ns-sticky-col {
  position: sticky;
  top: var(--ns-sticky-top);
  align-self: flex-start;
  max-height: calc(100vh - var(--ns-sticky-top) - 1rem);
  overflow-y: auto;
}


/* ═══════════════════════════════════════════
   ۲۴) صفحهٔ جستجو
   ───────────────────────────────────────────
   قبلاً یک بلوک <style> ۵۰ خطی داخل web/search.blade.php بود.
   حالت تیرهٔ آن هم مثل صفحهٔ تگ با سلکتور اشتباه body.dark-mode
   نوشته شده بود و هیچ‌وقت کار نمی‌کرد — اینجا اصلاح شد.
   ═══════════════════════════════════════════ */

.search-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.search-hero::before {
  content: '';
  position: absolute; top: -40px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,57,53,.12) 0%, transparent 70%);
}
.search-hero::after {
  content: '';
  position: absolute; bottom: -40px; right: -20px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,52,96,.6) 0%, transparent 70%);
}

/* ── کادر جستجوی بزرگ ── */
.search-box-lg {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  border: 2px solid rgba(217,57,53,.2);
}
.search-box-lg input {
  flex: 1;
  border: none; outline: none;
  padding: 14px 18px;
  font-size: .95rem;
  font-family: inherit;
  background: transparent;
  color: #333;
  direction: rtl;
}
.search-box-lg button {
  background: var(--ns-primary);
  color: #fff;
  border: none;
  padding: 0 22px;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background .2s;
}
.search-box-lg button:hover { background: var(--ns-primary-dark); }
.search-box-lg button svg { width: 1rem; height: 1rem; }

/* ── فیلتر دسته‌بندی ── */
.search-cat-btn {
  display: inline-flex; align-items: center;
  padding: 5px 13px;
  border-radius: 9999px;
  border: 1px solid var(--ns-border-strong);
  background-color: var(--ns-surface-2);
  color: var(--ns-text-muted);
  font-size: .76rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s;
}
.search-cat-btn:hover {
  border-color: rgba(217,57,53,.4);
  color: var(--ns-primary);
}
.search-cat-btn.active {
  background-color: rgba(217,57,53,.08);
  border-color: rgba(217,57,53,.4);
  color: var(--ns-primary);
  font-weight: 700;
}
[data-bs-theme="dark"] .search-cat-btn {
  background-color: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
  color: #aaa;
}
[data-bs-theme="dark"] .search-cat-btn.active {
  background-color: rgba(217,57,53,.15);
  border-color: rgba(217,57,53,.4);
  color: #e05b58;
}

/* ── ردیف نتیجه ── */
.result-row {
  display: flex; gap: 16px;
  background: var(--ns-surface);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--ns-border);
  text-decoration: none;
  transition: all .25s;
}
.result-row:hover {
  border-color: rgba(217,57,53,.25);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateX(-3px);
}
[data-bs-theme="dark"] .result-row {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.07);
}
[data-bs-theme="dark"] .result-row:hover { border-color: rgba(217,57,53,.3); }

.result-thumb { width: 120px; height: 84px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.result-row:hover .result-thumb img { transform: scale(1.08); }

.result-thumb-fallback {
  width: 120px; height: 84px;
  border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: flex; align-items: center; justify-content: center;
}
.result-thumb-fallback svg { width: 2rem; height: 2rem; color: #cbd5e1; }
[data-bs-theme="dark"] .result-thumb-fallback { background: linear-gradient(135deg, #1e2438, #252c3f); }

/* ── هایلایت عبارت جستجو ── */
.search-hl {
  background: rgba(217,57,53,.15);
  color: #c0392b;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}
[data-bs-theme="dark"] .search-hl { background: rgba(217,57,53,.25); color: #e05b58; }

/* ── حالت خالی ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.empty-state-icon svg { width: 2.25rem; height: 2.25rem; color: #9ca3af; }
[data-bs-theme="dark"] .empty-state-icon { background: linear-gradient(135deg, #1e2438, #252c3f); }

/* ── پوشش لودینگ نتایج ── */
.ns-loading-overlay {
  position: absolute; inset: 0;
  z-index: 10;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  display: none;
  align-items: center; justify-content: center;
}
.ns-loading-overlay.active { display: flex; }
[data-bs-theme="dark"] .ns-loading-overlay { background: rgba(6,12,26,.65); }


/* ═══════════════════════════════════════════
   ۲۵) صفحهٔ آرشیو
   ───────────────────────────────────────────
   منتقل‌شده از بلوک <style> داخل web/archive.blade.php (۲۳۵ خط).
   تنها تغییر: سلکتور دارک‌مود از html.dark به [data-bs-theme="dark"]
   عوض شد (18 مورد). بقیه مو به مو همان است.
   ═══════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   صفحه آرشیو
══════════════════════════════════════════════════════ */
.arc-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f3460 100%);
  border-radius: 16px 16px 0 0;
  padding: 24px 24px 0;
  position: relative; overflow: hidden;
}
.arc-hero::before {
  content:''; position:absolute; top:-60px; left:-60px;
  width:220px; height:220px; border-radius:50%;
  background:radial-gradient(circle,rgba(217,57,53,.18) 0%,transparent 70%);
  pointer-events:none;
}
.arc-hero-top {
  position:relative;z-index:1;
  display:flex;align-items:center;gap:14px;margin-bottom:20px;
}
.arc-hero-icon {
  width:46px;height:46px;border-radius:12px;flex-shrink:0;
  background:rgba(217,57,53,.2);border:1px solid rgba(217,57,53,.3);
  display:flex;align-items:center;justify-content:center;
}
.arc-hero-title{color:#fff;font-size:1.3rem;font-weight:900;margin:0;line-height:1.2;}
.arc-hero-sub  {color:#94a3b8;font-size:.73rem;margin:0;}
.arc-total-pill{
  margin-right:auto;
  background:rgba(255,255,255,.1);color:#fff;
  font-size:.73rem;font-weight:700;
  padding:4px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.15);
}
/* تب‌های نوع محتوا */
.arc-type-tabs{position:relative;z-index:1;display:flex;border-top:1px solid rgba(255,255,255,.08);overflow-x:auto;}
.arc-type-tab{
  display:inline-flex;align-items:center;gap:5px;padding:11px 18px;
  color:rgba(255,255,255,.5);font-size:.76rem;font-weight:600;
  cursor:pointer;background:none;border:none;border-bottom:2.5px solid transparent;
  transition:all .18s;font-family:inherit;white-space:nowrap;flex-shrink:0;
}
.arc-type-tab:hover{color:rgba(255,255,255,.85);}
.arc-type-tab.active{color:#fff;border-bottom-color:#d93935;}
.arc-type-tab svg{width:13px;height:13px;}

/* فیلتر بار */
.arc-filter-bar{
  background:#fff;border:1px solid #e2e8f0;border-top:none;
  border-radius:0 0 14px 14px;padding:14px 18px;
  display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;
  margin-bottom:14px;box-shadow:0 4px 16px rgba(0,0,0,.05);
}
[data-bs-theme="dark"] .arc-filter-bar{background:#1e293b;border-color:rgba(255,255,255,.08);}
.arc-fg{display:flex;flex-direction:column;gap:4px;}
.arc-fl{font-size:.63rem;font-weight:700;color:#64748b;letter-spacing:.04em;}
[data-bs-theme="dark"] .arc-fl{color:#94a3b8;}
.arc-sel,.arc-inp{
  height:36px;border:1.5px solid #e2e8f0;border-radius:8px;
  padding:0 10px;font-size:.8rem;font-family:inherit;
  color:#374151;background:#f8fafc;outline:none;transition:border-color .18s;direction:rtl;
}
[data-bs-theme="dark"] .arc-sel,[data-bs-theme="dark"] .arc-inp{background:#0f172a;border-color:rgba(255,255,255,.12);color:#e2e8f0;}
.arc-sel:focus,.arc-inp:focus{border-color:#d93935;}
.arc-dr{display:flex;align-items:center;gap:6px;}
.arc-dr-sep{color:#94a3b8;font-size:.68rem;white-space:nowrap;}
.arc-btn-apply{
  height:36px;padding:0 16px;background:#d93935;color:#fff;
  border:none;border-radius:8px;font-size:.78rem;font-weight:700;font-family:inherit;
  cursor:pointer;transition:background .18s;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;
}
.arc-btn-apply:hover{background:#b52f2b;}
.arc-btn-reset{
  height:36px;padding:0 12px;background:transparent;color:#64748b;
  border:1.5px solid #e2e8f0;border-radius:8px;font-size:.76rem;font-family:inherit;
  cursor:pointer;transition:all .18s;white-space:nowrap;
}
[data-bs-theme="dark"] .arc-btn-reset{border-color:rgba(255,255,255,.12);color:#94a3b8;}
.arc-btn-reset:hover{border-color:#d93935;color:#d93935;}

/* تگ فیلتر فعال */
.arc-active-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;}
.arc-active-tag{
  display:inline-flex;align-items:center;gap:4px;
  background:rgba(217,57,53,.08);border:1px solid rgba(217,57,53,.2);
  color:#d93935;border-radius:999px;font-size:.71rem;font-weight:600;
  padding:3px 9px;cursor:pointer;transition:all .15s;
}
.arc-active-tag:hover{background:rgba(217,57,53,.15);}
.arc-active-tag svg{width:9px;height:9px;}

/* کارت مقاله */
.arc-item{
  display:flex;gap:12px;background:#fff;border-radius:12px;
  padding:12px;border:1.5px solid rgba(0,0,0,.05);text-decoration:none;
  transition:all .22s;position:relative;overflow:hidden;
}
[data-bs-theme="dark"] .arc-item{background:#1e293b;border-color:rgba(255,255,255,.06);}
.arc-item:hover{border-color:rgba(217,57,53,.25);box-shadow:0 6px 22px rgba(0,0,0,.08);transform:translateX(-2px);}
[data-bs-theme="dark"] .arc-item:hover{box-shadow:0 6px 22px rgba(0,0,0,.3);}
.arc-item--note {border-right:3px solid #8b5cf6;}
.arc-item--video{border-right:3px solid #ec4899;}
.arc-type-badge{
  position:absolute;top:8px;left:8px;font-size:.6rem;font-weight:700;
  border-radius:999px;padding:2px 7px;letter-spacing:.02em;
}
.arc-type-note {background:rgba(139,92,246,.12);color:#7c3aed;}
.arc-type-video{background:rgba(236,72,153,.12);color:#db2777;}
.arc-thumb{width:90px;height:64px;border-radius:8px;overflow:hidden;flex-shrink:0;position:relative;}
.arc-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s;}
.arc-item:hover .arc-thumb img{transform:scale(1.07);}
.arc-thumb-fb{
  width:90px;height:64px;border-radius:8px;flex-shrink:0;
  background:linear-gradient(135deg,#f1f5f9,#e2e8f0);
  display:flex;align-items:center;justify-content:center;
}
[data-bs-theme="dark"] .arc-thumb-fb{background:linear-gradient(135deg,#1e2d3d,#1a2638);}
.arc-thumb-fb svg{width:20px;height:20px;color:#94a3b8;}
.arc-play{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;}
.arc-play svg{width:18px;height:18px;color:#fff;}
.arc-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.arc-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;}
.arc-cat{font-size:.65rem;font-weight:700;border-radius:999px;padding:2px 7px;}
.arc-rowtitle{font-size:.65rem;color:#d93935;font-weight:600;}
.arc-title{
  font-size:.83rem;font-weight:700;color:#1e293b;line-height:1.5;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
[data-bs-theme="dark"] .arc-title{color:#e2e8f0;}
.arc-lead{
  font-size:.71rem;color:#64748b;margin:0;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
}
[data-bs-theme="dark"] .arc-lead{color:#94a3b8;}
.arc-footer{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:2px;}
.arc-date,.arc-views{display:inline-flex;align-items:center;gap:3px;font-size:.65rem;color:#94a3b8;}
.arc-date svg,.arc-views svg{width:11px;height:11px;}

/* کارت روزنامه */
.arc-np-card{
  display:flex;flex-direction:column;gap:5px;text-decoration:none;
  border-radius:10px;overflow:hidden;border:1.5px solid rgba(0,0,0,.06);
  transition:all .22s;background:#fff;
}
[data-bs-theme="dark"] .arc-np-card{background:#1e293b;border-color:rgba(255,255,255,.06);}
.arc-np-card:hover{border-color:rgba(217,57,53,.3);box-shadow:0 6px 20px rgba(0,0,0,.1);transform:translateY(-2px);}
.arc-np-cover{position:relative;aspect-ratio:3/4;overflow:hidden;background:#f1f5f9;}
.arc-np-cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s;}
.arc-np-card:hover .arc-np-cover img{transform:scale(1.05);}
.arc-np-overlay{
  position:absolute;inset:0;background:rgba(0,0,0,.35);opacity:0;
  transition:opacity .22s;display:flex;align-items:center;justify-content:center;color:#fff;
}
.arc-np-card:hover .arc-np-overlay{opacity:1;}
.arc-np-title{font-size:.7rem;font-weight:700;color:#1e293b;margin:0;padding:0 7px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
[data-bs-theme="dark"] .arc-np-title{color:#e2e8f0;}
.arc-np-date{font-size:.63rem;color:#94a3b8;padding:0 7px 7px;}

/* pagination */
.arc-pg-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:34px;height:34px;padding:0 8px;border-radius:8px;
  border:1.5px solid #e2e8f0;background:#fff;color:#555;
  font-size:.8rem;cursor:pointer;transition:all .2s;font-family:inherit;
}
[data-bs-theme="dark"] .arc-pg-btn{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);color:#ccc;}
.arc-pg-btn:hover,.arc-pg-btn.active{background:#d93935;border-color:#d93935;color:#fff;}

/* اسپینر */
@keyframes arc-spin{to{transform:rotate(360deg);}}
.arc-spinner{
  display:none;position:absolute;inset:0;
  background:rgba(255,255,255,.7);backdrop-filter:blur(3px);
  border-radius:12px;z-index:20;align-items:center;justify-content:center;
}
/* نسخهٔ قبلی با style.display=flex باز/بسته می‌شد؛ حالا با کلاس */
.arc-spinner.active{display:flex;}
[data-bs-theme="dark"] .arc-spinner{background:rgba(15,23,42,.75);}
.arc-spinner-ring{width:40px;height:40px;border:3px solid #e2e8f0;border-top-color:#d93935;border-radius:50%;animation:arc-spin .7s linear infinite;}

/* ── تقویم شمسی پاپ‌آپ ──────────────────────────── */
.arc-dp-wrap{position:relative;display:inline-flex;align-items:center;}
.arc-dp-cal-icon{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:#94a3b8;pointer-events:none;}
.arc-dp-inp{padding-left:30px!important;cursor:pointer!important;}
.arc-dp-popup{
  position:absolute;top:calc(100% + 7px);right:0;z-index:300;
  background:#fff;border:1.5px solid #e2e8f0;border-radius:14px;
  padding:13px 11px;box-shadow:0 10px 36px rgba(0,0,0,.16);width:256px;
  display:none;direction:rtl;
}
[data-bs-theme="dark"] .arc-dp-popup{background:#1e293b;border-color:rgba(255,255,255,.13);}
.arc-dp-popup.open{display:block;}
.arc-dp-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.arc-dp-nbtn{
  width:30px;height:30px;border:none;background:transparent;
  border-radius:8px;cursor:pointer;display:flex;align-items:center;
  justify-content:center;color:#64748b;transition:background .14s;flex-shrink:0;
}
.arc-dp-nbtn:hover{background:#f1f5f9;color:#d93935;}
[data-bs-theme="dark"] .arc-dp-nbtn:hover{background:rgba(255,255,255,.08);}
.arc-dp-nbtn svg{width:14px;height:14px;}
.arc-dp-lbl{flex:1;text-align:center;font-size:.84rem;font-weight:800;color:#1e293b;line-height:1;}
[data-bs-theme="dark"] .arc-dp-lbl{color:#e2e8f0;}
.arc-dp-wds{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:5px;}
.arc-dp-wd{font-size:.6rem;font-weight:700;color:#94a3b8;text-align:center;padding:3px 0;}
.arc-dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;}
.arc-dp-cell{
  height:30px;border:none;background:transparent;border-radius:7px;
  font-size:.74rem;cursor:pointer;font-family:inherit;
  color:#374151;transition:all .12s;display:flex;align-items:center;justify-content:center;padding:0;
}
[data-bs-theme="dark"] .arc-dp-cell{color:#cbd5e1;}
.arc-dp-cell:hover:not([disabled]):not(.arc-dp-empty){background:rgba(217,57,53,.1);color:#d93935;}
.arc-dp-cell.arc-dp-sel{background:#d93935;color:#fff;font-weight:700;}
.arc-dp-cell.arc-dp-today{font-weight:800;box-shadow:inset 0 0 0 1.5px rgba(217,57,53,.45);color:#d93935;}
.arc-dp-cell.arc-dp-today.arc-dp-sel{box-shadow:none;color:#fff;}
.arc-dp-cell.arc-dp-empty{cursor:default;pointer-events:none;}

/* ── ریسپانسیو grid ──────────────────────────────── */
/* ══════════════════════════════════════════════════════════════
   صفحه‌بندی مشترک سایت  (partials/_pager + vendor/pagination)
   ──────────────────────────────────────────────────────────────
   ⚠️ چرا این بخش لازم شد: دکمه‌های شماره متن دارند و دکمه‌های
   عقب/جلو یک <svg>. بوت‌استرپ عرض .page-link را از محتوایش می‌گیرد،
   پس دکمهٔ «۱» باریک، دکمهٔ «۱۲» پهن‌تر، و دکمهٔ فلش یک اندازهٔ سومی
   می‌شد — و چون svg به‌صورت inline نشسته بود، ارتفاعش هم با بقیه
   نمی‌خواند. حالا همهٔ خانه‌ها یک مربع هم‌اندازه‌اند:
     • min-width و height ثابت
     • inline-flex با مرکزچین افقی و عمودی
     • svg با display:block (خط پایهٔ inline حذف می‌شود)
     • tabular-nums تا ارقام فارسی هم‌عرض بمانند
   ══════════════════════════════════════════════════════════════ */
.ns-pager { width: 100%; }

.ns-pager-count {
  font-size: .8125rem;
  color: var(--ns-text-faint, #94a3b8);
  background: var(--ns-surface-2, rgba(148, 163, 184, .10));
  border: 1px solid var(--ns-border, rgba(148, 163, 184, .22));
  border-radius: 999px;
  padding: .3rem .9rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}
.ns-pager-count b {
  color: var(--ns-text, inherit);
  font-weight: 700;
}

/* فاصلهٔ بین خانه‌ها با gap گرفته می‌شود، پس حاشیهٔ منفیِ بوت‌استرپ
   (که خانه‌ها را به هم می‌چسباند) باید خنثی شود. */
.pagination {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.pagination .page-item + .page-item .page-link,
.pagination .page-item:not(:first-child) .page-link {
  margin-inline-start: 0;
  margin-left: 0;
  margin-right: 0;
}

.pagination .page-link {
  min-width: 2.125rem;
  height: 2.125rem;
  padding: 0 .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .625rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border-width: 1px;
}
.pagination .page-link svg {
  display: block;
  width: 1rem;
  height: 1rem;
}
/* دکمه‌های AJAX <button> هستند؛ ظاهر پیش‌فرض دکمهٔ مرورگر را پاک می‌کنیم */
.pagination button.page-link {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}
.pagination .page-item.disabled .page-link {
  opacity: .45;
  cursor: default;
}
.pagination .page-item.active .page-link {
  font-weight: 800;
}

@media (max-width: 575.98px) {
  .ns-pager { justify-content: center !important; }
  .ns-pager-count { font-size: .75rem; }
  .pagination .page-link { min-width: 1.9rem; height: 1.9rem; font-size: .75rem; }
}

.arc-layout {
  display: grid;
  /* ۸/۲/۲ → ۷/۳/۲ — همان نسبتی که صفحات جستجو و تگ دارند */
  grid-template-columns: 7fr 3fr 2fr;
  gap: 12px;
  align-items: start;
}
@media(max-width:1024px){
  .arc-layout { grid-template-columns: 1fr; }
}

@media(max-width:768px){
  .arc-filter-bar{padding:10px 12px;gap:8px;}
  .arc-fg{width:calc(50% - 4px);}
  .arc-dr{flex-direction:column;align-items:stretch;}
  .arc-dr-sep{display:none;}
  .arc-thumb{width:72px;height:54px;}
  .arc-item{padding:10px;gap:9px;}
}


/* ═══════════════════════════════════════════
   ۲۶) تابلوی اخبار (/news)
   ───────────────────────────────────────────
   منتقل‌شده از بلوک <style> داخل web/news.blade.php (۴۸۵ خط).
   تنها تغییر: html.dark → [data-bs-theme="dark"] (34 مورد).

   ⚠️ نام کلاس‌ها عمداً دست‌نخورده ماند. دلیل: HTML این ستون‌ها در
   کد PHP کنترلر (NewsController::renderArticles و خواهرانش) به‌صورت
   رشته ساخته می‌شود. تغییر نامشان یعنی دست‌کاری کنترلر، که نسخهٔ
   فعلی سایت را هم می‌شکست. به‌جایش چهار کلاسِ هم‌نامِ خودمان
   تغییر نام گرفتند: ns-scroll→ns-thin-scroll ، ns-empty→ns-empty-note ،
   ns-video-badge→ns-play-badge ، ns-video-item→ns-media-item
   ───────────────────────────────────────────
   تابلوی خبری — ۵ ستون با اسکرول داخلی
   ستون‌ها: latest | (siyasi/eghtesadi/farhangi) | (beynolmelal/multimedia/notes) | popular | newspapers
   ═══════════════════════════════════════════ */

/* ── board wrapper ── */
.news-board {
  display: flex;
  gap: 6px;
  padding: 6px;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* ── ستون‌های عمودی ── */
.ns-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.ns-col-full   { flex: 2.2; }   /* ستون ۱ و ۴ */
.ns-col-boxes  { flex: 2.6; }   /* ستون ۲ و ۳ */
.ns-col-np     { flex: 2; }     /* ستون ۵ روزنامه */

/* ── باکس‌های مشترک ── */
.ns-box {
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  flex: 1;
  min-height: 0;  /* مهم برای flex children */
}
[data-bs-theme="dark"] .ns-box {
  background: #0f1e35;
  border-color: rgba(255,255,255,0.06);
}

/* ── هدر باکس ── */
.ns-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  background: #fff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
[data-bs-theme="dark"] .ns-box-header { background: #0f1e35; }

.ns-box-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ns-box-title {
  font-size: .86rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.01em;
}
[data-bs-theme="dark"] .ns-box-title { color: #e2e8f0; }

.ns-box-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ns-box-icon svg { width: 15px; height: 15px; }

.ns-archive-link {
  font-size: .68rem;
  color: #94a3b8;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all .2s;
}
.ns-archive-link:hover { color: #d93935; border-color: rgba(217,57,53,0.3); }
[data-bs-theme="dark"] .ns-archive-link { border-color: rgba(255,255,255,0.08); color: #475569; }

/* ── محتوای اسکرول‌پذیر ── */
.ns-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
}
.ns-scroll::-webkit-scrollbar { width: 4px; }
.ns-scroll::-webkit-scrollbar-track { background: transparent; }
.ns-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 99px; }
[data-bs-theme="dark"] .ns-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

/* ══════════════════════════════════════════════════════════════
   آیتم‌های خبری
════════════════════════════════════════════════════════════════ */

/* ── آیتم عمومی ── */
.ns-item {
  display: flex;
  gap: 9px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .18s;
  position: relative;
  align-items: flex-start;
}
.ns-item:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ns-item:hover { background: rgba(217,57,53,0.04); }
[data-bs-theme="dark"] .ns-item:hover { background: rgba(217,57,53,0.08); }

/* تامبنیل */
.ns-thumb {
  position: relative;
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.ns-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ns-thumb-wide {
  width: 80px;
  height: 52px;
}

/* badge ویدیو روی تامبنیل */
.ns-video-badge {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
}
.ns-video-badge svg, .ns-play-icon svg {
  width: 18px; height: 18px;
  color: #fff;
}
.ns-play-icon {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
}

/* بدنه متن */
.ns-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ns-cat {
  font-size: .68rem;
  font-weight: 700;
  color: #d93935;
  line-height: 1;
}
.ns-title {
  font-size: .84rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-bs-theme="dark"] .ns-title { color: #c8d8e8; }
.ns-item:hover .ns-title { color: #d93935; }
.ns-date {
  font-size: .67rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* رنک (برای پربازدید) */
.ns-rank {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #d93935;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  flex-shrink: 0;
}

/* ── یادداشت — عکس راست | نام+دسته+تیتر+تاریخ چپ ── */
.ns-note {
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
}
.ns-note-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(139,92,246,0.2);
  flex-shrink: 0;
  margin-top: 2px;
}
.ns-note-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ns-note-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ns-note-name {
  font-size: .72rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
}
[data-bs-theme="dark"] .ns-note-name { color: #94a3b8; }
.ns-note-cat {
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(139,92,246,0.1);
}
.ns-note-title {
  -webkit-line-clamp: 2;
  font-size: .82rem;
  line-height: 1.5;
}
.ns-note-date {
  margin-top: 1px;
  align-self: flex-start;
}

/* ── ویدیو ── */
.ns-video-item { align-items: flex-start; }

/* ══════════════════════════════════════════════════════════════
   روزنامه ۲ تایی
════════════════════════════════════════════════════════════════ */
.ns-np-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
}
.ns-np-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.ns-np-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
[data-bs-theme="dark"] .ns-np-item { background: #0f1e35; border-color: rgba(255,255,255,0.06); }
.ns-np-cover {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f1f5f9;
}
.ns-np-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.ns-np-item:hover .ns-np-cover img { transform: scale(1.04); }
.ns-np-title {
  font-size: .72rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
  padding: 4px 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-bs-theme="dark"] .ns-np-title { color: #94a3b8; }
.ns-np-date {
  font-size: .6rem;
  color: #94a3b8;
  padding: 0 6px 5px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   loading / skeleton / empty
════════════════════════════════════════════════════════════════ */
.ns-loader {
  display: flex;
  justify-content: center;
  padding: 10px;
}
.ns-loader-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d93935;
  margin: 0 3px;
  animation: nsDotBounce .9s infinite ease-in-out;
}
.ns-loader-dot:nth-child(2) { animation-delay: .15s; }
.ns-loader-dot:nth-child(3) { animation-delay: .3s; }
@keyframes nsDotBounce {
  0%,80%,100% { transform: scale(0.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.ns-empty {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: .75rem;
}

/* اسکلت */
.ns-skeleton-item {
  display: flex;
  gap: 9px;
  padding: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ns-sk-thumb {
  width: 64px; height: 48px;
  border-radius: 6px;
  background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: nsShimmer 1.4s infinite;
  flex-shrink: 0;
}
.ns-sk-body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ns-sk-line {
  height: 10px; border-radius: 4px;
  background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: nsShimmer 1.4s infinite;
}
@keyframes nsShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
[data-bs-theme="dark"] .ns-sk-thumb,
[data-bs-theme="dark"] .ns-sk-line {
  background: linear-gradient(90deg,#0d1829 25%,#152040 50%,#0d1829 75%);
  background-size: 200% 100%;
}

/* ── پایان اسکرول ── */
.ns-end-sentinel { height: 1px; }

/* ══════════════════════════════════════════════════════════════
   Dark Mode بهبودیافته
════════════════════════════════════════════════════════════════ */
[data-bs-theme="dark"] body { background: #060e1a; }
[data-bs-theme="dark"] .news-board { background: #060e1a; }

[data-bs-theme="dark"] .ns-box {
  background: #0b1628;
  border-color: rgba(255,255,255,0.05);
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
[data-bs-theme="dark"] .ns-box-header {
  background: #0b1628;
  border-bottom-width: 2px;
}
[data-bs-theme="dark"] .ns-item { border-bottom-color: rgba(255,255,255,0.04); }
[data-bs-theme="dark"] .ns-item:hover { background: rgba(217,57,53,0.07); }

[data-bs-theme="dark"] .ns-thumb { background: #0d1829; }
[data-bs-theme="dark"] .ns-title { color: #c8d8e8; }
[data-bs-theme="dark"] .ns-item:hover .ns-title { color: #ff7b77; }
[data-bs-theme="dark"] .ns-date { color: #3d5470; }
[data-bs-theme="dark"] .ns-cat { opacity: .9; }

[data-bs-theme="dark"] .ns-archive-link {
  color: #3d5470;
  border-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .ns-archive-link:hover { color: #ff7b77; border-color: rgba(217,57,53,0.3); }

[data-bs-theme="dark"] .ns-box-title { color: #c8d8e8; }
[data-bs-theme="dark"] .ns-box-icon { opacity: .85; }

[data-bs-theme="dark"] .ns-np-item {
  background: #0b1628;
  border-color: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .ns-np-title { color: #7b92b0; }
[data-bs-theme="dark"] .ns-np-date { color: #2d4060; }

[data-bs-theme="dark"] .ns-note-left .ns-date { color: #2d4060; }

[data-bs-theme="dark"] .ns-sk-thumb,
[data-bs-theme="dark"] .ns-sk-line {
  background: linear-gradient(90deg,#0b1628 25%,#0f1e35 50%,#0b1628 75%);
  background-size: 200% 100%;
}
[data-bs-theme="dark"] .skeleton-card { border-color: rgba(255,255,255,.04); }

/* ══════════════════════════════════════════════════════════════
   Responsive
════════════════════════════════════════════════════════════════ */

/* تبلت — ۳ ستون با تب‌ها برای ستون ۲ و ۳ */
@media (max-width: 1280px) {
  .ns-col-full { flex: 2; }
  .ns-col-boxes { flex: 2.4; }
  .ns-col-np { flex: 1.6; }
}

@media (max-width: 1024px) {
  /* روزنامه مخفی */
  .ns-col-np { display: none; }
  .ns-col-full { flex: 2; }
  .ns-col-boxes { flex: 2.2; }
}

@media (max-width: 768px) {
  /* موبایل: همه باکس‌ها زیر هم */
  .news-board {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    padding: 6px;
    gap: 8px;
  }

  .ns-col-full,
  .ns-col-boxes,
  .ns-col-np {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* هر باکس ارتفاع ثابت */
  .ns-col-full .ns-box  { height: 400px; }
  .ns-col-boxes .ns-box { height: 340px; }
  .ns-col-np .ns-box    { height: 360px; }
  .ns-col-np            { display: flex; }

  /* تامبنیل کوچک‌تر */
  .ns-thumb      { width: 54px; height: 42px; }
  .ns-thumb-wide { width: 68px; height: 46px; }

  /* یادداشت */
  .ns-note-avatar { width: 34px; height: 34px; }
}

/* پیام «پایان» ته هر ستون — قبلاً با style.cssText از داخل جاوااسکریپت
   ست می‌شد؛ حالا اینجاست تا استایل در یک جا بماند. */
.ns-end-msg {
  text-align: center;
  padding: 10px;
  font-size: .65rem;
  color: #94a3b8;
}

/* ══════════════════════════════════════════════════════════════
   ۳۲) صفحهٔ یادداشت‌ها  (notes/index + notes/author)
   ──────────────────────────────────────────────────────────────
   منتقل‌شده از بلوک <style> داخل notes/index.blade.php (۲۰۸ خط)
   و notes/author.blade.php (۶۸ خط) — این دو تقریباً یکی بودند و
   اینجا یک بار نوشته شده‌اند.
   تنها تغییر: html.dark → [data-bs-theme="dark"]
   ══════════════════════════════════════════════════════════════ */

/* ── نوار فیلتر دسته‌بندی ── */
.notes-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}

.notes-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 34px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #475569;
  font-size: .78rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  text-decoration: none; font-family: inherit;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.notes-tab::before {
  content: '';
  position: absolute; inset: 0;
  background: currentColor;
  opacity: 0; transition: opacity .2s;
}
.notes-tab:hover {
  border-color: rgba(217,57,53,0.35);
  color: #d93935;
  background: rgba(217,57,53,0.04);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* دکمهٔ «همه» — حالت فعال */
.notes-tab[data-slug="all"].active {
  background: linear-gradient(135deg, #d93935 0%, #c02e2a 100%);
  border-color: #d93935;
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,57,53,0.4);
  transform: translateY(-1px);
}

/* دکمهٔ دستهٔ رنگی — حالت فعال (رنگ inline از Blade می‌آید) */
.notes-tab.active {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.notes-tab .tab-count {
  font-size: .65rem; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(0,0,0,0.08);
  transition: background .2s;
}
.notes-tab.active .tab-count { background: rgba(255,255,255,0.25); }
.notes-tab[data-slug="all"] .tab-count { background: rgba(217,57,53,0.1); color: #d93935; }
.notes-tab[data-slug="all"].active .tab-count { background: rgba(255,255,255,0.25); color: #fff; }

.notes-tab .tab-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: .5;
  flex-shrink: 0; transition: opacity .2s;
}
.notes-tab.active .tab-dot { opacity: 1; background: rgba(255,255,255,0.7); }

[data-bs-theme="dark"] .notes-tab {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.09);
  color: #7b92b0;
  box-shadow: none;
}
[data-bs-theme="dark"] .notes-tab:hover {
  background: rgba(217,57,53,0.1);
  border-color: rgba(217,57,53,0.3);
  color: #ff7b77;
}
[data-bs-theme="dark"] .notes-tab[data-slug="all"].active {
  background: linear-gradient(135deg, #d93935 0%, #b52f2b 100%);
  border-color: #d93935; color: #fff;
}
[data-bs-theme="dark"] .notes-tab.active { border-color: transparent; color: #fff; }
[data-bs-theme="dark"] .notes-tab .tab-count { background: rgba(255,255,255,0.1); }
[data-bs-theme="dark"] .notes-tab[data-slug="all"] .tab-count { background: rgba(217,57,53,0.15); color: #ff7b77; }

/* ── اسکلت لودینگ ──
   کلاس .skeleton-card از قبل فقط نسخهٔ دارکش در این فایل بود؛
   تعریف پایه‌اش اینجا اضافه شد. */
.skeleton {
  background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}
[data-bs-theme="dark"] .skeleton {
  background: linear-gradient(90deg,#0d1829 25%,#152040 50%,#0d1829 75%);
  background-size: 200% 100%;
}
.skeleton-card {
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.06); padding: 16px;
}

/* اندازه‌های ثابت اسکلت — جای کلاس‌های عرض/ارتفاع تیلویند */
.sk-h3    { height: 12px; }
.sk-h25   { height: 10px; }
.sk-w28   { width: 7rem; }
.sk-w20   { width: 5rem; }
.sk-w16   { width: 4rem; }
.sk-w100  { width: 100%; }
.sk-w83   { width: 83%; }
.sk-w75   { width: 75%; }
.sk-av    { width: 3.5rem; height: 3.5rem; border-radius: 8px; flex-shrink: 0; }

/* ── هدر صفحهٔ یادداشت‌ها ── */
.notes-page-header {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.notes-header-topbar {
  height: 3px;
  background: linear-gradient(to left, transparent, #d93935 25%, #f59e0b 60%, #d93935 85%, transparent);
}
.notes-header-body {
  background: linear-gradient(135deg, #0c1428 0%, #0e1b36 55%, #141e3a 100%);
  padding: 20px 24px;
  position: relative; overflow: hidden;
}
.notes-header-deco { position: absolute; inset: 0; pointer-events: none; }
.notes-header-circle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,57,53,0.12) 0%, transparent 70%);
}
.notes-header-circle-1 { width: 220px; height: 220px; top: -80px; right: -50px; }
.notes-header-circle-2 {
  width: 160px; height: 160px; bottom: -60px; left: 10%;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
}
.notes-header-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.notes-header-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.notes-header-title-group { display: flex; align-items: center; gap: 16px; }
.notes-header-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #d93935 0%, #b52f2b 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(217,57,53,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}
.notes-header-icon svg { width: 26px; height: 26px; color: #fff; }
.notes-header-title {
  font-size: 1.35rem; font-weight: 800; color: #fff;
  margin: 0 0 6px; letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.notes-header-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.notes-header-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(217,57,53,0.2);
  border: 1px solid rgba(217,57,53,0.35);
  color: #ff9d9b;
}
.notes-header-badge svg { width: 12px; height: 12px; }
.notes-header-badge-authors {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.3);
  color: #fbbf24;
}
.notes-header-desc {
  font-size: .78rem; line-height: 1.75; color: #4a6080;
  margin: 0; max-width: 300px; text-align: left;
}

/* ── هدر صفحهٔ نویسنده ── */
.author-page-header {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.author-header-topbar {
  height: 3px;
  background: linear-gradient(to left, transparent, #d93935 25%, #f59e0b 60%, #d93935 85%, transparent);
}
.author-header-body {
  background: linear-gradient(135deg, #0c1428 0%, #0e1b36 55%, #141e3a 100%);
  padding: 22px 24px; position: relative; overflow: hidden;
}
.author-header-deco { position: absolute; inset: 0; pointer-events: none; }
.author-header-circle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,57,53,0.12) 0%, transparent 70%);
  width: 220px; height: 220px; top: -80px; right: -50px;
}
.author-header-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.author-header-avatar {
  width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.author-header-name {
  font-size: 1.45rem; font-weight: 800; color: #fff;
  margin: 0 0 8px; letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.author-header-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.author-header-position { font-size: .82rem; color: #8ba0c0; margin-left: 4px; }
.author-header-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fbbf24;
}
.author-header-badge svg { width: 12px; height: 12px; }

/* ── گرید کارت‌ها (یادداشت / ویدیو) ──
   Tailwind: grid-cols-1 sm:2 lg:3 — بوت‌استرپ row-cols را دارد ولی
   اینجا فرزندان <a> مستقیم‌اند (نه .col)، پس گرید بومی ساده‌تر است. */
/* ⚠️ minmax(0, 1fr) و نه 1fr.
   «1fr» مخففِ «minmax(auto, 1fr)» است و auto یعنی ستون حق ندارد از
   min-content محتوایش باریک‌تر شود. نتیجه: عرضِ حداقلیِ این گرید ۹۸۴
   پیکسل می‌شد، آن را به ستون col-lg-9 تحمیل می‌کرد و از آنجا به
   col-lg-10 — و چون ستون‌های بوت‌استرپ flex-wrap دارند، ستون سوم
   (col-lg-2) دیگر جا نمی‌شد و می‌افتاد زیر محتوا. با زوم ۷۵٪ درست
   دیده می‌شد چون عرض CSS صفحه بزرگ‌تر می‌شد و ۹۸۴ پیکسل جا می‌شد.
   minmax(0, …) این کف را برمی‌دارد: عرض حداقلی گرید از ۹۸۴ به ۸۰
   پیکسل رسید و ستون‌ها دیگر در هیچ عرضی نمی‌شکنند. */
.ns-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 576px)  { .ns-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ستون سوم از ۱۲۸۰ به بالا، نه از ۹۹۲.
   این گرید داخل col-lg-9 داخل col-lg-10 است، پس عرضی که واقعاً به آن
   می‌رسد حدود ۵۷٪ عرض صفحه است. با آستانهٔ ۹۹۲، در صفحهٔ ۱۰۰۰ پیکسلی
   سه کارتِ ۱۵۸ پیکسلی می‌شد که خواندنی نبود (اندازه‌گیری‌شده).
   با ۱۴۰۰: در ۱۳۶۶ (لپ‌تاپ رایج) دو کارتِ ~۳۶۰ پیکسلی، و در ۱۵۲۰
   سه کارتِ ~۲۷۰ پیکسلی — یعنی هیچ‌وقت زیر ~۲۴۰ پیکسل. */
@media (min-width: 1400px) { .ns-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* حالا که ستون‌ها می‌توانند باریک شوند، یک واژهٔ بلندِ بدون فاصله
   (نشانی، نام لاتین) نباید از کارت بزند بیرون. */
.ns-card-grid .notes-card h3,
.ns-card-grid .notes-card span { overflow-wrap: anywhere; }

/* حالت خالی / خطا — کل عرض گرید */
.ns-grid-full { grid-column: 1 / -1; }

/* کارت یادداشت در گرید صفحهٔ یادداشت‌ها (متفاوت با ویجت سایدبار) */
.ns-card-grid .notes-card {
  display: block;
  padding: 1rem;
  text-decoration: none;
}

/* ── گرید هم‌ارتفاع ──────────────────────────────────────────────
   مشکل: ارتفاع کارت‌ها ناموزون بود. سه علت داشت و هر سه باید
   جدا حل شوند، وگرنه فقط بخشی از ناموزونی برطرف می‌شود:

     ۱) grid-auto-rows پیش‌فرض auto است، پس هر ردیف قدِ محتوای
        خودش را می‌گرفت (اندازه‌گیری: ۲۱۵ / ۲۳۷ / ۲۰۸ پیکسل).
        → 1fr همهٔ ردیف‌ها را هم‌قد می‌کند.
     ۲) کارت display:block بود؛ گرید کشش می‌داد ولی محتوای داخلش
        از بالا می‌چید و تاریخ هرجا که تمام می‌شد می‌ماند.
        → flex ستونی + margin-top:auto روی تاریخ، تا کف کارت بچسبد.
     ۳) بلوک نویسنده بسته به داشتن «سمت» و «دسته‌بندی» ۷۳ یا ۹۰
        پیکسل می‌شد، پس خطِ جداکنندهٔ زیرش در کارت‌ها هم‌تراز نبود.
        → min-height ثابت به اندازهٔ سه سطر متن.

   عمداً روی .ns-card-grid عمومی اعمال نشده: صفحهٔ ویدیوها هم از
   همان گرید استفاده می‌کند و نباید ناخواسته تغییر کند. */
.ns-card-grid-even { grid-auto-rows: 1fr; }

.ns-card-grid-even .notes-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.notes-card-head {
  /* ۹۰px = بلندترین حالتِ ممکن این بلوک (نام + سمت + دسته‌بندی).
     اندازه‌گیری شده روی خودِ صفحه؛ با ۷۶px دو کارت از بقیه بلندتر می‌ماندند. */
  min-height: 5.625rem;
  border-bottom: 1px solid var(--ns-border);
}

/* کش‌آمدنِ این بلوک است که تاریخ را به کف کارت می‌چسباند */
.notes-card-body { flex: 1 1 auto; }

.notes-card-foot {
  margin-top: auto;
  border-top: 1px solid var(--ns-border);
}

/* ══════════════════════════════════════════════════════════════
   ۳۳) صفحهٔ تکِ یادداشت  (notes/show)
   ──────────────────────────────────────────────────────────────
   منتقل‌شده از بلوک <style> داخل notes/show.blade.php (۲۰۲ خط)
   ══════════════════════════════════════════════════════════════ */

/* ── یادداشت‌های مرتبط ── */
.related-note-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  transition: all .3s;
  border: 1px solid rgba(0,0,0,.05);
}
.related-note-card:hover {
  background: rgba(217,57,53,.05);
  border-color: rgba(217,57,53,.2);
  transform: translateY(-1px);
}
[data-bs-theme="dark"] .related-note-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
[data-bs-theme="dark"] .related-note-card:hover { background: rgba(217,57,53,.08); }

.related-note-avatar {
  width: 3rem; height: 3rem; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}

/* ── باکس ترکیبی تیتر + نویسنده ── */
.note-author-card {
  position: relative; overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #0c1428 0%, #0f1e3a 55%, #141e3a 100%);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.note-author-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to left, transparent, #d93935 30%, #f59e0b 65%, #d93935 85%, transparent);
}
.note-author-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.note-author-deco::before {
  content: '';
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  top: -120px; right: -60px;
  background: radial-gradient(circle, rgba(217,57,53,0.09) 0%, transparent 70%);
}
.note-author-row {
  position: relative; z-index: 1;
  display: flex; align-items: stretch; gap: 0;
  min-height: 0;
}
.note-title-col {
  flex: 1; padding: 16px 20px 16px 0;
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.note-badges-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.note-type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #d93935; color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(217,57,53,0.4);
}
.note-type-badge svg { width: 12px; height: 12px; }
.note-cat-badge {
  display: inline-flex; align-items: center;
  font-size: .65rem; font-weight: 600;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8; text-decoration: none;
  transition: all .18s;
}
.note-cat-badge:hover {
  background: rgba(217,57,53,0.2);
  color: #ff9d9b;
  border-color: rgba(217,57,53,0.3);
}
.note-rowtitle { font-size: .8rem; font-weight: 700; color: #f59e0b; margin: 0; }
.note-title-h1 {
  font-size: 1.2rem; font-weight: 800; color: #fff;
  line-height: 1.6; margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.note-author-col {
  flex-shrink: 0; width: 210px;
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 18px;
  display: flex; flex-direction: row; align-items: center;
  gap: 12px; text-align: right;
  background: rgba(255,255,255,0.02);
}
.note-author-avatar {
  width: 72px; height: 72px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(217,57,53,0.5);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.note-author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}
.note-author-meta { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.note-author-label { font-size: .6rem; font-weight: 700; letter-spacing: .07em; color: #f59e0b; }
.note-author-name  { font-size: .83rem; font-weight: 800; color: #fff; line-height: 1.35; }
.note-author-pos   { font-size: .67rem; color: #64748b; line-height: 1.5; }
.note-hero-lead {
  font-size: .85rem; color: rgba(255,255,255,.7);
  line-height: 1.75; margin: 0; font-style: italic;
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 10px;
}

/* دسکتاپ و تبلت: اطلاعات نویسنده زیر تیتر، عکس تمام‌قدِ ستون چپ */
@media (min-width: 641px) {
  .note-author-meta--stacked { display: none; }

  .note-author-meta--inline {
    flex-direction: row; align-items: center; flex-wrap: wrap;
    gap: 4px 8px; flex: 0 0 auto;
    margin-top: 2px;
  }
  .note-author-meta--inline .note-author-label {
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.28);
    padding: 2px 8px; border-radius: 999px;
    line-height: 1.6;
  }
  .note-author-meta--inline .note-author-name { font-size: .88rem; }
  .note-author-meta--inline .note-author-pos::before {
    content: '•';
    margin-left: 6px;
    color: rgba(255,255,255,.28);
  }
  .note-author-meta--inline .note-author-pos { font-size: .72rem; color: #94a3b8; }

  .note-author-row { min-height: 215px; }
  .note-title-col  { padding-left: 20px; }
  .note-author-col {
    position: relative; overflow: hidden;
    width: 230px; padding: 0; gap: 0;
    align-items: stretch;
    background: rgba(0,0,0,.25);
  }
  .note-author-avatar {
    position: relative;
    width: 100%; height: auto;
    align-self: stretch;
    border: none; border-radius: 0;
    box-shadow: none;
  }
  .note-author-avatar img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
  }
  .note-author-col::after {
    content: '';
    position: absolute; top: 0; bottom: 0; right: 0; width: 48px;
    pointer-events: none;
    background: linear-gradient(to left, rgba(12,20,40,.55), transparent);
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .note-author-col { width: 185px; }
  .note-author-row { min-height: 190px; }
}

@media (max-width: 640px) {
  .note-author-meta--inline { display: none; }
  .note-author-row { flex-direction: column; }
  .note-author-col {
    order: -1; width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 14px 16px;
  }
  .note-title-col { order: 0; padding: 14px 16px 16px; }
}

/* ══════════════════════════════════════════════════════════════
   ۳۴) صفحات ویدیو  (videos/index + videos/show)
   ──────────────────────────────────────────────────────────────
   منتقل‌شده از بلوک <style> داخل videos/index.blade.php (۱۴۵ خط).
   تب‌ها، اسکلت و هدر صفحه عیناً همان صفحهٔ یادداشت‌ها بودند و دوباره
   نوشته شده بودند؛ اینجا فقط تفاوت‌ها آمده (اکسنت آبی به‌جای طلایی).

   کارت ویدیو در فایل اصلی هیچ تعریف پایه‌ای نداشت — کلاس .video-card
   فقط برای override دارک‌مود بود و بقیه‌اش کلاس تیلویند روی خودِ تگ.
   اینجا کامل تعریف شده تا HTML تمیز بماند.
   ══════════════════════════════════════════════════════════════ */

/* ── اکسنت آبی هدر صفحهٔ ویدیو ── */
.notes-page-header--video .notes-header-topbar {
  background: linear-gradient(to left, transparent, #d93935 25%, #3b82f6 60%, #d93935 85%, transparent);
}
.notes-page-header--video .notes-header-circle-2 {
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
}
.notes-header-badge-blue {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
  color: #93c5fd;
}

/* ── کارت ویدیو ── */
.video-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ns-border);
  background: var(--ns-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.video-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  border-color: rgba(217,57,53,.3);
}
[data-bs-theme="dark"] .video-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
[data-bs-theme="dark"] .video-card:hover { border-color: rgba(217,57,53,.3); }

/* تامبنیل */
.video-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}
.video-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s ease;
}
.video-card:hover .video-card-thumb img { transform: scale(1.05); }

/* جای‌گزین وقتی تامبنیل ندارد */
.video-card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
  color: rgba(255,255,255,.3);
}

/* آیکون پخش وسط تامبنیل */
.video-card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.video-card-play span {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background .2s ease, transform .2s ease;
}
.video-card:hover .video-card-play span {
  background: rgba(217,57,53,.8);
  transform: scale(1.1);
}
.video-card-play svg { width: 1.25rem; height: 1.25rem; color: #fff; margin-right: 2px; }

/* بج دسته روی تامبنیل */
.video-card-cat {
  position: absolute; top: .5rem; right: .5rem;
  font-size: .625rem; font-weight: 700;
  padding: .125rem .5rem; border-radius: 999px;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.video-card-title { transition: color .2s ease; }
.video-card:hover .video-card-title { color: var(--ns-primary); }

/* ── اسکلت کارت ویدیو ── */
.sk-video-thumb { width: 100%; aspect-ratio: 16 / 9; }
.sk-w80 { width: 80%; }

/* ── پلیر صفحهٔ تک ویدیو ── */
.vid-player-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;   /* 16:9 */
  background: #000;
}
.vid-player-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.vid-player-file { width: 100%; background: #000; }
.vid-player-file video {
  width: 100%; max-height: 520px; display: block;
}

/* ── گرید ویدیوهای مرتبط ── */
.vid-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 576px) { .vid-related-grid { grid-template-columns: repeat(3, 1fr); } }

.vid-rel-thumb {
  position: relative;
  border-radius: 8px; overflow: hidden;
  margin-bottom: .375rem;
  aspect-ratio: 16 / 9;
  background: var(--ns-surface-3);
}
.vid-rel-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.vid-rel:hover .vid-rel-thumb img { transform: scale(1.05); }
.vid-rel-thumb-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ns-text-faint);
}
.vid-rel-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.vid-rel:hover .vid-rel-overlay { opacity: 1; }
.vid-rel-overlay span {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(217,57,53,.9);
  display: flex; align-items: center; justify-content: center;
}
.vid-rel-overlay svg { width: 1rem; height: 1rem; color: #fff; margin-right: 2px; }
.vid-rel-title { transition: color .2s ease; }
.vid-rel:hover .vid-rel-title { color: var(--ns-primary); }

/* بج «۳۰ روز» کنار عنوان ویجت پربازدیدترین */
.ns-head-pill {
  font-size: .625rem;
  padding: .125rem .5rem;
  border-radius: 999px;
  background: var(--ns-surface-3);
  color: var(--ns-text-faint);
}

/* ══════════════════════════════════════════════════════════════
   ۳۵) صفحهٔ تکِ روزنامه  (web/newspaper)
   ──────────────────────────────────────────────────────────────
   منتقل‌شده از بلوک <style> داخل web/newspaper.blade.php (۱۷۲ خط).
   تنها تغییر: html.dark → [data-bs-theme="dark"]
   ══════════════════════════════════════════════════════════════ */

/* ── نمایشگر PDF ── */
#pdfEmbed {
  width: 100%; height: 72vh;
  border: none; display: block;
  background: #f1f5f9;
}
[data-bs-theme="dark"] #pdfEmbed { background: #0f172a; }

/* پیوند پشتیبان زیر نمایشگر — برای مرورگرهایی که PDF را داخل صفحه
   نشان نمی‌دهند (اغلب مرورگرهای موبایل) */
.np-pdf-fallback {
  margin: 0; padding: 10px 14px;
  font-size: .75rem; text-align: center;
  color: var(--ns-text-faint, #94a3b8);
  border-top: 1px solid var(--ns-border, #e5e7eb);
}
.np-pdf-fallback a { color: #d93935; font-weight: 600; }

/* ── دکمه‌های اکشن ── */
.np-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 13px;
  border-radius: 8px; font-size: .75rem; font-weight: 600;
  cursor: pointer; transition: all .18s;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff; color: #374151;
  text-decoration: none; white-space: nowrap;
}
.np-btn svg { width: 14px; height: 14px; }
.np-btn:hover {
  border-color: #d93935; color: #d93935;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(217,57,53,0.15);
}
.np-btn.active { border-color: #d93935; color: #d93935; background: rgba(217,57,53,0.05); }
.np-btn.np-primary { background: #d93935 !important; color: #fff !important; border-color: #d93935 !important; }
.np-btn.np-primary:hover { background: #b52f2b !important; box-shadow: 0 4px 14px rgba(217,57,53,0.35); }
.np-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

[data-bs-theme="dark"] .np-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #cbd5e1; }
[data-bs-theme="dark"] .np-btn:hover { border-color: rgba(217,57,53,0.6); color: #ff8080; background: rgba(217,57,53,0.08); }
[data-bs-theme="dark"] .np-btn.active { border-color: rgba(217,57,53,0.6); color: #ff8080; background: rgba(217,57,53,0.1); }
[data-bs-theme="dark"] .np-btn.np-primary { background: #d93935 !important; color: #fff !important; border-color: #d93935 !important; }

/* ── تب‌های نمایشگر ── */
.viewer-tab {
  flex: 1; padding: 10px 8px; font-size: .75rem; font-weight: 700;
  border: 0; cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.viewer-tab svg { width: 14px; height: 14px; }
.viewer-tab.active   { background: #d93935; color: #fff; }
.viewer-tab.inactive { background: #f9fafb; color: #6b7280; }
.viewer-tab.inactive:hover { color: #d93935; background: #fef2f2; }
[data-bs-theme="dark"] .viewer-tab.inactive { background: rgba(255,255,255,0.05); color: #94a3b8; }
[data-bs-theme="dark"] .viewer-tab.inactive:hover { background: rgba(217,57,53,0.08); color: #d93935; }

.viewer-tab-hint { font-size: .625rem; opacity: .5; font-weight: 400; }

/* ── تصویر جلد با زوم ── */
#coverWrap {
  position: relative; overflow: hidden;
  cursor: zoom-in; line-height: 0;
  background: #f1f5f9;
}
[data-bs-theme="dark"] #coverWrap { background: #1e293b; }
#coverImg {
  width: 100%; max-height: 68vh;
  object-fit: contain; display: block;
  transform-origin: center center;
  transform: scale(1); transition: transform 0s;
}

/* ── کارت هدر روزنامه ── */
.np-header-card {
  background: linear-gradient(135deg, rgba(217,57,53,0.08) 0%, rgba(217,57,53,0.04) 30%, #fff 65%);
  border-right: 4px solid #d93935;
  position: relative;
}
[data-bs-theme="dark"] .np-header-card {
  background: linear-gradient(135deg, rgba(217,57,53,0.15) 0%, rgba(217,57,53,0.06) 30%, rgba(14,27,54,0.95) 65%);
  border-right-color: #d93935;
}
.np-header-deco {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 72px; height: 72px;
  color: #d93935;
  opacity: .07;
  pointer-events: none;
}
[data-bs-theme="dark"] .np-header-deco { opacity: .1; }

.np-meta-chip {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .75rem;
  background: rgba(255,255,255,.7);
  color: #4b5563;
  padding: .25rem .625rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.np-meta-chip svg { width: 12px; height: 12px; color: #d93935; }
[data-bs-theme="dark"] .np-meta-chip {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #94a3b8;
}

.np-actions-bar {
  background: rgba(0,0,0,0.03);
  border-top: 1px solid rgba(0,0,0,0.06);
}
[data-bs-theme="dark"] .np-actions-bar {
  background: rgba(255,255,255,0.03);
  border-top-color: rgba(255,255,255,0.06);
}

/* ── کارت روزنامه‌های اخیر ── */
.np-card {
  display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all .2s;
  text-decoration: none; color: inherit;
}
[data-bs-theme="dark"] .np-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.np-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); transform: translateY(-2px); }
.np-card .np-thumb { overflow: hidden; }
.np-card .np-thumb img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; transition: transform .4s; display: block;
}
.np-card:hover .np-thumb img { transform: scale(1.06); }
.np-card-info {
  padding: 5px 7px; font-size: .65rem; color: #6b7280;
  text-align: center; border-top: 1px solid rgba(0,0,0,0.05);
}
[data-bs-theme="dark"] .np-card-info { border-color: rgba(255,255,255,0.06); color: #94a3b8; }
.np-card-info strong { display: block; font-size: .68rem; color: #1f2937; margin-bottom: 1px; }
[data-bs-theme="dark"] .np-card-info strong { color: #e2e8f0; }

/* گرید ۳ ستونهٔ روزنامه‌های اخیر */
.np-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  align-content: start;
}

/* ── ستون‌های کناری با ارتفاع کامل ──
   فقط از ۱۰۲۴px به بالا؛ در موبایل ستون‌ها زیر هم می‌آیند. */
@media (min-width: 1024px) {
  .np-side-col {
    height: calc(100vh - 2.5rem);
    display: flex; flex-direction: column; gap: 12px;
    /* بوت‌استرپ نسخهٔ ریسپانسیوِ position-sticky ندارد (فقط .sticky-lg-top
       که top را صفر می‌کند)، پس چسبندگی همین‌جا تعریف می‌شود. */
    position: sticky;
    top: 1.25rem;
  }
  /* آخرین کارتِ ستون فضای باقی‌مانده را پر می‌کند.
     script/style/template استثنا شده‌اند: ابزارک‌ها بعد از کارت یک تگ
     <script> هم چاپ می‌کنند و اگر display:flex روی آن بنشیند، مرورگر
     display:none پیش‌فرضش را از دست می‌دهد و کد به‌صورت متن دیده می‌شود. */
  .np-side-col > *:not(script):not(style):not(template):not(link) {
    flex: 0 0 auto; min-height: 0;
    display: flex; flex-direction: column;
  }
  .np-side-col > *:not(script):not(style):not(template):not(link):last-of-type {
    flex: 1 1 auto;
  }
  .np-side-col > script,
  .np-side-col > style,
  .np-side-col > template,
  .np-side-col > link { display: none !important; }

  .np-side-col > *.mb-4,
  .np-side-col > *.mb-3 { margin-bottom: 0 !important; }

  /* ناحیهٔ اسکرول‌شونده؛ max-height:none برای خنثی‌کردن سقف ارتفاع ویجت‌ها */
  .np-side-col .np-side-scroll {
    flex: 1 1 auto; min-height: 0;
    max-height: none; overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .np-side-col .np-side-scroll::-webkit-scrollbar { width: 6px; }
  .np-side-col .np-side-scroll::-webkit-scrollbar-track { background: transparent; }
  .np-side-col .np-side-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
  .np-side-col .np-side-scroll:hover::-webkit-scrollbar-thumb { background: rgba(217,57,53,0.35); }
  [data-bs-theme="dark"] .np-side-col .np-side-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
}

/* ══════════════════════════════════════════════════════════════
   ۳۶) آرشیو روزنامه  (web/newspaper-archive)
   ──────────────────────────────────────────────────────────────
   منتقل‌شده از بلوک <style> داخل web/newspaper-archive.blade.php
   (۳۱۳ خط). تنها تغییر: html.dark → [data-bs-theme="dark"]
   ══════════════════════════════════════════════════════════════ */

/* ── نوار فیلتر ── */
.npa-filter-wrap {
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-bottom: 24px;
  position: relative;
}
.npa-filter-inner { border-radius: 12px; overflow: hidden; }

.npa-filter-header {
  position: relative;
  background: linear-gradient(to left, rgba(217,57,53,.04) 0%, rgba(217,57,53,.1) 50%, transparent 100%);
  border-bottom: 1px solid #f3f4f6;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.npa-filter-header::before {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #d93935, #ff7b77);
  border-radius: 0 2px 2px 0;
}
.npa-filter-header::after {
  content: '';
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-right: 9px solid rgba(217,57,53,.12);
}
.npa-filter-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 700; color: #1e293b;
  padding-right: 8px;
}
.npa-filter-title svg { color: #d93935; width: 20px; height: 20px; }
.npa-total-badge {
  font-size: .72rem; font-weight: 600;
  color: #d93935;
  background: rgba(217,57,53,.08);
  border: 1px solid rgba(217,57,53,.2);
  border-radius: 20px;
  padding: 3px 10px;
}

.npa-filter-body {
  background: #fff;
  padding: 12px 20px 14px;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: flex-end;
}
.npa-fg { display: flex; flex-direction: column; gap: 3px; }
.npa-fl { font-size: .65rem; font-weight: 600; color: #64748b; padding-right: 2px; white-space: nowrap; }

.npa-fi {
  height: 34px; padding: 0 9px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: .76rem; color: #1e293b; background: #f8fafc;
  outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.npa-fi:focus { border-color: #d93935; box-shadow: 0 0 0 3px rgba(217,57,53,.1); background: #fff; }

.npa-fs {
  height: 34px; padding: 0 8px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: .76rem; color: #1e293b; background: #f8fafc;
  outline: none; cursor: pointer; font-family: inherit;
  transition: border-color .15s;
}
.npa-fs:focus { border-color: #d93935; box-shadow: 0 0 0 3px rgba(217,57,53,.1); }

.npa-date-row { display: flex; gap: 4px; }
.npa-date-inp { width: 110px; direction: ltr; text-align: right; }

.npa-cal-btn {
  height: 34px; width: 34px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  background: #f8fafc; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; flex-shrink: 0; padding: 0;
  transition: all .15s;
}
.npa-cal-btn:hover { border-color: #d93935; color: #d93935; background: rgba(217,57,53,.05); }

.npa-fdiv { width: 1px; height: 34px; background: #e2e8f0; flex-shrink: 0; align-self: flex-end; }

.npa-faction { display: flex; gap: 5px; align-self: flex-end; margin-right: auto; }
.npa-btn-apply {
  height: 34px; padding: 0 14px;
  border-radius: 8px; background: #d93935; color: #fff;
  font-size: .78rem; font-weight: 700; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  font-family: inherit; white-space: nowrap;
  transition: background .15s;
}
.npa-btn-apply:hover { background: #b52f2b; }
.npa-btn-reset {
  height: 34px; width: 34px;
  border-radius: 8px; background: #f1f5f9; color: #64748b;
  font-size: .78rem; border: 1px solid #e2e8f0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: inherit;
  transition: all .15s;
}
.npa-btn-reset:hover { background: #e2e8f0; color: #1e293b; }

/* ── تقویم شمسی ── */
.npa-datepicker {
  position: fixed; z-index: 9999;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  border: 1px solid #e2e8f0;
  width: 246px; padding: 8px;
  display: none;
}
.npa-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 2px 8px;
  font-size: .82rem; font-weight: 700; color: #1e293b;
}
.npa-picker-nav {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: #94a3b8;
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: all .12s;
}
.npa-picker-nav:hover { background: #f1f5f9; color: #1e293b; }
.npa-picker-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; margin-bottom: 4px;
}
.npa-picker-weekdays span {
  text-align: center; font-size: .6rem;
  color: #94a3b8; padding: 2px 0; font-weight: 600;
}
.npa-picker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.npa-picker-days button {
  aspect-ratio: 1; border: none; background: none;
  border-radius: 7px; cursor: pointer;
  font-size: .73rem; font-family: inherit; color: #334155;
  display: flex; align-items: center; justify-content: center;
  transition: all .1s;
}
.npa-picker-days button:hover { background: rgba(217,57,53,.1); color: #d93935; }
.npa-picker-days button.today { font-weight: 700; color: #d93935; }
.npa-picker-days button.sel { background: #d93935 !important; color: #fff !important; font-weight: 700; }

/* ── گرید و کارت ── */
.npa-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px; margin-bottom: 28px;
}
@media (max-width: 1100px) { .npa-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 860px)  { .npa-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .npa-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px)  { .npa-grid { grid-template-columns: repeat(2, 1fr); } }

.npa-card {
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
}
.npa-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.14); transform: translateY(-3px); }
.npa-card-thumb {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden; background: #f1f5f9; flex-shrink: 0;
}
.npa-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .3s;
}
.npa-card:hover .npa-card-thumb img { transform: scale(1.04); }
.npa-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
  opacity: 0; transition: opacity .2s;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
}
.npa-card:hover .npa-card-overlay { opacity: 1; }
.npa-overlay-btn {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .65rem; font-weight: 700;
  padding: 5px 14px; border-radius: 6px;
  text-decoration: none; cursor: pointer; border: none;
  font-family: inherit; background: #d93935; color: #fff;
  transition: background .15s;
}
.npa-overlay-btn:hover { background: #b52f2b; color: #fff; }
.npa-card-body { padding: 8px 10px 10px; border-top: 2px solid #f3f4f6; flex: 1; }
.npa-card-title {
  font-size: .88rem; font-weight: 700; color: #1e293b;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px; text-align: center;
}
.npa-card-date {
  font-size: .62rem; color: #94a3b8;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}

/* ── صفحه‌بندی ── */
.npa-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap; padding: 8px 0 24px;
}
.npa-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 6px;
  border-radius: 8px; background: #f0f2f5; color: #555;
  font-size: .85rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit; transition: all .2s;
}
.npa-page-btn:hover:not(.active):not(.disabled) {
  background: rgba(217,57,53,.1); color: #d93935; border-color: rgba(217,57,53,.3);
}
.npa-page-btn.active   { background: #d93935; color: #fff; border-color: #d93935; }
.npa-page-btn.disabled { opacity: .35; cursor: not-allowed; }

/* ── لودر / خالی ── */
.npa-loader { display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.npa-spinner {
  width: 40px; height: 40px;
  border: 3px solid #f0f2f5; border-top-color: #d93935;
  border-radius: 50%; animation: npaSpin .8s linear infinite;
}
@keyframes npaSpin { to { transform: rotate(360deg); } }
.npa-empty { text-align: center; padding: 60px 20px; color: #94a3b8; }
.npa-empty svg { opacity: .3; margin-bottom: 12px; width: 64px; height: 64px; }
.npa-empty p { font-size: .85rem; }

/* ── دارک‌مود آرشیو ── */
[data-bs-theme="dark"] .npa-filter-wrap { box-shadow: 0 2px 12px rgba(0,0,0,.35); }
[data-bs-theme="dark"] .npa-filter-inner { background: #0e1b36; }
[data-bs-theme="dark"] .npa-filter-header {
  background: linear-gradient(to left, rgba(217,57,53,.06) 0%, rgba(217,57,53,.14) 50%, transparent 100%);
  border-color: rgba(255,255,255,.05);
}
[data-bs-theme="dark"] .npa-filter-header::after { border-right-color: rgba(217,57,53,.2); }
[data-bs-theme="dark"] .npa-filter-title { color: #e2e8f0; }
[data-bs-theme="dark"] .npa-filter-body { background: #0e1b36; }
[data-bs-theme="dark"] .npa-fl { color: #7b92b0; }
[data-bs-theme="dark"] .npa-fi { background: #060c1a; border-color: rgba(255,255,255,.1); color: #e2e8f0; }
[data-bs-theme="dark"] .npa-fi::placeholder { color: #3d5070; }
[data-bs-theme="dark"] .npa-fi:focus { background: #060c1a; border-color: #d93935; box-shadow: 0 0 0 3px rgba(217,57,53,.12); }
[data-bs-theme="dark"] .npa-fs { background: #060c1a; border-color: rgba(255,255,255,.1); color: #e2e8f0; }
[data-bs-theme="dark"] .npa-cal-btn { background: #060c1a; border-color: rgba(255,255,255,.1); color: #64748b; }
[data-bs-theme="dark"] .npa-cal-btn:hover { border-color: #d93935; color: #d93935; background: rgba(217,57,53,.08); }
[data-bs-theme="dark"] .npa-fdiv { background: rgba(255,255,255,.08); }
[data-bs-theme="dark"] .npa-btn-reset { background: #060c1a; border-color: rgba(255,255,255,.1); color: #7b92b0; }
[data-bs-theme="dark"] .npa-btn-reset:hover { background: #0e1b36; color: #e2e8f0; border-color: rgba(255,255,255,.2); }
[data-bs-theme="dark"] .npa-total-badge { background: rgba(217,57,53,.12); border-color: rgba(217,57,53,.25); }
[data-bs-theme="dark"] .npa-card { background: #0e1b36; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
[data-bs-theme="dark"] .npa-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.55); transform: translateY(-3px); }
[data-bs-theme="dark"] .npa-card-body { border-color: rgba(255,255,255,.06); }
[data-bs-theme="dark"] .npa-card-title { color: #e2e8f0; }
[data-bs-theme="dark"] .npa-card-thumb { background: #060c1a; }
[data-bs-theme="dark"] .npa-card-date { color: #7b92b0; }
[data-bs-theme="dark"] .npa-page-btn { background: rgba(255,255,255,.05); color: #94a3b8; border-color: rgba(255,255,255,.08); }
[data-bs-theme="dark"] .npa-page-btn:hover:not(.active):not(.disabled) { background: rgba(217,57,53,.12); color: #ff7b77; border-color: rgba(217,57,53,.3); }
[data-bs-theme="dark"] .npa-page-btn.active { background: #d93935; color: #fff; border-color: #d93935; }
[data-bs-theme="dark"] .npa-spinner { border-color: rgba(255,255,255,.1); border-top-color: #d93935; }
[data-bs-theme="dark"] .npa-empty { color: #3d5070; }
[data-bs-theme="dark"] .npa-datepicker { background: #0e1b36; border-color: rgba(255,255,255,.1); box-shadow: 0 8px 32px rgba(0,0,0,.55); }
[data-bs-theme="dark"] .npa-picker-header { color: #e2e8f0; }
[data-bs-theme="dark"] .npa-picker-nav { color: #64748b; }
[data-bs-theme="dark"] .npa-picker-nav:hover { background: rgba(255,255,255,.08); color: #e2e8f0; }
[data-bs-theme="dark"] .npa-picker-weekdays span { color: #3d5070; }
[data-bs-theme="dark"] .npa-picker-days button { color: #94a3b8; }
[data-bs-theme="dark"] .npa-picker-days button:hover { background: rgba(217,57,53,.15); color: #ff7b77; }
[data-bs-theme="dark"] .npa-picker-days button.today { color: #ff7b77; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   ۳۷) تماس با ما  (contact)
   ──────────────────────────────────────────────────────────────
   منتقل‌شده از بلوک <style> داخل contact.blade.php (۷۸ خط).
   این بلوک حتی داخل @push('styles') هم نبود و وسط بدنهٔ صفحه
   چاپ می‌شد (HTML نامعتبر). تنها تغییر محتوایی:
   html.dark → [data-bs-theme="dark"]
   ══════════════════════════════════════════════════════════════ */

.ct {
  --ct-chrome: 430px;          /* ارتفاع تقریبی هدر+فوتر */
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ── هدر ── */
.ct-hero {
  position: relative; overflow: hidden;
  border-radius: 20px;
  padding: 22px 26px;
  color: #fff;
  background: linear-gradient(125deg, #d93935, #b91c1c 55%, #7f1d1d);
  box-shadow: 0 16px 40px -22px rgba(185,28,28,.6);
  margin-bottom: 18px;
}
.ct-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.18), transparent 42%);
}
.ct-hero h1 { position: relative; margin: 0 0 5px; font-size: 23px; font-weight: 900; }
.ct-hero p  { position: relative; margin: 0; max-width: 640px; line-height: 1.8; font-size: 13.5px; opacity: .95; }

/* ── چیدمان ── */
.ct-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }

.ct-panel {
  position: relative;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 20px;
}
[data-bs-theme="dark"] .ct-panel { background: #1e293b; border-color: #334155; }
.ct-panel h2 {
  font-size: 15px; font-weight: 800; margin: 0 0 14px;
  color: #0f172a;
  display: flex; align-items: center; gap: 8px;
}
[data-bs-theme="dark"] .ct-panel h2 { color: #f1f5f9; }

/* ── مسئولان ── */
.ct-people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ct-person {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border: 1px solid #eef2f7;
  border-radius: 14px; padding: 11px;
}
[data-bs-theme="dark"] .ct-person { background: #0f172a; border-color: #334155; }
.ct-av {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
}
[data-bs-theme="dark"] .ct-av { background: linear-gradient(135deg, #7f1d1d, #991b1b); color: #fecaca; }
.ct-person .role { font-size: 11px; color: #94a3b8; font-weight: 700; margin: 0; }
.ct-person .name { font-size: 14px; font-weight: 800; color: #0f172a; margin: 1px 0 0; }
[data-bs-theme="dark"] .ct-person .name { color: #f1f5f9; }

/* ── ردیف‌های اطلاعات ── */
.ct-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid #f1f5f9;
}
[data-bs-theme="dark"] .ct-row { border-top-color: #293548; }
.ct-row:first-of-type { border-top: 0; }
.ct-ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fef2f2; color: #dc2626;
}
[data-bs-theme="dark"] .ct-ic { background: #3f1d1d; color: #f87171; }
.ct-row .l { font-size: 11px; color: #94a3b8; font-weight: 700; margin: 0; }
.ct-row .v {
  font-size: 14px; font-weight: 700; color: #1e293b;
  margin: 1px 0 0; line-height: 1.7; word-break: break-word;
  text-decoration: none;
}
[data-bs-theme="dark"] .ct-row .v { color: #e2e8f0; }
.ct-row a.v:hover { color: #dc2626; }
.ct-row .v-ltr { direction: ltr; text-align: right; display: block; }

/* ── فرم ── */
.ct-field { margin-bottom: 12px; }
.ct-field label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: #475569; margin-bottom: 5px;
}
[data-bs-theme="dark"] .ct-field label { color: #cbd5e1; }
.ct-req  { color: #dc2626; }
.ct-opt  { color: #94a3b8; font-weight: 400; }

.ct-input {
  width: 100%;
  border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 10px 13px; font-size: 14px;
  background: #fff; color: #0f172a;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
[data-bs-theme="dark"] .ct-input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.ct-input:focus { outline: none; border-color: #f87171; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.ct-input.err { border-color: #f87171; }
textarea.ct-input { resize: none; line-height: 1.8; }

.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* تلهٔ ضد اسپم — مخفی بدون ایجاد اسکرول افقی (به‌خصوص در RTL) */
.ct-hp {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ct-btn {
  width: 100%; border: 0; border-radius: 12px;
  padding: 12px; font-size: 14.5px; font-weight: 800;
  cursor: pointer; color: #fff;
  background: linear-gradient(120deg, #dc2626, #b91c1c);
  box-shadow: 0 10px 24px -12px rgba(185,28,28,.7);
  transition: filter .15s;
  font-family: inherit;
}
.ct-btn:hover { filter: brightness(1.06); }

.ct-alert {
  border-radius: 12px; padding: 11px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 14px;
  display: flex; gap: 8px; align-items: flex-start;
}
.ct-alert svg { flex-shrink: 0; }
.ct-alert-ok  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
[data-bs-theme="dark"] .ct-alert-ok { background: #14532d; color: #bbf7d0; border-color: #166534; }
.ct-alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
[data-bs-theme="dark"] .ct-alert-err { background: #3f1d1d; color: #fca5a5; border-color: #7f1d1d; }

.ct-err-msg { font-size: 11.5px; color: #dc2626; margin: 4px 0 0; }
.ct-note {
  font-size: 11px; color: #94a3b8; margin: 10px 0 0;
  display: flex; align-items: center; gap: 5px; justify-content: center;
}

/* ── دسکتاپ: تک‌صفحه، بدون اسکرول، فرم سمت چپ ── */
@media (min-width: 1024px) {
  .ct {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100vh - var(--ct-chrome));
    padding-top: 18px; padding-bottom: 18px;
  }
  .ct-hero    { padding: 18px 26px; margin-bottom: 16px; }
  .ct-hero h1 { font-size: 21px; }
  .ct-layout  { grid-template-columns: 1.05fr 1fr; gap: 18px; align-items: start; }
  .ct-panel   { padding: 18px; }
  .ct-field   { margin-bottom: 10px; }
  textarea.ct-input { min-height: 84px; }
}

/* ══════════════════════════════════════════════════════════════
   صفحه‌های ثابت — درباره ما / قوانین / حریم خصوصی
   ══════════════════════════════════════════════════════════════ */
.pg-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.pg-head { margin-bottom: 1.5rem; }
.pg-title {
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 .75rem;
  color: var(--bs-emphasis-color);
}
/* همان نوار قرمزِ سرستون‌های صفحهٔ اصلی، در مقیاس کوچک‌تر */
.pg-rule {
  width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(to left, var(--ns-primary), rgba(245,158,11,.85));
}

.pg-body { line-height: 2.1; font-size: 1rem; color: var(--bs-body-color); }
.pg-body > :first-child { margin-top: 0; }
.pg-body > :last-child  { margin-bottom: 0; }
.pg-body h2 {
  font-size: 1.2rem; font-weight: 700;
  margin: 2rem 0 .75rem;
  padding-inline-start: .6rem;
  border-inline-start: 4px solid var(--ns-primary);
  line-height: 1.6;
}
.pg-body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.pg-body p  { margin: 0 0 1.1rem; }
.pg-body ul, .pg-body ol { margin: 0 0 1.1rem; padding-inline-start: 1.5rem; }
.pg-body li { margin-bottom: .4rem; }
.pg-body a  { color: var(--ns-primary); text-decoration: none; }
.pg-body a:hover { text-decoration: underline; }
.pg-body img { max-width: 100%; height: auto; border-radius: 10px; }
.pg-body table { width: 100%; margin-bottom: 1.1rem; }
/* جدول‌های پهنِ چسبانده‌شده نباید کل صفحه را افقی اسکرول کنند */
.pg-body { overflow-x: auto; }

.pg-foot {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: .78rem;
  color: var(--bs-secondary-color);
}
