/* MedLab contact team widget */

.mlt {
	--mlt-navy: #004a73;
	--mlt-navy-deep: #003755;
	--mlt-accent: #f58220;
	--mlt-muted: #64748b;
	direction: rtl;
}

.mlt-head {
	margin: 0 0 28px;
	text-align: center;
}

.mlt-head__title {
	margin: 0 0 8px;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 800;
	color: var(--mlt-navy);
	letter-spacing: -0.02em;
}

.mlt-head__sub {
	margin: 0 auto;
	max-width: 36em;
	color: var(--mlt-muted);
	line-height: 1.8;
	font-size: 0.98rem;
}

.mlt-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.mlt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px 22px 24px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid rgba(0, 74, 115, 0.08);
	box-shadow: 0 12px 36px rgba(0, 74, 115, 0.06);
	overflow: hidden;
	animation: mlt-rise 0.65s ease both;
	animation-delay: var(--mlt-delay, 0s);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.mlt-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--mlt-accent), var(--mlt-navy));
	opacity: 0.9;
}

.mlt-card:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 74, 115, 0.16);
	box-shadow: 0 20px 44px rgba(0, 74, 115, 0.12);
}

.mlt-card__photo {
	position: relative;
	flex: 0 0 auto;
	width: 108px;
	height: 108px;
	margin: 4px 0 16px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #e8f2f8;
	background:
		radial-gradient(circle at 30% 20%, rgba(245, 130, 32, 0.18), transparent 46%),
		linear-gradient(160deg, #e8f2f8, #d5e6f0);
	box-shadow: 0 10px 24px rgba(0, 74, 115, 0.12);
}

.mlt-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mlt-card__photo.is-fallback {
	display: grid;
	place-items: center;
	color: var(--mlt-navy);
	font-weight: 800;
	font-size: 1.45rem;
}

.mlt-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.mlt-card__name {
	margin: 0 0 8px;
	font-size: 1.12rem;
	font-weight: 800;
	color: var(--mlt-navy);
	line-height: 1.45;
}

.mlt-card__role {
	margin: 0 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e8f2f8;
	color: var(--mlt-navy);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.5;
}

.mlt-card__phone {
	margin: 0 0 16px;
	font-size: 0.98rem;
	font-weight: 700;
	color: #334155;
	letter-spacing: 0.02em;
	direction: ltr;
}

.mlt-card__channels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.mlt-ch {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mlt-ch:hover,
.mlt-ch:focus-visible {
	transform: translateY(-3px) scale(1.06);
	filter: brightness(1.08);
	color: #fff;
}

.mlt-ch--call {
	background: #004a73;
	box-shadow: 0 8px 16px rgba(0, 74, 115, 0.28);
}

.mlt-ch--whatsapp {
	background: #25d366;
	box-shadow: 0 8px 16px rgba(37, 211, 102, 0.32);
}

.mlt-ch--telegram {
	background: #2aabee;
	box-shadow: 0 8px 16px rgba(42, 171, 238, 0.32);
}

.mlt-ch--bale {
	background: #00b894;
	box-shadow: 0 8px 16px rgba(0, 184, 148, 0.3);
}

.mlt-ch--eitaa {
	background: #2f6fed;
	box-shadow: 0 8px 16px rgba(47, 111, 237, 0.3);
}

.mlt-ch--rubika {
	background: #e67e22;
	box-shadow: 0 8px 16px rgba(230, 126, 34, 0.3);
}

.mlt-ch svg {
	width: 48%;
	height: 48%;
	display: block;
}

/* Shared row helpers */
.mlt--row .mlt-card,
.mlt--directory .mlt-card,
.mlt--compact .mlt-card,
.mlt--minimal .mlt-card,
.mlt--split .mlt-card,
.medlab-team--style-row .mlt-card,
.medlab-team--style-directory .mlt-card,
.medlab-team--style-compact .mlt-card,
.medlab-team--style-minimal .mlt-card,
.medlab-team--style-split .mlt-card {
	flex-direction: row;
	align-items: center;
	text-align: right;
}

.mlt--row .mlt-card__body,
.mlt--directory .mlt-card__body,
.mlt--compact .mlt-card__body,
.mlt--minimal .mlt-card__body,
.mlt--split .mlt-card__body,
.medlab-team--style-row .mlt-card__body,
.medlab-team--style-directory .mlt-card__body,
.medlab-team--style-compact .mlt-card__body,
.medlab-team--style-minimal .mlt-card__body,
.medlab-team--style-split .mlt-card__body {
	align-items: flex-start;
	flex: 1 1 auto;
}

.mlt--row .mlt-card__channels,
.mlt--directory .mlt-card__channels,
.mlt--compact .mlt-card__channels,
.mlt--minimal .mlt-card__channels,
.mlt--split .mlt-card__channels,
.medlab-team--style-row .mlt-card__channels,
.medlab-team--style-directory .mlt-card__channels,
.medlab-team--style-compact .mlt-card__channels,
.medlab-team--style-minimal .mlt-card__channels,
.medlab-team--style-split .mlt-card__channels {
	justify-content: flex-start;
}

.mlt--directory .mlt-grid,
.mlt--compact .mlt-grid,
.mlt--minimal .mlt-grid,
.medlab-team--style-directory .mlt-grid,
.medlab-team--style-compact .mlt-grid,
.medlab-team--style-minimal .mlt-grid {
	grid-template-columns: 1fr !important;
}

/* 2. مربعی مدرن */
.mlt--square .mlt-card__photo,
.medlab-team--style-square .mlt-card__photo,
.mlt--square .mlt-card__photo img,
.medlab-team--style-square .mlt-card__photo img {
	width: 128px;
	height: 128px;
	border-radius: 20px !important;
}

.mlt--square .mlt-card,
.medlab-team--style-square .mlt-card {
	padding: 22px 20px 22px;
}

/* 3. ردیف افقی */
.mlt--row .mlt-card,
.medlab-team--style-row .mlt-card {
	padding: 18px 20px;
	gap: 18px;
}

.mlt--row .mlt-card::before,
.medlab-team--style-row .mlt-card::before {
	width: 4px;
	height: auto;
	inset: 0 auto 0 0;
	right: 0;
	left: auto;
	background: linear-gradient(180deg, var(--mlt-accent), var(--mlt-navy));
}

.mlt--row .mlt-card__photo,
.medlab-team--style-row .mlt-card__photo,
.mlt--row .mlt-card__photo img,
.medlab-team--style-row .mlt-card__photo img {
	width: 96px;
	height: 96px;
	margin: 0 !important;
	border-radius: 18px !important;
}

.mlt--row .mlt-card__name,
.medlab-team--style-row .mlt-card__name {
	margin-bottom: 6px;
}

.mlt--row .mlt-card__phone,
.medlab-team--style-row .mlt-card__phone {
	margin-bottom: 12px;
}

.mlt--row .mlt-card:hover,
.medlab-team--style-row .mlt-card:hover {
	transform: translateY(-4px);
}

/* 4. لیست دایرکتوری */
.mlt--directory .mlt-card,
.medlab-team--style-directory .mlt-card {
	padding: 16px 18px;
	gap: 16px;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0, 74, 115, 0.05);
}

.mlt--directory .mlt-card::before,
.medlab-team--style-directory .mlt-card::before {
	display: none;
}

.mlt--directory .mlt-card__photo,
.medlab-team--style-directory .mlt-card__photo,
.mlt--directory .mlt-card__photo img,
.medlab-team--style-directory .mlt-card__photo img {
	width: 72px;
	height: 72px;
	margin: 0 !important;
	border-radius: 50% !important;
}

.mlt--directory .mlt-card__body,
.medlab-team--style-directory .mlt-card__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"name channels"
		"role channels"
		"phone channels";
	column-gap: 16px;
	align-items: center;
}

.mlt--directory .mlt-card__name,
.medlab-team--style-directory .mlt-card__name { grid-area: name; margin: 0 0 4px; }

.mlt--directory .mlt-card__role,
.medlab-team--style-directory .mlt-card__role { grid-area: role; margin: 0 0 4px; }

.mlt--directory .mlt-card__phone,
.medlab-team--style-directory .mlt-card__phone { grid-area: phone; margin: 0; }

.mlt--directory .mlt-card__channels,
.medlab-team--style-directory .mlt-card__channels { grid-area: channels; }

.mlt--directory .mlt-card:hover,
.medlab-team--style-directory .mlt-card:hover {
	transform: translateY(-3px);
}

/* 5. نوار فشرده */
.mlt--compact .mlt-grid,
.medlab-team--style-compact .mlt-grid {
	gap: 10px;
}

.mlt--compact .mlt-card,
.medlab-team--style-compact .mlt-card {
	padding: 10px 14px;
	gap: 12px;
	border-radius: 14px !important;
	box-shadow: none;
	background: #f6fafc !important;
}

.mlt--compact .mlt-card::before,
.medlab-team--style-compact .mlt-card::before {
	display: none;
}

.mlt--compact .mlt-card__photo,
.medlab-team--style-compact .mlt-card__photo,
.mlt--compact .mlt-card__photo img,
.medlab-team--style-compact .mlt-card__photo img {
	width: 56px;
	height: 56px;
	margin: 0 !important;
	border-radius: 12px !important;
	border-width: 2px;
	box-shadow: none;
}

.mlt--compact .mlt-card__name,
.medlab-team--style-compact .mlt-card__name {
	margin: 0 0 2px;
	font-size: 0.98rem;
}

.mlt--compact .mlt-card__role,
.medlab-team--style-compact .mlt-card__role {
	margin: 0 0 2px;
	padding: 0;
	background: transparent;
	font-size: 0.75rem;
}

.mlt--compact .mlt-card__phone,
.medlab-team--style-compact .mlt-card__phone {
	margin: 0;
	font-size: 0.85rem;
}

.mlt--compact .mlt-ch,
.medlab-team--style-compact .mlt-ch {
	width: 34px;
	height: 34px;
	box-shadow: none;
}

.mlt--compact .mlt-card:hover,
.medlab-team--style-compact .mlt-card:hover {
	transform: none;
	background: #eef6fb;
}

/* 6. مینیمال شرکتی */
.mlt--minimal .mlt-grid,
.medlab-team--style-minimal .mlt-grid {
	gap: 0;
}

.mlt--minimal .mlt-card,
.medlab-team--style-minimal .mlt-card {
	padding: 18px 4px;
	gap: 16px;
	border: 0;
	border-bottom: 1px solid rgba(0, 74, 115, 0.1);
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.mlt--minimal .mlt-card:last-child,
.medlab-team--style-minimal .mlt-card:last-child {
	border-bottom: 0;
}

.mlt--minimal .mlt-card::before,
.medlab-team--style-minimal .mlt-card::before {
	display: none;
}

.mlt--minimal .mlt-card__photo,
.medlab-team--style-minimal .mlt-card__photo,
.mlt--minimal .mlt-card__photo img,
.medlab-team--style-minimal .mlt-card__photo img {
	width: 64px;
	height: 64px;
	margin: 0 !important;
	border-radius: 8px !important;
	border: 0;
	box-shadow: none;
}

.mlt--minimal .mlt-card__role,
.medlab-team--style-minimal .mlt-card__role {
	background: transparent;
	padding: 0;
	color: var(--mlt-muted);
}

.mlt--minimal .mlt-card:hover,
.medlab-team--style-minimal .mlt-card:hover {
	transform: none;
	box-shadow: none;
}

/* 7. عکس تمام‌عرض */
.mlt--cover .mlt-card,
.medlab-team--style-cover .mlt-card {
	padding: 0 0 22px;
	align-items: stretch;
}

.mlt--cover .mlt-card__photo,
.medlab-team--style-cover .mlt-card__photo {
	width: 100% !important;
	height: 188px !important;
	margin: 0 0 16px !important;
	border: 0;
	border-radius: 0 !important;
	box-shadow: none;
}

.mlt--cover .mlt-card__photo img,
.medlab-team--style-cover .mlt-card__photo img {
	border-radius: 0 !important;
}

.mlt--cover .mlt-card__body,
.medlab-team--style-cover .mlt-card__body {
	padding: 0 20px;
}

/* 8. نیمه‌عکس افقی */
.mlt--split .mlt-card,
.medlab-team--style-split .mlt-card {
	padding: 0;
	gap: 0;
	min-height: 200px;
	align-items: stretch;
}

.mlt--split .mlt-card::before,
.medlab-team--style-split .mlt-card::before {
	display: none;
}

.mlt--split .mlt-card__photo,
.medlab-team--style-split .mlt-card__photo {
	width: 42% !important;
	height: auto !important;
	min-height: 200px;
	margin: 0 !important;
	border: 0;
	border-radius: 0 !important;
	box-shadow: none;
	align-self: stretch;
}

.mlt--split .mlt-card__photo img,
.medlab-team--style-split .mlt-card__photo img {
	border-radius: 0 !important;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.mlt--split .mlt-card__body,
.medlab-team--style-split .mlt-card__body {
	padding: 22px 20px;
	justify-content: center;
}

.mlt--split .mlt-card:hover,
.medlab-team--style-split .mlt-card:hover {
	transform: translateY(-4px);
}

/* 9. کارت سرمه‌ای */
.mlt--navy .mlt-card,
.medlab-team--style-navy .mlt-card {
	background: linear-gradient(165deg, #005887 0%, var(--mlt-navy-deep) 100%) !important;
	border-color: transparent;
	box-shadow: 0 16px 40px rgba(0, 55, 85, 0.28);
}

.mlt--navy .mlt-card::before,
.medlab-team--style-navy .mlt-card::before {
	background: var(--mlt-accent);
}

.mlt--navy .mlt-card__name,
.medlab-team--style-navy .mlt-card__name,
.mlt--navy .mlt-card__phone,
.medlab-team--style-navy .mlt-card__phone {
	color: #fff !important;
}

.mlt--navy .mlt-card__role,
.medlab-team--style-navy .mlt-card__role {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}

.mlt--navy .mlt-card__photo,
.medlab-team--style-navy .mlt-card__photo {
	border-color: rgba(245, 130, 32, 0.7);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mlt--navy .mlt-card__photo.is-fallback,
.medlab-team--style-navy .mlt-card__photo.is-fallback {
	color: #fff;
}

/* 10. شیشه‌ای لوکس */
.mlt--glass,
.medlab-team--style-glass .mlt {
	padding: 8px;
	border-radius: 28px;
	background:
		radial-gradient(circle at 12% 10%, rgba(245, 130, 32, 0.16), transparent 34%),
		linear-gradient(145deg, #e8f3f9, #f7fafc 55%, #eef4f8);
}

.mlt--glass .mlt-card,
.medlab-team--style-glass .mlt-card {
	background: rgba(255, 255, 255, 0.62) !important;
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 12px 40px rgba(0, 74, 115, 0.08);
	backdrop-filter: blur(14px);
}

.mlt--glass .mlt-card__photo,
.medlab-team--style-glass .mlt-card__photo,
.mlt--glass .mlt-card__photo img,
.medlab-team--style-glass .mlt-card__photo img {
	border-radius: 28px !important;
	border-color: rgba(255, 255, 255, 0.9);
}

@keyframes mlt-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {
	.mlt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.mlt--directory .mlt-card__body,
	.medlab-team--style-directory .mlt-card__body {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.mlt--split .mlt-card,
	.medlab-team--style-split .mlt-card {
		flex-direction: column;
	}

	.mlt--split .mlt-card__photo,
	.medlab-team--style-split .mlt-card__photo {
		width: 100%;
		min-height: 180px;
		height: 180px;
	}
}

@media (max-width: 640px) {
	.mlt-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mlt-card {
		animation: none !important;
	}
}

.elementor-widget-medlab_contact_team > .elementor-widget-container {
	overflow: visible;
}
