/*
Theme Name: Nasim Sahel
Theme URI: https://nasimesahel.ir
Author: Mostafa Tabdar
Author URI: https://webanamis.ir
Description: قالب خبری «نسیم ساحل» بر پایه ، با اسلایدر، بخش ویدئو و پادکست، و طراحی سفید شفاف.
Version: 1.0
Text Domain: nasim-sahel
*/

/* === IRANSansWeb (FaNum) – تعریف فونت === */
@font-face {
  font-family: 'IRANSansWeb';
  src:
    url('fonts/iransans/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'),
    url('fonts/iransans/woff/IRANSansWeb(FaNum)_Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src:
    url('fonts/iransans/woff2/IRANSansWeb(FaNum).woff2') format('woff2'),
    url('fonts/iransans/woff/IRANSansWeb(FaNum).woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src:
    url('fonts/iransans/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'),
    url('fonts/iransans/woff/IRANSansWeb(FaNum)_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src:
    url('fonts/iransans/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),
    url('fonts/iransans/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* فونت پیش‌فرض کل سایت */
html,
body {
  font-family: 'IRANSansWeb', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* فونت‌های اختصاصی از پکیج فروش حذف شده‌اند (مسائل لایسنس). */
/* اگر لایسنس داری، می‌توانی فونت‌ها را اضافه و @font-face را برگردانی. */
:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-strong: rgba(255, 255, 255, 0.94);
  --bg-input: rgba(255, 255, 255, 0.96);

  --text: #020617;
  --text-soft: #4b5563;
  --muted: #6b7280;

  --line: #e5e7eb;
  --line-strong: #d4d4d8;

  /* رنگ‌های سازمانی نسیم ساحل */
  --brand: #1785cb; /* آبی دریا */
  --brand-soft: #e4f4ff; /* آبی روشن */
  --brand-strong: #0f70b2; /* آبی تیره‌تر */
  --highlight: #fec42c; /* زرد خورشید */
  --highlight-soft: #fff4d6; /* زرد خیلی روشن */

  --danger: #ef4444;

  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --max: 980px;
  --transition-fast: 150ms ease-out;
  --transition-med: 220ms cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(23, 133, 203, 0.06), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(254, 196, 44, 0.06), transparent 55%),
    #ffffff;
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: #2563eb;
}

.wrap {
  width: min(var(--max), 94vw);
  margin-inline: auto;
}

/* ===================================== */
/*  Header                               */
/* ===================================== */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.94), rgba(249, 250, 251, 0.9));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
}

.brand {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.brand::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 10px;
  background:
    conic-gradient(from 140deg, var(--brand), var(--highlight), #ffffff, var(--brand));
}

.search input {
  width: 220px;
  max-width: 46vw;
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  outline: none;
  background: var(--bg-input);
  border: 1px solid #e5e7eb;
  color: var(--text);
  font-size: 14px;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform 120ms ease-out;
}

.search input::placeholder {
  color: var(--text-soft);
}

.search input:focus {
  border-color: var(--brand);
  background: #ffffff;
  transform: translateY(-1px);
}

/* ===================================== */
/*  Tabs                                 */
/* ===================================== */

.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
}

.tabs::-webkit-scrollbar {
  height: 4px;
}

.tabs::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.tab {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  background: linear-gradient(135deg, #1b7bff, rgb(9 9 255 / 95%));
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform 120ms ease-out;
}

.tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--brand), #1FA0FF);
  border-color: var(--brand-strong);
  color: #f5faff;
  transform: translateY(-1px);
}

.tab:hover {
  border-color: var(--brand);
  color: #0f172a;
  background: linear-gradient(135deg, #ffffff, var(--brand-soft));
  transform: translateY(-1px);
}

.tab:active {
  transform: translateY(1px);
}

/* ===================================== */
/*  Feed / کارت‌های خبر                  */
/* ===================================== */

.feed {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.feed .head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 4px 0;
  margin-bottom: 4px;
}

.feed .head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--highlight));
  box-shadow: 0 0 0 6px rgba(31, 160, 255, 0.12);
}

.feed .head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.item {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform var(--transition-med),
    border-color var(--transition-fast),
    background 200ms ease-out;
}

.item:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.96);
}

/* هایلایت روی عکس‌ها */
.thumb,
.arch-item img,
#oldMain img,
.hero-img {
  border-radius: 16px;
  outline: 1.5px solid rgba(148, 163, 184, 0.4);
  outline-offset: -1px;
  transform-origin: center;
  transition:
    filter 180ms ease-out,
    outline-color 180ms ease-out,
    transform 180ms ease-out;
}

.thumb {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.item:hover .thumb,
.arch-item:hover img,
#oldMain:hover img,
.hero:hover .hero-img {
  filter: brightness(1.12) saturate(1.16);
  outline-color: rgba(23, 133, 203, 0.9);
  transform: scale(1.02);
}

.item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: #020617;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  align-items: center;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.meta span:first-child {
  border-color: rgba(23, 133, 203, 0.9);
  background: var(--brand-soft);
  color: #0f4f7e;
}

/* Label pill used on the home feed cards */
.meta span.badge-latest {
  background: linear-gradient(135deg, var(--brand), var(--highlight));
  border-color: transparent;
  color: #fff;
  font-weight: 800;
 }

/* Skeleton */

.skeleton {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.sk-thumb,
.sk-line {
  border-radius: 12px;
  background: linear-gradient(90deg, #f4f4f5 0%, #e5e7eb 20%, #f4f4f5 40%);
  background-size: 220% 100%;
  animation: shimmer 1.05s linear infinite;
}

.sk-thumb {
  height: 104px;
}

.sk-lines {
  display: grid;
  gap: 8px;
}

.sk-line {
  height: 13px;
}

@keyframes shimmer {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -220% 0;
  }
}

/* ===================================== */
/*  کارت عمومی + ردیف اسکرولی           */
/* ===================================== */

.card {
  border-radius: var(--radius-lg);
  padding: 12px;
  background: var(--bg-card-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.row {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 2px;
}

video,
audio {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

/* ===================================== */
/*  Archive / فیلترها                     */
/* ===================================== */

.archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.select,
.input {
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 13px;
  min-width: 120px;
  outline: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform 120ms ease-out;
}

.select:focus,
.input:focus {
  border-color: var(--brand);
  background: #ffffff;
  transform: translateY(-1px);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.arch-item {
  border-radius: 18px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    transform var(--transition-med),
    border-color var(--transition-fast),
    background 200ms ease-out;
}

.arch-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.arch-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.97);
}

.line2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more {
  margin: 18px 0 26px;
  display: flex;
  justify-content: center;
}

#arch-more {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform 120ms ease-out;
}

#arch-more:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #f9fafb;
  border-color: var(--brand-strong);
  transform: translateY(-1px);
}

/* ===================================== */
/*  Hero Top Slider (نسخه نهایی)         */
/* ===================================== */

.hero {
  position: relative;
  margin: 12px auto 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(23, 133, 203, 0.10), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(254, 196, 44, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.98);
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  min-height: 260px;
}

.hero-inner-headline {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-badge-main {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge-main::before {
  content: "●";
  color: #22c55e;
  font-size: 10px;
}

.hero-counter {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 11px;
}

.hero-track {
  position: relative;
}

.hero-slide {
  position: relative;
  padding: 18px 16px 16px;
  cursor: pointer;
  transition: opacity 260ms ease-out;
}

/* فقط اسلاید فعال دیده شود */
.hero-slide[aria-hidden="true"] {
  display: none;
}

.hero-slide[aria-hidden="false"] {
  display: block;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hero-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.03);
  transform-origin: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 23, 42, 0.65), transparent 40%);
  pointer-events: none;
}

.hero-chip-row {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.hero-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-chip-cat {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.hero-chip-time {
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5f5;
}

.hero-body {
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(23, 133, 203, 0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(254, 196, 44, 0.25), transparent 60%),
    rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-body-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-label {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 133, 203, 0.16);
  color: var(--brand-strong);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(23, 133, 203, 0.25);
}

.hero-label::before {
  content: "📣";
  font-size: 13px;
}

.hero-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: #020617;
}

.hero-desc {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.9;
  max-height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #1e293b;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 8px;
  margin-top: 2px;
}

.hero-stat-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5faff, var(--brand-soft));
  border: 1px solid #7fb6e0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f4f7e;
}

.hero-nav {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hero-btn {
  pointer-events: auto;
  border-radius: 999px;
  padding: 7px 9px;
  margin: 10px;
  cursor: pointer;
  border: 1px solid rgba(23, 133, 203, 0.55);
  background: rgba(15, 23, 42, 0.65);
  color: #e5e7eb;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform 120ms ease-out,
    opacity 120ms ease-out;
}

.hero-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--brand-soft);
  transform: translateY(-1px);
  opacity: 0.96;
}

.hero-bullets {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
  pointer-events: none;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.9);
  cursor: pointer;
  transition:
    transform 140ms ease-out,
    background var(--transition-fast),
    border-color var(--transition-fast);
  pointer-events: auto;
}

.hero-dot[aria-current="true"] {
  background: var(--brand);
  border-color: #d2ecff;
  transform: translateY(-1px) scale(1.45);
}

/* ===================================== */
/*  Popular                              */
/* ===================================== */

.popular {
  background: var(--bg-card-strong);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 12px 14px 16px;
  margin: 4px auto 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.popular .head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.popular .head .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--highlight), #f59e0b);
}

.popular .head h2 {
  margin: 0;
  font-size: 17px;
  color: #111827;
}

.popular .head::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--highlight), transparent);
  border-radius: 999px;
  margin-inline-start: auto;
  flex: 1;
}





.popular ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.popular li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.popular li .b {
  min-width: 6px;
  min-height: 6px;
  margin-top: 0.75em;
  background: var(--danger);
  border-radius: 999px;
}

.popular a {
  display: block;
  line-height: 1.9;
  color: var(--text-soft);
  transition: color var(--transition-fast), transform 120ms ease-out;
}

.popular a.hot {
  color: var(--danger);
  font-weight: 800;
}

.popular a:hover {
  color: #991b1b;
  transform: translateX(-3px);
}

/* ===================================== */
/*  Breaking Bar                         */
/* ===================================== */

.breaking {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(135deg, var(--brand), var(--highlight));
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  z-index: 60;
  font-size: 13px;
}

.breaking .badge {
  font-weight: 900;
  letter-spacing: 0.06em;
}

.breaking .track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.breaking .msg {
  display: inline-block;
  animation: slide 16s linear infinite;
}

.breaking:hover .msg {
  animation-play-state: paused;
}

.breaking .x {
  border-radius: 999px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 87, 133, 0.4);
  color: #fff;
  font-size: 11px;
  transition:
    background var(--transition-fast),
    transform 120ms ease-out;
}

.breaking .x:hover {
  background: rgba(15, 87, 133, 0.95);
  transform: translateY(-1px);
}

@keyframes slide {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.hidden {
  display: none;
}

/* ===================================== */
/*  Footer                               */
/* ===================================== */

footer .wrap {
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer .wrap > div {
  padding: 16px 0 20px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--brand-strong);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--brand);
}

/* ===================================== */
/*  Sheet / Drawer  (مودول شفاف)        */
/* ===================================== */

body.sheet-open {
  overflow: hidden;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.20);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease-out, visibility 180ms ease-out;
  z-index: 40;
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
}

.sheet-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(650px, 100% - 24px);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
  border-radius: 18px 0 0 0;
  border: 1px solid #e5e7eb;
  z-index: 50;
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
}

.sheet.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 200ms ease-out, opacity 180ms ease-out;
}

.sheet .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
}

.sheet .head strong {
  font-size: 13px;
  color: #0f172a;
}

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet .content {
  padding: 14px 18px 16px;
  overflow: auto;
}

.sheet-hero img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  margin-bottom: 10px;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.sheet-meta-cat {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
}

.sheet-title {
  font-size: 18px;
  margin: 6px 0 10px;
  line-height: 1.6;
  color: #020617;
}

.sheet-body {
  font-size: 14px;
  line-height: 1.8;
  color: #111827;
}

.sheet-footer {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}


/* دکمه‌های بستن و اشتراک‌گذاری */

.close {
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff, #f4f4f5);
  color: #4b5563;
  font-size: 12px;
  transition:
    background 150ms ease-out,
    border-color 150ms ease-out,
    color 150ms ease-out,
    transform 120ms ease-out;
}

.close:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #f9fafb;
  transform: translateY(-1px);
}

/* پایه */
/* دکمه‌های اشتراک‌گذاری */
.single-share-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.share-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  transition: transform .15s ease, opacity .15s ease;
  user-select: none;
}

.share-btn:hover{ opacity: .92; }
.share-btn:active{ transform: scale(.98); }

/* رنگ‌ها */
.share-btn.telegram { background:#229ED9; }  /* Telegram */
.share-btn.eitaa    { background:#F59E0B; }  /* Eitaa (نارنجی خوش‌رنگ) */
.share-btn.rubika   { background:#7C3AED; }  /* Rubika (بنفش) */
.share-btn.whatsapp { background:#25D366; }  /* WhatsApp */
.share-btn.copy     { background:#6B7280; }  /* Copy */

/* موبایل */
@media (max-width: 600px){
  .share-btn{ font-size: 12px; padding: 7px 12px; }
}

/* ===================================== */
/*  ویدئوی فیچر                          */
/* ===================================== */

.video-feature {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.video-cover-wrap {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}

.video-cover-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.video-cover-wrap,
.video-embed-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e5e7eb);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #111827;
  margin-left: 1px;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.video-meta-block {
  padding: 10px 8px 12px;
  background: #ffffff;
}

.video-title {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* ===================================== */
/*  Single Post                          */
/* ===================================== */

/* ناوبری خبر قبلی / بعدی */
.single-nav {
  margin: 1.5rem 0;
  text-align: center;
}

.single-nav-links {
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.single-nav-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.8rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.single-nav-link-prev a::before {
  content: "← ";
}
.single-nav-link-next a::after {
  content: " →";
}
/* ساختار کلی صفحه تکی */
/* ❌ اشتباه: روی body هم اعمال می‌شود */
.single-post {
  padding: 16px;
  margin: 18px 0;
}

/* ✅ درست: فقط روی مقاله تکی اعمال شود */
.card.single-post {
  padding: 16px;
  margin: 18px 0;
}
body.single-post{
  margin: 0;
  padding: 0;
}

.single-header {
  margin-bottom: 8px;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.single-meta-cat,
.single-meta-date,
.single-meta-views {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f5f5f5;
}

.single-thumb {
  margin: 6px 0 10px;
}

.single-thumb img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* عنوان زیر تصویر */
.single-title {
  margin: 4px 0 10px;
  font-size: 24px;
  line-height: 1.6;
}

/* متن خبر */
.single-content {
  font-size: 15px;
  line-height: 1.9;
}

/* باکس‌های پایین (اشتراک / مشابه / دیدگاه‌ها) */
.card.single-share,
.card.single-related,
.card.single-comments {
  margin: 0 0 16px;
  padding: 14px;
}

.single-box-title {
  margin: 0 0 10px;
  font-size: 18px;
}

/* اشتراک‌گذاری */
/* =========================
   Share Buttons (Single)
========================= */
.single-share-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.share-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  transition: transform .15s ease, opacity .15s ease;
  user-select: none;
  white-space: nowrap;
}

.share-btn:hover{ opacity: .92; }
.share-btn:active{ transform: scale(.98); }

/* رنگ هر شبکه */
.share-btn.telegram { background:#229ED9; }  /* Telegram */
.share-btn.whatsapp { background:#25D366; }  /* WhatsApp */
.share-btn.eitaa    { background:#F59E0B; }  /* Eitaa */
.share-btn.rubika   { background:#7C3AED; }  /* Rubika */
.share-btn.copy     { background:#6B7280; }  /* Copy */

/* لینک نمایش داده شده زیر دکمه‌ها */
.single-share-link{
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  direction: ltr;
  text-align: left;
  background: #fafafa;
  border: 1px solid #eee;
  padding: 8px 10px;
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* موبایل */
@media (max-width: 600px){
  .share-btn{ font-size: 12px; padding: 7px 12px; }
}


/* اخبار مشابه */
.single-related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-related-item {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.single-related-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.single-related-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.single-related-body {
  padding: 8px;
}

.single-related-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.single-related-meta {
  font-size: 11px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* دیدگاه‌ها */

.single-comments .comment-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.single-comments .comment {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

/* فیلدهای فرم دیدگاه */
.single-comments .comment-form textarea,
.single-comments .comment-form input[type="text"],
.single-comments .comment-form input[type="email"],
.single-comments .comment-form input[type="url"] {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.single-comments .comment-form label {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  font-size: 13px;
}

.single-comments .comment-form > p {
  margin-bottom: 10px;
}

.single-comments .comment-form input[type="submit"] {
  border-radius: 999px;
  background: var(--primary, #1976d2);
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
}

/* موبایل: کمی ریزتر و فشرده‌تر */
@media (max-width: 600px) {
  .single-post {
    padding: 12px;
    margin: 12px 0;
  }
  .single-title {
    font-size: 20px;
    line-height: 1.6;
  }
  .card.single-share,
  .card.single-related,
  .card.single-comments {
    padding: 12px;
    margin-bottom: 12px;
  }
}

/* ===================================== */
/*  Responsive کلی                       */
/* ===================================== */

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1.1fr 1fr;
  }
  .hero-img {
    max-height: 280px;
  }
}

@media (max-width: 768px) {
  .hero {
    border-radius: 20px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-media {
    max-height: 240px;
  }
  .hero-img {
    max-height: 240px;
  }
  .hero-body {
    margin-top: 4px;
  }
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feed,
  .skeleton {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .top {
    gap: 10px;
  }
  .brand {
    font-size: 19px;
  }
  .search input {
    width: 150px;
  }
  .item,
  .skeleton {
    grid-template-columns: 1fr;
    padding: 10px 10px 11px;
  }
  .thumb,
  .sk-thumb {
    height: 190px;
  }
  .hero-slide {
    padding-inline: 10px;
  }
  .hero-body {
    padding: 12px 12px 11px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .sheet {
    right: 0;
    left: 0;
    width: auto;
    border-radius: 22px 22px 0 0;
  }
  .breaking {
    bottom: 12px;
    border-radius: 18px;
  }
}
/* اسلایدر گالری داخل خبر (صفحه تکی و مودال) */

.ns-gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.ns-gallery-slide {
  flex: 0 0 100%;
}

.ns-gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* دکمه‌های قبلی/بعدی */
.ns-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ns-gallery-prev {
  right: auto;
  left: 8px;
}

.ns-gallery-next {
  left: auto;
  right: 8px;
}

/* شمارنده پایین تصویر */
.ns-gallery-counter {
  position: absolute;
  bottom: 8px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
}
/* گالری عمومی */
.ns-gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-width: 100%;
  margin: 0 0 16px;
}

.ns-gallery-track {
  /* فقط نگه‌دارنده است، نیازی به فلکس و ترنسفورم نیست */
}

.ns-gallery-slide {
  display: none;
}

.ns-gallery-slide.ns-gallery-active {
  display: block;
}

.ns-gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* دکمه‌های قبلی/بعدی */
.ns-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ns-gallery-prev {
  left: 8px;
}

.ns-gallery-next {
  right: 8px;
}

/* شمارنده پایین تصویر */
.ns-gallery-counter {
  position: absolute;
  bottom: 8px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
}


/*پایان اسلاید**/
/* =========================
 *  هدر: لوگو + فرم جستجو
 * ========================= */

/* ردیف بالای هدر (لوگو راست، سرچ چپ) */
.wrap.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* برند (حاوی لوگو) */
.wrap.top .brand {
  display: flex;
  align-items: center;
  font-size: 0;      /* حذف فاصله متن احتمالی */
  font-weight: 400;
}

/* دایره‌ی قدیمی قبل از برند را حذف کن */
.wrap.top .brand::before {
  content: none;
}

/* تصویر لوگو – حالت پایه (دسکتاپ) */
.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

/* باکس سرچ کنار لوگو */
.wrap.top .search {
  position: relative;    /* برای .live-search-box */
  flex: 0 0 260px;
  display: flex;
}

/* اینپوت سرچ تمام عرض باکس را بگیرد */
.wrap.top .search input[type="search"],
.wrap.top .search input {
  width: 100%;
}

/* =========================
 *  فرم سرچ مدرن (مثل تئاترینو)
 * ========================= */

.modern-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 6px 16px;
  width: 100%;
  max-width: 280px;           /* اندازه پیش‌فرض در هدر */
  transition: box-shadow 0.3s ease;
}

.modern-search:focus-within {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.modern-search .search-field {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  padding: 8px 10px;
  color: #333;
}

.modern-search .search-submit {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modern-search .search-submit:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* =========================
 *  نتایج Ajax زیر سرچ
 * ========================= */

.live-search-box {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-height: 340px;
  overflow-y: auto;
  z-index: 99;
  display: none;
}

.live-search-box ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.ajax-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: background 0.2s ease;
}

.ajax-search-item:hover {
  background: #f7f7f7;
}

.ajax-search-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

/* دسکتاپ (پیش‌فرض) */
.ajax-search-item a {
  color: #222;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;

  flex: 1;
  min-width: 0;
  display: block;
  text-align: right;
}

/* موبایل */
@media (max-width: 600px) {
  .ajax-search-item a {
    font-size: 9px;
  }
}


/* =========================
 *  ریسپانسیو (موبایل)
 * ========================= */

@media (max-width: 600px) {
  .wrap.top {
    gap: 10px;              /* فاصله کمتر بین لوگو و سرچ */
    flex-wrap: nowrap;      /* نذار برن خط بعد */
  }

  .brand-logo {
    height: 30px;           /* لوگو کوچیک‌تر در موبایل */
  }

  .wrap.top .search {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .wrap.top .search .modern-search {
    max-width: 210px;       /* عرض کمتر تا کنار لوگو جا بشه */
    padding-inline: 12px;
  }
}
/* ===== کاور ویدئو در صفحه تکی ===== */

.ns-single-video {
  margin: 24px 0 32px;
}

.ns-video-wrapper {
  position: relative;
  border-radius: 24px;
  padding: 16px;
  background: radial-gradient(circle at top left, #f5f7ff 0, #fdfdfd 40%, #fbead1 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* کاور (عکس + دکمه پلی) */
.ns-video-cover {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.ns-video-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* دکمه پلی روی کاور */
.ns-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ns-video-play:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
  background: #ffffff;
}

/* آیکن مثلث پلی */
.ns-video-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #111827;
  margin-left: 4px;
}

/* خود ویدئو؛ اوّل مخفی است */
.ns-video-iframe {
  display: none;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 16px;
}

.ns-video-iframe iframe,
.ns-video-iframe video {
  width: 100%;
  height: auto;
  display: block;
}

/* وقتی کلاس is-playing اضافه شود: کاور برود و ویدئو بیاید */
.ns-video-wrapper.is-playing .ns-video-cover {
  display: none;
}

.ns-video-wrapper.is-playing .ns-video-iframe {
  display: block;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .ns-video-wrapper {
    border-radius: 18px;
    padding: 12px;
  }
  .ns-video-play {
    width: 60px;
    height: 60px;
  }
}
/* =========================
 *  Simple Footer – Nasim Sahel
 * ========================= */

.site-footer.simple-footer {
  width: 100%;
  margin-top: 40px;
}

/* کانتینر داخلی شبیه wrap ولی مخصوص فوتر */
.footer-inner,
.footer-bottom-inner {
  width: min(var(--max), 94vw);
  margin-inline: auto;
}

/* نوار بالایی – تیره، شبیه SNN */
.footer-main {
  background: #111827;        /* سرمه‌ای تیره */
  color: #e5e7eb;
  padding: 16px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* لوگو */
.footer-logo img {
  display: block;
  height: 52px;
  width: auto;
}

/* لینک‌های فوتر */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.footer-nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #f97316;        /* خط نارنجی زیر لینک موقع هاور */
  transition: width 0.2s ease;
}

.footer-nav a:hover {
  color: #f97316;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* نوار پایین – تیره‌تر، متن کپی‌رایت */
.footer-bottom {
  background: #020617;
  color: #9ca3af;
  font-size: 12px;
  padding: 10px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-dev a {
  color: #fbbf24;
  text-decoration: none;
}

.footer-dev a:hover {
  text-decoration: underline;
}

/* ریسپانسیو فوتر */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
/* بزرگ‌تر شدن نسبی کل سایت در دسکتاپ (حس زوم 125%) */
@media (min-width: 1024px) {
  html {
    font-size: 16px; /* حدود 112.5٪ نسبت به 16px پیش‌فرض */
  }
}
/* کمی جمع‌تر کردن عرض محتوای اصلی در دسکتاپ */
@media (min-width: 1200px) {
  :root {
    --max: 1120px;  /* اگر قبلاً مثلا 1240 یا 1200 بوده، این کمی جمع‌ترش می‌کند */
  }
}
/**آرشیو**/
/* ==== خبرهای قدیمی – لیست/گرید خبری (بدون آیتم بزرگ) ==== */

#old-section{
  margin: 4px auto 28px;
  padding: 0;
}

#old-section .old-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

#old-section .old-header h2{
  margin: 12px 0 8px;
  font-size: 18px;
}

/* پیش‌فرض (موبایل/تبلت): ردیف اسکرولی مثل قبل */
#old-section .old-grid{
  display:flex;
  gap: 10px;
  overflow-x:auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

#old-section .old-grid::-webkit-scrollbar{ height:4px; }
#old-section .old-grid::-webkit-scrollbar-thumb{
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

#old-section .old-card{
  min-width: 280px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  color: var(--text);
  border-radius: 16px;
  padding: 10px;
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out,
    border-color 150ms ease-out;
}

#old-section .old-card:hover{
  transform: translateY(-2px);
  border-color: rgba(23, 133, 203, 0.65);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

#old-section .old-thumb-img{
  width: 92px;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 92px;
  outline: 1.5px solid rgba(148, 163, 184, 0.35);
  outline-offset: -1px;
}

#old-section .old-card-body{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

#old-section .old-card-title{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.9;
}

#old-section .old-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  font-size: 12px;
  color: var(--muted);
}

#old-section .old-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

#old-section .old-chip-cat{
  border-color: rgba(23, 133, 203, 0.9);
  background: var(--brand-soft);
  color: #0f4f7e;
}

/* دسکتاپ: گرید خبری شبیه سایت‌های خبری */
@media (min-width: 1024px){
  #old-section .old-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
  }

  #old-section .old-card{
    min-width: 0;
  }
}

@media (min-width: 1280px){
  #old-section .old-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px){
  #old-section .old-card{
    min-width: 240px;
  }
  #old-section .old-thumb-img{
    width: 86px;
    height: 62px;
    flex-basis: 86px;
  }
}

/* ردیف پایین: لیست افقی خبرهای قدیمی */
.old-thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.old-thumbs-row::-webkit-scrollbar {
  height: 4px;
}
.old-thumbs-row::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.old-thumb-item {
  min-width: 180px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out;
}

.old-thumb-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.old-thumb-item img {
  width: 80px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.old-thumb-item-title {
  font-size: 13px;
  line-height: 1.7;
}

/* متای کوچیک زیر عنوان */
.old-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

.old-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* ===== آرشیو – گرید شفاف ===== */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 26px;
}

.arch-item {
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e5e7eb;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 180ms ease-out,
    border-color 150ms ease-out,
    background 150ms ease-out;
}

.arch-item:hover {
  transform: translateY(-4px);
  border-color: #1785cb;
  background: rgba(255, 255, 255, 0.98);
}

.arch-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

.arch-item-title {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.8;
}

.arch-item-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
}

.arch-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* ریسپانسیو آرشیو و خبرهای قدیمی */
@media (max-width: 900px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== اصلاح ساختار اسکرول بخش تکی ===== */
.single-post {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-media-area {
  position: relative;
  z-index: 2;
}

.single-body {
  position: relative;
  z-index: 1;
  max-height: none;
  overflow: visible;
  padding-bottom: 20px;
}

.single-content {
  line-height: 2;
  font-size: 16px;
  overflow: visible;
}

/* ===== تگ‌ها و دسته‌بندی‌ها در صفحه تکی خبر ===== */
.ns-taxonomy {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ns-tax-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-tax-label {
  font-weight: 700;
  color: #111827;
  margin-left: 6px;
  white-space: nowrap;
}

.ns-tax-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-tax-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.8;
}

.ns-tax-chip:hover {
  background: #f3f4f6;
}

/* اطمینان از حرکت هماهنگ عنوان و توضیحات با اسکرول */
.single-body h1,
.single-body .single-content {
  scroll-behavior: smooth;
}

/* برای حالت‌هایی که ویدیو یا گالری دارد، فاصله بیشتر */
.ns-video-wrapper,
.ns-gallery-slider {
  margin-bottom: 24px;
}
/* ===== بخش نقد و یادداشت‌ها ===== */
/* ===== نقد و یادداشت‌ها ===== */

.ns-reviews-archive {
  max-width: 900px;
  margin: 20px auto;
}

.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: all .2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.review-thumb img {
  border-radius: 12px;
  width: 160px;
  height: 120px;
  object-fit: cover;
}

.review-body {
  flex: 1;
}

.review-title {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 600;
}

.review-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #777;
  font-size: 13px;
  margin-top: 4px;
}

/* صفحه تکی یادداشت */
.review-single {
  padding: 20px;
  border-radius: 20px;
  max-width: 850px;
  margin: 0 auto;
}

.review-single .review-thumb-img {
  display: block;
  max-width: 480px;
  width: 100%;
  border-radius: 14px;
  margin: 12px auto;
  object-fit: cover;
}

.review-content {
  font-size: 15px;
  line-height: 2.1;
  margin-top: 10px;
}

/* ناوبری قبلی/بعدی */
.review-nav {
  margin-top: 24px;
  text-align: center;
}

.review-nav-links {
  display: flex;
  justify-content: space-between;
}

.review-nav-links a {
  background: #1785cb;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}

.review-nav-links a:hover {
  background: #0f6ca6;
}

/* یادداشت‌های مشابه */
.review-related {
  margin-top: 30px;
}

.related-title {
  font-size: 20px;
  margin-bottom: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 14px;
}

.related-item {
  background: #fafafa;
  border-radius: 12px;
  text-align: center;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}

.related-item:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
}

.related-item img {
  border-radius: 8px;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* دیدگاه‌ها */
.review-comments {
  margin-top: 30px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.review-comments h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* موبایل */
@media (max-width: 768px) {
  .review-card {
    flex-direction: column;
  }
  .review-thumb img {
    width: 100%;
    height: 200px;
  }
  .review-single .review-thumb-img {
    max-width: 100%;
  }
}

.review-meta {
  font-size: 14px;
  color: var(--muted, #6b7280);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.review-meta .review-sep {
  opacity: 0.7;
}

.review-meta .review-views {
  font-size: 13px;
}
/* ===== نقد و یادداشت‌ها – آرشیو ===== */

.ns-reviews-archive {
  max-width: 900px;
  margin: 20px auto;
}

.ns-reviews-archive .reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ns-reviews-archive .review-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  padding: 12px 14px;
  transition: all .2s ease;
}

.ns-reviews-archive .review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.ns-reviews-archive .review-thumb {
  flex: 0 0 160px;
}

.ns-reviews-archive .review-card .review-thumb img {
  width: 160px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.ns-reviews-archive .review-body {
  flex: 1;
}

.ns-reviews-archive .review-title {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 600;
}

.ns-reviews-archive .review-title a {
  color: inherit;
  text-decoration: none;
}

.ns-reviews-archive .review-title a:hover {
  text-decoration: underline;
}

.ns-reviews-archive .review-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  margin: 0 0 4px;
}

.ns-reviews-archive .review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #6b7280;
  font-size: 13px;
}

/* ===== نقد و یادداشت‌ها – صفحه تکی ===== */

.review-single {
  max-width: 850px;
  margin: 20px auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
}

.review-single .review-title {
  font-size: 26px;
  margin-bottom: 10px;
  font-weight: 700;
}

.review-single .review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
}

.review-single .review-thumb {
  text-align: center;
  margin: 20px 0;
}

.review-single .review-thumb img,
.review-single .review-thumb-img {
  border-radius: 14px;
  width: 100%;
  max-width: 820px;
  height: auto;
  object-fit: contain; /* عکس کراپ نمی‌شود */
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: block;
  margin-inline: auto;
}

.review-single .review-content {
  font-size: 15px;
  line-height: 2.1;
  color: #333;
  margin-top: 10px;
}

/* ناوبری قبلی/بعدی */
.review-nav {
  margin-top: 28px;
  text-align: center;
}

.review-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-nav-links a {
  background: #1785cb;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
  display: inline-block;
}

.review-nav-links a:hover {
  background: #0f6ca6;
}

/* یادداشت‌های مشابه */
.review-related {
  margin-top: 30px;
}

.related-title {
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 600;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.related-item {
  background: #f9fafb;
  border-radius: 12px;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}

.related-item:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}

.related-item img {
  border-radius: 8px;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* ===== دیدگاه‌ها ===== */

.review-comments {
  margin-top: 40px;
  padding: 20px 24px;
  background: #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.review-comments h2 {
  font-size: 22px;
  margin-bottom: 14px;
  font-weight: 700;
}

#comments {
  margin-top: 10px;
}

.commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.commentlist li {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
}

.comment-author img {
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
}

.comment-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.comment-content {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  background: #fff;
  transition: border .2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #1785cb;
  outline: none;
}

.comment-form input#submit {
  background: #1785cb;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}

.comment-form input#submit:hover {
  background: #0f6ca6;
}

/* موبایل */
@media (max-width: 768px) {
  .ns-reviews-archive .review-card {
    flex-direction: column;
  }

  .ns-reviews-archive .review-card .review-thumb {
    flex: 0 0 auto;
  }

  .ns-reviews-archive .review-card .review-thumb img {
    width: 100%;
    height: 200px;
  }

  .review-nav-links {
    flex-direction: column;
  }
@media (max-width: 768px) {
  .review-nav-links {
    flex-direction: row;      /* کنار هم بمونن */
    justify-content: space-between;
    gap: 6px;
  }

  .review-nav-links a {
    flex: 1 1 50%;            /* هر دکمه نصف عرض کارت */
    text-align: center;
    padding: 8px 6px;
    font-size: 14px;
  }
}

  .review-single .review-thumb img,
  .review-single .review-thumb-img {
    max-width: 100%;
  }
}
.related-item-title {
  font-size: 14px;           /* کوچیک‌تر از قبل */
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.6;
  /* دو خط بیشتر نشان نده */
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* حداکثر ۲ خط */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.2em;         /* همه کارت‌ها هم‌قد بشن */
}
/**پادکست***/
/* ===== Podcast Player ===== */
.ns-podcast-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #f9fafb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

/* جلوگیری از «پرش» کادر هنگام تعویض پادکست */
.ns-podcast-cover {
  position: relative; /* overlay را محدود به کاور می‌کند */
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

.ns-podcast-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ns-podcast-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
}

.ns-podcast-play {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
  cursor: pointer;
}
.ns-podcast-play::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 23px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 20px;
  border-color: transparent transparent transparent #111;
}

.ns-podcast-bars {
  margin-top: 12px;
  display: flex;
  gap: 3px;
  height: 20px;
  align-items: flex-end;
}
.ns-podcast-bars span {
  display: block;
  width: 4px;
  height: 6px;
  background: #1785cb;
  border-radius: 2px;
  animation: none;
}

.ns-podcast-wrapper.is-playing .ns-podcast-bars span {
  animation: nsBarWave 0.8s infinite ease-in-out;
}
.ns-podcast-wrapper.is-playing .ns-podcast-bars span:nth-child(2) { animation-delay: .1s; }
.ns-podcast-wrapper.is-playing .ns-podcast-bars span:nth-child(3) { animation-delay: .2s; }
.ns-podcast-wrapper.is-playing .ns-podcast-bars span:nth-child(4) { animation-delay: .3s; }
.ns-podcast-wrapper.is-playing .ns-podcast-bars span:nth-child(5) { animation-delay: .4s; }

@keyframes nsBarWave {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}

.ns-podcast-meta {
  padding: 16px;
  text-align: center;
}
.ns-podcast-title {
  font-size: 18px;
  font-weight: 700;
}

/* نوار پلیر: همیشه یک عرض/ارتفاع ثابت داشته باشد تا روی موبایل «نپرد» */
.ns-podcast-audio {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
/* ===== Fix: featured image on mobile (single post) ===== */
.single-media-area img.wp-post-image,
img.wp-post-image {
  width: 100%;
  height: auto !important;   /* جلوگیری از کشیدگی عمودی */
  object-fit: cover;          /* یا contain اگر نمی‌خواهی کراپ شود */
}

/* اگر می‌خواهی هیچ برشی اتفاق نیفتد (تصویر کامل دیده شود) این را جایگزین کن: */
/*
.single-media-area img.wp-post-image,
img.wp-post-image {
  width: 100%;
  height: auto !important;
  object-fit: contain;
}
*/
/* === Podcast Hero Style === */
/* ==== Podcast Hero inside sheet (blurred cover + overlay play + controls زیر تصویر) ==== */
.sheet .podcast-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

/* پس‌زمینه: تصویر شاخص مات */
.sheet .podcast-hero-bg {
  position: relative;
  z-index: 0;
}
.sheet .podcast-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.9);
  transform: scale(1.06);
}

/* لایه روی تصویر: دکمه پلی + موج */
.sheet .podcast-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.sheet .podcast-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.sheet .podcast-hero-main-play {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto; /* روی این دکمه کلیک می‌شود */
}
.sheet .podcast-hero-main-play::before {
  content: "";
  display: block;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #111;
  margin-left: 3px;
}


/* موج اکولایزر زیر دکمه */
.sheet .podcast-hero-eq {
  margin-top: 16px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.sheet .podcast-hero-eq span {
  width: 3px;
  height: 7px;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  opacity: .7;
  animation: nsEq 1s ease-in-out infinite;
  animation-play-state: paused;
}
.sheet .podcast-hero[data-playing="1"] .podcast-hero-eq span {
  animation-play-state: running;
}
.sheet .podcast-hero-eq span:nth-child(2){ animation-delay: .08s; }
.sheet .podcast-hero-eq span:nth-child(3){ animation-delay: .16s; }
.sheet .podcast-hero-eq span:nth-child(4){ animation-delay: .24s; }

/* بلوک کنترل‌ها زیر تصویر شاخص */
.sheet .podcast-hero-controls {
  position: relative;
  z-index: 2;
  padding: 10px 14px 12px;
  background: #fff;
}
.sheet .podcast-hero-controls audio,
.sheet .podcast-hero-controls .wp-audio-shortcode {
  width: 100%;
  margin: 0;
}

@keyframes nsEq {
  0%,100% { height: 7px; opacity: .6; }
  50%     { height: 18px; opacity: 1; }
}

@media (max-width: 768px) {
  .sheet .podcast-hero-play {
    width: 60px;
    height: 60px;
  }
}
.sheet-meta-source{
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(254, 196, 44, 0.14);
  border: 1px solid rgba(254, 196, 44, 0.35);
  color: #7c2d12;
}
.sheet-meta-source a{
  text-decoration: underline;
  color: inherit;
}
/* ===== Sticky Footer (فقط غیر از صفحه اصلی) ===== */
html, body { height: 100%; }

/* فقط صفحات غیر از Home/Front-page */
body:not(.home):not(.front-page){
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main در قالب شما */
body:not(.home):not(.front-page) main#primary{
  flex: 1 0 auto;
}

/* فوتر همیشه پایین */
body:not(.home):not(.front-page) footer.site-footer{
  margin-top: auto;
}
/* =========================================================
   FOOTER (Nasim Sahel) — Clean + Standard (Desktop/Mobile)
   - License same size as logo
   - Mobile layout neat
   - Bottom: copy centered + arrow far left
   ========================================================= */

.simple-footer{
  background: #0b1422;
  color: rgba(255,255,255,.88);
}

/* ---------- Main row ---------- */
.simple-footer .footer-main{
  padding: 18px 0;
}

.simple-footer .footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Nav center */
.simple-footer .footer-nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.simple-footer .footer-nav a{
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.simple-footer .footer-nav a:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Logo + License: same badge style ---------- */
/* این دوتا رو دقیقاً هم‌شکل و هم‌اندازه می‌کنیم */
.simple-footer .footer-logo,
.simple-footer .footer-license{
  flex: 0 0 auto;

  width: 92px;
  height: 92px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px;
  border-radius: 18px;

  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 28px rgba(0,0,0,.20);

  overflow: hidden;
}

/* لوگوی سایت */
.simple-footer .footer-logo img{
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

/* نماد ای‌رسانه — مستقیم کنترل می‌کنیم (حتی بدون footer-license-box) */
.simple-footer #div_eRasanehTrustseal_98488{
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-footer #div_eRasanehTrustseal_98488 iframe,
.simple-footer #div_eRasanehTrustseal_98488 img{
  width: 70px !important;
  height: 70px !important;
  max-width: 70px !important;
  max-height: 70px !important;
  border: 0 !important;
  display: block !important;
  object-fit: contain !important;
}

/* اگر سرویس خودش بزرگ رندر کرد، با scale جمعش می‌کنیم */
.simple-footer #div_eRasanehTrustseal_98488 iframe{
  transform-origin: center center;
}

/* ---------- Bottom row ---------- */
.simple-footer .footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 0;
}

.simple-footer .footer-bottom-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;

  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Copy centered */
.simple-footer .footer-copy{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;

  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
  white-space: nowrap;
}

/* Arrow far LEFT (RTL safe with margin-right:auto) */
.simple-footer .footer-to-top--icon{
  margin-right: auto;

  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);

  cursor: pointer;
  user-select: none;

  transition: transform .15s ease, background-color .15s ease,
              border-color .15s ease, box-shadow .15s ease;
}
.simple-footer .footer-to-top--icon:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 14px 24px rgba(0,0,0,.18);
}
.simple-footer .footer-to-top--icon span{
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px){

  .simple-footer .footer-main{ padding: 18px 0; }

  .simple-footer .footer-inner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 14px;
    text-align: center;
  }

  /* badge ها کوچکتر */
  .simple-footer .footer-logo,
  .simple-footer .footer-license{
    width: 82px;
    height: 82px;
    border-radius: 16px;
    padding: 9px;
  }

  .simple-footer .footer-logo img{
    width: 60px;
    height: 60px;
  }

  .simple-footer #div_eRasanehTrustseal_98488,
  .simple-footer #div_eRasanehTrustseal_98488 iframe,
  .simple-footer #div_eRasanehTrustseal_98488 img{
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }

  /* Nav: 2 column grid */
  .simple-footer .footer-nav{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-items: stretch;
    align-items: stretch;
    margin-top: 4px;
  }

  .simple-footer .footer-nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 100%;
    font-size: 13px;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
  }

  /* اگر 5 لینک داری، آخری تمام عرض */
  .simple-footer .footer-nav a:nth-child(5){
    grid-column: 1 / -1;
    max-width: 240px;
    margin: 0 auto;
  }

  /* جلوگیری از تداخل با دکمه‌های شناور پایین */
  .simple-footer .footer-bottom{
    padding: 12px 0 90px;
  }

  .simple-footer .footer-bottom-inner{
    padding: 0 14px;
    min-height: 40px;
  }

  .simple-footer .footer-to-top--icon{
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .simple-footer .footer-copy{
    font-size: 12.5px;
    white-space: normal;
    max-width: calc(100% - 60px);
  }
}
/* وقتی لاگین هستی، admin-bar اختلاف ارتفاع میده */
@media (min-width: 783px){
  body.admin-bar:not(.home):not(.front-page){ min-height: calc(100vh - 32px); }
}
@media (max-width: 782px){
  body.admin-bar:not(.home):not(.front-page){ min-height: calc(100vh - 46px); }
}

/** تصویر شاخص مودول و ویدئو مودول کادر دار ***/
/* فقط داخل شیت */
#sheetMedia .ns-sheet-media{
  width:100%;
  margin:0 0 12px;
}

#sheetMedia .ns-sheet-media.ns-ratio{
  aspect-ratio: 16 / 9;
  background:#000;
  border-radius:14px;
  overflow:hidden;
}

#sheetMedia .ns-sheet-media.ns-ratio video,
#sheetMedia .ns-sheet-media.ns-ratio iframe{
  width:100%;
  height:100%;
  display:block;
}

#sheetMedia .ns-sheet-media.ns-audio{
  background:transparent;
}

#sheetMedia .ns-sheet-media.ns-audio audio{
  width:100%;
  display:block;
}

/***embad**/
/* ======= ویدیوها ======= */
.ns-video {
  position: relative;
  width: 100%;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.ns-video iframe,
.ns-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  object-fit: cover;
  border-radius: 12px;
}

/* مخصوص آپارات برای حذف فضای اضافی و فیت کامل */
.ns-video-aparat iframe.ns-aparat-frame {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 320px;
  background: #000;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
  .ns-video iframe,
  .ns-video video {
    aspect-ratio: 16 / 9;
  }
}
/***اپارات***/
/* Featured Video stage (ثابت و بدون پرش) */
.video-cover-wrap,
.video-embed-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

/* هر چیزی که مستقیم داخل embed-wrap میاد (مثل div.ns-video) باید کل قاب رو پر کنه */
.video-embed-wrap > *{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

/* خود iframe/video داخل هر سطحی هم تمام قاب رو پر کنه */
.video-embed-wrap iframe,
.video-embed-wrap video{
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: 0;
}
/***نطرات مودول***/
.ns-comment-form { margin-top: 14px; }
.ns-comment-form .ns-field { margin: 0 0 10px; }
.ns-comment-form label { display:block; font-size:12px; color:#666; margin-bottom:6px; }

.ns-comment-form input,
.ns-comment-form textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafafa;
  outline:none;
}

.ns-comment-form textarea{ min-height:120px; resize:vertical; }

.ns-comment-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:8px;
}

.ns-comment-submit{
  border:0;
  border-radius:12px;
  padding:10px 14px;
  background: var(--primary, #2563eb);
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.ns-comment-submit[disabled]{ opacity:.6; cursor:not-allowed; }

.ns-comment-msg{
  font-size:12px;
  margin-right:auto;
  color:#444;
}

.ns-comment-msg.ok{ color:#15803d; }
.ns-comment-msg.err{ color:#b91c1c; }

/* لیست نظرات */
.ns-comment-form { margin-top: 14px; }
.ns-comment-form .ns-field { margin: 0 0 10px; }
.ns-comment-form label { display:block; font-size:12px; color:#666; margin-bottom:6px; }

.ns-comment-form input,
.ns-comment-form textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafafa;
  outline:none;
}

.ns-comment-form textarea{ min-height:120px; resize:vertical; }

.ns-comment-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:8px;
}

.ns-comment-submit{
  border:0;
  border-radius:12px;
  padding:10px 14px;
  background: var(--primary, #2563eb);
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.ns-comment-submit[disabled]{ opacity:.6; cursor:not-allowed; }

.ns-comment-msg{
  font-size:12px;
  margin-right:auto;
  color:#444;
}

.ns-comment-msg.ok{ color:#15803d; }
.ns-comment-msg.err{ color:#b91c1c; }

/* لیست نظرات */
.ns-comment-form { margin-top: 14px; }
.ns-comment-form .ns-field { margin: 0 0 10px; }
.ns-comment-form label { display:block; font-size:12px; color:#666; margin-bottom:6px; }

.ns-comment-form input,
.ns-comment-form textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafafa;
  outline:none;
}

.ns-comment-form textarea{ min-height:120px; resize:vertical; }

.ns-comment-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:8px;
}

.ns-comment-submit{
  border:0;
  border-radius:12px;
  padding:10px 14px;
  background: var(--primary, #2563eb);
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.ns-comment-submit[disabled]{ opacity:.6; cursor:not-allowed; }

.ns-comment-msg{
  font-size:12px;
  margin-right:auto;
  color:#444;
}

.ns-comment-msg.ok{ color:#15803d; }
.ns-comment-msg.err{ color:#b91c1c; }

/* لیست نظرات */
/* ===== Comments in Sheet (Modal) ===== */
#sheet .comments-area{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#sheet .comment-respond{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

#sheet .comment-reply-title{
  margin: 0 0 12px;
  font-size: 16px;
}

#sheet form.ns-comment-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#sheet .comment-form-comment{
  grid-column: 1 / -1;
}

#sheet .ns-field label{
  display:block;
  font-size: 12px;
  opacity: .8;
  margin-bottom: 6px;
}

#sheet .ns-field input,
#sheet .ns-field textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}

#sheet .ns-field textarea{
  min-height: 110px;
  resize: vertical;
}

#sheet .ns-comment-actions{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

#sheet .ns-comment-submit{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

#sheet .ns-comment-submit:disabled{
  opacity: .65;
  cursor: not-allowed;
}

#sheet .ns-comment-msg{
  font-size: 12px;
  opacity: .9;
}

#sheet .ns-comment-msg.ok{ color: #0a7; }
#sheet .ns-comment-msg.err{ color: #c00; }

/* list */
#sheet .comment-list{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

#sheet .comment-list .comment{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}

#sheet .comment-meta{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom: 8px;
  opacity: .85;
  font-size: 12px;
}

#sheet .comment-content{
  font-size: 14px;
  line-height: 1.9;
}
/* جلوگیری از کوچک شدن دکمه هنگام نمایش پیام */
.ns-comment-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;       /* مهم: اجازه نده بره خط بعد */
}

.ns-comment-submit{
  flex:0 0 auto;          /* مهم: دکمه جمع نشه */
  white-space:nowrap;     /* مهم: متن دکمه نشکنه */
  min-width: 110px;       /* دلخواه: یک حداقل عرض */
  line-height: 1.2;
}

/* پیام کل فضا رو بگیره و دکمه رو له نکنه */
.ns-comment-msg{
  flex:1 1 auto;
  min-width:0;            /* مهم: اجازه بده متن ellipsis بشه */
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* === Cookie consent row (Save name/email) === */
.ns-comment-form .comment-form-cookies-consent{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;

  margin: 12px 0;
  padding: 10px 12px;

  box-sizing: border-box;
  float: none;
  clear: both;

  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.ns-comment-form .comment-form-cookies-consent input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
}

.ns-comment-form .comment-form-cookies-consent label{
  display: block;
  margin: 0 !important;

  flex: 1 1 auto;
  min-width: 0;                 /* خیلی مهم: جلوی باریک شدن عجیب را می‌گیرد */
  width: auto !important;
  max-width: none !important;

  line-height: 1.7;
  text-align: right;
  direction: rtl;

  white-space: normal;
  word-break: normal;           /* نذار کلمه‌کلمه بشکنه */
  overflow-wrap: normal;
}
/***پایان نظر***/  
/* ====== عنوان مودول خبری اسکرول بشه ====== */
#sheet .sheet-header-inner{
  position:relative !important;
  top:auto !important;
  z-index:auto !important;
}

#sheet .sheet-title,
#sheet .sheet-meta{
  position:relative !important;
  top:auto !important;
}
/**جهت نما اسلایدر موبایل نباشه**/
/* Hero slider – hide arrows on mobile, keep dots */
@media (max-width: 768px) {
  .hero-nav { display: none !important; }
  /* اختیاری: دات‌ها کمی بزرگ‌تر برای لمس */
  .hero-dot { width: 10px; height: 10px; }
}

/* ===================================== */
/* Featured split (Desktop only)         */
/* (ویدئوها / پادکست)                   */
/* ===================================== */

/* موبایل/تبلت: مثل قبل (ستونی) */
.ns-featured-split{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* دسکتاپ: آیتم بزرگ سمت راست، لیست جمع‌وجور سمت چپ */
@media (min-width: 1024px){
  .ns-featured-split{
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 14px;
  }

  .ns-featured-split > #videoMain,
  .ns-featured-split > #podcastMain{
    flex: 1 1 auto;
    min-width: 0;
  }

  .ns-featured-split > #videoThumbs,
  .ns-featured-split > #podcastThumbs{
    width: 340px;
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 4px;
    scroll-behavior: smooth;
    max-height: 520px;
  }

  .ns-featured-split > #videoThumbs::-webkit-scrollbar,
  .ns-featured-split > #podcastThumbs::-webkit-scrollbar{
    width: 4px;
    height: 4px;
  }

  .ns-featured-split > #videoThumbs::-webkit-scrollbar-thumb,
  .ns-featured-split > #podcastThumbs::-webkit-scrollbar-thumb{
    border-radius: 10px;
  }

  /* ویدئو: thumbها افقی و جمع‌وجور */
  #videoThumbs .video-thumb{
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  #videoThumbs .video-thumb img{
    width: 96px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    flex: 0 0 auto !important;
  }

  #videoThumbs .video-thumb .line2{
    font-size: 13px !important;
    line-height: 1.7;
  }

  /* پادکست: کارت‌ها تمام عرض ستون */
  #podcastThumbs .podcast-thumb{
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* =========================================================
   v4 – خبرهای قدیمی (دسکتاپ) شبیه نمونه 
   - بدون آیتم بزرگ
   - کارت افقی با تصویر سمت راست
   - عنوان و متا وسط‌چین
   ========================================================= */

@media (min-width: 1024px){
  /* گرید 3 ستونه مثل سایت‌های خبری */
  #old-section .old-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  /* کارت‌ها: تصویر به‌صورت مطلق سمت راست، متن وسط */
  #old-section .old-card{
    position: relative !important;
    display: block !important;
    min-height: 122px;
    padding: 18px 140px 18px 18px !important; /* فضای تصویر سمت راست */
    border-radius: 18px !important;
  }

  #old-section .old-card-thumb{
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 96px;
    height: 96px;
    display: block;
  }

  #old-section .old-thumb-img{
    width: 96px !important;
    height: 96px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
  }

  #old-section .old-card-body{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    min-width: 0;
  }

  #old-section .old-card-title{
    font-size: 15px !important;
    font-weight: 800;
    line-height: 2 !important;
  }

  #old-section .old-card-meta{
    justify-content: center !important;
    gap: 8px !important;
  }

  #old-section .old-chip{
    padding: 4px 12px !important;
    font-size: 12px !important;
  }
}

/* اگر صفحه کمی باریک بود (لپ‌تاپ‌های کوچک)، 2 ستونه خوش‌فرم‌تر است */
@media (min-width: 1024px) and (max-width: 1180px){
  #old-section .old-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* =========================================================
   v6 – Old News Mobile clean layout (RTL)
   - thumb ثابت سمت راست
   - title دو خط
   - meta مرتب و تمیز
   - scroll افقی با snap
   ========================================================= */

@media (max-width: 768px){
  /* ردیف اسکرولی به جای گریدِ تنگ */
  #old-section .old-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 14px !important;
    padding: 6px 2px 12px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  #old-section .old-grid::-webkit-scrollbar{ height: 6px; }

  /* کارت یک‌دست و افقی */
  #old-section .old-card{
    flex: 0 0 auto !important;
    min-width: 270px !important;
    width: 86% !important;
    max-width: 340px !important;

    display: flex !important;
    flex-direction: row-reverse !important;  /* عکس سمت راست */
    align-items: center !important;
    gap: 12px !important;

    padding: 14px 14px !important;
    border-radius: 16px !important;

    scroll-snap-align: start;
  }

  /* thumb همیشه ثابت و نیفته پایین */
  #old-section .old-card-thumb{
    flex: 0 0 86px !important;
    width: 86px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #old-section .old-thumb-img{
    width: 86px !important;
    height: 64px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* متن: راست‌چین، جمع‌وجور */
  #old-section .old-card-body{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-items: flex-start !important;
    text-align: right !important;
    gap: 8px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* عنوان دو خط */
  #old-section .old-card-title{
    font-size: 14px !important;
    line-height: 1.9 !important;
    margin: 0 !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }

  /* چیپ‌ها و متا مرتب */
  #old-section .old-card-meta{
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }
  #old-section .old-chip{
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 380px){
  #old-section .old-card{ min-width: 245px !important; }
  #old-section .old-card-thumb{ flex-basis: 78px !important; width: 78px !important; height: 58px !important; }
  #old-section .old-thumb-img{ width: 78px !important; height: 58px !important; }
}
/* =========================================================
   UI – Video/Podcast thumbs hover + active
   ========================================================= */
#videoThumbs .video-thumb,
#podcastThumbs .podcast-thumb{
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
  outline: none;
}

#videoThumbs .video-thumb:hover,
#podcastThumbs .podcast-thumb:hover{
  border-color: var(--brand) !important;
  background: var(--brand-soft) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.06) !important;
  transform: translateY(-1px);
}

#videoThumbs .video-thumb.is-active,
#podcastThumbs .podcast-thumb.is-active{
  border-color: var(--brand-strong) !important;
  background: linear-gradient(135deg, #ffffff, var(--brand-soft)) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.08) !important;
}

#videoThumbs .video-thumb.is-active::after,
#podcastThumbs .podcast-thumb.is-active::after{
  content: "";
  position: absolute;
  inset: 10px auto 10px 8px; /* خط/نشانگر سمت چپ */
  width: 4px;
  border-radius: 999px;
  background: var(--brand);
  opacity: .95;
}

#videoThumbs .video-thumb:focus-visible,
#podcastThumbs .podcast-thumb:focus-visible{
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(23,133,203,.18) !important;
}

/* =========================================================
   Old News – smoother snap + dots on mobile
   ========================================================= */
@media (max-width: 768px){
  #old-section .old-grid{
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
  }
  #old-section .old-card{ scroll-snap-align: start; scroll-snap-stop: always; }

  #old-section .old-dots{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
  }
  #old-section .old-dot{
    width: 8px; height: 8px;
    border-radius: 999px;
    border: 0;
    background: var(--line);
    opacity: .8;
    cursor: pointer;
    transition: width .18s ease, opacity .18s ease, background-color .18s ease;
  }
  #old-section .old-dot.is-active{
    width: 18px;
    background: var(--brand);
    opacity: 1;
  }
}

/* =========================================================
   Old News – desktop hover (subtle, newsy)
   ========================================================= */
@media (min-width: 1024px){
  #old-section .old-card{
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  #old-section .old-card:hover,
  #old-section .old-card:focus-within{
    transform: translateY(-2px);
    border-color: var(--brand) !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.08);
  }
  #old-section .old-thumb-img{
    transition: transform .22s ease;
  }
  #old-section .old-card:hover .old-thumb-img{
    transform: scale(1.03);
  }
}
/* =========================================================
   About / Contact – Nasim Sahel (Unified Styles)
   ========================================================= */

.ns-page{ padding: 18px 0 24px; }
.ns-page__card{ padding: 18px; }

.ns-page__head{ margin-bottom: 14px; }
.ns-page__title{
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.6;
  color: #0f172a;
}
.ns-page__lead{
  margin: 0;
  color: rgba(15,23,42,.72);
  font-size: 14px;
  line-height: 1.95;
}

/* Hero (About) */
.ns-hero{
  margin: 12px 0 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(23,133,203,.18);
  background: linear-gradient(135deg, rgba(23,133,203,.10), rgba(254,196,44,.10));
}
.ns-hero__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23,133,203,.12);
  border: 1px solid rgba(23,133,203,.18);
  color: #0f4f7e;
  font-size: 12px;
  font-weight: 900;
}
.ns-hero__title{
  margin: 10px 0 6px;
  font-size: 18px;
  color: #0f172a;
}
.ns-hero__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(15,23,42,.78);
}

/* Grid */
.ns-grid{ display: grid; gap: 14px; }
.ns-grid--contact{ grid-template-columns: 1.2fr .8fr; }
.ns-grid--about{ grid-template-columns: 1.1fr .9fr; }

.ns-box{ padding: 16px; border-radius: 18px; }
.ns-box__title{
  margin: 0 0 12px;
  font-size: 16px;
  color: #0f172a;
}
.ns-box--hint{
  border: 1px solid rgba(23,133,203,.18);
  background: linear-gradient(135deg, rgba(23,133,203,.08), rgba(254,196,44,.08));
}

/* Prose nicer */
.ns-prose p{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 2;
  color: rgba(17,24,39,.92);
}
.ns-text{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(17,24,39,.90);
}

/* Key-Value cards with icon */
.ns-kv{
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(2, 6, 23, .08);
  background: rgba(255,255,255,.75);

  display: flex;
  align-items: flex-start;
  gap: 10px;

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ns-kv:hover{
  transform: translateY(-1px);
  border-color: rgba(23,133,203,.22);
  box-shadow: 0 14px 26px rgba(2, 6, 23, .08);
}

.ns-kv__icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(23,133,203,.10);
  border: 1px solid rgba(23,133,203,.18);
  font-size: 16px;
  flex: 0 0 auto;
}
.ns-kv__body{ flex: 1 1 auto; min-width: 0; }

.ns-kv__label{
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.60);
  margin-bottom: 4px;
}
.ns-kv__value{
  font-size: 14px;
  color: #0f172a;
  line-height: 1.95;
  word-break: break-word;
}

/* Two columns blocks */
.ns-kv--2col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.ns-kv--2col .ns-kv__item{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(2, 6, 23, .08);
  background: rgba(255,255,255,.75);

  display:flex;
  gap: 10px;
  align-items: flex-start;

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ns-kv--2col .ns-kv__item:hover{
  transform: translateY(-1px);
  border-color: rgba(23,133,203,.22);
  box-shadow: 0 14px 26px rgba(2, 6, 23, .08);
}

/* Colored accents per type */
.ns-kv--addr .ns-kv__icon{ background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.18); }
.ns-kv--phone .ns-kv__icon{ background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.18); }
.ns-kv--mail .ns-kv__icon{ background: rgba(234,88,12,.10); border-color: rgba(234,88,12,.18); }
.ns-kv--zip  .ns-kv__icon{ background: rgba(168,85,247,.10); border-color: rgba(168,85,247,.18); }
.ns-kv--mgr  .ns-kv__icon{ background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.22); }

/* Chips */
.ns-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23,133,203,.10);
  border: 1px solid rgba(23,133,203,.18);
  font-weight: 900;
  letter-spacing: .2px;
}

/* Buttons */
.ns-actions{ display:flex; gap:10px; margin-top: 12px; flex-wrap: wrap; }
.ns-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1785cb, #0f4f7e);
  color:#fff;
  text-decoration:none;
  border: 1px solid rgba(23,133,203,.25);
  font-size: 13px;
  font-weight: 900;
  transition: transform .15s ease, opacity .15s ease;
}
.ns-btn:hover{ transform: translateY(-1px); opacity: .95; }
.ns-btn--ghost{
  background: rgba(23,133,203,.08);
  color: #0f4f7e;
  border: 1px solid rgba(23,133,203,.22);
}

/* Links */
.ns-link{ color: #0f4f7e; text-decoration:none; font-weight: 900; }
.ns-link:hover{ text-decoration: underline; }

/* Extra content area */
.ns-extra{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(2,6,23,.10);
}

/* Mobile */
@media (max-width: 768px){
  .ns-page__title{ font-size: 22px; }
  .ns-grid--contact, .ns-grid--about{ grid-template-columns: 1fr; }
  .ns-kv--2col{ grid-template-columns: 1fr; }
  .ns-hero{ padding: 14px; }
}

/* SEO & Accessibility helpers (بدون تاثیر روی استایل/چیدمان) */
.ns-visually-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Accessibility: hide visually but keep for screen readers */
.screen-reader-text{
  border:0;
  clip:rect(1px,1px,1px,1px);
  -webkit-clip-path:inset(50%);
  clip-path:inset(50%);
  height:1px;
  margin:-1px;
  overflow:hidden;
  padding:0;
  position:absolute!important;
  width:1px;
  white-space:nowrap;
}
.screen-reader-text:focus{
  clip:auto!important;
  -webkit-clip-path:none;
  clip-path:none;
  height:auto;
  width:auto;
  margin:0;
  overflow:visible;
  position:static!important;
  white-space:normal;
}


/* =========================
   Social buttons (Footer + Post)
   ========================= */
.footer-social {
  margin-top: 18px;
}
.footer-social-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.ns-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ns-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  color: #1d3557;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.ns-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.ns-social-btn--disabled {
  opacity: .55;
  cursor: default;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .ns-social-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* فوتر جمع‌وجورتر: شبکه‌های اجتماعی در یک ردیف (دسکتاپ/تبلت/موبایل) */
.footer-social .ns-social-links {
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.footer-social .ns-social-links::-webkit-scrollbar {
  height: 0;
}
.footer-social .ns-social-btn {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.footer-social .ns-social-icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 768px) {
  .footer-social .ns-social-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}
/* Lead  */
.ns-news-extra{
  margin: 6px 0 14px;
}

.ns-news-code__label{ opacity: .75; }
.ns-news-lead{
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: rgba(15,23,42,.82);
  background-color: #d8cfcf3b;
    border-radius: 15px;
}
/* Badge برای کد خبر کنار meta */
.sheet-meta-code{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 10px;
  border-radius: 999px;      /* حالت کپسولی/بیضی */
  background: #d61f1f;       /* قرمز */
  color: #fff;

  font-size: 12px;
  line-height: 1;
  font-weight: 600;

  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.sheet-meta-code b{
  font-weight: 800;          /* خود کد بولدتر */
}
/* =========================================================
   Single – Media sizing (Featured / Gallery / Video)
   هدف: وسط‌چین + سقف عرض + ارتفاع معقول در دید اول
   ========================================================= */

/* 1) یک سقف مشترک برای همه مدیاهای صفحه تکی */
.single-media-area{
  --media-max: 820px;
}

/* هر چیزی که “مدیا” حساب میشه وسط و محدود */
.single-media-area > :is(
  .single-thumb,
  .ns-video-wrapper,
  .ns-video-aparat,
  .ns-gallery-slider,
  .gallery,
  .wp-block-gallery,
  .wp-block-image,
  .wp-block-embed,
  .wp-block-video
){
  width: min(var(--media-max), 100%);
  margin: 10px auto 16px;
}

/* 2) تصویر شاخص (بدون کراپ، ارتفاع معقول) */
.single-media-area img.wp-post-image{
  display:block;
  width: 100% !important;
  height: clamp(420px, 38vh, 440px) !important;
  object-fit: fill;          /* تصویر کامل دیده شود */
  background: #f3f4f6;          /* اگر letterbox افتاد قشنگ باشه */
  border-radius: 24px;
}

/* 3) گالری کلاسیک وردپرس ([gallery]) */
.single-media-area .gallery img{
  width: 100% !important;
  height: auto !important;
  object-fit: fill;
}

/* 4) گالری/اسلایدر سفارشی خودت */
.single-media-area .ns-gallery-slider{
  border-radius: 24px;
  overflow: hidden;
  background: #f3f4f6;
}
.single-media-area .ns-gallery-slide img{
  width: 100%;
  height: clamp(420px, 38vh, 440px);
  object-fit: fill;          /* اگر می‌خوای کراپ جذاب بشه: cover */
  background: #f3f4f6;
  border-radius: 0;             /* چون خود کانتینر رادیوس دارد */
}

/* 5) ویدئوها: قاب استاندارد 16:9 که بزرگ و کشیده نشه */
.single-media-area .ns-video-iframe{
  display:none;                 /* طبق کد خودت */
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.single-media-area .ns-video-wrapper.is-playing .ns-video-iframe{
  display:block;
}

/* iframe/video داخل قاب دقیقاً اندازه قاب */
.single-media-area .ns-video-iframe iframe,
.single-media-area .ns-video-iframe video{
  width: 100% !important;
  height: 100% !important;
  display:block;
  border:0;
}

/* کاور ویدئو هم دقیقاً هم‌عرض و با ارتفاع معقول */
.single-media-area .ns-video-cover img{
  width: 100%;
  height: clamp(420, 38vh, 440px);
  object-fit: cover;            /* کاور بهتره cover باشه */
  display:block;
}

/* آپارات: اون min-height قبلی رو خنثی کن تا غول نشه */
.single-media-area .ns-video-aparat iframe,
.single-media-area iframe.ns-aparat-frame{
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 0 !important;
  display:block;
}

/* 6) تبلت: کمی کوتاه‌تر */
@media (max-width: 1024px){
  .single-media-area{
    --media-max: 720px;
  }
  .single-media-area img.wp-post-image,
  .single-media-area .ns-gallery-slide img,
  .single-media-area .ns-video-cover img{
    height: clamp(220px, 34vh, 360px) !important;
  }
}
