/* ============================================================
 * team.css — صفحة فريق الأطباء
 * يُحمَّل عبر is_page("team") في functions.php
 * ============================================================ */

.team-breadcrumb {
	padding: 16px 0;
	border-bottom: var(--vida-border);
	background: var(--vida-bg);
}

.team-breadcrumb .container {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--vida-muted);
	font-size: 0.92rem;
}

.team-breadcrumb a {
	color: var(--vida-teal-deep);
}

.team-cta {
	background: var(--vida-bg);
}

.team-cta__inner {
	padding: clamp(34px, 6vw, 66px);
	background: radial-gradient(circle at 10% 25%, rgba(221, 174, 104, 0.18), transparent 28%),
        linear-gradient(135deg, #152b36, #214653);
	color: var(--vida-bg);
	text-align: center;
}

.team-cta__inner .section-icon {
	margin: 0 auto;
}

.team-cta__inner > div {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
	justify-content: center;
}

.team-cta__inner > p:not(.eyebrow) {
	max-width: 680px;
	margin: 0 auto;
	color: rgba(255, 255, 255, 0.78);
}

.team-cta__inner h2 {
	margin: 12px 0;
	color: var(--vida-bg);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.team-dialog {
	width: min(760px, calc(100% - 28px));
	max-height: calc(100dvh - 28px);
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	color: var(--vida-ink);
	box-shadow: 0 30px 90px rgba(8, 25, 34, 0.36);
}

.team-dialog::backdrop {
	background: rgba(10, 28, 37, 0.72);
	backdrop-filter: blur(3px);
}

.team-dialog__close {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
	width: 44px;
	height: 44px;
	border: var(--vida-border);
	border-radius: var(--vida-radius-full);
	background: var(--vida-bg);
	color: var(--vida-ink-deep);
	cursor: pointer;
	font: 700 1.5rem/1 Arial, sans-serif;
}

.team-dialog__content {
	display: grid;
	grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
	max-height: calc(100dvh - 28px);
	overflow: auto;
}

.team-dialog__content .btn {
	margin-top: 12px;
}

.team-dialog__content > div {
	padding: clamp(30px, 5vw, 50px);
	align-self: center;
}

.team-dialog__content > div > p:not(.eyebrow) {
	color: var(--vida-muted);
	line-height: 1.85;
}

.team-dialog__content h2 {
	margin: 8px 0;
	color: var(--vida-ink-deep);
	font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.team-dialog__content img {
	width: 100%;
	height: 100%;
	min-height: 430px;
	object-fit: cover;
	object-position: top center;
	background: var(--vida-bg-soft);
}

.team-dialog__specialty {
	color: var(--vida-teal-deep);
	font-weight: 700;
}


.team-directory {
	background: linear-gradient(180deg, #f4f9f9, var(--vida-bg));
}

.team-doctor-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	border: var(--vida-border);
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	box-shadow: var(--vida-shadow-soft);
	transition: transform var(--vida-motion), box-shadow var(--vida-motion);
}

.team-doctor-card > img {
	width: 100%;
	aspect-ratio: 4 / 4.65;
	object-fit: cover;
	object-position: top center;
	background: var(--vida-bg-soft);
}

.team-doctor-card h3 {
	margin: 14px 0 5px;
	color: var(--vida-ink-deep);
	font-size: 1.2rem;
}

.team-doctor-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 48px rgba(22, 48, 60, 0.13);
}

.team-doctor-card[hidden] {
	display: none;
}

.team-doctor-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: stretch;
	padding: var(--vida-radius-xl);
}

.team-doctor-card__body > a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--vida-radius);
	font: inherit;
	font-weight: 700;
	text-align: center;
	background: var(--vida-teal);
	color: var(--vida-bg);
}

.team-doctor-card__body > p:not(.team-doctor-card__specialty) {
	flex: 1;
	margin: 0 0 18px;
	color: var(--vida-muted);
	font-size: 0.92rem;
	line-height: 1.75;
}

.team-doctor-card__department {
	align-self: flex-start;
	padding: 4px 9px;
	border-radius: 2px;
	background: rgba(12, 184, 182, 0.1);
	color: var(--vida-teal-deep);
	font-size: 0.78rem;
	font-weight: 700;
}

.team-doctor-card__details {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--vida-radius);
	font: inherit;
	font-weight: 700;
	text-align: center;
	margin-bottom: var(--vida-radius);
	border: var(--vida-border);
	background: var(--vida-bg);
	color: var(--vida-ink-deep);
	cursor: pointer;
}

.team-doctor-card__details:hover {
	border-color: var(--vida-gold);
	color: var(--vida-gold);
}

.team-doctor-card__specialty {
	min-height: 3.1em;
	margin: 0 0 10px;
	color: var(--vida-teal-deep) !important;
	font-weight: 700;
}

.team-doctor-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--vida-radius-xl);
}

.team-faq {
	background: var(--vida-bg-soft);
}

.team-faq__grid {
	display: grid;
	grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
	gap: clamp(28px, 5vw, 70px);
	align-items: start;
}

.team-faq__grid .btn {
	margin-top: 18px;
}

.team-faq__grid > div:first-child > p:not(.eyebrow) {
	color: var(--vida-muted);
}

.team-faq__grid > div:first-child h2 {
	margin: 8px 0 12px;
	color: var(--vida-ink-deep);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.team-filter {
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid rgba(12, 184, 182, 0.38);
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	color: var(--vida-ink-deep);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	transition: color var(--vida-transition), background var(--vida-transition), border-color var(--vida-transition);
}

.team-filter span {
	display: inline-grid;
	min-width: 24px;
	min-height: 24px;
	margin-inline-start: 5px;
	place-items: center;
	border-radius: var(--vida-radius-full);
	background: var(--vida-bg-soft);
	font-size: 0.78rem;
}

.team-filter.is-active {
	border-color: var(--vida-teal);
	background: var(--vida-teal);
	color: var(--vida-bg);
}

.team-filter.is-active span {
	background: rgba(255, 255, 255, 0.2);
}

.team-filter:hover {
	border-color: var(--vida-teal);
	background: var(--vida-teal);
	color: var(--vida-bg);
}

.team-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 14px;
}

.team-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 8vw, 104px) 0;
	background: radial-gradient(circle at 12% 20%, rgba(221, 174, 104, 0.18), transparent 30%),
        linear-gradient(135deg, #f7fbfb, var(--vida-bg) 56%, #fdf8f0);
}

.team-hero::after {
	position: absolute;
	inset: auto -80px -140px auto;
	width: 320px;
	height: 320px;
	border: 1px solid rgba(12, 184, 182, 0.14);
	border-radius: var(--vida-radius-full);
	content: "";
}

.team-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.team-hero__content h1 {
	margin: 8px 0 6px;
	color: var(--vida-ink-deep);
	font-size: clamp(2.35rem, 5.5vw, 4.8rem);
	line-height: 1.12;
}

.team-hero__frame {
	position: absolute;
	inset: 0 0 52px 0;
	border: 1px solid rgba(221, 153, 51, 0.28);
	background: linear-gradient(145deg, rgba(12, 184, 182, 0.1), rgba(221, 174, 104, 0.13));
	transform: translate(12px, -12px);
}

.team-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
	gap: clamp(34px, 6vw, 82px);
	align-items: center;
}

.team-hero__media {
	position: relative;
	margin: 0;
	padding: 18px 18px 0;
}

.team-hero__media figcaption {
	position: relative;
	z-index: 2;
	width: calc(100% - 34px);
	margin: -36px auto 0;
	padding: 18px var(--vida-radius-xl);
	border-right: 4px solid var(--vida-gold);
	background: var(--vida-bg);
	box-shadow: 0 16px 34px rgba(22, 48, 60, 0.12);
}

.team-hero__media figcaption span {
	display: block;
	margin-top: 3px;
	color: var(--vida-muted);
	font-size: 0.9rem;
}

.team-hero__media figcaption strong {
	display: block;
	color: var(--vida-ink-deep);
}

.team-hero__media img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 4.6;
	object-fit: cover;
	object-position: top center;
	background: var(--vida-bg-soft);
	box-shadow: 0 28px 60px rgba(22, 48, 60, 0.16);
}

.team-hero__message {
	max-width: 760px;
	margin: 0;
	color: var(--vida-muted);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	line-height: 2;
}

.team-hero__role {
	margin: 0 0 22px;
	color: var(--vida-teal-deep);
	font-size: clamp(1.05rem, 2vw, 1.32rem);
	font-weight: 700;
}

.team-page {
	overflow-x: hidden;
}

.team-principles {
	background: var(--vida-bg);
}

.team-principles__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--vida-radius-xl);
}

.team-principles__grid article {
	padding: clamp(24px, 3vw, 34px);
	border: var(--vida-border);
	background: var(--vida-bg);
	box-shadow: var(--vida-shadow-soft);
}

.team-principles__grid h3 {
	margin: 18px 0 var(--vida-radius);
	color: var(--vida-ink-deep);
}

.team-principles__grid p {
	margin: 0;
	color: var(--vida-muted);
}

.team-results {
	margin: 0 0 22px;
	color: var(--vida-muted);
	text-align: center;
}

.team-specialties {
	background: var(--vida-bg);
}

.team-specialties__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.team-specialties__grid a {
	position: relative;
	z-index: 1;
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	margin-top: 18px;
	color: var(--vida-teal-deep);
	font-weight: 700;
}

.team-specialties__grid article {
	padding: clamp(24px, 3vw, 34px);
	border: var(--vida-border);
	background: var(--vida-bg);
	box-shadow: var(--vida-shadow-soft);
	position: relative;
	overflow: hidden;
}

.team-specialties__grid article::after {
	position: absolute;
	inset: auto auto -55px -55px;
	width: 130px;
	height: 130px;
	border-radius: var(--vida-radius-full);
	background: rgba(221, 174, 104, 0.1);
	content: "";
}

.team-specialties__grid h3 {
	margin: 18px 0 var(--vida-radius);
	color: var(--vida-ink-deep);
}

.team-specialties__grid p {
	margin: 0;
	color: var(--vida-muted);
}




/* ════════════════════════════════════════════════════════════
 * صفحات CPT الديناميكية — الأطباء والأجهزة
 * ════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
 * استعلامات الوسائط (Responsive) — منقولة من core.css
 * ════════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
	.team-doctor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.team-faq__grid {
		grid-template-columns: 1fr;
	}

	.team-hero__content {
		order: 1;
	}

	.team-hero__grid {
		grid-template-columns: 1fr;
	}

	.team-hero__media {
		width: min(430px, 100%);
		margin-inline: auto;
	}

	.team-principles__grid {
		grid-template-columns: 1fr;
	}

	.team-specialties__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.team-cta__inner .btn {
		width: 100%;
	}

	.team-dialog__content {
		grid-template-columns: 1fr;
	}

	.team-dialog__content > div {
		padding: 26px 22px 30px;
	}

	.team-dialog__content img {
		height: 280px;
		min-height: 0;
	}

	.team-doctor-grid {
		grid-template-columns: 1fr;
	}

	.team-filter {
		width: 100%;
	}

	.team-filters {
		display: grid;
		grid-template-columns: 1fr;
	}

	.team-hero {
		padding-top: 42px;
	}

	.team-hero__actions .btn {
		width: 100%;
	}

	.team-hero__content h1 {
		font-size: 2.35rem;
	}
}

