/* ==========================================================
   Nexura Doctors — استایل فرانت (نسخه ۲)
   رنگ‌ها را می‌توانید با override کردن متغیرهای :root عوض کنید.
   ========================================================== */

:root {
	--nxd-navy: #0b2545;
	--nxd-navy-2: #123a73;
	--nxd-primary: #1d4ed8;
	--nxd-primary-2: #2563eb;
	--nxd-primary-soft: #e8eefb;
	--nxd-bg: #f4f7fc;
	--nxd-surface: #ffffff;
	--nxd-text: #0f172a;
	--nxd-body: #334155;
	--nxd-muted: #64748b;
	--nxd-line: #e6ebf3;
	--nxd-radius: 24px;
	--nxd-radius-sm: 16px;
	--nxd-shadow: 0 1px 2px rgba(11, 37, 69, .04), 0 12px 32px rgba(11, 37, 69, .06);
	--nxd-shadow-hover: 0 2px 4px rgba(11, 37, 69, .05), 0 28px 56px rgba(11, 37, 69, .14);
	--nxd-ease: cubic-bezier(.22, .8, .3, 1);
}

.nxd-single, .nxd-single *, .nxd-archive, .nxd-archive *,
.nxd-grid, .nxd-grid *, .nxd-socials, .nxd-socials *,
.nxd-stats, .nxd-stats *, .nxd-contact, .nxd-contact *,
.nxd-certs, .nxd-certs *, .nxd-lightbox, .nxd-lightbox * {
	box-sizing: border-box;
}

.nxd-single, .nxd-archive, .nxd-grid, .nxd-contact, .nxd-stats,
.nxd-section, .nxd-socials {
	font-family: inherit;
	line-height: 1.7;
}

.nxd-container {
	width: min(1180px, 92%);
	margin-inline: auto;
}

/* ==========================================================
   دکمه‌ها
   ========================================================== */
.nxd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 28px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .3s var(--nxd-ease), box-shadow .3s var(--nxd-ease), background .3s, color .3s, border-color .3s;
}

.nxd-btn .nxd-ui-ico { width: 20px; height: 20px; flex: none; }
.nxd-btn-block { width: 100%; }
.nxd-btn:hover { transform: translateY(-3px); }

.nxd-btn-primary,
.nxd-btn-primary:visited {
	background: linear-gradient(135deg, var(--nxd-primary), var(--nxd-primary-2));
	color: #fff !important;
	box-shadow: 0 10px 26px rgba(29, 78, 216, .28);
}
.nxd-btn-primary:hover,
.nxd-btn-primary:focus {
	background: linear-gradient(135deg, var(--nxd-navy), var(--nxd-navy-2));
	color: #fff !important;
	box-shadow: 0 16px 34px rgba(11, 37, 69, .3);
}

.nxd-btn-light,
.nxd-btn-light:visited {
	background: #fff;
	color: var(--nxd-navy) !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.nxd-btn-light:hover,
.nxd-btn-light:focus {
	background: #fff;
	color: var(--nxd-primary) !important;
	box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.nxd-btn-ghost,
.nxd-btn-ghost:visited {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .4);
	color: #fff !important;
}
.nxd-btn-ghost:hover,
.nxd-btn-ghost:focus {
	background: rgba(255, 255, 255, .16);
	border-color: #fff;
	color: #fff !important;
}

.nxd-btn-soft,
.nxd-btn-soft:visited {
	background: var(--nxd-primary-soft);
	color: var(--nxd-primary) !important;
}
.nxd-btn-soft:hover,
.nxd-btn-soft:focus {
	background: var(--nxd-primary);
	color: #fff !important;
}

/* ==========================================================
   شبکه‌های اجتماعی
   ========================================================== */
.nxd-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.nxd-social {
	--s: var(--nxd-social, #1d4ed8);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	color: var(--s) !important;
	background: #f1f5f9;
	background: color-mix(in srgb, var(--s) 11%, #fff);
	border: 1px solid transparent;
	border-color: color-mix(in srgb, var(--s) 20%, transparent);
	text-decoration: none !important;
	line-height: 1;
	transition: transform .3s var(--nxd-ease), background .25s, color .25s, box-shadow .3s var(--nxd-ease), border-color .25s;
}

.nxd-social .nxd-ico {
	display: block;
	width: 21px;
	height: 21px;
	flex: none;
	fill: currentColor;
}

.nxd-social:hover,
.nxd-social:focus-visible {
	background: var(--s);
	border-color: var(--s);
	color: #fff !important;
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--s) 40%, transparent);
}

/* نام شبکه: برای صفحه‌خوان‌ها همیشه هست، ولی ظاهرش فقط در حالت large */
.nxd-social-name {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* تولتیپ */
.nxd-social::after {
	content: attr(data-label);
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translate(-50%, 4px);
	background: var(--nxd-navy);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.4;
	padding: 4px 10px;
	border-radius: 8px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
	z-index: 20;
}
.nxd-social:hover::after,
.nxd-social:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* اندازه‌ها */
.nxd-socials-small { gap: 8px; }
.nxd-socials-small .nxd-social { width: 36px; height: 36px; border-radius: 12px; }
.nxd-socials-small .nxd-social .nxd-ico { width: 18px; height: 18px; }

.nxd-socials-large .nxd-social {
	width: auto;
	height: 48px;
	padding: 0 20px 0 18px;
	border-radius: 999px;
}
.nxd-socials-large .nxd-social-name {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
	font-size: .9rem;
	font-weight: 800;
}
.nxd-socials-large .nxd-social::after { display: none; }

/* روی پس‌زمینه تیره */
.nxd-theme-dark .nxd-social {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .22);
	color: #fff !important;
}
.nxd-theme-dark .nxd-social:hover,
.nxd-theme-dark .nxd-social:focus-visible {
	background: var(--s);
	border-color: rgba(255, 255, 255, .55);
}

/* ==========================================================
   کارت‌های آمار
   ========================================================== */
.nxd-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}

.nxd-stat {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--nxd-line);
	border-radius: var(--nxd-radius-sm);
}

.nxd-stat-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--nxd-primary-soft);
	color: var(--nxd-primary);
}
.nxd-stat-ico .nxd-ui-ico { width: 20px; height: 20px; }

.nxd-stat-text { min-width: 0; }
.nxd-stat-label { display: block; font-size: .74rem; font-weight: 600; color: var(--nxd-muted); line-height: 1.5; }
.nxd-stat-value { display: block; font-size: .98rem; font-weight: 800; color: var(--nxd-navy); line-height: 1.5; overflow-wrap: anywhere; }

/* ==========================================================
   کارت پزشک (ویجت / شورت‌کد / آرشیو)
   ========================================================== */
.nxd-grid {
	display: grid;
	gap: 24px;
	width: 100%;
}
.nxd-cols-1 { grid-template-columns: minmax(0, 1fr); }
.nxd-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nxd-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nxd-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nxd-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1100px) {
	.nxd-cols-4, .nxd-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.nxd-cols-3, .nxd-cols-4, .nxd-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
	.nxd-cols-2, .nxd-cols-3, .nxd-cols-4, .nxd-cols-5 { grid-template-columns: minmax(0, 1fr); }
}

.nxd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--nxd-surface);
	border: 1px solid var(--nxd-line);
	border-radius: var(--nxd-radius);
	box-shadow: var(--nxd-shadow);
	transition: transform .4s var(--nxd-ease), box-shadow .4s var(--nxd-ease);
}
.nxd-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--nxd-shadow-hover);
}

.nxd-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	margin: 8px 8px 0;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(160deg, #dbe6fb, #b8c9f0);
}
.nxd-card-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 37, 69, .38), transparent 48%);
	pointer-events: none;
}
.nxd-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform .7s var(--nxd-ease);
}
.nxd-card:hover .nxd-card-media img { transform: scale(1.06); }

.nxd-card-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: rgba(11, 37, 69, .32);
}
.nxd-card-placeholder .nxd-ui-ico { width: 42%; height: 42%; stroke-width: 1.2; }

.nxd-card-badge {
	position: absolute;
	z-index: 2;
	inset-inline-start: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--nxd-navy);
	font-size: .76rem;
	font-weight: 800;
	line-height: 1.4;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.nxd-card-badge .nxd-ui-ico { width: 14px; height: 14px; color: var(--nxd-primary); fill: currentColor; }

.nxd-card-body {
	padding: 18px 20px 16px;
	text-align: center;
}

.nxd-card-specialty {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 13px;
	border-radius: 999px;
	background: var(--nxd-primary-soft);
	color: var(--nxd-primary);
	font-size: .78rem;
	font-weight: 800;
	line-height: 1.6;
}

.nxd-card-name {
	margin: 0 0 4px;
	font-size: 1.14rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--nxd-navy);
}
.nxd-card-name a { color: inherit !important; text-decoration: none !important; }
.nxd-card-name a::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* کل کارت قابل‌کلیک */

.nxd-card-title {
	margin: 0 0 8px;
	font-size: .86rem;
	color: var(--nxd-muted);
}

.nxd-card-license {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: .78rem;
	color: var(--nxd-muted);
}
.nxd-card-license .nxd-ui-ico { width: 15px; height: 15px; color: var(--nxd-primary); }

.nxd-card-foot {
	position: relative;
	z-index: 2; /* بالاتر از لینک کل کارت تا آیکون‌ها کلیک‌پذیر بمانند */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: auto 18px 0;
	padding: 16px 0 18px;
	border-top: 1px dashed var(--nxd-line);
}
.nxd-card-foot .nxd-socials { justify-content: center; }

.nxd-card-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .88rem;
	font-weight: 800;
	color: var(--nxd-primary) !important;
	text-decoration: none !important;
}
.nxd-card-more .nxd-ui-ico { width: 16px; height: 16px; transition: transform .3s var(--nxd-ease); }
.nxd-card-more:hover { color: var(--nxd-navy) !important; }
.nxd-card-more:hover .nxd-ui-ico { transform: translateX(-4px); }
[dir="ltr"] .nxd-card-more .nxd-ui-ico { transform: scaleX(-1); }
[dir="ltr"] .nxd-card-more:hover .nxd-ui-ico { transform: scaleX(-1) translateX(-4px); }

.nxd-single-card { max-width: 340px; margin-inline: auto; }
.nxd-empty { text-align: center; color: var(--nxd-muted); padding: 40px 0; }

/* ==========================================================
   صفحه تک‌پزشک
   ========================================================== */
.nxd-single {
	padding: 28px 0 90px;
	background: var(--nxd-bg);
	color: var(--nxd-text);
}

/* ---------- هیرو ---------- */
.nxd-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 4vw, 52px);
	border-radius: 36px;
	color: #fff;
	background: linear-gradient(135deg, #0b2545 0%, #123a73 55%, #1d4ed8 130%);
	box-shadow: 0 30px 70px rgba(11, 37, 69, .28);
}

.nxd-hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}
.nxd-hero-glow-1 { width: 380px; height: 380px; top: -140px; inset-inline-start: -100px; background: rgba(96, 165, 250, .35); }
.nxd-hero-glow-2 { width: 320px; height: 320px; bottom: -150px; inset-inline-end: -60px; background: rgba(45, 212, 191, .22); }

.nxd-hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 60px);
	align-items: center;
}

.nxd-hero-photo { position: relative; margin: 0; }

.nxd-hero-photo-frame {
	aspect-ratio: 4 / 5;
	border-radius: 30px;
	overflow: hidden;
	border: 6px solid rgba(255, 255, 255, .16);
	background: linear-gradient(160deg, #dbe6fb, #9db8ea);
	box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}
.nxd-hero-photo-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.nxd-photo-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: rgba(11, 37, 69, .3);
}
.nxd-photo-placeholder .nxd-ui-ico { width: 46%; height: 46%; stroke-width: 1.1; }

.nxd-hero-badge {
	position: absolute;
	bottom: 26px;
	inset-inline-end: -16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 20px;
	border-radius: 20px;
	background: #fff;
	color: var(--nxd-navy);
	line-height: 1.4;
	text-align: center;
	box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
}
.nxd-hero-badge strong { font-size: 1.2rem; font-weight: 900; color: var(--nxd-primary); }
.nxd-hero-badge span { font-size: .74rem; font-weight: 700; color: var(--nxd-muted); }

.nxd-hero-body { min-width: 0; }

.nxd-chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .13);
	border: 1px solid rgba(255, 255, 255, .24);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: .88rem;
	font-weight: 700;
}

.nxd-single .nxd-hero .nxd-name {
	margin: 14px 0 6px;
	color: #fff;
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: 0;
}

.nxd-subtitle {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, .82);
	font-size: 1.06rem;
	font-weight: 600;
}

.nxd-excerpt {
	margin: 0 0 6px;
	max-width: 62ch;
	color: rgba(255, 255, 255, .76);
	line-height: 1.95;
}

.nxd-hero .nxd-stats { margin-top: 24px; }
.nxd-hero .nxd-stat {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .16);
	backdrop-filter: blur(8px);
}
.nxd-hero .nxd-stat-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.nxd-hero .nxd-stat-label { color: rgba(255, 255, 255, .7); }
.nxd-hero .nxd-stat-value { color: #fff; }

.nxd-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}
.nxd-hero .nxd-socials { margin-top: 24px; }

/* ---------- چیدمان محتوا ---------- */
.nxd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	margin-top: 28px;
	align-items: start;
}

.nxd-main { min-width: 0; }

.nxd-card-box {
	margin: 0 0 24px;
	padding: clamp(22px, 3vw, 36px);
	background: #fff;
	border: 1px solid var(--nxd-line);
	border-radius: var(--nxd-radius);
	box-shadow: var(--nxd-shadow);
}
.nxd-main > :last-child { margin-bottom: 0; }

.nxd-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-size: 1.24rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--nxd-navy);
}
.nxd-section-title::before {
	content: '';
	flex: none;
	width: 6px;
	height: 24px;
	border-radius: 6px;
	background: linear-gradient(180deg, var(--nxd-primary), #60a5fa);
}

.nxd-details .nxd-section + .nxd-section {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px dashed var(--nxd-line);
}

/* بیوگرافی */
.nxd-prose { color: var(--nxd-body); font-size: 1rem; line-height: 2.05; }
.nxd-prose > :first-child { margin-top: 0; }
.nxd-prose > :last-child { margin-bottom: 0; }
.nxd-prose p { margin: 0 0 1em; }
.nxd-prose h2, .nxd-prose h3, .nxd-prose h4 { color: var(--nxd-navy); margin: 1.4em 0 .6em; line-height: 1.5; }
.nxd-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.nxd-prose ul, .nxd-prose ol { padding-inline-start: 1.4em; margin: 0 0 1em; }

/* حوزه فعالیت */
.nxd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nxd-chips li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--nxd-primary-soft);
	color: var(--nxd-navy);
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.6;
	transition: background .25s, color .25s, transform .25s var(--nxd-ease);
}
.nxd-chips li::before {
	content: '';
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nxd-primary);
	transition: background .25s;
}
.nxd-chips li:hover { background: var(--nxd-primary); color: #fff; transform: translateY(-2px); }
.nxd-chips li:hover::before { background: #fff; }

/* تحصیلات و افتخارات */
.nxd-timeline {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nxd-timeline li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 16px;
	border-radius: 16px;
	background: #f8fafc;
	border: 1px solid transparent;
	color: #1e293b;
	font-weight: 600;
	line-height: 1.8;
	transition: border-color .25s, background .25s;
}
.nxd-timeline li:hover { background: #fff; border-color: var(--nxd-line); }
.nxd-timeline-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--nxd-primary-soft);
	color: var(--nxd-primary);
}
.nxd-timeline-ico .nxd-ui-ico { width: 20px; height: 20px; }

/* ---------- ستون کناری (تماس و رزرو) ---------- */
.nxd-side { position: sticky; top: 28px; }

.nxd-contact {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--nxd-line);
	border-radius: var(--nxd-radius);
	box-shadow: var(--nxd-shadow);
}

.nxd-contact-title {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 800;
	color: var(--nxd-navy);
}

.nxd-contact-list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nxd-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
}
.nxd-contact-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: var(--nxd-primary-soft);
	color: var(--nxd-primary);
}
.nxd-contact-ico .nxd-ui-ico { width: 20px; height: 20px; }
.nxd-contact-text { min-width: 0; }
.nxd-contact-label { display: block; font-size: .76rem; font-weight: 600; color: var(--nxd-muted); line-height: 1.6; }
.nxd-contact-value { display: block; font-weight: 700; color: var(--nxd-navy); line-height: 1.8; overflow-wrap: anywhere; }
.nxd-contact-value a { color: var(--nxd-primary); text-decoration: none; }
.nxd-contact-value a:hover { color: var(--nxd-navy); }

.nxd-contact-socials {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px dashed var(--nxd-line);
}

/* ---------- گالری مدارک ---------- */
.nxd-certs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}
.nxd-cert {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--nxd-radius-sm);
	overflow: hidden;
	border: 1px solid var(--nxd-line);
	background: #f1f5f9;
	cursor: zoom-in;
	transition: transform .35s var(--nxd-ease), box-shadow .35s var(--nxd-ease);
}
.nxd-cert::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 37, 69, .35), transparent 55%);
	opacity: 0;
	transition: opacity .3s;
}
.nxd-cert img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--nxd-ease);
}
.nxd-cert:hover { transform: translateY(-4px); box-shadow: var(--nxd-shadow-hover); }
.nxd-cert:hover::after { opacity: 1; }
.nxd-cert:hover img { transform: scale(1.06); }

/* لایت‌باکس */
.nxd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(8, 16, 32, .9);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.nxd-lightbox.is-open { opacity: 1; visibility: visible; }
.nxd-lightbox figure { margin: 0; text-align: center; }
.nxd-lightbox img {
	display: block;
	max-width: min(92vw, 1100px);
	max-height: 82vh;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.nxd-lightbox figcaption { margin-top: 14px; color: #e2e8f0; font-size: .92rem; }
.nxd-lightbox-close {
	position: absolute;
	top: 18px;
	inset-inline-end: 22px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .25s;
}
.nxd-lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ==========================================================
   آرشیو پزشکان
   ========================================================== */
.nxd-archive { padding: 56px 0 90px; background: var(--nxd-bg); }
.nxd-archive-head { text-align: center; margin-bottom: 44px; }
.nxd-archive-title {
	margin: 0 0 10px;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	color: var(--nxd-navy);
	line-height: 1.3;
}
.nxd-archive-sub { margin: 0; color: var(--nxd-muted); font-size: 1.05rem; }
.nxd-pagination { margin-top: 44px; text-align: center; }
.nxd-pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nxd-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--nxd-line);
	color: var(--nxd-navy);
	font-weight: 700;
	text-decoration: none;
	transition: all .25s;
}
.nxd-pagination .page-numbers.current,
.nxd-pagination .page-numbers:hover { background: var(--nxd-primary); border-color: var(--nxd-primary); color: #fff; }

/* ==========================================================
   ریسپانسیو
   ========================================================== */
@media (max-width: 960px) {
	.nxd-layout { grid-template-columns: minmax(0, 1fr); }
	.nxd-side { position: static; }
}

@media (max-width: 860px) {
	.nxd-hero { border-radius: 28px; }
	.nxd-hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.nxd-hero-photo { max-width: 290px; margin-inline: auto; }
	.nxd-hero-badge { inset-inline-end: 10px; bottom: 16px; padding: 10px 16px; }
	.nxd-excerpt { margin-inline: auto; }
	.nxd-stat { text-align: start; }
	.nxd-hero-actions,
	.nxd-hero .nxd-socials { justify-content: center; }
}

@media (max-width: 560px) {
	.nxd-single { padding-top: 16px; }
	.nxd-hero-actions .nxd-btn { width: 100%; }
	.nxd-contact { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.nxd-card, .nxd-card *, .nxd-social, .nxd-btn, .nxd-cert, .nxd-cert *, .nxd-chips li {
		transition: none !important;
		transform: none !important;
	}
}
