/*!
 * SinaCare UI layer – assets/css/sinacare-ui.css
 * =============================================================================
 * لایه طراحی جدید که «بعد از» style.css / responsive.css / rtl.css لود می‌شود.
 * فایل‌های قدیمی دست‌نخورده‌اند؛ هر چیزی این‌جا بازنویسی شده.
 *
 *  1. توکن‌ها (رنگ لوگو + مقیاس فونت: پاراگراف ۱۴px)
 *  2. پایه: مقیاس فونت سراسری، فوکوس، skip-link، دکمه‌ها
 *  3. هدر و منوی دسکتاپ (منو دقیقاً وسط)
 *  4. کشوی منوی موبایل (راست‌چین)
 *  5. پنجره جستجو و فرم جستجو
 *  6. مقاله و آرشیوها – مینیمال (ظاهر قالب اصلی حفظ شده؛ فقط اصلاحات لازم)
 *  7. فوتر
 *  8. صفحه نتایج جستجو
 *  9. کاهش حرکت
 * 12. پروفایل پزشکان و نویسندگان
 *
 * کنتراست‌ها (WCAG 2.1):
 *   #006aa8 روی سفید 5.79 | روی #eef4f7 5.22  → رنگ اصلی تعاملی (AA)
 *   #005f99 روی سفید 6.78                      → لینک داخل متن مقاله (AA)
 *   #00776f روی سفید 5.43                      → متن فیروزه‌ای
 *   #526173 روی سفید 6.33 | روی #f2f8fc 5.91  → متن کم‌رنگ
 *   رنگ‌های خالص لوگو (#0079c2 / #00a99d / #7cc242) فقط برای المان‌های تزئینی.
 * =============================================================================
 */

/* =============================================================================
 * 1. توکن‌ها
 * ========================================================================== */
:root {
	/* مقیاس فونت یکدست: پاراگراف ۱۴px، بقیه به نسبت آن (مثل قالب اصلی) */
	--fs-xs: 12px;
	--fs-sm: 13px;
	--fs-base: 14px;
	--fs-h3: 16px;
	--fs-h2: 18px;
	--fs-h1: 20px;

	/* رنگ‌های لوگو */
	--sc-logo-blue: #0079c2;
	--sc-logo-teal: #00a99d;
	--sc-logo-green: #7cc242;

	/* رنگ‌های کاربردی (کنتراست استاندارد) */
	--sc-primary: #006aa8;
	--sc-primary-hover: #005588;
	--sc-link: #005f99;
	--sc-teal: #00776f;
	--sc-green: #4a7f1f;
	--sc-ink: #13253d;
	--sc-text: #3f4d5e;
	--sc-muted: #526173;
	--sc-soft: #f2f8fc;
	--sc-soft-2: #e6f1f9;
	--sc-border: #dbe7f0;
	--sc-white: #ffffff;
	--sc-gradient: linear-gradient(90deg, var(--sc-logo-green) 0%, var(--sc-logo-teal) 45%, var(--sc-logo-blue) 100%);
	--sc-gradient-btn: linear-gradient(135deg, #0079c2 0%, #006aa8 100%);

	--sc-radius: 14px;
	--sc-radius-sm: 10px;
	--sc-shadow: 0 10px 30px rgba(19, 37, 61, .10);
	--sc-shadow-sm: 0 2px 10px rgba(19, 37, 61, .06);
	--sc-header-h: 64px;
	--sc-ease: cubic-bezier(.2, .8, .2, 1);

	/* اصلاح متغیرهای قالب اصلی: #2a96ff کنتراست 3.0 داشت (خطای PageSpeed)
	   همه رنگ‌های متن style.css / rtl.css / responsive.css هم به همین ۵ توکن نگاشت شد:
	   ink #13253d (تیتر) | text #3f4d5e (متن) | muted #526173 (متا) | primary #006aa8 | link #005f99 */
	--mainColor: var(--sc-primary);
	--optionalColor: var(--sc-muted);
	--blackColor: var(--sc-ink);
}

@media (min-width: 992px) {
	:root { --sc-header-h: 76px; --fs-h1: 22px; }
}

/* =============================================================================
 * 2. پایه
 * ========================================================================== */
/* مقیاس فونت یکدست در کل سایت (Bootstrap برای h1 تا ۴۰px می‌داد) */
/* رنگ متن یکدست: تیتر = ink، متن = text، توضیح/متا = muted، لینک = link/primary */
body { font-size: var(--fs-base); color: var(--sc-text); }
h1, h2, h3, h4, h5, h6 { color: var(--sc-ink); }
p, li, td, th, dd, label { color: inherit; }
::placeholder { color: var(--sc-muted); opacity: 1; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, h5, h6, .h4, .h5, .h6 { font-size: var(--fs-base); }
.widget-area .widget .widget-title { font-size: var(--fs-h3); }

html { scroll-padding-top: calc(var(--sc-header-h) + 12px); }
html.sc-lock { overflow: hidden; }

:focus-visible {
	outline: 3px solid var(--sc-logo-teal);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.sc-skip-link {
	position: absolute;
	inset-inline-start: 12px;
	top: -60px;
	z-index: 10001;
	padding: 10px 16px;
	background: var(--sc-ink);
	color: #fff !important;
	border-radius: var(--sc-radius-sm);
	transition: top .2s var(--sc-ease);
}
.sc-skip-link:focus { top: 12px; }

.sc-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.sc-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--sc-ink);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.sc-icon-btn:hover { background: var(--sc-soft); color: var(--sc-primary); }
.sc-icon-btn--soft { background: var(--sc-soft); }

.sc-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 999px;
	font-size: var(--fs-base);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.sc-cta i { font-size: 20px; }
.sc-cta--primary {
	background: var(--sc-gradient-btn);
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(0, 106, 168, .25);
}
.sc-cta--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0, 106, 168, .32); }
.sc-cta--ghost {
	background: var(--sc-white);
	color: var(--sc-primary) !important;
	border: 1.5px solid var(--sc-border);
}
.sc-cta--ghost:hover { border-color: var(--sc-primary); }

/* =============================================================================
 * 3. هدر و منوی دسکتاپ
 *    sticky (نه fixed با JS) → محتوای صفحه هرگز جابه‌جا نمی‌شود.
 * ========================================================================== */
.sc-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--sc-header-h);
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--sc-border);
	transition: box-shadow .25s ease;
}
.admin-bar .sc-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .sc-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .sc-header { top: 0; }
}
.sc-header.is-scrolled { box-shadow: 0 6px 24px rgba(19, 37, 61, .08); }

.sc-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
}

/* لوگو: ارتفاع ثابت + width/height در HTML → بدون CLS */
.sc-logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.sc-logo__img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
@media (min-width: 992px) {
	.sc-logo__img { height: 42px; max-width: 180px; }
}

/* همبرگری – فقط موبایل/تبلت */
.sc-header__burger { margin-inline-start: -8px; }
.sc-burger { position: relative; display: block; width: 22px; height: 16px; }
.sc-burger span {
	position: absolute;
	inset-inline-start: 0;
	height: 2.4px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .25s var(--sc-ease), opacity .2s ease, width .25s var(--sc-ease);
}
.sc-burger span:nth-child(1) { top: 0; width: 22px; }
.sc-burger span:nth-child(2) { top: 7px; width: 16px; }
.sc-burger span:nth-child(3) { top: 14px; width: 22px; }
.sc-header__burger:hover .sc-burger span:nth-child(2) { width: 22px; }

/* عملیات سمت چپ */
.sc-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.sc-search-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sc-border);
	border-radius: 999px;
	background: var(--sc-soft);
	color: var(--sc-ink);
	font: inherit;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.sc-search-trigger i { font-size: 21px; line-height: 1; }
.sc-search-trigger__label { display: none; font-size: var(--fs-base); color: var(--sc-muted); }
.sc-search-trigger:hover { border-color: var(--sc-primary); color: var(--sc-primary); background: #fff; }

/* منوی دسکتاپ */
.sc-nav { display: none; }

@media (max-width: 991.98px) {
	.sc-header .sc-logo { margin-inline-start: 2px; }
}

@media (min-width: 992px) {
	.sc-header__burger { display: none; }
	/* سه ستون: لوگو (راست) | منو (دقیقاً وسط) | جستجو (چپ) */
	.sc-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
	.sc-header .sc-logo { justify-self: start; }
	.sc-header__actions { justify-self: end; margin-inline-start: 0; }

	.sc-search-trigger { width: auto; min-width: 150px; padding: 0 16px; justify-content: flex-start; }
	.sc-search-trigger__label { display: inline; }

	.sc-nav { display: block; min-width: 0; }
	.sc-menu--desktop { justify-content: center; }

	.sc-menu--desktop {
		display: flex;
		align-items: center;
		gap: 4px;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.sc-menu--desktop > .sc-menu__item { position: relative; }

	.sc-menu--desktop .sc-menu__row { display: flex; align-items: center; }

	.sc-menu--desktop > .sc-menu__item > a,
	.sc-menu--desktop > .sc-menu__item > .sc-menu__row > a {
		position: relative;
		display: flex;
		align-items: center;
		height: var(--sc-header-h);
		padding: 0 10px;
		color: var(--sc-ink);
		font-size: var(--fs-base);
		font-weight: 600;
		white-space: nowrap;
		transition: color .2s ease;
	}
	.sc-menu--desktop > .sc-menu__item.has-children > .sc-menu__row > a { padding-inline-end: 2px; }

	/* خط فعال/هاور زیر آیتم (با گرادیان لوگو) */
	.sc-menu--desktop > .sc-menu__item > a::after,
	.sc-menu--desktop > .sc-menu__item > .sc-menu__row > a::after {
		content: "";
		position: absolute;
		inset-inline: 10px;
		bottom: 14px;
		height: 3px;
		border-radius: 3px;
		background: var(--sc-gradient);
		transform: scaleX(0);
		transform-origin: right center;
		transition: transform .25s var(--sc-ease);
	}
	.sc-menu--desktop > .sc-menu__item:hover > a,
	.sc-menu--desktop > .sc-menu__item:hover > .sc-menu__row > a,
	.sc-menu--desktop > .sc-menu__item.is-current > a,
	.sc-menu--desktop > .sc-menu__item.is-current > .sc-menu__row > a { color: var(--sc-primary); }
	.sc-menu--desktop > .sc-menu__item:hover > a::after,
	.sc-menu--desktop > .sc-menu__item:hover > .sc-menu__row > a::after,
	.sc-menu--desktop > .sc-menu__item.is-current > a::after,
	.sc-menu--desktop > .sc-menu__item.is-current > .sc-menu__row > a::after { transform: scaleX(1); }

	.sc-menu--desktop .sc-menu__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 26px;
		height: 32px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--sc-muted);
		cursor: pointer;
		border-radius: 8px;
	}
	.sc-menu--desktop .sc-menu__toggle svg { transition: transform .2s ease; }
	.sc-menu--desktop .has-children:hover > .sc-menu__row .sc-menu__toggle,
	.sc-menu--desktop .has-children.is-open > .sc-menu__row .sc-menu__toggle { color: var(--sc-primary); }
	.sc-menu--desktop .has-children:hover > .sc-menu__row .sc-menu__toggle svg,
	.sc-menu--desktop .has-children.is-open > .sc-menu__row .sc-menu__toggle svg { transform: rotate(180deg); }

	/* زیرمنو (کارت) */
	.sc-menu--desktop .sc-submenu {
		position: absolute;
		top: calc(100% - 8px);
		inset-inline-start: 0;
		z-index: 20;
		min-width: 240px;
		margin: 0;
		padding: 8px;
		list-style: none;
		background: #fff;
		border: 1px solid var(--sc-border);
		border-radius: var(--sc-radius);
		box-shadow: var(--sc-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .18s ease, transform .18s var(--sc-ease), visibility 0s linear .18s;
	}
	.sc-menu--desktop .has-children:hover > .sc-submenu,
	.sc-menu--desktop .has-children:focus-within > .sc-submenu,
	.sc-menu--desktop .has-children.is-open > .sc-submenu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity .18s ease, transform .18s var(--sc-ease);
	}
	.sc-menu--desktop .sc-submenu .sc-menu__item { position: relative; }
	.sc-menu--desktop .sc-submenu a {
		display: block;
		flex: 1 1 auto;
		padding: 10px 12px;
		border-radius: var(--sc-radius-sm);
		color: var(--sc-text);
		font-size: var(--fs-base);
		font-weight: 500;
		line-height: 1.6;
		white-space: normal;
		transition: background-color .15s ease, color .15s ease;
	}
	.sc-menu--desktop .sc-submenu a:hover,
	.sc-menu--desktop .sc-submenu .is-current > a,
	.sc-menu--desktop .sc-submenu .is-current > .sc-menu__row > a { background: var(--sc-soft); color: var(--sc-primary); }

	/* سطح سوم: به سمت چپ باز می‌شود */
	.sc-menu--desktop .sc-submenu .sc-submenu { top: -9px; inset-inline-start: 100%; }
	.sc-menu--desktop .sc-submenu .sc-menu__toggle svg { transform: rotate(90deg); }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.sc-header__inner { gap: 16px; }
	.sc-menu--desktop > .sc-menu__item > a,
	.sc-menu--desktop > .sc-menu__item > .sc-menu__row > a { padding: 0 7px; font-size: var(--fs-base); }
	.sc-search-trigger { min-width: 44px; padding: 0; justify-content: center; }
	.sc-search-trigger__label { display: none; }
}

/* =============================================================================
 * 4. کشوی منوی موبایل (از راست باز می‌شود)
 * ========================================================================== */
.sc-drawer,
.sc-search {
	position: fixed;
	inset: 0;
	z-index: 10000;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear .3s;
}
.sc-drawer.is-open,
.sc-search.is-open {
	visibility: visible;
	pointer-events: auto;
	transition: none;
}

.sc-drawer__overlay,
.sc-search__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 39, 71, .5);
	opacity: 0;
	transition: opacity .3s ease;
}
.is-open > .sc-drawer__overlay,
.is-open > .sc-search__overlay { opacity: 1; }

.sc-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(86vw, 360px);
	background: #fff;
	box-shadow: -12px 0 40px rgba(15, 39, 71, .18);
	transform: translateX(100%);
	transition: transform .3s var(--sc-ease);
	overscroll-behavior: contain;
}
.sc-drawer.is-open .sc-drawer__panel { transform: translateX(0); }

.sc-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--sc-border);
	position: relative;
}
.sc-drawer__head::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 3px;
	background: var(--sc-gradient);
}

.sc-drawer__nav { flex: 1 1 auto; overflow-y: auto; padding: 8px 0; -webkit-overflow-scrolling: touch; }

.sc-menu--drawer,
.sc-menu--drawer .sc-submenu { margin: 0; padding: 0; list-style: none; }

.sc-menu--drawer .sc-menu__item { border-bottom: 1px solid #eef3f7; }
.sc-menu--drawer .sc-submenu .sc-menu__item { border-bottom: 0; }

.sc-menu--drawer .sc-menu__row { display: flex; align-items: stretch; }

.sc-menu--drawer a {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-height: 52px;
	padding: 10px 20px;
	color: var(--sc-ink);
	font-size: var(--fs-base);
	font-weight: 600;
	line-height: 1.6;
}
.sc-menu--drawer .is-current > a,
.sc-menu--drawer .is-current > .sc-menu__row > a { color: var(--sc-primary); }
.sc-menu--drawer > .is-current > a::before,
.sc-menu--drawer > .is-current > .sc-menu__row > a::before {
	content: "";
	position: absolute;
	right: 0;
	top: 12px;
	bottom: 12px;
	width: 4px;
	border-radius: 4px 0 0 4px;
	background: var(--sc-gradient);
}

.sc-menu--drawer .sc-menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	min-height: 52px;
	padding: 0;
	border: 0;
	border-inline-start: 1px solid #eef3f7;
	background: transparent;
	color: var(--sc-muted);
	cursor: pointer;
}
.sc-menu--drawer .sc-menu__toggle svg { transition: transform .2s ease; }
.sc-menu--drawer .is-open > .sc-menu__row > .sc-menu__toggle { color: var(--sc-primary); }
.sc-menu--drawer .is-open > .sc-menu__row > .sc-menu__toggle svg { transform: rotate(180deg); }

.sc-menu--drawer .sc-submenu {
	display: none;
	padding: 4px 0 10px;
	background: var(--sc-soft);
}
.sc-menu--drawer .is-open > .sc-submenu { display: block; }
.sc-menu--drawer .sc-submenu a {
	min-height: 44px;
	padding: 8px 34px 8px 20px;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--sc-text);
}
.sc-menu--drawer .sc-submenu .sc-submenu a { padding-right: 48px; }
.sc-menu--drawer .sc-submenu a::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--sc-logo-teal);
	opacity: .7;
}

.sc-drawer__foot {
	display: grid;
	gap: 10px;
	padding: 16px;
	border-top: 1px solid var(--sc-border);
	background: linear-gradient(180deg, #fff 0%, var(--sc-soft) 100%);
}
.sc-drawer__foot .sc-cta { width: 100%; }

@media (min-width: 992px) {
	.sc-drawer { display: none; }
}

/* =============================================================================
 * 5. پنجره جستجو + فرم جستجو
 * ========================================================================== */
.sc-search__panel {
	position: absolute;
	top: 0;
	inset-inline: 0;
	padding: 18px 0 26px;
	background: #fff;
	border-radius: 0 0 22px 22px;
	box-shadow: 0 20px 50px rgba(15, 39, 71, .18);
	transform: translateY(-100%);
	transition: transform .3s var(--sc-ease);
}
.sc-search.is-open .sc-search__panel { transform: translateY(0); }
.sc-search__inner { max-width: 760px; }

.sc-search__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sc-search__title { margin: 0; color: var(--sc-ink); font-size: var(--fs-h3); font-weight: 700; }
.sc-search__hint { margin: 18px 0 10px; color: var(--sc-muted); font-size: var(--fs-sm); }

.sc-search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	background: #fff;
	border: 2px solid var(--sc-border);
	border-radius: 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.sc-search-form:focus-within { border-color: var(--sc-primary); box-shadow: 0 0 0 4px rgba(0, 121, 194, .12); }
.sc-search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	padding: 0 12px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--sc-ink);
	font: inherit;
	font-size: 16px; /* جلوگیری از زوم خودکار iOS */
}
.sc-search-form__input::placeholder { color: var(--sc-muted); }
.sc-search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sc-search-form__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: var(--sc-gradient-btn);
	color: #fff;
	font: inherit;
	font-size: var(--fs-base);
	font-weight: 700;
	cursor: pointer;
}
.sc-search-form__btn i { font-size: 20px; }
.sc-search-form__btn:hover { filter: brightness(.95); }
@media (max-width: 575.98px) {
	.sc-search-form__btn { width: 46px; padding: 0; }
	.sc-search-form__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--sc-soft);
	border: 1px solid var(--sc-border);
	color: var(--sc-link) !important;
	font-size: var(--fs-sm);
	transition: background-color .15s ease, border-color .15s ease;
}
.sc-chip:hover { background: #fff; border-color: var(--sc-primary); }

/* =============================================================================
 * 6. صفحه مقاله – مینیمال: فقط خوانایی و دسترس‌پذیری؛ ظاهر قالب اصلی حفظ شده
 * ========================================================================== */

#breadcrumbs,
#breadcrumbs a,
.breadcrumb_last { font-size: var(--fs-xs) !important; }
#breadcrumbs a { color: var(--sc-link); }

.blog-details-desc h1 { font-size: var(--fs-h1); line-height: 1.6; }

/* تصویر شاخص (LCP) */
.sc-article-cover { margin: 0 0 15px; }
.sc-article-cover__img { display: block; width: 100%; height: auto; }

/* متای مقاله: #999 کنتراست کافی نداشت */
.article-header .entry-meta span { color: var(--sc-muted); }
.article-header .entry-meta a { color: var(--sc-link); }

/* لینک داخل متن: زیرخط (PageSpeed: لینک فقط با رنگ قابل تشخیص نیست) */
.blog-details-desc .article-content p a,
.blog-details-desc .article-content li a,
.blog-details-desc .article-content td a {
	color: var(--sc-link);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.blog-details-desc .article-content img { max-width: 100%; height: auto; }

/* فاصله‌گذاری استاندارد متن مقاله (پاراگراف، تیترها، لیست‌ها) – همه بر پایه ۱۴px */
.blog-details-desc .article-content p,
.blog-details-desc .article-content li { line-height: 2; }           /* ۲۸px برای متن و بولت یکسان */
.blog-details-desc .article-content p { margin: 0 0 16px; }
.blog-details-desc .article-content h2 { margin: 32px 0 12px; line-height: 1.7; }
.blog-details-desc .article-content h3 { margin: 24px 0 10px; line-height: 1.7; }
.blog-details-desc .article-content h4 { margin: 20px 0 8px; line-height: 1.7; }
.blog-details-desc .article-content h2 + p,
.blog-details-desc .article-content h3 + p,
.blog-details-desc .article-content h4 + p { margin-top: 0; }
.blog-details-desc .article-content ul,
.blog-details-desc .article-content ol { margin: 0 0 16px; padding: 0 22px 0 0; }   /* راست‌چین: تورفتگی از راست */
.blog-details-desc .article-content ul { list-style: disc; }
.blog-details-desc .article-content ol { list-style: decimal; }
.blog-details-desc .article-content li { margin: 0 0 6px; padding: 0; }
.blog-details-desc .article-content li::marker { color: var(--sc-primary); }
.blog-details-desc .article-content li > ul,
.blog-details-desc .article-content li > ol { margin: 6px 0 0; }
.blog-details-desc .article-content ul li a,
.blog-details-desc .article-content ol li a { line-height: inherit; }

/* CTA تصویری مقاله (منتقل‌شده از functions.php) */
.arhp-article-cta { width: 100%; margin: 30px 0; clear: both; }
.arhp-article-cta-link { display: block; width: 100%; overflow: hidden; border-radius: 12px; text-decoration: none !important; }
.arhp-article-cta-link img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 !important; padding: 0 !important; border: 0 !important; transition: transform .3s ease; }
.arhp-article-cta-link:hover img { transform: scale(1.02); }
@media (max-width: 767px) {
	.arhp-article-cta { margin: 25px 0; }
}


/* =============================================================================
 * آرشیوها و صفحات – ظاهر قالب اصلی؛ فقط اصلاحات لازم
 * ========================================================================== */

/* عنوان کارت‌ها برای سئو H2 شد؛ اندازه مثل H3 قبلی */
.single-blog-post .post-content h2 { margin-bottom: 15px; font-size: var(--fs-base); }
.single-blog-post .post-image img,
.single-products-box .image img { height: auto; }

/* توضیحات دسته/برچسب (محتوای یکتا برای سئو) */
.sc-archive-desc { margin: -20px 0 30px; font-size: var(--fs-base); }

/* صفحه‌بندی: رنگ فعال #2a96ff کنتراست کافی نداشت */
.wp-pagenavi span.current { background-color: var(--sc-primary) !important; border-color: var(--sc-primary) !important; }

/* 404 و آرشیو اخبار */
.error-content h1 { margin: 45px 0 20px; font-size: var(--fs-h1); }
.sc-404-search { max-width: 560px; margin: 26px auto 0; }
.sc-news-card h2 { font-size: var(--fs-base); }
.sc-news-card img { width: 100%; height: auto; }

/* محافظت هدر/منو/فوتر در برابر استایل‌های صفحه‌ای (مثل *{text-align:justify}) */
.sc-header *, .sc-drawer *, .sc-search *, .sc-footer * { text-align: start; }

/* آیکن‌ها در اجزای جدید: عرض ثابت (بدون پرش هنگام لود فونت آیکن) */
.sc-header .bx, .sc-drawer .bx, .sc-footer i, .sc-author-facts .bx, .sc-author-links .bx { display: inline-block; width: 1em; text-align: center; }

/* =============================================================================
 * 7. فوتر
 * ========================================================================== */
.sc-footer {
	position: relative;
	margin-top: 48px;
	background: linear-gradient(180deg, var(--sc-soft) 0%, #eaf3f9 100%);
	color: var(--sc-text);
}
.sc-footer__brandbar { height: 4px; background: var(--sc-gradient); }
.sc-footer__grid { padding-top: 40px; padding-bottom: 12px; row-gap: 8px; }
.sc-footer__col { margin-bottom: 26px; }

.sc-footer__title {
	position: relative;
	margin: 0 0 16px;
	padding-bottom: 10px;
	color: var(--sc-primary-hover);
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1.6;
}
.sc-footer__title::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--sc-gradient);
}

.sc-footer__links,
.sc-footer__links ul,
.sc-footer__contact,
.sc-footer__social { margin: 0; padding: 0; list-style: none; }

/* wp_list_bookmarks گاهی عنوان گروه پیوند را هم چاپ می‌کند */
.sc-footer__links .linkcat > h2 { margin: 0 0 6px; color: var(--sc-muted); font-size: var(--fs-sm); font-weight: 600; }

.sc-footer__links li a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 4px 0;
	color: var(--sc-text);
	font-size: var(--fs-base);
	line-height: 1.7;
	transition: color .15s ease, transform .15s ease;
}
.sc-footer__links li a::before {
	content: "";
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-radius: 50%;
	background: var(--sc-logo-teal);
	opacity: .55;
	transition: opacity .15s ease;
}
.sc-footer__links li a:hover { color: var(--sc-primary); transform: translateX(-3px); }
.sc-footer__links li a:hover::before { opacity: 1; }

.sc-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--sc-text);
	font-size: var(--fs-base);
	line-height: 1.9;
}
.sc-footer__contact i { flex: 0 0 auto; margin-top: 2px; color: var(--sc-teal); font-size: 18px; line-height: 1.6; }
.sc-footer__contact address { margin: 0; font-style: normal; }
.sc-footer__contact a { color: var(--sc-ink); font-weight: 600; }
.sc-footer__contact a:hover { color: var(--sc-primary); }

.sc-footer__social { display: flex; gap: 10px; margin-top: 6px; }
.sc-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--sc-border);
	color: var(--sc-primary);
	font-size: 24px;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sc-footer__social a:hover { background: var(--sc-primary); border-color: var(--sc-primary); color: #fff; }

.sc-footer__bottom { border-top: 1px solid var(--sc-border); background: rgba(255, 255, 255, .6); }
.sc-footer__bottom p { margin: 0; padding: 14px 0; color: var(--sc-muted); font-size: var(--fs-xs); line-height: 1.9; text-align: center; }

@media (max-width: 767.98px) {
	.sc-footer { margin-top: 32px; }
	.sc-footer__grid { padding-top: 28px; }
	.sc-footer__col { margin-bottom: 20px; }
	/* فاصله برای پاپ‌آپ اپلیکیشن / دکمه بالا */
	.sc-footer__bottom p { padding-bottom: 76px; }
}

/* =============================================================================
 * 8. صفحه نتایج جستجو
 * ========================================================================== */
.sc-search-page { padding: 28px 0 20px; }
.sc-search-page__head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.sc-search-page__title { margin: 0 0 6px; color: var(--sc-ink); font-size: var(--fs-h1); line-height: 1.7; }
.sc-search-page__count { margin: 0 0 16px; color: var(--sc-muted); font-size: var(--fs-sm); }

.sc-card {
	display: flex;
	flex-direction: column;
	height: calc(100% - 24px);
	margin-bottom: 24px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	transition: box-shadow .2s ease, transform .2s ease;
}
.sc-card:hover { box-shadow: var(--sc-shadow); transform: translateY(-2px); }
.sc-card__media { display: block; aspect-ratio: 16 / 9; background: var(--sc-soft); overflow: hidden; }
.sc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sc-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sc-soft) 0%, var(--sc-soft-2) 100%); }
.sc-card__body { padding: 14px 16px 18px; }
.sc-card__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e7f6f4;
	color: var(--sc-teal);
	font-size: var(--fs-xs);
	font-weight: 700;
}
.sc-card__title { margin: 0; font-size: var(--fs-base); line-height: 1.9; }
.sc-card__title a { color: var(--sc-ink); }
.sc-card__title a:hover { color: var(--sc-primary); }

.sc-empty { max-width: 640px; margin: 0 auto 40px; padding: 28px; text-align: center; background: var(--sc-soft); border: 1px dashed var(--sc-border); border-radius: var(--sc-radius); }
.sc-empty__title { color: var(--sc-ink); font-size: var(--fs-h3); font-weight: 700; }
.sc-empty .sc-chips { justify-content: center; margin-top: 14px; }

.sc-pagination { margin: 10px 0 30px; }
.sc-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--sc-border);
	background: #fff;
	color: var(--sc-ink);
	font-weight: 600;
}
.sc-pagination .page-numbers.current,
.sc-pagination .page-numbers:hover { background: var(--sc-primary); border-color: var(--sc-primary); color: #fff; }

/* =============================================================================
 * 9. کاهش حرکت
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =============================================================================
 * 12. پروفایل نویسنده / پزشک (YMYL – E-E-A-T)
 * ========================================================================== */
.sc-author-hero { padding: 32px 0 8px; }
.sc-author-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 22px;
	align-items: start;
	padding: 24px;
	background: linear-gradient(180deg, var(--sc-soft) 0%, #fff 100%);
	border: 1px solid var(--sc-border);
	border-radius: 20px;
}
.sc-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--sc-gradient);
	color: #fff;
	font-size: 32px;
	font-weight: 800;
	flex-shrink: 0;
}
.sc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sc-avatar--sm { width: 64px; height: 64px; font-size: 20px; }
.sc-author-card h1 { margin: 0 0 4px; color: var(--sc-ink); font-size: var(--fs-h1); line-height: 1.6; }
.sc-author-card__title { margin: 0 0 12px; color: var(--sc-teal); font-weight: 700; font-size: var(--fs-base); }
.sc-author-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.sc-author-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--sc-border); color: var(--sc-text); font-size: var(--fs-sm); }
.sc-author-facts i { color: var(--sc-primary); font-size: 17px; }
.sc-author-bio { color: var(--sc-text); line-height: 2.05; font-size: var(--fs-base); }
.sc-author-bio p:last-child { margin-bottom: 0; }
.sc-author-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.sc-author-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--sc-border); background: #fff; color: var(--sc-link); font-size: var(--fs-sm); font-weight: 600; }
.sc-author-links a:hover { border-color: var(--sc-primary); }
.sc-author-section-title { margin: 30px 0 18px; color: var(--sc-ink); font-size: var(--fs-h2); }
@media (max-width: 575.98px) {
	.sc-author-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px 16px; }
	.sc-author-facts, .sc-author-links { justify-content: center; }
}

/* باکس نویسنده/بازبین در انتهای مقاله */
.sc-byline { display: grid; gap: 12px; margin: 30px 0 10px; }
.sc-byline__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: center;
	padding: 16px;
	background: var(--sc-soft);
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
}
.sc-byline__role { display: block; color: var(--sc-muted); font-size: var(--fs-xs); }
.sc-byline__name { color: var(--sc-ink); font-size: var(--fs-base); font-weight: 700; }
.sc-byline__name:hover { color: var(--sc-primary); }
.sc-byline__meta { display: block; margin-top: 2px; color: var(--sc-teal); font-size: var(--fs-sm); font-weight: 600; }
.sc-byline__bio { margin: 6px 0 0; color: var(--sc-text); font-size: var(--fs-sm); line-height: 1.9; }

/* کارت پزشک/نویسنده در آرشیو /doctors/ و /writers/ */
.sc-person-card {
	display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
	height: calc(100% - 24px); margin-bottom: 24px; padding: 18px;
	background: #fff; border: 1px solid var(--sc-border); border-radius: var(--sc-radius);
	transition: box-shadow .2s ease, transform .2s ease;
}
.sc-person-card:hover { box-shadow: var(--sc-shadow); transform: translateY(-2px); }
.sc-person-card h2 { margin: 0 0 4px; font-size: var(--fs-h3); line-height: 1.7; }
.sc-person-card h2 a { color: var(--sc-ink); }
.sc-person-card h2 a:hover { color: var(--sc-primary); }
.sc-person-card__title { margin: 0; color: var(--sc-teal); font-size: var(--fs-sm); font-weight: 600; }
.sc-person-card__tags { margin: 4px 0 0; color: var(--sc-muted); font-size: var(--fs-xs); }
