/* =====================================================================
   BizDir Theme — لایه گرافیکی نسخه ۲.۰ (فوق‌گرافیکی، ریسپانسیو، RTL)
   ---------------------------------------------------------------------
   این فایل «بعد از» style.css / style-rtl.css بارگذاری می‌شود و فقط
   چیزهایی را «اضافه» یا «زیباتر» می‌کند؛ هیچ کدی از نسخه پایه حذف
   نشده است. رنگ‌ها و کلاس‌های bdt-* اصلی قالب دقیقاً حفظ شده‌اند.
   ===================================================================== */

/* ---------- ۱) فونت وزیرمتن (محلی + پشتیبان CDN) ---------- */
@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
		url("../fonts/Vazirmatn-Variable.woff2") format("woff2"),
		url("https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/fonts/webfonts/Vazirmatn%5Bwght%5D.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- ۲) توکن‌های جدید (در کنار توکن‌های اصلی نسخه پایه) ---------- */
:root {
	--bdt-gold: #f5a524;
	--bdt-teal-soft: rgba(15, 181, 166, .12);
	--bdt-teal-line: rgba(15, 181, 166, .28);
	--bdt-grad-primary: linear-gradient(135deg, #0e2a47 0%, #17456e 62%, #0fb5a6 145%);
	--bdt-grad-accent: linear-gradient(135deg, #0fb5a6 0%, #14b8d4 100%);
	--bdt-glass: rgba(255, 255, 255, .82);
	--bdt-radius-sm: 12px;
	--bdt-radius-md: 18px;
	--bdt-radius-lg: 24px;
	--bdt-radius-xl: 30px;
	--bdt-shadow-sm: 0 2px 12px rgba(14, 42, 71, .06);
	--bdt-shadow-md: 0 14px 34px -14px rgba(14, 42, 71, .18);
	--bdt-shadow-lg: 0 26px 60px -22px rgba(14, 42, 71, .28);
	--bdt-ring: 0 0 0 4px rgba(15, 181, 166, .16);
}

/* ---------- ۳) پولیش پایه: انتخاب متن، اسکرول‌بار، فوکوس ---------- */
::selection { background: rgba(15, 181, 166, .28); color: #0e2a47; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef2f7; }
::-webkit-scrollbar-thumb { background: #c3d0df; border-radius: 999px; border: 2px solid #eef2f7; }
::-webkit-scrollbar-thumb:hover { background: var(--bdt-accent); }

body { position: relative; }

/* پس‌زمینه تزئینی نرم (هاله‌های رنگی ثابت) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(560px 420px at 88% -8%, rgba(15, 181, 166, .13), transparent 62%),
		radial-gradient(640px 520px at -10% 14%, rgba(14, 42, 71, .09), transparent 62%),
		radial-gradient(760px 560px at 50% 118%, rgba(15, 181, 166, .10), transparent 60%);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--bdt-accent);
	outline-offset: 2px;
}

/* متن فقط برای صفحه‌خوان‌ها (استاندارد وردپرس) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* لینک پرش به محتوا */
.bdt-skip {
	position: fixed;
	top: -70px;
	inset-inline-start: 16px;
	z-index: 1000;
	background: var(--bdt-primary);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--bdt-radius-sm);
	font-weight: 700;
	font-size: .9rem;
	transition: top .2s ease;
	box-shadow: var(--bdt-shadow-lg);
}
.bdt-skip:focus { top: 12px; color: #fff; }

/* ورود نرم صفحه (فقط وقتی جاوااسکریپت فعال است) */
html.bdt-js body { animation: bdtPageIn .5s ease both; }
@keyframes bdtPageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- ۴) چیدمان کلی ---------- */
.bdt-main { max-width: 1080px; }

/* ---------- ۵) هدر شیشه‌ای ---------- */
.bdt-header {
	background: var(--bdt-glass);
	-webkit-backdrop-filter: blur(14px) saturate(1.5);
	backdrop-filter: blur(14px) saturate(1.5);
	border-bottom: 1px solid rgba(227, 233, 241, .9);
	transition: box-shadow .25s ease, background .25s ease;
}
.bdt-header.is-scrolled {
	background: rgba(255, 255, 255, .93);
	box-shadow: 0 10px 30px -18px rgba(14, 42, 71, .28);
}

.bdt-logo { position: relative; }
.bdt-logo__mark {
	box-shadow: 0 6px 16px -6px rgba(15, 181, 166, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
	background: linear-gradient(135deg, var(--bdt-primary) 0%, #14506e 55%, var(--bdt-accent) 130%);
	transition: transform .25s ease;
}
.bdt-logo:hover .bdt-logo__mark { transform: rotate(-6deg) scale(1.05); }
.bdt-logo img.custom-logo,
.bdt-logo .custom-logo { max-height: 44px; width: auto; }

/* خط زیرین انیمیشنی آیتم‌های منو */
.bdt-menu > li > a { position: relative; }
.bdt-menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2.5px;
	border-radius: 3px;
	background: var(--bdt-grad-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .25s ease;
}
.bdt-menu > li > a:hover::after,
.bdt-menu > li.current-menu-item > a::after,
.bdt-menu > li.current_page_item > a::after { transform: scaleX(1); }

/* زیرمنوی بازشونده (خروجی استاندارد wp_nav_menu) */
.bdt-menu .menu-item { position: relative; }
.bdt-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--bdt-border);
	border-radius: var(--bdt-radius-md);
	box-shadow: var(--bdt-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .22s ease, transform .22s ease, visibility .22s;
	z-index: 60;
}
.bdt-menu li:hover > .sub-menu,
.bdt-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.bdt-menu .sub-menu .sub-menu { top: -8px; inset-inline-start: 100%; }
.bdt-menu .sub-menu a {
	display: flex;
	align-items: center;
	padding: 9px 12px;
	border-radius: 10px;
	font-weight: 600;
	font-size: .9rem;
	color: var(--bdt-text);
}
.bdt-menu .sub-menu a:hover { background: #f2fbfa; color: var(--bdt-accent); }

/* دکمه بازکننده زیرمنو (فقط موبایل) */
.bdt-subtoggle {
	display: none;
	position: absolute;
	inset-inline-end: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 9px;
	background: #f1f5f9;
	color: var(--bdt-primary);
	cursor: pointer;
	padding: 0;
	place-items: center;
}
.bdt-subtoggle svg { transition: transform .2s ease; width: 16px; height: 16px; }
.menu-item-has-children.is-open > .bdt-subtoggle svg { transform: rotate(180deg); }

/* ---------- ۶) دکمه‌ها ---------- */
.bdt-btn { position: relative; overflow: hidden; }
.bdt-btn:active { transform: translateY(1px) scale(.99); }

.bdt-btn--primary {
	background: var(--bdt-grad-primary);
	box-shadow: 0 10px 22px -10px rgba(14, 42, 71, .55);
}
.bdt-btn--primary::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 45%;
	inset-inline-start: -60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-18deg);
	transition: inset-inline-start .55s ease;
	pointer-events: none;
}
.bdt-btn--primary:hover::after { inset-inline-start: 130%; }

.bdt-btn--soft {
	background: var(--bdt-teal-soft);
	border-color: var(--bdt-teal-line);
	color: #0a8c80;
}
.bdt-btn--soft:hover {
	background: var(--bdt-grad-accent);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(15, 181, 166, .6);
}

.bdt-btn--accent { background: var(--bdt-grad-accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(15, 181, 166, .6); }
.bdt-btn--accent:hover { color: #fff; transform: translateY(-2px); }

.bdt-btn--danger { background: linear-gradient(135deg, #e5484d, #c62a30); color: #fff; }
.bdt-btn--danger:hover { color: #fff; transform: translateY(-2px); }

/* ---------- ۷) کارت‌ها و باکس‌های زیبا با گوشه‌های نرم ---------- */
.bdt-post {
	border-radius: var(--bdt-radius-lg);
	border: 1px solid #eef2f7;
	box-shadow: var(--bdt-shadow-sm);
	position: relative;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bdt-post::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 4px;
	background: var(--bdt-grad-accent);
	opacity: 0;
	transition: opacity .25s ease;
	z-index: 1;
}
.bdt-post:hover {
	transform: translateY(-4px);
	box-shadow: var(--bdt-shadow-md);
	border-color: rgba(15, 181, 166, .35);
}
.bdt-post:hover::before { opacity: 1; }

.bdt-post__title a { background-image: linear-gradient(var(--bdt-accent), var(--bdt-accent)); background-repeat: no-repeat; background-size: 0 2px; background-position: 100% 100%; transition: background-size .3s ease; }
.bdt-post__title a:hover { background-size: 100% 2px; }

/* کارت عمومی برای افزونه و محتوا */
.bdt-card {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: var(--bdt-radius-lg);
	box-shadow: var(--bdt-shadow-sm);
	padding: 22px;
	transition: transform .22s ease, box-shadow .22s ease;
}
.bdt-card--hover:hover { transform: translateY(-4px); box-shadow: var(--bdt-shadow-md); }

/* کارت با حاشیه گرادیانی */
.bdt-card--gradient {
	border: 1.5px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, var(--bdt-grad-accent) border-box;
}

/* گرید عمومی */
.bdt-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* لوپ کارتی بایگانی‌ها */
.bdt-loop {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
	align-items: stretch;
	margin-bottom: 26px;
}
.bdt-loop .bdt-post { display: flex; flex-direction: column; margin: 0; }
.bdt-loop .bdt-post__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.bdt-loop .bdt-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bdt-loop .bdt-post:hover .bdt-post__thumb img { transform: scale(1.06); }
.bdt-post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; }
.bdt-post__body .bdt-btn { margin-top: auto; }
.bdt-post__excerpt { color: var(--bdt-muted); font-size: .92rem; }

/* نوشته تکی */
.bdt-post--single { padding: 0; }
.bdt-post--single .bdt-post__header { padding: 30px 30px 0; }
.bdt-post--single .bdt-post__thumb { margin: 18px 30px 4px; border-radius: var(--bdt-radius-md); overflow: hidden; }
.bdt-post--single .bdt-post__thumb img { width: 100%; display: block; border-radius: var(--bdt-radius-md); box-shadow: var(--bdt-shadow-sm); cursor: zoom-in; }
.bdt-post--single .bdt-post__content { padding: 10px 30px 28px; }
.bdt-post__meta--rich { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bdt-post__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--bdt-primary); }
.bdt-post__author img { border-radius: 50%; box-shadow: 0 0 0 3px var(--bdt-teal-soft); }

.bdt-post__tags { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--bdt-border); }
.bdt-post__tags .bdt-tag {
	display: inline-block;
	padding: 5px 14px;
	margin: 0 0 8px 8px;
	border-radius: 999px;
	background: #f3f7fc;
	border: 1px solid var(--bdt-border);
	font-size: .8rem;
	color: var(--bdt-muted);
	transition: all .18s ease;
}
.bdt-post__tags .bdt-tag:hover { background: var(--bdt-teal-soft); border-color: var(--bdt-teal-line); color: #0a8c80; }

/* هدر آرشیو */
.bdt-archivehead {
	position: relative;
	overflow: hidden;
	background: var(--bdt-grad-primary);
	color: #fff;
	border-radius: var(--bdt-radius-lg);
	padding: 30px 28px;
	margin-bottom: 26px;
	box-shadow: var(--bdt-shadow-lg);
}
.bdt-archivehead::after {
	content: "";
	position: absolute;
	inset-inline-end: -60px;
	top: -60px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(15, 181, 166, .5), transparent 70%);
	pointer-events: none;
}
.bdt-archivehead__title { margin: 0 0 6px; font-size: 1.4rem; position: relative; z-index: 1; }
.bdt-archivehead__desc { opacity: .88; font-size: .93rem; max-width: 680px; position: relative; z-index: 1; }
.bdt-archivehead .bdt-search { margin-top: 16px; background: rgba(255, 255, 255, .95); border-color: transparent; max-width: 480px; position: relative; z-index: 1; }

/* صفحه ۴۰۴ */
.bdt-404 {
	text-align: center;
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: var(--bdt-radius-xl);
	box-shadow: var(--bdt-shadow-md);
	padding: 56px 26px;
	max-width: 720px;
	margin: 30px auto;
}
.bdt-404__code {
	margin: 0;
	font-size: clamp(72px, 16vw, 128px);
	font-weight: 900;
	line-height: 1.15;
	background: linear-gradient(135deg, #0e2a47 20%, #0fb5a6 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.bdt-404 h1 { color: var(--bdt-primary); font-size: 1.3rem; margin: 8px 0 4px; }
.bdt-404 p { color: var(--bdt-muted); }
.bdt-404 .bdt-search { margin: 18px auto 0; }
.bdt-404__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---------- ۸) تایپوگرافی محتوا ---------- */
.bdt-post__content > *:first-child { margin-top: 0; }
.bdt-post__content h2, .bdt-post__content h3, .bdt-post__content h4 { color: var(--bdt-primary); margin: 26px 0 12px; }
.bdt-post__content h2 { position: relative; padding-inline-start: 15px; font-size: 1.22rem; }
.bdt-post__content h2::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .32em;
	bottom: .32em;
	width: 5px;
	border-radius: 5px;
	background: var(--bdt-grad-accent);
}
.bdt-post__content h3 { font-size: 1.08rem; }
.bdt-post__content a { color: #0a8c80; text-decoration: underline; text-decoration-color: rgba(15, 181, 166, .4); text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.bdt-post__content a:hover { text-decoration-color: currentColor; }
.bdt-post__content img { border-radius: var(--bdt-radius-md); box-shadow: var(--bdt-shadow-sm); cursor: zoom-in; }
.bdt-post__content blockquote {
	margin: 20px 0;
	padding: 16px 20px;
	background: linear-gradient(135deg, #f4fbfa, #f8fbff);
	border-inline-start: 4px solid var(--bdt-accent);
	border-radius: var(--bdt-radius-sm);
	color: #274558;
}
.bdt-post__content blockquote p { margin: 0; }
.bdt-post__content ul, .bdt-post__content ol { padding-inline-start: 22px; }
.bdt-post__content ul li::marker { color: var(--bdt-accent); }
.bdt-post__content ol li::marker { color: var(--bdt-accent); font-weight: 700; }
.bdt-post__content li { margin-bottom: 6px; }
.bdt-post__content code {
	background: var(--bdt-teal-soft);
	color: #0a7c72;
	padding: 2px 8px;
	border-radius: 7px;
	font-size: .9em;
	direction: ltr;
	unicode-bidi: embed;
}
.bdt-post__content pre {
	background: #0e2a47;
	color: #d9ecff;
	border-radius: var(--bdt-radius-sm);
	padding: 16px 18px;
	overflow: auto;
	direction: ltr;
	text-align: left;
	font-size: .88rem;
	line-height: 1.7;
}
.bdt-post__content pre code { background: none; color: inherit; padding: 0; }
.bdt-post__content hr { border: 0; height: 2px; margin: 26px 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--bdt-teal-line), transparent); }
.bdt-post__content mark { background: rgba(245, 165, 36, .3); color: inherit; border-radius: 4px; padding: 0 4px; }
.bdt-post__content figure { margin: 20px 0; }
.bdt-post__content figcaption, .wp-caption-text { color: var(--bdt-muted); font-size: .83rem; text-align: center; margin-top: 8px; }
.bdt-post__content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--bdt-border);
	border-radius: var(--bdt-radius-sm);
	overflow: hidden;
	font-size: .92rem;
}
.bdt-post__content th, .bdt-post__content td { padding: 10px 14px; border-bottom: 1px solid var(--bdt-border); text-align: right; }
.bdt-post__content tr:last-child td { border-bottom: 0; }
.bdt-post__content th { background: #f2f6fb; color: var(--bdt-primary); font-weight: 800; }
.bdt-post__content tr:hover td { background: #fafcff; }

/* برچسب‌ها، بج‌ها و هشدارها (کلاس‌های عمومی برای افزونه) */
.bdt-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 13px;
	border-radius: 999px;
	background: var(--bdt-teal-soft);
	border: 1px solid var(--bdt-teal-line);
	color: #0a8c80;
	font-size: .78rem;
	font-weight: 700;
}
.bdt-alert { border-radius: var(--bdt-radius-sm); padding: 14px 18px; font-size: .92rem; border: 1px solid transparent; margin: 14px 0; }
.bdt-alert--success { background: #eefaf3; color: #14764a; border-color: #bfe9d2; }
.bdt-alert--info { background: #eef5fd; color: #1d5b96; border-color: #c4dcf5; }
.bdt-alert--warning { background: #fdf6e8; color: #92600a; border-color: #f3ddab; }
.bdt-alert--danger { background: #fdeeee; color: #b02a30; border-color: #f5c6c8; }

/* بردکرامب */
.bdt-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; padding: 0; font-size: .84rem; color: var(--bdt-muted); }
.bdt-crumbs a { color: var(--bdt-muted); }
.bdt-crumbs a:hover { color: var(--bdt-accent); }
.bdt-crumbs__sep { opacity: .5; }
.bdt-crumbs [aria-current] { color: var(--bdt-primary); font-weight: 700; }

/* ---------- ۹) فرم‌ها و جست‌وجو (اسکوپ‌شده تا با افزونه تداخل نکند) ---------- */
.bdt-main input[type="text"],
.bdt-main input[type="email"],
.bdt-main input[type="search"],
.bdt-main input[type="url"],
.bdt-main input[type="tel"],
.bdt-main input[type="number"],
.bdt-main input[type="password"],
.bdt-main input[type="date"],
.bdt-main textarea,
.bdt-main select,
.bdt-widget input[type="text"],
.bdt-widget input[type="email"],
.bdt-widget input[type="search"],
.bdt-widget textarea,
.bdt-widget select,
.bdt-comments input[type="text"],
.bdt-comments input[type="email"],
.bdt-comments input[type="url"],
.bdt-comments textarea {
	font-family: var(--bdt-font);
	font-size: .95rem;
	color: var(--bdt-text);
	width: 100%;
	max-width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--bdt-border);
	border-radius: var(--bdt-radius-sm);
	background: #fbfcfe;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.bdt-main input:focus, .bdt-main textarea:focus, .bdt-main select:focus,
.bdt-widget input:focus, .bdt-widget textarea:focus,
.bdt-comments input:focus, .bdt-comments textarea:focus {
	border-color: var(--bdt-accent);
	box-shadow: var(--bdt-ring);
	background: #fff;
	outline: none;
}
.bdt-main input[type="checkbox"], .bdt-main input[type="radio"], .bdt-main input[type="file"] { width: auto; }
.bdt-main input[type="checkbox"], .bdt-main input[type="radio"] { accent-color: var(--bdt-accent); transform: translateY(1px); }
.bdt-main ::placeholder, .bdt-widget ::placeholder, .bdt-comments ::placeholder { color: #9fb0c2; }

.bdt-main textarea { min-height: 120px; resize: vertical; }

/* فرم جست‌وجوی قرصی‌شکل */
.bdt-search {
	background: #fff;
	padding: 6px;
	border-radius: 999px;
	border: 1.5px solid var(--bdt-border);
	box-shadow: var(--bdt-shadow-sm);
	gap: 6px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.bdt-search:focus-within { border-color: var(--bdt-accent); box-shadow: var(--bdt-ring); }
.bdt-search input[type="search"] {
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 8px 12px;
	flex: 1;
}
.bdt-search input[type="search"]:focus { box-shadow: none; border: 0; }
.bdt-search button {
	border: 0;
	border-radius: 999px;
	padding: 9px 22px;
	cursor: pointer;
	background: var(--bdt-grad-accent);
	color: #fff;
	font-family: var(--bdt-font);
	font-weight: 800;
	transition: transform .18s ease, box-shadow .18s ease;
}
.bdt-search button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(15, 181, 166, .65); }

/* ---------- ۱۰) صفحه‌بندی ---------- */
.bdt-main .navigation.pagination,
.bdt-main .posts-navigation,
.bdt-main .comment-navigation { margin-top: 28px; }
.bdt-main .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: stretch; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--bdt-border);
	color: var(--bdt-primary);
	font-weight: 700;
	font-size: .9rem;
	transition: all .18s ease;
}
.page-numbers:hover {
	border-color: var(--bdt-accent);
	color: var(--bdt-accent);
	transform: translateY(-2px);
	box-shadow: var(--bdt-shadow-sm);
}
.page-numbers.current {
	background: var(--bdt-grad-primary);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 10px 20px -10px rgba(14, 42, 71, .5);
}
.posts-navigation .nav-links, .comment-navigation .nav-links { justify-content: space-between; }
.posts-navigation .nav-links a, .comment-navigation .nav-links a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fff;
	border: 1px solid var(--bdt-border);
	border-radius: var(--bdt-radius-md);
	padding: 14px 18px;
	font-weight: 700;
	color: var(--bdt-primary);
	transition: all .2s ease;
	flex: 1 1 260px;
}
.posts-navigation .nav-links a:hover, .comment-navigation .nav-links a:hover {
	border-color: var(--bdt-teal-line);
	box-shadow: var(--bdt-shadow-sm);
	transform: translateY(-2px);
	color: var(--bdt-accent);
}

/* ناوبری نوشته قبلی/بعدی (تکی) */
.bdt-postnav__label { display: block; font-size: .78rem; color: var(--bdt-muted); font-weight: 600; }
.bdt-postnav__title { display: block; font-weight: 800; color: var(--bdt-primary); font-size: .95rem; }
.posts-navigation .nav-links a:hover .bdt-postnav__title { color: var(--bdt-accent); }

/* ---------- ۱۱) ویجت‌ها و ستون ابزارک ---------- */
.bdt-widget {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: var(--bdt-radius-md);
	box-shadow: var(--bdt-shadow-sm);
	padding: 20px;
	margin-bottom: 20px;
}
.bdt-widget__title {
	position: relative;
	margin: 0 0 14px;
	padding-bottom: 10px;
	font-size: 1rem;
	color: var(--bdt-primary);
}
.bdt-widget__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--bdt-grad-accent);
}
.bdt-widget ul { list-style: none; margin: 0; padding: 0; }
.bdt-widget li { padding: 8px 0; border-bottom: 1px dashed #edf1f6; font-size: .92rem; }
.bdt-widget li:last-child { border-bottom: 0; }
.bdt-widget a:hover { color: var(--bdt-accent); }
.bdt-widget select { width: 100%; }
.bdt-widget img { border-radius: 10px; }

.bdt-sidebar { margin-top: 26px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.bdt-sidebar .bdt-widget { margin-bottom: 0; }

/* ---------- ۱۲) پابرگ ---------- */
.bdt-footer {
	position: relative;
	background:
		radial-gradient(900px 400px at 85% -20%, rgba(15, 181, 166, .22), transparent 60%),
		linear-gradient(180deg, #0e2a47 0%, #0b2140 100%);
	color: #cfe0f2;
	border-top: none;
	overflow: hidden;
}
.bdt-footer::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--bdt-accent), #14b8d4 40%, rgba(20, 184, 212, 0) 90%);
}
.bdt-footer__widgets {
	max-width: 1200px;
	margin: 0 auto;
	padding: 34px 16px 0;
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bdt-footer .bdt-widget {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	box-shadow: none;
	color: #d7e5f4;
	margin-bottom: 0;
}
.bdt-footer .bdt-widget__title { color: #fff; }
.bdt-footer .bdt-widget li { border-bottom-color: rgba(255, 255, 255, .1); }
.bdt-footer a:hover { color: #6ee7dd; }
.bdt-footer__copy { position: relative; }

/* ---------- ۱۳) دیدگاه‌ها ---------- */
.bdt-comments { margin-top: 30px; }
.bdt-comments__title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--bdt-primary); margin: 0 0 18px; }
.bdt-comments__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--bdt-teal-soft);
	color: #0a8c80;
	font-size: .85rem;
}
.bdt-comments__list .comment, .bdt-comments__list .pingback, .bdt-comments__list .trackback { list-style: none; }
.bdt-comments__list .comment-body {
	position: relative;
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: var(--bdt-radius-md);
	box-shadow: var(--bdt-shadow-sm);
	padding: 16px 18px;
	margin-bottom: 14px;
}
.bdt-comments__list .bypostauthor > .comment-body { border-color: var(--bdt-teal-line); box-shadow: inset 4px 0 0 var(--bdt-accent), var(--bdt-shadow-sm); }
.bdt-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--bdt-primary); }
.bdt-comments__list .comment-author img { border-radius: 50%; box-shadow: 0 0 0 3px var(--bdt-teal-soft); }
.bdt-comments__list .comment-metadata { font-size: .78rem; margin: 4px 0 8px; }
.bdt-comments__list .comment-metadata a { color: var(--bdt-muted); }
.bdt-comments__list .comment-content { font-size: .94rem; }
.bdt-comments__list .reply { margin-top: 8px; }
.bdt-comments__list .comment-reply-link {
	display: inline-flex;
	padding: 4px 14px;
	border-radius: 999px;
	background: #f3f7fc;
	border: 1px solid var(--bdt-border);
	font-size: .8rem;
	font-weight: 700;
	color: var(--bdt-primary);
	transition: all .18s ease;
}
.bdt-comments__list .comment-reply-link:hover { background: var(--bdt-teal-soft); color: #0a8c80; border-color: var(--bdt-teal-line); }
.bdt-comments__list .children { list-style: none; margin: 0; padding-inline-start: 24px; border-inline-start: 2px dashed var(--bdt-border); }
.bdt-comments__list .comment-awaiting-moderation { color: #92600a; font-size: .85rem; }
.bdt-comments__closed {
	background: #fdf6e8;
	color: #92600a;
	border: 1px solid #f3ddab;
	border-radius: var(--bdt-radius-sm);
	padding: 12px 16px;
	font-size: .9rem;
}
.bdt-comments__reply-title { color: var(--bdt-primary); font-size: 1.05rem; margin: 0 0 14px; }
.bdt-comments__notes { color: var(--bdt-muted); font-size: .85rem; }
.bdt-comments .comment-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; }
.bdt-comments .comment-form p { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: .88rem; font-weight: 600; color: var(--bdt-primary); }
.bdt-comments .comment-form .comment-form-comment,
.bdt-comments .comment-form .comment-form-cookies-consent,
.bdt-comments .comment-form .form-submit { grid-column: 1 / -1; }
.bdt-comments .comment-form .comment-form-cookies-consent { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--bdt-muted); }
.bdt-comments .comment-form .form-submit { display: flex; }
.bdt-comments .comment-form .submit { font-family: var(--bdt-font); }

/* ---------- ۱۴) اسلایدر تصاویر قالب ---------- */
.bdt-slider {
	position: relative;
	background: #0e2a47;
	border-radius: var(--bdt-radius-lg);
	overflow: hidden;
	box-shadow: var(--bdt-shadow-lg);
	margin: 24px 0;
	direction: rtl;
}
.bdt-slider__viewport { aspect-ratio: 16 / 9; }
.bdt-slider__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.bdt-slider__track::-webkit-scrollbar { display: none; }
.bdt-slider__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; margin: 0; min-width: 0; }
.bdt-slider__img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.bdt-slider__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 40px 18px 14px;
	background: linear-gradient(0deg, rgba(10, 22, 38, .78), transparent);
	color: #fff;
	font-size: .9rem;
	pointer-events: none;
}
.bdt-slider__nav {
	position: absolute;
	top: calc(50% - 22px);
	z-index: 5;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	background: rgba(255, 255, 255, .88);
	color: var(--bdt-primary);
	box-shadow: var(--bdt-shadow-md);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: transform .2s ease, background .2s ease;
}
.bdt-slider__nav:hover { background: #fff; transform: scale(1.08); }
.bdt-slider__nav:active { transform: scale(.96); }
.bdt-slider__nav--next { inset-inline-end: 14px; }
.bdt-slider__nav--prev { inset-inline-start: 14px; }
.bdt-slider__dots {
	position: absolute;
	bottom: 12px;
	inset-inline: 0;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 7px;
	pointer-events: none;
}
.bdt-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	pointer-events: auto;
	transition: all .25s ease;
}
.bdt-slider__dot.is-active { width: 26px; background: #fff; }
.bdt-slider__counter {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 5;
	background: rgba(10, 22, 38, .55);
	color: #fff;
	padding: 4px 13px;
	border-radius: 999px;
	font-size: .78rem;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* ---------- ۱۵) ابزارهای شناور: بازگشت به بالا ---------- */
.bdt-totop {
	position: fixed;
	bottom: 22px;
	inset-inline-end: 22px;
	z-index: 600;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 16px;
	display: grid;
	place-items: center;
	cursor: pointer;
	background: var(--bdt-grad-primary);
	color: #fff;
	box-shadow: var(--bdt-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: all .28s ease;
}
.bdt-totop.is-shown { opacity: 1; visibility: visible; transform: none; }
.bdt-totop:hover { transform: translateY(-3px); }
.bdt-totop:active { transform: scale(.94); }

/* ---------- ۱۶) انیمیشن ظهور هنگام اسکرول ---------- */
html.bdt-js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .3, 1);
	will-change: opacity, transform;
}
html.bdt-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- ۱۷) کلاس عمومی زوم‌پذیر بودن تصاویر ---------- */
.bdt-post__content img,
.bdt-post__thumb img,
figure.wp-block-image img { cursor: zoom-in; }

/* ---------- ۱۸) ریسپانسیو ---------- */
@media (max-width: 1024px) {
	.bdt-main { max-width: 100%; }
}

@media (max-width: 860px) {
	.bdt-main { padding: 18px 14px 48px; }
	.bdt-post { border-radius: 20px; }
	.bdt-post--single .bdt-post__header,
	.bdt-post--single .bdt-post__content { padding-inline: 20px; }
	.bdt-post--single .bdt-post__thumb { margin-inline: 20px; }
	.bdt-404 { padding: 44px 20px; }

	/* زیرمنو به حالت آکاردئونی */
	.bdt-nav { position: relative; }
	.bdt-menu { padding-bottom: 10px; }
	.bdt-menu .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.bdt-menu .menu-item-has-children > a { flex: 1; }
	.bdt-subtoggle { display: grid; position: static; transform: none; margin-inline-start: 6px; }
	.bdt-menu .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-inline-start: 2px solid var(--bdt-teal-line);
		border-radius: 0;
		margin: 4px 12px 4px 0;
		padding: 4px 8px;
		min-width: 0;
		background: #f8fbfd;
	}
	.menu-item-has-children.is-open > .sub-menu { display: block; }
	.bdt-menu .sub-menu .sub-menu { inset-inline-start: auto; }
}

@media (max-width: 640px) {
	body { font-size: 14.5px; }
	.bdt-header__inner { gap: 12px; }
	.bdt-header__actions .bdt-btn--ghost { display: none; }
	.bdt-header__actions .bdt-btn--primary { padding: 8px 13px; font-size: .82rem; }
	.bdt-loop { grid-template-columns: 1fr; }
	.bdt-slider__viewport { aspect-ratio: 4 / 3; }
	.bdt-slider__nav { width: 38px; height: 38px; top: calc(50% - 19px); }
	.bdt-archivehead { padding: 22px 18px; }
	.bdt-postnav__title { font-size: .88rem; }
}

@media (max-width: 420px) {
	.bdt-main { padding: 14px 10px 42px; }
	.bdt-post--single .bdt-post__header,
	.bdt-post--single .bdt-post__content { padding-inline: 16px; }
	.bdt-post--single .bdt-post__thumb { margin-inline: 16px; }
	.bdt-404__actions .bdt-btn { width: 100%; justify-content: center; }
}

/* ---------- ۱۹) احترام به تنظیمات کاهش انیمیشن و چاپ ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.bdt-header, .bdt-footer, .bdt-totop, .bdt-skip, .bdt-slider__nav, .bdt-slider__dots,
	.bdt-crumbs, .bdt-search, .bdt-postnav { display: none !important; }
	body { background: #fff; }
	.bdt-post { box-shadow: none; border: 1px solid #ddd; }
}

/* =====================================================================
 * نسخه ۲.۲.۰ — بخش «کسب‌وکارهای ویژه و برند» زیر جست‌وجوی صفحه اصلی
 * (خروجی شورت‌کد [bizdir_featured] افزونه BizDir؛ استایل مکمل قالب)
 * ===================================================================== */
.bd-featured {
	background: linear-gradient(135deg, rgba(245, 165, 36, .06), rgba(15, 181, 166, .05) 70%);
	border: 1px solid rgba(245, 165, 36, .35);
	border-radius: var(--bdt-radius-lg);
	padding: 22px 20px 24px;
	margin: 18px 0 26px;
}
.bd-featured .bd-section__head { flex-wrap: wrap; gap: 8px; }
.bd-featured .bd-h2 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.15rem;
	color: var(--bdt-primary);
}
.bd-featured .bd-h2 svg { color: var(--bdt-gold); }
.bd-featured__hint { font-size: .82rem; color: var(--bdt-muted); }
.bd-featured__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding: 24px 16px;
	border: 1px dashed var(--bdt-gold);
	border-radius: var(--bdt-radius-md);
	background: rgba(245, 165, 36, .05);
}
.bd-featured__empty p { margin: 0; font-weight: 700; color: var(--bdt-text); }
.bd-featured .bd-grid--4 .bd-card--featured {
	border: 1px solid var(--bdt-gold);
	box-shadow: 0 10px 26px -12px rgba(245, 165, 36, .45);
}
.bd-featured .bd-badge--featured { background: var(--bdt-gold); }
@media (max-width: 640px) {
	.bd-featured { padding: 16px 12px; border-radius: var(--bdt-radius-md); }
	.bd-featured .bd-h2 { font-size: 1rem; }
}
