/* ==========================================================================
   News Portal X — Editorial Design System (Professional Refresh)
   Palette: warm-white surface / deep ink text / brand red accent
   (همان قرمز لوگوی سایت، هم برای برند و هم برای نشان‌های فوری استفاده می‌شود).
   ========================================================================== */

:root {
	--npx-bg: #FBFBFA;
	--npx-surface: #FFFFFF;
	--npx-ink: #13151A;
	--npx-ink-soft: #565A64;
	--npx-ink-faint: #93979F;
	--npx-line: #EAE8E3;
	--npx-line-strong: #DAD8D2;
	--npx-accent: #D6392E;
	--npx-accent-dark: #B92E24;
	--npx-accent-soft: #FBEAE8;
	--npx-accent-soft-strong: #F5D9D6;
	--npx-live: #D6432E;
	--npx-live-soft: #FCEAE7;
	--npx-live-border: #F3D2CB;
	--npx-bar-bg: #13151A;
	--npx-radius: 10px;
	--npx-radius-sm: 6px;
	--npx-container: 1240px;
	--npx-font: 'Vazirmatn', Tahoma, sans-serif;
	--npx-shadow-sm: 0 1px 2px rgba(15,17,20,0.04), 0 1px 1px rgba(15,17,20,0.03);
	--npx-shadow-md: 0 4px 10px rgba(15,17,20,0.05), 0 14px 32px -12px rgba(15,17,20,0.12);
	--npx-shadow-lg: 0 10px 24px rgba(15,17,20,0.06), 0 28px 56px -16px rgba(15,17,20,0.16);
}

/* -------------------- حالت شب (بین ساعات تنظیم‌شده در پنل مدیریت، خودکار فعال می‌شود) -------------------- */
html.npx-theme-dark {
	--npx-bg: #14161C;
	--npx-surface: #1B1E26;
	--npx-ink: #F2F3F5;
	--npx-ink-soft: #ACB0BB;
	--npx-ink-faint: #767A85;
	--npx-line: #2A2D35;
	--npx-line-strong: #383C46;
	--npx-accent: #E6483C;
	--npx-accent-dark: #C43A2F;
	--npx-accent-soft: #3A2220;
	--npx-accent-soft-strong: #4A2B27;
	--npx-live: #FF5A46;
	--npx-live-soft: #35211E;
	--npx-live-border: #4A2B27;
	--npx-bar-bg: #0E0F13;
	--npx-shadow-sm: 0 1px 2px rgba(0,0,0,0.24), 0 1px 1px rgba(0,0,0,0.18);
	--npx-shadow-md: 0 4px 10px rgba(0,0,0,0.28), 0 14px 32px -12px rgba(0,0,0,0.5);
	--npx-shadow-lg: 0 10px 24px rgba(0,0,0,0.32), 0 28px 56px -16px rgba(0,0,0,0.6);
}

/* -------------------- Reset -------------------- */
.npx-body, .npx-body * { box-sizing: border-box; }
.npx-body {
	margin: 0;
	background: var(--npx-bg);
	color: var(--npx-ink);
	font-family: var(--npx-font);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.npx-body img { max-width: 100%; height: auto; display: block; }
.npx-body a { color: inherit; text-decoration: none; }
.npx-body ul, .npx-body ol { margin: 0; padding: 0; list-style: none; }
.npx-body h1, .npx-body h2, .npx-body h3 { margin: 0; }
.npx-body :focus-visible {
	outline: 2px solid var(--npx-accent);
	outline-offset: 3px;
	border-radius: 3px;
}

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

.npx-main { flex: 1 0 auto; }

/* -------------------- Utility bar -------------------- */
.npx-utility-bar {
	background: var(--npx-bar-bg);
	color: #B9BDC8;
	font-size: 0.8125rem;
}
.npx-utility-bar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 4px 14px;
	min-height: 36px;
	padding: 6px 0;
}
.npx-utility-bar__date { font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.npx-utility-bar__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.npx-utility-bar__panel-link {
	color: #fff;
	font-weight: 700;
	position: relative;
	padding-bottom: 1px;
	white-space: nowrap;
	flex-shrink: 0;
}
.npx-utility-bar__panel-link::after {
	content: '';
	position: absolute;
	inset-inline-start: 0; inset-inline-end: 0; bottom: -2px;
	height: 1px;
	background: rgba(255,255,255,0.4);
	transition: background 0.15s ease;
}
.npx-utility-bar__panel-link:hover::after { background: #fff; }

/* -------------------- Header -------------------- */
.npx-header {
	background: var(--npx-surface);
	border-bottom: 1px solid var(--npx-line);
	position: sticky;
	top: 0;
	z-index: 30;
	box-shadow: var(--npx-shadow-sm);
}
.npx-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	gap: 28px;
}
.npx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: clamp(1.0625rem, 1.1vw + 0.75rem, 1.375rem);
	font-weight: 900;
	letter-spacing: -0.01em;
	color: var(--npx-ink);
	min-width: 0;
}
.npx-logo__mark {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: linear-gradient(155deg, var(--npx-accent), var(--npx-accent-dark));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1rem;
	flex-shrink: 0;
	box-shadow: var(--npx-shadow-sm);
}
/* آیکون آپلودی سایت: همان سایز/گردی جعبهٔ حرف اول قبلی، فقط با تصویر پر می‌شود */
.npx-logo__mark--icon { background: var(--npx-line); padding: 0; overflow: hidden; box-shadow: none; }
.npx-logo__mark--icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -------------------- جستجو (وسط هدر) -------------------- */
.npx-search {
	display: flex;
	align-items: center;
	flex: 1;
	max-width: 380px;
	background: var(--npx-bg);
	border: 1px solid var(--npx-line);
	border-radius: 999px;
	padding: 0 6px 0 16px;
	gap: 8px;
	transition: border-color 0.15s ease;
}
.npx-search:focus-within { border-color: var(--npx-accent); }
.npx-search__icon { color: var(--npx-ink-faint); flex-shrink: 0; }
.npx-search__input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-family: var(--npx-font);
	font-size: 0.875rem;
	color: var(--npx-ink);
	padding: 9px 0;
}
.npx-search__input:focus { outline: none; }
.npx-search__input::placeholder { color: var(--npx-ink-faint); }
.npx-search__submit {
	border: none;
	background: var(--npx-accent);
	color: #fff;
	font-family: var(--npx-font);
	font-weight: 700;
	font-size: 0.8125rem;
	padding: 8px 16px;
	border-radius: 999px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease;
}
.npx-search__submit:hover { background: var(--npx-accent-dark); }

/* -------------------- نوار دسته‌بندی‌های اصلی (زیر هدر) -------------------- */
.npx-navbar { border-top: 1px solid var(--npx-line); }
.npx-navbar__list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 0; }
.npx-navbar__list a {
	position: relative;
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--npx-ink-soft);
	transition: color 0.15s ease, background 0.15s ease;
}
.npx-navbar__list a:hover { color: var(--npx-accent); background: var(--npx-accent-soft); }
.npx-navbar__list a.is-active { color: var(--npx-accent); }
.npx-navbar__list a.is-active::after {
	content: '';
	position: absolute;
	inset-inline: 14px;
	bottom: 1px;
	height: 2px;
	border-radius: 2px;
	background: var(--npx-accent);
}

/* -------------------- Office/section dropdown menu (opposite the logo) -------------------- */
.npx-office-menu { position: relative; }
.npx-office-menu__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--npx-accent-soft);
	color: var(--npx-accent);
	border: none;
	font-family: var(--npx-font);
	font-size: 0.8125rem;
	font-weight: 700;
	padding: 7px 13px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.npx-office-menu__toggle:hover { background: var(--npx-accent-soft-strong); }
.npx-office-menu__icon {
	width: 7px; height: 7px;
	border-inline-end: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-top: -2px;
}
.npx-office-menu__toggle[aria-expanded="true"] .npx-office-menu__icon { transform: rotate(225deg); margin-top: 3px; }
.npx-office-menu__dropdown {
	position: fixed;
	background: var(--npx-surface);
	border: 1px solid var(--npx-line);
	border-radius: var(--npx-radius);
	box-shadow: var(--npx-shadow-lg);
	width: max-content;
	min-width: 190px;
	max-width: min(280px, 92vw);
	padding: 8px;
	display: none;
	/* z-index بسیار بالا تا این منو همیشه روی تمام عناصر صفحه (هدر چسبان، نوار خبر فوری، تصاویر و...) نمایش داده شود */
	z-index: 99000;
}
.npx-office-menu__dropdown.is-open {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.npx-office-menu__dropdown a {
	display: block;
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--npx-ink);
	transition: background 0.15s ease, color 0.15s ease;
}
.npx-office-menu__dropdown a:not(:last-child) { border-bottom: 1px solid var(--npx-line); }
.npx-office-menu__dropdown a:hover { background: var(--npx-accent-soft); color: var(--npx-accent); }

/* -------------------- Breaking news ticker (signature element) -------------------- */
.npx-ticker {
	background: var(--npx-live-soft);
	border-bottom: 1px solid var(--npx-live-border);
}
.npx-ticker__inner {
	display: flex;
	align-items: center;
	height: 48px;
	gap: 18px;
}
.npx-ticker__label {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--npx-live);
	color: #fff;
	font-weight: 800;
	font-size: 0.8125rem;
	padding: 7px 15px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 3px 8px -2px rgba(214,67,46,0.45);
}
.npx-ticker__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: npx-pulse 1.4s ease-in-out infinite;
}
@keyframes npx-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.7); }
}
.npx-ticker__track-wrap {
	overflow: hidden;
	flex: 1;
	mask-image: linear-gradient(to left, transparent 0, #000 40px, #000 calc(100% - 10px), transparent 100%);
}
.npx-ticker__track {
	display: flex;
	gap: 48px;
	white-space: nowrap;
	width: max-content;
	animation: npx-marquee 28s linear infinite;
}
.npx-ticker__track a {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--npx-ink);
}
.npx-ticker__track a:hover { color: var(--npx-live); }
@keyframes npx-marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
	.npx-ticker__track { animation: none; overflow-x: auto; }
	.npx-ticker__dot { animation: none; }
}

/* -------------------- Section labels -------------------- */
.npx-section-label {
	font-size: 1.1875rem;
	font-weight: 800;
	position: relative;
	padding-inline-start: 15px;
	letter-spacing: -0.005em;
}
.npx-section-label::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 3px;
	bottom: 3px;
	width: 4px;
	background: var(--npx-accent);
	border-radius: 2px;
}
.npx-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--npx-line);
	padding-bottom: 16px;
	margin-bottom: 26px;
}
.npx-section__more {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--npx-accent);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: gap 0.15s ease;
}
.npx-section__more:hover { gap: 8px; }
.npx-section { padding: 48px 0; }

.npx-eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--npx-accent);
	background: var(--npx-accent-soft);
	padding: 4px 11px;
	border-radius: 999px;
	margin-bottom: 10px;
	letter-spacing: 0.01em;
}
.npx-eyebrow--live {
	color: var(--npx-live);
	background: var(--npx-live-soft);
}

/* نشان سطح اهمیت خبر (مهم/ویژه/خبر فوری) - کنار عنوان در کارت‌ها و صفحه‌ی تک‌خبر */
.npx-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 4px 11px;
	border-radius: 999px;
	letter-spacing: 0.01em;
}
.npx-badge--important { background: #FEF3E0; color: #9A6510; }
html.npx-theme-dark .npx-badge--important { background: #3A2E14; color: #E3B04B; }
.npx-badge--exclusive { background: var(--npx-accent-soft); color: var(--npx-accent); }
.npx-badge--breaking { background: var(--npx-live-soft); color: var(--npx-live); }

/* -------------------- اسلایدر بالای صفحه اصلی -------------------- */
.npx-slider {
	position: relative;
	max-width: var(--npx-container);
	margin: 22px auto 0;
	padding: 0 clamp(16px, 4vw, 28px);
}
.npx-slider__track {
	position: relative;
	width: 100%;
	aspect-ratio: 21/9;
	border-radius: var(--npx-radius);
	overflow: hidden;
	box-shadow: var(--npx-shadow-lg);
	background: var(--npx-accent-soft);
}
.npx-slider__slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
	z-index: 1;
}
.npx-slider__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.npx-slider__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.npx-slider__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10,12,16,0.82) 0%, rgba(10,12,16,0.32) 45%, rgba(10,12,16,0) 75%);
}
.npx-slider__title {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	margin: 0;
	padding: 20px clamp(20px, 3.5vw, 44px) clamp(20px, 3.5vw, 30px);
	color: #fff;
	font-size: clamp(1.0625rem, 0.85rem + 1.1vw, 1.625rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.01em;
	max-width: 860px;
}
.npx-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(19,21,26,0.42);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.15s ease;
}
.npx-slider:hover .npx-slider__arrow,
.npx-slider__arrow:focus-visible { opacity: 1; }
.npx-slider__arrow:hover { background: rgba(19,21,26,0.66); }
.npx-slider__arrow--prev { inset-inline-start: 14px; }
.npx-slider__arrow--next { inset-inline-end: 14px; }
.npx-slider__dots {
	position: absolute;
	z-index: 3;
	inset-inline-end: clamp(20px, 3.5vw, 44px);
	bottom: 20px;
	display: flex;
	gap: 6px;
}
.npx-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255,255,255,0.45);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}
.npx-slider__dot.is-active { width: 22px; background: #fff; }

/* -------------------- ردیف دسته‌بندی سریع (زیر اسلایدر) -------------------- */
.npx-quick-cats { padding: 30px 0 4px; }
.npx-quick-cats__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px 18px;
}
.npx-quick-cats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 92px;
	text-align: center;
}
.npx-quick-cats__circle {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: var(--npx-shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.npx-quick-cats__item:hover .npx-quick-cats__circle { transform: translateY(-3px); box-shadow: var(--npx-shadow-md); }
.npx-quick-cats__label { font-size: 0.8125rem; font-weight: 700; color: var(--npx-ink); line-height: 1.4; }

/* -------------------- Hero -------------------- */
.npx-hero { padding: 44px 0 28px; }
.npx-hero__grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 44px;
}
.npx-hero__media {
	display: block;
	border-radius: var(--npx-radius);
	overflow: hidden;
	/* مربعی مثل بقیه کارت‌های خبر (۱:۱) */
	aspect-ratio: 1/1;
	background: var(--npx-accent-soft);
	box-shadow: var(--npx-shadow-lg);
}
.npx-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.npx-hero__body { padding-top: 20px; }
.npx-hero__title {
	font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.375rem);
	font-weight: 900;
	line-height: 1.32;
	letter-spacing: -0.015em;
	margin-bottom: 14px;
}
.npx-hero__title a { transition: color 0.15s ease; }
.npx-hero__title a:hover { color: var(--npx-accent); }
.npx-hero__excerpt {
	color: var(--npx-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.85;
	margin-bottom: 16px;
}
.npx-hero__side {
	border-inline-start: 1px solid var(--npx-line);
	padding-inline-start: 30px;
}
.npx-hero__list { margin-top: 20px; display: flex; flex-direction: column; }
.npx-hero__list li {
	padding: 17px 0;
	border-bottom: 1px solid var(--npx-line);
}
.npx-hero__list li:first-child { padding-top: 0; }
.npx-hero__list li:last-child { border-bottom: none; }
.npx-hero__list-title {
	display: block;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.65;
	margin-bottom: 7px;
	transition: color 0.15s ease;
}
.npx-hero__list-title:hover { color: var(--npx-accent); }
.npx-hero__list-meta {
	font-size: 0.75rem;
	color: var(--npx-ink-faint);
}

.npx-card__meta {
	font-size: 0.8125rem;
	color: var(--npx-ink-faint);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* -------------------- Most viewed -------------------- */
.npx-most-viewed { padding-top: 4px; }
.npx-most-viewed__list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 22px;
}
.npx-most-viewed__list--sidebar { grid-template-columns: 1fr; gap: 2px; }
.npx-most-viewed__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
}
.npx-most-viewed__list--sidebar .npx-most-viewed__item { border-bottom: 1px solid var(--npx-line); }
.npx-most-viewed__list--sidebar .npx-most-viewed__item:last-child { border-bottom: none; }
.npx-most-viewed__rank {
	font-size: 1.625rem;
	font-weight: 900;
	color: var(--npx-line-strong);
	line-height: 1;
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}
.npx-most-viewed__title {
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.65;
	transition: color 0.15s ease;
}
.npx-most-viewed__title:hover { color: var(--npx-accent); }

/* -------------------- خبرنامه -------------------- */
.npx-newsletter-section { padding-top: 8px; }
.npx-newsletter {
	background: linear-gradient(155deg, var(--npx-accent), var(--npx-accent-dark));
	border-radius: var(--npx-radius);
	padding: 32px clamp(20px, 4vw, 44px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-shadow: var(--npx-shadow-lg);
}
.npx-newsletter__text { color: #fff; max-width: 420px; }
.npx-newsletter__title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 1.1875rem;
	font-weight: 900;
	margin-bottom: 8px;
}
.npx-newsletter__text p { color: rgba(255,255,255,0.82); font-size: 0.9375rem; line-height: 1.7; }
.npx-newsletter__form {
	display: flex;
	gap: 8px;
	background: rgba(255,255,255,0.12);
	padding: 6px;
	border-radius: 999px;
	flex: 1;
	min-width: 280px;
	max-width: 420px;
}
.npx-newsletter__form input {
	flex: 1;
	min-width: 0;
	border: none;
	background: #fff;
	border-radius: 999px;
	padding: 11px 18px;
	font-family: var(--npx-font);
	font-size: 0.875rem;
	color: var(--npx-ink);
}
.npx-newsletter__form input:focus { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 1px; }
.npx-newsletter__form button {
	border: none;
	background: var(--npx-ink);
	color: #fff;
	font-family: var(--npx-font);
	font-weight: 800;
	font-size: 0.875rem;
	padding: 0 26px;
	border-radius: 999px;
	cursor: pointer;
	flex-shrink: 0;
	transition: opacity 0.15s ease;
}
.npx-newsletter__form button:hover { opacity: 0.85; }
.npx-newsletter__msg { font-weight: 700; font-size: 0.9375rem; }
.npx-newsletter__msg--ok { color: #fff; background: rgba(255,255,255,0.16); padding: 12px 20px; border-radius: 999px; }
.npx-newsletter__msg--error { color: #FFD9D3; width: 100%; }
.npx-newsletter__privacy { color: rgba(255,255,255,0.6); font-size: 0.75rem; width: 100%; }
.npx-newsletter__privacy a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* -------------------- Cards / grid -------------------- */
.npx-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}
.npx-grid--archive { grid-template-columns: repeat(3, 1fr); }
.npx-card { transition: transform 0.2s ease; }
.npx-card__media {
	display: block;
	/* مربعی، مثل پست اینستاگرام (۱:۱) */
	aspect-ratio: 1/1;
	border-radius: var(--npx-radius);
	overflow: hidden;
	background: var(--npx-accent-soft);
	margin-bottom: 16px;
	box-shadow: var(--npx-shadow-sm);
	transition: box-shadow 0.2s ease;
}
.npx-card:hover .npx-card__media { box-shadow: var(--npx-shadow-md); }
.npx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(.2,.7,.3,1); }
.npx-card:hover .npx-card__media img { transform: scale(1.05); }
.npx-card__media-fallback { display: block; width: 100%; height: 100%; }
.npx-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.npx-card__title a { transition: color 0.15s ease; }
.npx-card__title a:hover { color: var(--npx-accent); }

/* -------------------- Single article -------------------- */
.npx-single { padding: 44px 0 64px; }
.npx-single__head { max-width: 800px; padding-bottom: 26px; }
.npx-single__title {
	font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2.0625rem);
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}
.npx-single__lede {
	font-size: 1.1875rem;
	color: var(--npx-ink-soft);
	line-height: 1.8;
	margin-bottom: 18px;
}
.npx-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--npx-ink-faint);
	border-top: 1px solid var(--npx-line);
	padding-top: 18px;
}
.npx-single__meta span:not(:last-child)::after {
	content: '·';
	margin-inline-start: 8px;
	color: var(--npx-line-strong);
}
.npx-single__media {
	margin: 28px auto;
	border-radius: var(--npx-radius);
	overflow: hidden;
	max-width: var(--npx-container);
	box-shadow: var(--npx-shadow-lg);
}
.npx-single__layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 52px;
	align-items: start;
}
.npx-single__content {
	max-width: 800px;
	font-size: 1.0625rem;
	line-height: 1.95;
}
.npx-single__content p { margin: 0 0 20px; }
.npx-single__content img { border-radius: var(--npx-radius); margin: 22px 0; box-shadow: var(--npx-shadow-md); }
.npx-single__content h2 { font-size: 1.375rem; font-weight: 800; margin: 34px 0 14px; letter-spacing: -0.005em; }
.npx-single__content blockquote {
	margin: 26px 0;
	padding: 6px 22px;
	border-inline-start: 3px solid var(--npx-accent);
	color: var(--npx-ink-soft);
	font-style: normal;
	font-size: 1.0625rem;
}
.npx-single__sidebar { position: sticky; top: 96px; }

.npx-single__author { display: inline-flex; align-items: center; gap: 5px; }

.npx-share {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--npx-line);
	font-size: 0.875rem;
	position: relative;
}
.npx-share__shortlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--npx-bg);
	border: 1px solid var(--npx-line);
	color: var(--npx-ink-soft);
	font-family: var(--npx-font);
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 999px;
	cursor: pointer;
	max-width: 100%;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.npx-share__shortlink bdi { color: var(--npx-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npx-share__shortlink:hover { background: var(--npx-accent-soft); border-color: var(--npx-accent-soft); }
.npx-share__shortlink svg { flex-shrink: 0; }
.npx-share__list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.npx-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 11px;
	color: #fff;
	cursor: pointer;
	font-family: var(--npx-font);
	transition: filter 0.15s ease, transform 0.15s ease;
	box-shadow: var(--npx-shadow-sm);
}
.npx-share__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.npx-share__btn--whatsapp { background: #25D366; }
.npx-share__btn--telegram { background: #2AABEE; }
.npx-share__btn--linkedin { background: #0A66C2; }
.npx-share__btn--x { background: #14171A; }
.npx-share__btn--facebook { background: #1877F2; }
.npx-share__btn--instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.npx-share__toast {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--npx-accent);
	opacity: 0;
	height: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}
.npx-share__toast.is-visible { opacity: 1; height: auto; }

.npx-comments { margin-top: 42px; }

/* -------------------- Gallery & video (single article) -------------------- */
.npx-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 30px 0;
}
.npx-gallery__item {
	display: block;
	border-radius: var(--npx-radius);
	overflow: hidden;
	aspect-ratio: 4/3;
	box-shadow: var(--npx-shadow-sm);
	transition: box-shadow 0.2s ease;
}
.npx-gallery__item:hover { box-shadow: var(--npx-shadow-md); }
.npx-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.npx-gallery__item:hover img { transform: scale(1.06); }

.npx-video { margin: 30px 0; }
.npx-video video {
	width: 100%;
	border-radius: var(--npx-radius);
	background: #000;
	display: block;
	box-shadow: var(--npx-shadow-md);
}
.npx-video__embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--npx-radius); box-shadow: var(--npx-shadow-md); }
.npx-video__embed iframe,
.npx-video__embed embed,
.npx-video__embed object {
	position: absolute; top: 0; right: 0; width: 100%; height: 100%; border: 0;
}

/* -------------------- Archive / search -------------------- */
.npx-archive { padding: 44px 0 64px; }
.npx-archive__head { padding-bottom: 26px; border-bottom: 1px solid var(--npx-line); margin-bottom: 34px; }
.npx-archive__title { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.9375rem); font-weight: 900; letter-spacing: -0.01em; }
.npx-archive__desc { color: var(--npx-ink-soft); margin-top: 10px; line-height: 1.8; }
.npx-empty {
	color: var(--npx-ink-soft);
	padding: 56px 24px;
	text-align: center;
	background: var(--npx-surface);
	border: 1px dashed var(--npx-line-strong);
	border-radius: var(--npx-radius);
}

.npx-pagination { display: flex; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.npx-pagination a, .npx-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--npx-line);
	border-radius: var(--npx-radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.npx-pagination .current { background: var(--npx-accent); color: #fff; border-color: var(--npx-accent); }
.npx-pagination a:hover { border-color: var(--npx-accent); color: var(--npx-accent); background: var(--npx-accent-soft); }

/* -------------------- Footer -------------------- */
.npx-footer {
	background: var(--npx-bar-bg);
	color: #C9CCD6;
	margin-top: 64px;
	flex-shrink: 0;
}
.npx-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
	gap: 40px;
	padding: 52px 0 34px;
}
.npx-footer__info li { color: #C9CCD6; font-size: 0.875rem; }
.npx-logo--footer { color: #fff; margin-bottom: 12px; }
.npx-logo--footer .npx-logo__mark:not(.npx-logo__mark--icon) { background: linear-gradient(155deg, #ffffff, #C9CCD6); color: #13151A; }
.npx-footer__desc { color: #8B8F9A; font-size: 0.9375rem; line-height: 1.8; }
.npx-footer__socials { display: flex; gap: 8px; margin-top: 16px; }
.npx-footer__socials a {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: #C9CCD6;
	transition: background 0.15s ease, color 0.15s ease;
}
.npx-footer__socials a:hover { background: var(--npx-accent); color: #fff; }
.npx-footer h4 { color: #fff; font-size: 0.9375rem; margin-bottom: 16px; font-weight: 800; }
.npx-footer ul li { margin-bottom: 11px; }
.npx-footer ul a { color: #A8ABB5; font-size: 0.875rem; transition: color 0.15s ease; }
.npx-footer ul a:hover { color: #fff; }
.npx-footer__bottom {
	border-top: 1px solid #262A33;
	padding: 20px 0;
	font-size: 0.8125rem;
	color: #767A85;
}

/* -------------------- Utility: hairline dot separators for inline meta -------------------- */
.npx-utility-bar__right > *:not(:last-child)::after,
.npx-card__meta > span:not(:last-child)::after {
	content: '·';
	margin-inline-start: 8px;
	color: currentColor;
	opacity: 0.4;
}

/* -------------------- Admin bar offset -------------------- */
body.admin-bar .npx-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .npx-header { top: 46px; }
}

/* ==========================================================================
   Responsive — desktop → لپ‌تاپ کوچک → تبلت → موبایل → موبایل کوچک
   عنوان‌های اصلی (هدر/هیرو/تک‌خبر/آرشیو) با clamp() به‌صورت روان بین این
   بازه‌ها تغییر اندازه می‌دهند؛ مدیاکوئری‌های زیر فقط برای تغییرات ساختاری
   (چیدمان ستون‌ها، مخفی/نمایان‌شدن عناصر) استفاده می‌شوند.
   ========================================================================== */

/* لپ‌تاپ کوچک / تبلت landscape: یک پله نرم قبل از شکستن ستون‌ها */
@media (max-width: 1100px) {
	.npx-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.npx-most-viewed__list { grid-template-columns: repeat(4, 1fr); }
}

/* تبلت */
@media (max-width: 960px) {
	.npx-header { position: static; box-shadow: none; }
	.npx-header__inner { flex-wrap: wrap; }
	.npx-search { order: 3; flex-basis: 100%; max-width: none; }
	.npx-navbar__list { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
	.npx-navbar__list::-webkit-scrollbar { display: none; }
	.npx-hero { padding: 32px 0 22px; }
	/* روی تبلت و گوشی، اسلایدر مربعی (۱:۱) باشد و کل تصویر بدون برش دیده شود؛
	   پس‌زمینه‌ی تیره تضمین می‌کند اگر فضای خالی (letterbox) کنار تصویر بماند،
	   عنوان سفید رو همچنان خوانا بمونه */
	.npx-slider__track { aspect-ratio: 1/1; background: #14161C; }
	.npx-slider__img { object-fit: contain; }
	.npx-hero__grid { grid-template-columns: 1fr; gap: 28px; }
	.npx-hero__side { border-inline-start: none; padding-inline-start: 0; border-top: 1px solid var(--npx-line); padding-top: 22px; }
	.npx-grid, .npx-grid--archive { grid-template-columns: repeat(2, 1fr); gap: 22px; }
	.npx-most-viewed__list { grid-template-columns: repeat(3, 1fr); }
	.npx-single__layout { grid-template-columns: 1fr; gap: 36px; }
	.npx-single__sidebar { position: static; }
	.npx-single { padding: 32px 0 48px; }
	.npx-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0 26px; }
	.npx-footer__inner > div:first-child { grid-column: 1 / -1; }
	.npx-section { padding: 36px 0; }
}

/* موبایل */
@media (max-width: 680px) {
	.npx-utility-bar__inner { padding: 8px 0; }
	.npx-header__inner { flex-wrap: wrap; padding: 14px 0; gap: 12px; }
	.npx-ticker__inner { height: 44px; gap: 12px; }
	.npx-ticker__label { padding: 6px 12px; font-size: 0.75rem; }
	.npx-slider { margin-top: 16px; }
	.npx-slider__arrow { opacity: 1; width: 32px; height: 32px; }
	.npx-quick-cats__inner { gap: 20px 14px; }
	.npx-quick-cats__item { width: 76px; }
	.npx-quick-cats__circle { width: 60px; height: 60px; }
	.npx-quick-cats__label { font-size: 0.75rem; }
	.npx-hero__excerpt { font-size: 1rem; }
	.npx-grid, .npx-grid--archive { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.npx-most-viewed__list { grid-template-columns: repeat(2, 1fr); }
	.npx-utility-bar__tagline { display: none; }
	.npx-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.npx-container { padding: 0 16px; }
	.npx-single__head { padding-bottom: 20px; }
	.npx-single__content { font-size: 1rem; line-height: 1.85; }
	.npx-share { gap: 8px; }
	.npx-footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 34px 0 20px; }
	.npx-footer__inner > div:first-child { grid-column: auto; }
	.npx-footer { margin-top: 44px; }
}

/* موبایل کوچک */
@media (max-width: 420px) {
	.npx-container { padding: 0 14px; }
	.npx-logo__mark { width: 30px; height: 30px; }
	.npx-utility-bar__right { gap: 4px 10px; }
	.npx-quick-cats__inner { gap: 16px 10px; }
	.npx-quick-cats__item { width: 66px; }
	.npx-quick-cats__circle { width: 52px; height: 52px; }
	.npx-quick-cats__circle svg { width: 20px; height: 20px; }
	.npx-grid, .npx-grid--archive { grid-template-columns: 1fr; gap: 22px; }
	.npx-most-viewed__list { grid-template-columns: 1fr; }
	.npx-gallery { grid-template-columns: 1fr; }
	.npx-single__meta { gap: 6px; font-size: 0.75rem; }
	.npx-pagination a, .npx-pagination span { min-width: 36px; height: 36px; padding: 0 8px; }
}
