/* =========================================================
   Tabassom Doctor Profile — RTL
   رنگ‌ها از Global Colors المنتور خوانده می‌شوند (با مقدار پیش‌فرض تبسم)
   ========================================================= */

.tbdp {
	--tbdp-primary: var(--e-global-color-primary, #2A3F82);
	--tbdp-text: var(--e-global-color-text, #253775);
	--tbdp-green: var(--e-global-color-secondary, #5BBC7B);
	--tbdp-accent: var(--e-global-color-accent, #73D891);
	--tbdp-bg: var(--e-global-color-3cc5c37, #F8F9F4);

	display: flex;
	flex-direction: column;
	gap: 28px;
	direction: rtl;
	text-align: right;
	font-family: "iransans", Tahoma, sans-serif;
	color: var(--tbdp-text);
}
.tbdp *, .tbdp *::before, .tbdp *::after { box-sizing: border-box; }
.tbdp a { text-decoration: none; }

/* ---------------- HERO ---------------- */
.tbdp-hero {
	--tbdp-img-w: 38%;
	--tbdp-blob: rgba(115, 216, 145, .22);
	position: relative;
	display: grid;
	grid-template-columns: var(--tbdp-img-w) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	padding: 44px;
	background: linear-gradient(135deg, #fff 0%, var(--tbdp-bg) 100%);
	border: 1px solid rgba(42, 63, 130, .07);
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(42, 63, 130, .06);
	overflow: hidden;
}
.tbdp-hero::before,
.tbdp-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}
.tbdp-hero::before {
	width: 360px; height: 360px;
	top: -140px; left: -120px;
	background: radial-gradient(circle, var(--tbdp-blob), transparent 70%);
}
.tbdp-hero::after {
	width: 220px; height: 220px;
	bottom: -110px; left: 30%;
	background: radial-gradient(circle, rgba(42, 63, 130, .07), transparent 70%);
}
.tbdp-hero.tbdp-img-end { grid-template-columns: minmax(0, 1fr) var(--tbdp-img-w); }
.tbdp-hero.tbdp-img-end .tbdp-media { order: 2; }

/* عکس */
.tbdp-media {
	--tbdp-photo-r: 24px;
	--tbdp-frame: var(--tbdp-accent);
	--tbdp-frame-off: 14px;
	position: relative;
	z-index: 1;
}
.tbdp-media.has-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(calc(var(--tbdp-frame-off) * -1), var(--tbdp-frame-off));
	border: 2px solid var(--tbdp-frame);
	border-radius: var(--tbdp-photo-r);
	z-index: -1;
}
.tbdp-photo {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--tbdp-photo-r);
	overflow: hidden;
	background: var(--tbdp-bg);
	box-shadow: 0 22px 44px rgba(42, 63, 130, .16);
}
.tbdp-photo img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	border-radius: 0;
	transition: transform .7s ease;
}
.tbdp-zoom-yes .tbdp-hero:hover .tbdp-photo img { transform: scale(1.045); }

/* نشان روی عکس */
.tbdp-float {
	--tbdp-dot: var(--tbdp-green);
	position: absolute;
	bottom: 24px;
	right: -18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--tbdp-primary);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 14px 30px rgba(42, 63, 130, .18);
	white-space: nowrap;
}
.tbdp-float::before,
.tbdp-badge::before,
.tbdp-card-title::before {
	content: "";
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--tbdp-dot);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--tbdp-dot) 22%, transparent);
}

/* ستون اطلاعات */
.tbdp-info {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}
.tbdp-badge {
	--tbdp-dot: var(--tbdp-green);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--tbdp-green);
	background: rgba(91, 188, 123, .12);
	border-radius: 50px;
}
.tbdp .tbdp-name {
	margin: 0;
	font-family: inherit;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--tbdp-primary);
}
.tbdp-role {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.7;
	color: var(--tbdp-green);
}
.tbdp .tbdp-intro {
	margin: 0;
	max-width: 560px;
	font-size: 15px;
	line-height: 2;
	color: color-mix(in srgb, var(--tbdp-text) 78%, transparent);
}

/* تخصص‌ها */
.tbdp .tbdp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}
.tbdp-chip {
	margin: 0;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--tbdp-primary);
	background: #fff;
	border: 1px solid rgba(42, 63, 130, .12);
	border-radius: 50px;
	transition: background .25s, color .25s, border-color .25s;
}
.tbdp-chip:hover {
	color: #fff;
	background: var(--tbdp-primary);
	border-color: var(--tbdp-primary);
}

/* راه‌های ارتباطی */
.tbdp-contacts {
	--tbdp-ic-box: 46px;
	--tbdp-ic-size: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 6px;
}
.tbdp-contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tbdp-text);
}
.tbdp-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--tbdp-ic-box);
	height: var(--tbdp-ic-box);
	font-size: var(--tbdp-ic-size);
	color: var(--tbdp-primary);
	background: #fff;
	border: 1px solid rgba(42, 63, 130, .1);
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(42, 63, 130, .08);
	transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.tbdp-contact-icon svg {
	width: var(--tbdp-ic-size);
	height: var(--tbdp-ic-size);
	fill: currentColor;
}
.tbdp-contact:hover .tbdp-contact-icon {
	color: #fff;
	background: var(--tbdp-primary);
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(42, 63, 130, .22);
}
.tbdp-contact-label {
	font-size: 14px;
	font-weight: 500;
	transition: color .25s;
}
.tbdp-contact:hover .tbdp-contact-label { color: var(--tbdp-primary); }
.tbdp-contacts.no-labels .tbdp-contact-label { display: none; }

/* دکمه‌ها */
.tbdp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
}
.tbdp-btn {
	--tbdp-btn-ic: 17px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 30px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	border: 1.5px solid transparent;
	border-radius: 50px;
	cursor: pointer;
	transition: background .3s, color .3s, border-color .3s, transform .25s, box-shadow .3s;
}
.tbdp-btn i { font-size: var(--tbdp-btn-ic); }
.tbdp-btn svg { width: var(--tbdp-btn-ic); height: var(--tbdp-btn-ic); fill: currentColor; }
.tbdp-btn--primary {
	color: #fff;
	background: linear-gradient(135deg, var(--tbdp-primary), var(--tbdp-text));
	box-shadow: 0 10px 24px rgba(42, 63, 130, .25);
}
.tbdp-btn--primary:hover {
	color: #fff;
	background: var(--tbdp-green);
	box-shadow: 0 12px 26px rgba(91, 188, 123, .35);
	transform: translateY(-2px);
}
.tbdp-btn--secondary {
	color: var(--tbdp-green);
	background: #fff;
	border-color: var(--tbdp-green);
}
.tbdp-btn--secondary:hover {
	color: #fff;
	background: var(--tbdp-green);
	transform: translateY(-2px);
}

/* ---------------- STATS ---------------- */
.tbdp-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.tbdp-stat {
	--tbdp-bar: linear-gradient(90deg, var(--tbdp-green), var(--tbdp-accent));
	position: relative;
	padding: 24px 18px;
	text-align: center;
	background: #fff;
	border: 1px solid rgba(42, 63, 130, .07);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(42, 63, 130, .05);
	overflow: hidden;
	transition: transform .3s, box-shadow .3s;
}
.tbdp-stat::before {
	content: "";
	position: absolute;
	top: 0; right: 0; left: 0;
	height: 3px;
	background: var(--tbdp-bar);
}
.tbdp-stat:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(42, 63, 130, .09);
}
.tbdp-stat-num {
	font-size: 30px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--tbdp-primary);
}
.tbdp-stat-label {
	margin-top: 4px;
	font-size: 13.5px;
	color: color-mix(in srgb, var(--tbdp-text) 70%, transparent);
}

/* ---------------- BODY CARDS ---------------- */
.tbdp-body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: start;
}
.elementor-widget-tabassom-doctor-profile .tbdp-body.is-single { grid-template-columns: 1fr !important; }

.tbdp-card {
	--tbdp-dot: var(--tbdp-green);
	position: relative;
	padding: 34px;
	background: #fff;
	border: 1px solid rgba(42, 63, 130, .07);
	border-radius: 24px;
	box-shadow: 0 10px 30px rgba(42, 63, 130, .05);
	overflow: hidden;
}
.tbdp .tbdp-card-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-family: inherit;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--tbdp-primary);
}
.tbdp-card-content {
	font-size: 15.5px;
	line-height: 2.15;
	text-align: justify;
	color: var(--tbdp-text);
}
.tbdp-card-content p { margin: 0 0 1em; }
.tbdp-card-content p:last-child { margin-bottom: 0; }
.tbdp-card-content img { max-width: 100%; height: auto; border-radius: 16px; }

/* کارت رویکرد — تیره */
.tbdp-card--approach {
	--tbdp-dot: var(--tbdp-accent);
	color: #fff;
	background: linear-gradient(160deg, var(--tbdp-primary) 0%, var(--tbdp-text) 100%);
	border: 0;
	box-shadow: 0 18px 40px rgba(42, 63, 130, .28);
}
.tbdp-card--approach.is-sticky { position: sticky; top: 40px; }
.admin-bar .tbdp-card--approach.is-sticky { top: 72px; }
.tbdp .tbdp-card--approach .tbdp-card-title { color: #fff; }
.tbdp-card--approach .tbdp-card-content {
	position: relative;
	z-index: 1;
	color: rgba(255, 255, 255, .88);
}
.tbdp-approach-icon {
	position: absolute;
	top: 18px;
	left: 22px;
	font-size: 64px;
	line-height: 1;
	color: var(--tbdp-accent);
	opacity: .2;
	pointer-events: none;
}
.tbdp-approach-icon svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------------- ANIMATION ---------------- */
.tbdp.js-ready .tbdp-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s ease, transform .7s ease;
}
.tbdp.js-ready .tbdp-reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.tbdp.js-ready .tbdp-reveal { opacity: 1; transform: none; transition: none; }
	.tbdp-photo img, .tbdp-btn, .tbdp-stat, .tbdp-contact-icon { transition: none; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
	.tbdp-hero { gap: 36px; padding: 32px; }
	.tbdp .tbdp-name { font-size: 30px; }
	.tbdp-card--approach.is-sticky { position: relative; top: auto; }
}

@media (max-width: 767px) {
	.tbdp { gap: 20px; }
	.tbdp-hero,
	.tbdp-hero.tbdp-img-end {
		grid-template-columns: 1fr !important;
		gap: 30px;
		padding: 24px 18px 28px;
		border-radius: 22px;
	}
	.tbdp-hero.tbdp-img-end .tbdp-media { order: 0; }
	.tbdp-media { width: 100%; max-width: 320px; margin-inline: auto; }
	.tbdp-float { right: 50%; transform: translateX(50%); bottom: -16px; font-size: 13px; }
	.tbdp-info { align-items: center; text-align: center; }
	.tbdp .tbdp-name { font-size: 26px; }
	.tbdp-role { font-size: 15.5px; }
	.tbdp .tbdp-chips, .tbdp-contacts, .tbdp-actions { justify-content: center; }
	.tbdp-contacts { gap: 14px; }
	.tbdp-btn { flex: 1 1 100%; }
	.tbdp-stat { padding: 18px 12px; }
	.tbdp-stat-num { font-size: 24px; }
	.tbdp-card { padding: 24px 20px; border-radius: 20px; }
	.tbdp .tbdp-card-title { font-size: 19px; }
	.tbdp-card-content { font-size: 15px; text-align: right; }
}
