/*
 * Corners Dentistry — Doctor Profile Page Styles
 */

/* ── Page bg ───────────────────────────────────────────────────────────────── */
body.cdent-doctor-page {
	background: var(--cdent-blue);
}

/* ── Main wrapper ──────────────────────────────────────────────────────────── */
.cdent-doctor {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.5rem 5rem;
}

/* ── Back link ─────────────────────────────────────────────────────────────── */
.cdent-doctor__back {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: rgba(255,255,255,.72);
	font-size: .85rem;
	font-weight: 500;
	text-decoration: none;
	margin-bottom: 1.5rem;
	transition: color .2s ease;
}
.cdent-doctor__back:hover { color: #fff; }
.cdent-doctor__back::before { content: '←'; }

/* ── Hero card ─────────────────────────────────────────────────────────────── */
.cdent-doctor__hero {
	display: grid;
	grid-template-columns: 55fr 45fr;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0,0,0,.28);
	min-height: 520px;
}

/* ── Left: bio ─────────────────────────────────────────────────────────────── */
.cdent-doctor__bio {
	background: linear-gradient(150deg, var(--cdent-blue-dark) 0%, #255e87 55%, #2d6f9c 100%);
	color: #fff;
	padding: 3.5rem 3rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.cdent-doctor__name {
	font-family: var(--cdent-font-heading);
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 800;
	line-height: 1.05;
	color: #fff;
	margin: 0;
}

.cdent-doctor__specialty {
	font-family: var(--cdent-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--cdent-orange);
	letter-spacing: .1em;
	margin: 0;
}

.cdent-doctor__quote {
	font-style: italic;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(255,255,255,.95);
	border-left: 3px solid var(--cdent-orange);
	padding-left: 1rem;
	margin: .25rem 0;
}

.cdent-doctor__bio p {
	font-size: .95rem;
	line-height: 1.75;
	color: rgba(255,255,255,.85);
	margin: 0;
}

/* ── Right panel ───────────────────────────────────────────────────────────── */
.cdent-doctor__photo-side {
	background: #e8e4df;
	display: flex;
	flex-direction: column;
}

/* photo-only (Abrahim): photo-wrap fills full right panel height */
.cdent-doctor__photo-side:not(.cdent-doctor__photo-side--split) .cdent-doctor__photo-wrap {
	flex: 1;
	position: relative;
	min-height: 420px;
}

/* split (Katie/Virginia/Shaima): photo fixed height, text below */
.cdent-doctor__photo-side--split .cdent-doctor__photo-wrap {
	height: 460px;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}

/* photo fills its wrap via absolute — most reliable cross-browser */
.cdent-doctor__photo {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* ── Text below photo (split layout) ──────────────────────────────────────── */
.cdent-doctor__hero-right-text {
	flex: 1;
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cdent-doctor__hero-right-text p {
	font-size: .93rem;
	line-height: 1.78;
	color: #3a3a3a;
	margin: 0;
}

/* ── Body section (Abrahim only) ───────────────────────────────────────────── */
.cdent-doctor__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: 20px;
	overflow: hidden;
	margin-top: 1.75rem;
	box-shadow: 0 24px 64px rgba(0,0,0,.2);
}

.cdent-doctor__body-left {
	background: rgba(27,79,114,.55);
	backdrop-filter: blur(4px);
	padding: 3rem;
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.cdent-doctor__body-left p {
	font-size: .93rem;
	line-height: 1.78;
	color: rgba(255,255,255,.88);
	margin: 0;
}

.cdent-doctor__body-right {
	background: #e8e4df;
	padding: 3rem;
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.cdent-doctor__body-right p {
	font-size: .93rem;
	line-height: 1.78;
	color: #3a3a3a;
	margin: 0;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.cdent-doctor__hero { grid-template-columns: 1fr; }

	.cdent-doctor__photo-side:not(.cdent-doctor__photo-side--split) .cdent-doctor__photo-wrap {
		min-height: 380px;
		flex: 0 0 380px;
	}

	.cdent-doctor__photo-side--split .cdent-doctor__photo-wrap {
		flex: 0 0 320px;
	}

	.cdent-doctor__body { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.cdent-doctor__bio { padding: 2.5rem 1.5rem; }
	.cdent-doctor__hero-right-text { padding: 2rem 1.5rem; }
	.cdent-doctor__body-left,
	.cdent-doctor__body-right { padding: 2rem 1.5rem; }
}
