/* ============ فونت‌های همراه قالب ============ */
@font-face {
	font-family: "Abar Mid";
	src: url("../fonts/AbarMid-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Abar Mid";
	src: url("../fonts/AbarMid-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ============ متغیرها ============ */
:root {
	--pg-o1: #FF9B4A;
	--pg-o2: #EF692C;
	--pg-n1: #343B70;
	--pg-n2: #252A54;
	--pg-accent: var(--pg-o2);
	--pg-navy: var(--pg-n2);
	--pg-accent-ink: color-mix(in srgb, var(--pg-o2) 78%, #000);
	--pg-d1: #FF9B4A;
	--pg-d2: #EF692C;
	--pg-vr: 16 / 9;
	--pg-grad-orange: linear-gradient(90deg, var(--pg-o1) 0%, var(--pg-o2) 100%);
	--pg-grad-navy: linear-gradient(90deg, var(--pg-n1) 0%, var(--pg-n2) 100%);
	--pg-bg: #eeeeee;
	--pg-card: #f8f8f8;
	--pg-paper: #ffffff;
	--pg-text: #1a1a1a;
	--pg-muted: #7b7b7b;
	--pg-line: rgba(0, 0, 0, .08);
	--pg-footer: #000000;
	--pg-band: #dcdcdc;
	--pg-radius: 22px;
	--pg-radius-sm: 14px;
	--pg-w: 1110px;
	--pg-font: "Abar Mid", "Vazirmatn", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
	--pg-hfont: var(--pg-font);
	--pg-fs: 17px;
	--pg-cs: 18px;
	--pg-clh: 2;
	--pg-hs: 1;
	--pg-hw: 700;
}

html[data-theme="dark"] {
	--pg-bg: #141518;
	--pg-card: #1f2126;
	--pg-paper: #1a1c20;
	--pg-text: #ececec;
	--pg-muted: #9a9ca3;
	--pg-line: rgba(255, 255, 255, .1);
	--pg-band: #0f1013;
	/* در حالت تاریک همهٔ رنگ‌ها نارنجی می‌شوند؛ از «سفارشی‌سازی ← رنگ‌ها و عرض» قابل تغییر است */
	--pg-n1: var(--pg-d1);
	--pg-n2: var(--pg-d2);
	--pg-o1: var(--pg-d1);
	--pg-o2: var(--pg-d2);
	--pg-accent-ink: var(--pg-d1);
	color-scheme: dark;
}

/* ============ پایه ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	overflow-x: clip;
	margin: 0;
	background: var(--pg-bg);
	color: var(--pg-text);
	font-family: var(--pg-font);
	font-size: var(--pg-fs);
	line-height: 1.8;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pg-accent); }
:focus-visible { outline: 3px solid var(--pg-accent); outline-offset: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	background: var(--pg-paper); padding: 10px 16px; z-index: 100;
	top: 8px; inset-inline-start: 8px;
}

.pg-container {
	width: 100%;
	max-width: calc(var(--pg-w) + 32px);
	margin-inline: auto;
	padding-inline: 16px;
}

.pg-i { display: block; flex: none; }
.pg-i--prev, .pg-i--next { transition: none; }
[dir="rtl"] .pg-i--prev,
[dir="rtl"] .pg-i--next { transform: scaleX(-1); }

/* ============ نوار بالا ============ */
.pg-topbar {
	--pg-tab: var(--pg-grad-orange);
	position: relative;
	max-width: calc(var(--pg-w) + 32px);
	height: 9px;
	margin-inline: auto;
	background: #9d9d9d;
}
body.home .pg-topbar,
body.front-page .pg-topbar { --pg-tab: var(--pg-grad-navy); }
.pg-topbar span {
	position: absolute;
	top: 0;
	inset-inline: 20%;
	height: 16px;
	background: var(--pg-tab);
	border-radius: 0 0 12px 12px;
}

/* ============ هدر ============ */
.pg-header { padding-block: 14px 8px; }
.pg-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.pg-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pg-brand__logo {
	width: 62px; height: 62px;
	object-fit: contain;
	border-radius: 16px;
}
.pg-brand__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-brand__name { font-size: 18px; font-weight: 400; line-height: 1.3; }
.pg-brand__sub {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .6em;
	line-height: 1;
	direction: ltr;
	text-align: start;
}
[dir="rtl"] .pg-brand__sub { text-align: right; }

.pg-actions { display: flex; align-items: center; gap: 12px; }

.pg-search {
	display: flex;
	align-items: center;
	height: 46px;
	width: 200px;
	padding-inline: 14px 8px;
	border: 1px solid var(--pg-accent);
	border-radius: 14px;
	background: transparent;
}
.pg-search input::placeholder { color: var(--pg-muted); opacity: .9; }
.pg-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--pg-text);
	font: inherit;
	font-size: 16px;
	outline: 0;
}
.pg-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pg-accent) 35%, transparent); }
.pg-search button {
	display: grid; place-items: center;
	width: 36px; height: 36px;
	border: 0; background: transparent;
	color: var(--pg-accent);
}

.pg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	flex: none;
	width: 46px; height: 46px;
	padding: 0;
	border: 1px solid var(--pg-accent);
	border-radius: 14px;
	background: transparent;
	color: var(--pg-accent);
	font-size: 15px;
	line-height: 1;
	list-style: none;
}
.pg-btn .pg-i { width: 22px; height: 22px; }
.pg-btn .pg-i--moon { fill: currentColor; }
.pg-btn::-webkit-details-marker { display: none; }
.pg-btn:hover { background: var(--pg-grad-orange); border-color: transparent; color: #fff; }
.pg-btn--wide { width: auto; min-width: 102px; padding-inline: 12px; color: var(--pg-text); font-size: 14px; }
.pg-btn--wide .pg-i { width: 20px; height: 20px; color: var(--pg-accent); }
.pg-btn--wide .pg-i--chevron { width: 16px; height: 16px; }

[data-pg-theme] .pg-i--sun { display: none; }
html[data-theme="dark"] [data-pg-theme] .pg-i--sun { display: block; }
html[data-theme="dark"] [data-pg-theme] .pg-i--moon { display: none; }

.pg-navtoggle { display: none; }

/* زبان */
.pg-lang { position: relative; }
.pg-lang .pg-i--chevron { transition: transform .2s; }
.pg-lang[open] .pg-i--chevron { transform: rotate(180deg); }
.pg-lang[open] .pg-btn { background: transparent; color: var(--pg-accent); }
.pg-lang__list {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 8px);
	z-index: 40;
	width: max-content;
	min-width: 160px;
	padding: 6px;
	background: var(--pg-paper);
	border: 1px solid var(--pg-line);
	border-radius: 16px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}
.pg-lang__list a {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 8px 14px;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.7;
}
.pg-lang__list a:hover { background: color-mix(in srgb, var(--pg-accent) 10%, transparent); color: var(--pg-text); }
.pg-lang__list a.is-current { background: color-mix(in srgb, var(--pg-accent) 16%, transparent); color: var(--pg-accent-ink); }
.pg-lang__list .pg-i { width: 18px; height: 18px; }

/* ============ منوی اصلی ============ */
.pg-nav { margin-top: 8px; }
.pg-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	row-gap: 4px;
}
.pg-menu > li { position: relative; display: flex; align-items: center; }
.pg-menu > li + li::before {
	content: "";
	width: 2px; height: 15px;
	margin-inline: 14px;
	background: var(--pg-accent);
	opacity: .9;
}
.pg-menu a { display: block; padding: 4px 2px; font-size: 17px; font-weight: 400; }
.pg-menu .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.pg-menu .menu-item-has-children > a::after {
	content: "";
	width: 7px; height: 7px;
	border-inline-end: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}
.pg-menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	z-index: 30;
	min-width: 200px;
	padding: 6px;
	background: var(--pg-paper);
	border: 1px solid var(--pg-line);
	border-radius: var(--pg-radius-sm);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	opacity: 0; visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.pg-menu li:hover > .sub-menu,
.pg-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pg-menu .sub-menu a { padding: 8px 14px; font-size: 16px; border-radius: 10px; }
.pg-menu .sub-menu a:hover { background: var(--pg-card); }
.pg-menu .current-menu-item > a,
.pg-menu .current_page_item > a { color: var(--pg-accent); }

/* ============ عناصر مشترک ============ */
.pg-ph {
	display: block;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, color-mix(in srgb, var(--pg-accent) 55%, #fff), color-mix(in srgb, var(--pg-navy) 35%, #fff));
}
.pg-date { display: block; color: var(--pg-accent-ink); font-size: 14px; line-height: 1.4; }

.pg-pill {
	display: inline-block;
	padding: 3px 14px;
	border-radius: 99px;
	background: var(--pg-card);
	color: var(--pg-muted);
	font-size: 13px;
	line-height: 1.7;
	white-space: nowrap;
}

.pg-chip {
	display: inline-block;
	padding: 6px 18px;
	border-radius: 16px;
	background: var(--pg-paper);
	color: var(--pg-accent);
	font-size: 22px;
	font-weight: 700;
}

.pg-iconbtn {
	display: inline-grid; place-items: center;
	width: 50px; height: 50px;
	border: 0;
	border-radius: 14px;
	background: var(--pg-paper);
	color: var(--pg-muted);
	flex: none;
}
.pg-iconbtn:hover { color: var(--pg-accent); }
.pg-iconbtn--sm { width: 38px; height: 38px; border-radius: 12px; }
.pg-iconbtn--dark { background: #1f1f1f; color: #8a8a8a; width: 46px; height: 46px; border-radius: 50%; }
.pg-iconbtn--dark:hover { color: #fff; }

/* ============ صفحهٔ اول ============ */
.pg-home { padding-block: 10px 0; }
.pg-stack { display: grid; gap: 28px; padding-block: 14px; }
.pg-stack:empty { display: none; }

/* اسلایدر */
.pg-hero {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 7.4;
	border-radius: var(--pg-radius);
	background: linear-gradient(135deg, #cfcfcf, #9d9d9d);
}
.pg-hero__slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}
.pg-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.pg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-hero__slide::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .05) 62%);
}
.pg-hero__text {
	position: absolute;
	z-index: 2;
	bottom: 11%;
	width: min(48%, 640px);
	color: #fff;
}
.pg-hero--right .pg-hero__text { right: 3%; }
.pg-hero--left .pg-hero__text { left: 3%; }
.pg-hero__kicker {
	margin: 0 0 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, .4);
	font-size: clamp(16px, 2.1vw, 28px);
	font-weight: 400;
}
.pg-hero__title { font-size: calc(clamp(20px, 2.6vw, 36px) * var(--pg-hs)); font-weight: 700; line-height: 1.5; }
.pg-hero__title a:hover { color: var(--pg-accent); }

.pg-hero__dots {
	position: absolute; z-index: 3;
	inset-inline-start: 50%;
	bottom: 14px;
	display: flex; gap: 8px;
	transform: translateX(-50%);
}
[dir="rtl"] .pg-hero__dots { transform: translateX(50%); }
.pg-hero__dot {
	width: 10px; height: 10px; padding: 0;
	border: 0; border-radius: 99px;
	background: rgba(255, 255, 255, .55);
	transition: width .2s, background .2s;
}
.pg-hero__dot.is-active { width: 28px; background: var(--pg-grad-orange); }

/* کارت‌ها */
.pg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pg-hcard {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 10px 14px 12px;
	border-radius: var(--pg-radius-sm);
	background: var(--pg-card);
	min-height: 112px;
}
.pg-hcard__body { min-width: 0; }
.pg-hcard__title { font-size: 19px; font-weight: 400; line-height: 1.55; }
.pg-hcard__thumb {
	flex: none;
	width: 190px; height: 96px;
	overflow: hidden;
	border-radius: 12px;
	align-self: center;
}
.pg-hcard__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* پنل‌ها */
.pg-grid-2 { display: grid; grid-template-columns: 1.75fr 1fr; gap: 28px; align-items: stretch; }
.pg-grid-2 > :only-child, .pg-grid-eq > :only-child { grid-column: 1 / -1; }
.pg-grid-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pg-panel {
	padding: 18px;
	border-radius: var(--pg-radius);
	background: var(--pg-card);
}
.pg-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pg-rows { display: grid; gap: 12px; }
.pg-panel--side { position: relative; min-height: 300px; }
.pg-panel--side .pg-rows {
	position: absolute;
	inset-inline: 18px;
	top: 82px;
	bottom: 18px;
	align-content: start;
	overflow-y: auto;
	padding-inline-end: 12px;
	scrollbar-width: thin;
	scrollbar-color: var(--pg-accent) transparent;
}
.pg-grid-2 > .pg-panel--side:only-child { min-height: 420px; }
.pg-row {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 12px 18px;
	border-radius: var(--pg-radius-sm);
	background: var(--pg-paper);
}
.pg-row__title { position: relative; padding-inline-start: 16px; font-size: 17px; line-height: 1.6; }
.pg-row__title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0; top: .72em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--pg-line);
}
.pg-row:hover .pg-row__title::before { background: var(--pg-accent); }

/* کاروسل */
.pg-carousel__lead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pg-carousel__nav { display: flex; gap: 10px; }
.pg-carousel .pg-carousel__nav .pg-iconbtn { width: 58px; height: 58px; border-radius: 16px; background: var(--pg-bg); color: var(--pg-muted); }
.pg-carousel .pg-carousel__nav .pg-iconbtn:hover { color: var(--pg-accent); }
.pg-iconbtn--lg { width: 58px; height: 58px; border-radius: 16px; color: var(--pg-muted); }
[dir="rtl"] .pg-i--skip-prev, [dir="rtl"] .pg-i--skip-next { transform: scaleX(-1); }
.pg-carousel__track {
	display: flex; gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 6px;
}
.pg-carousel__track::-webkit-scrollbar { display: none; }
.pg-item { flex: 0 0 calc((100% - 72px) / 4.7); min-width: 200px; scroll-snap-align: start; }
.pg-item__media {
	display: block;
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 18px;
}
.pg-item__media img { width: 100%; height: 100%; object-fit: cover; }
.pg-item__badge {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	width: 40px; height: 40px;
	padding: 3px;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.pg-item__caption { display: block; margin-top: 10px; font-size: 17px; line-height: 1.6; }
.pg-item:first-child .pg-item__caption, .pg-item__caption:hover { color: var(--pg-accent-ink); }

/* ویجت‌ها */
.pg-widgets { display: grid; gap: 20px; }
.pg-widget { padding: 18px; border-radius: var(--pg-radius); background: var(--pg-card); }
.pg-widget__title { margin-bottom: 10px; font-size: 20px; color: var(--pg-accent); }

/* ============ صفحهٔ مطلب و برگه ============ */
.pg-single, .pg-archive { padding-block: 22px 44px; }
.pg-titlebox {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
	padding: 16px 30px 34px;
	border-radius: var(--pg-radius-sm);
	background: var(--pg-grad-orange);
	color: #fff;
	text-align: center;
}
.pg-titlebox__title { font-size: calc(clamp(22px, 3.2vw, 36px) * var(--pg-hs)); font-weight: 700; }
.pg-pill--float {
	position: absolute;
	inset-inline-start: 50%;
	bottom: -16px;
	transform: translateX(-50%);
	background: var(--pg-paper);
	color: var(--pg-accent);
	font-weight: 700;
	border: 3px solid var(--pg-bg);
}
[dir="rtl"] .pg-pill--float { transform: translateX(50%); }

.pg-paper {
	position: relative;
	margin-top: -26px;
	padding: 58px 26px 28px;
	border-radius: var(--pg-radius);
	background: var(--pg-paper);
}
.pg-paper--home { margin-top: 0; padding-top: 26px; }
.pg-paper--center { text-align: center; }
.pg-lead {
	margin-bottom: 26px;
	padding: 18px 22px;
	border-radius: var(--pg-radius-sm);
	background: var(--pg-bg);
	font-size: 19px;
}
.pg-lead p { margin: 0; }
.pg-lead--archive { margin-top: 18px; }
.pg-featured { margin: 0 0 24px; }
.pg-featured img { width: 100%; border-radius: var(--pg-radius-sm); }

.entry-content { font-size: var(--pg-cs); line-height: var(--pg-clh); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content a { color: var(--pg-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
	margin-inline: 0;
	padding: 10px 22px;
	border-inline-start: 4px solid var(--pg-accent);
	background: var(--pg-bg);
	border-radius: 0 var(--pg-radius-sm) var(--pg-radius-sm) 0;
}
[dir="rtl"] .entry-content blockquote { border-radius: var(--pg-radius-sm) 0 0 var(--pg-radius-sm); }
.entry-content img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 1px solid var(--pg-line); }
.alignwide { max-width: 100%; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--pg-muted); font-size: 14px; text-align: center; }

.pg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pg-tags a { padding: 2px 14px; border-radius: 99px; background: var(--pg-bg); font-size: 14px; }
.pg-tags a:hover { background: var(--pg-grad-orange); color: #fff; }
.pg-pages { margin-top: 20px; }

.pg-share {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
	margin-top: 22px;
	padding: 22px;
	border-radius: var(--pg-radius);
	background: var(--pg-paper);
}
.pg-sharebtn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 5px 16px 5px 6px;
	border: 0;
	border-radius: var(--pg-radius-sm);
	background: var(--pg-card);
	font-size: 15px;
	max-width: 100%;
}
[dir="rtl"] .pg-sharebtn { padding: 5px 6px 5px 16px; }
.pg-sharebtn:hover { color: var(--pg-accent); }
.pg-sharebtn__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-sharebtn .pg-iconbtn { background: var(--pg-paper); }
.pg-qrwrap { position: relative; }
.pg-qr {
	position: absolute;
	z-index: 20;
	bottom: calc(100% + 10px);
	inset-inline-start: 0;
	padding: 12px;
	border-radius: var(--pg-radius-sm);
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.pg-qr[hidden] { display: none; }
.pg-qr img { display: block; }

.pg-single .pg-widgets { margin-top: 22px; }

/* دیدگاه‌ها */
.pg-comments { margin-top: 22px; padding-top: 26px; }
.pg-comments__title { margin-bottom: 14px; font-size: 22px; }
.pg-comments__list { display: grid; gap: 14px; margin-bottom: 24px; }
.pg-comments .children { margin-top: 12px; padding-inline-start: 24px; display: grid; gap: 12px; }
.pg-comments .comment-body { padding: 14px 18px; border-radius: var(--pg-radius-sm); background: var(--pg-bg); }
.pg-comments input[type="text"], .pg-comments input[type="email"], .pg-comments input[type="url"], .pg-comments textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--pg-line);
	border-radius: 12px;
	background: var(--pg-bg);
	color: var(--pg-text);
	font: inherit;
}
.pg-comments .submit {
	padding: 10px 26px;
	border: 0; border-radius: 14px;
	background: var(--pg-grad-orange);
	color: #fff;
	font-weight: 700;
}

/* ============ آرشیو ============ */
.pg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 28px;
}
.pg-post { overflow: hidden; border-radius: var(--pg-radius); background: var(--pg-card); }
.pg-post__media { display: block; aspect-ratio: 16 / 10.5; overflow: hidden; }
.pg-post__media img { width: 100%; height: 100%; object-fit: cover; }
.pg-post__body { padding: 16px 18px 20px; }
.pg-post__title { margin-top: 2px; font-size: 19px; font-weight: 700; }
.pg-post__excerpt { margin: 8px 0 0; color: var(--pg-muted); font-size: 15px; line-height: 1.8; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 44px; height: 44px; padding-inline: 12px;
	border-radius: 14px;
	background: var(--pg-card);
}
.pagination .current { background: var(--pg-grad-orange); color: #fff; font-weight: 700; }

.pg-paper .pg-search { width: 100%; max-width: 420px; margin: 16px auto; }

/* ============ فوتر ============ */
.pg-footer { margin-top: 20px; }
.pg-footnav { background: var(--pg-grad-navy); color: #fff; }
.pg-footnav__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0 24px;
	padding-block: 14px;
}
.pg-footnav__list a { display: block; padding: 12px 0; font-size: 15px; font-weight: 700; }
.pg-footnav__list a:hover { color: var(--pg-accent); }

.pg-footwidgets { background: color-mix(in srgb, var(--pg-n2) 60%, #000); color: #eee; padding-block: 28px; }
.pg-footwidgets__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pg-footwidgets .pg-widget { padding: 0; background: transparent; }
.pg-footwidgets .pg-widget__title { color: #fff; font-size: 22px; font-weight: 700; }
.pg-footwidgets .pg-widget ul { display: grid; gap: 8px; }
.pg-footwidgets .pg-widget li {
	padding: 12px 16px;
	border-radius: var(--pg-radius-sm);
	background: rgba(255, 255, 255, .1);
}
.pg-footwidgets a:hover { color: var(--pg-accent); }

.pg-footbar { background: var(--pg-footer); color: var(--pg-accent); padding-block: 26px; }
.pg-footbar__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pg-footbar__logo { display: block; width: 66px; height: 66px; margin-bottom: 8px; object-fit: contain; border-radius: 16px; }
.pg-footbar__text { font-size: 16px; font-weight: 400; }
.pg-social { display: flex; gap: 10px; }

/* ============ واکنش‌گرا ============ */
@media (max-width: 1100px) {
	.pg-item { flex-basis: calc((100% - 48px) / 3); }
	.pg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.pg-grid-2, .pg-cards { grid-template-columns: 1fr; }
	.pg-panel--side { min-height: 0; }
	.pg-panel--side .pg-rows { position: static; max-height: 372px; }
	.pg-footnav__list, .pg-footwidgets__grid { grid-template-columns: repeat(2, 1fr); }
	.pg-hero { aspect-ratio: 4 / 3.4; }
	.pg-hero__text { width: 88%; left: 6% !important; right: 6% !important; bottom: 12%; }
	.pg-search { width: 220px; }
	.pg-navtoggle { display: inline-flex; }
	.pg-nav { display: none; }
	.pg-nav.is-open { display: block; }
	.pg-menu { flex-direction: column; align-items: stretch; padding: 8px; border-radius: var(--pg-radius-sm); background: var(--pg-card); }
	.pg-menu > li { flex-wrap: wrap; }
	.pg-menu > li + li::before { display: none; }
	.pg-menu a { padding: 10px 12px; }
	.pg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; width: 100%; background: transparent; }
}

@media (max-width: 640px) {
	body { font-size: calc(var(--pg-fs) - 1px); }
	.pg-header__row { flex-direction: column; align-items: stretch; }
	.pg-actions { justify-content: space-between; }
	.pg-search { flex: 1; width: auto; }
	.pg-brand__logo { width: 54px; height: 54px; }
	.pg-brand__name { font-size: 18px; }
	.pg-grid { grid-template-columns: 1fr; }
	.pg-item { flex-basis: 72%; }
	.pg-row { flex-direction: column; align-items: flex-start; gap: 6px; }
	.pg-hcard__thumb { width: 120px; height: 80px; }
	.pg-paper { padding: 54px 16px 22px; }
	.entry-content { font-size: calc(var(--pg-cs) - 1px); }
	.pg-footnav__list, .pg-footwidgets__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ============ چاپ ============ */
@media print {
	.pg-topbar, .pg-header, .pg-share, .pg-footer, .pg-widgets, .pg-comments { display: none !important; }
	body { background: #fff; color: #000; }
	.pg-paper { margin: 0; padding: 0; background: #fff; }
	.pg-titlebox { background: none; color: #000; }
	.pg-pill--float { position: static; transform: none; border: 0; }
}

/* ============ نوارهای تمام‌عرض (ویدیو و تصاویر) ============ */
.pg-bandwrap { padding-block: 14px; }
.pg-band {
	padding: 16px;
	border-radius: var(--pg-radius);
	background: var(--pg-band);
}
.pg-band .pg-carousel__nav { gap: 10px; }
.pg-vtrack { gap: 24px; }
.pg-vcard { flex: 0 0 calc((100% - 72px) / 4); min-width: 240px; scroll-snap-align: start; }
.pg-vcard__link {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: var(--pg-vr);
	padding: 10px;
	overflow: hidden;
	border-radius: 16px;
	background: #222;
	color: #fff;
}
.pg-vcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-vcard__link::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 60%);
}
.pg-vcard__badge, .pg-vcard__cap { position: relative; z-index: 1; }
.pg-vcard__badge {
	position: absolute;
	z-index: 2;
	top: 10px;
	inset-inline-end: 10px;
	padding: 1px 12px;
	border-radius: 99px;
	background: var(--pg-grad-orange);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.9;
}
.pg-vcard__cap {
	padding: 6px 12px;
	border-radius: 12px;
	background: #fff;
	color: #111;
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pg-vcard__link:hover .pg-vcard__cap { color: var(--pg-accent); }

.pg-ptrack { gap: 12px; margin-top: 4px; padding-bottom: 0; }
.pg-ptrack .pg-photo a { border-radius: 14px; }
.pg-photo { flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start; }
.pg-photo a { display: block; aspect-ratio: 3 / 4.1; overflow: hidden; border-radius: 12px; }
.pg-photo__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pg-photo a:hover .pg-photo__img { transform: scale(1.03); }

/* ============ وسوم ============ */
.pg-tagcloud { display: flex; flex-wrap: wrap; gap: 12px; padding-inline: 6px; }
.pg-tagpill {
	position: relative;
	display: inline-block;
	padding: 6px 18px;
	padding-inline-end: 34px;
	border-radius: var(--pg-radius-sm);
	background: var(--pg-paper);
	font-size: 16px;
}
.pg-tagpill::after {
	content: "";
	position: absolute;
	inset-inline-end: 14px; top: 50%;
	width: 7px; height: 7px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--pg-line);
}
.pg-tagpill:hover::after { background: var(--pg-accent); }

/* ============ نقل‌قول شاخص ============ */
.pg-quote { margin: 0; padding: 20px 22px; border-radius: var(--pg-radius-sm); background: var(--pg-paper); }
.pg-quote__who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pg-quote__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pg-quote__name { display: block; color: var(--pg-accent); font-size: 18px; line-height: 1.5; }
.pg-quote__role { display: block; color: var(--pg-muted); font-size: 13px; line-height: 1.5; }
.pg-quote__text { margin: 0; font-size: 17px; line-height: 2; }
.pg-quote__text a:hover { color: var(--pg-accent); }
.pg-quote__date { margin-top: 18px; color: var(--pg-muted); font-size: 13px; }

/* ============ فوتر: منوی چندسطحی و ستون‌های زبان ============ */
.pg-footnav__list { align-items: start; }
.pg-footnav__list > li > a { font-weight: 700; }
.pg-footnav__list .sub-menu { display: grid; gap: 2px; margin-bottom: 14px; }
.pg-footnav__list .sub-menu a { padding: 4px 0; font-size: 13px; font-weight: 400; color: #aeb7d6; }
.pg-footnav__list .sub-menu a:hover { color: var(--pg-accent); }
.pg-footwidgets .pg-widget > div > ul { gap: 0; }

@media (max-width: 1100px) {
	.pg-vcard { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 900px) {
	.pg-grid-eq { grid-template-columns: 1fr; }
	.pg-photo { flex-basis: 70%; }
}
@media (max-width: 640px) {
	.pg-vcard { flex-basis: 70%; }
}

/* ============ گرادیان‌های آماده (قابل استفاده در بلوک‌ها با «کلاس CSS اضافی») ============ */
.navy-gradient {
	background: linear-gradient(90deg, var(--pg-n1, #343B70) 0%, var(--pg-n2, #252A54) 100%);
}
.orange-gradient {
	background: linear-gradient(90deg, var(--pg-o1, #FF9B4A) 0%, var(--pg-o2, #EF692C) 100%);
}

/* ============ زبان‌ها ============ */
body.pg-lang-hi { font-family: var(--pg-font), "Noto Sans Devanagari", "Nirmala UI", sans-serif; }
body.pg-lang-ur { font-family: var(--pg-font), "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", sans-serif; line-height: 2.1; }
body.pg-lang-ru, body.pg-lang-az, body.pg-lang-fr, body.pg-lang-es, body.pg-lang-en { letter-spacing: 0; }
.pg-brand__sub { letter-spacing: .5em; }

/* ضخامت عنوان‌ها از «فونت و تایپوگرافی» تنظیم می‌شود */
.pg-hero__title, .pg-titlebox__title, .pg-chip, .pg-post__title, .pg-hcard__title, .pg-widget__title,
.pg-comments__title, .pg-quote__name, .pg-footnav__list > li > a,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
	font-family: var(--pg-hfont);
	font-weight: var(--pg-hw);
}

.pg-btn--wide:hover .pg-i { color: #fff; }

/* ============ حالت تاریک: سطوح نارنجی با متن تیره ============ */
html[data-theme="dark"] .pg-footnav { color: #1b0f06; }
html[data-theme="dark"] .pg-footnav__list .sub-menu a { color: rgba(27, 15, 6, .75); }
html[data-theme="dark"] .pg-footnav__list a:hover { color: #fff; }
html[data-theme="dark"] .pg-footwidgets { background: #17181b; }
