/* About Dr. Mahboubian page template — section styles.
   Shared tokens/components (hl-section, hl-eyebrow, hl-h2, hl-btn,
   hl-strip, lightbox, reveal) live in main.css. */

/* ----- Shared split layout (sections 02, 04, 07, 09, 11) ----- */
.hl-drm-split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 72px;
	align-items: flex-start;
}
.hl-drm-split__text { flex: 1.1 1 460px; min-width: 0; }
.hl-drm-split__media {
	flex: 1 1 420px;
	min-width: 0;
	border-radius: var(--hl-radius);
	overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(11, 34, 51, 0.45);
}
.hl-drm-split__media--wide { aspect-ratio: 4 / 3; }
.hl-drm-split__media--tall {
	flex: 1 1 400px;
	aspect-ratio: 4 / 5;
	max-height: 680px;
}
.hl-drm-split__media--natural { box-shadow: 0 30px 70px -30px rgba(11, 34, 51, 0.35); }
.hl-drm-split__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	cursor: zoom-in;
}
.hl-drm-split__media--natural img { height: auto; }
@media (min-width: 1000px) {
	.hl-drm-split__media {
		position: sticky;
		top: 152px;
		align-self: flex-start;
	}
}
.hl-drm-split__content { margin-top: 32px; }
.hl-drm-split__content div,
.hl-drm-split__content p {
	font-size: 18px;
	line-height: 1.8;
	color: var(--hl-body);
	margin: 0 0 20px;
}
.hl-drm-split__content div:last-child,
.hl-drm-split__content p:last-child { margin-bottom: 0; }
.hl-drm-split__content strong { color: var(--hl-navy); font-weight: 600; }
.hl-section--navy .hl-drm-split__content div,
.hl-section--navy .hl-drm-split__content p { color: rgba(255, 255, 255, 0.75); }
.hl-section--navy .hl-drm-split__content strong { color: #fff; }
.hl-drm-split__btn { margin-top: 36px; }

/* ----- 02 Intro portrait (offset blue frame) ----- */
.hl-drm-split__media--portrait {
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
}
.hl-drm-portrait { position: relative; padding: 0 28px 28px 0; }
.hl-drm-portrait__frame {
	position: absolute;
	top: 28px;
	right: 0;
	bottom: 0;
	left: 28px;
	border: 1px solid var(--hl-blue);
	pointer-events: none;
}
.hl-drm-portrait__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	box-shadow: 0 40px 80px -30px rgba(11, 34, 51, 0.45);
}
.hl-drm-portrait__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 8%;
	cursor: zoom-in;
}

/* ----- 03 Credentials & memberships ----- */
.hl-drm-creds__banner {
	margin-top: 44px;
	background: var(--hl-navy);
	border-radius: var(--hl-radius);
	padding: 32px 36px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	box-shadow: 0 18px 55px rgba(11, 34, 51, 0.12);
}
.hl-drm-creds__badge {
	display: inline-flex;
	padding: 9px 14px;
	border-radius: var(--hl-radius);
	background: var(--hl-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
}
.hl-drm-creds__statement {
	flex: 1 1 420px;
	min-width: 0;
	font-family: var(--hl-serif);
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.2;
	color: #fff;
	text-wrap: pretty;
}
.hl-drm-creds__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px;
	margin-top: 24px;
}
.hl-drm-creds__card {
	background: #fff;
	border: 1px solid var(--hl-line);
	border-top: 3px solid var(--hl-blue);
	border-radius: var(--hl-radius);
	padding: 32px;
}
.hl-drm-creds__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hl-blue-dark);
}
.hl-drm-creds__items { display: flex; flex-direction: column; margin-top: 10px; }
.hl-drm-creds__item {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 14px 0;
	border-bottom: 1px solid #edf1f3;
	font-size: 17px;
	line-height: 1.45;
	font-weight: 500;
	color: var(--hl-navy);
}
.hl-drm-creds__item:last-child { border-bottom: 0; padding-bottom: 0; }
.hl-drm-creds__dot {
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	background: var(--hl-blue);
	border-radius: 50%;
	transform: translateY(-2px);
}
@media (max-width: 480px) {
	.hl-drm-creds__banner { padding: 24px; }
	.hl-drm-creds__card { padding: 24px; }
}

/* ----- 05 Education & training (navy) ----- */
.hl-drm-edu__head { max-width: 760px; }
.hl-drm-edu__lead {
	font-size: 18px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.75);
	margin: 24px 0 0;
}
.hl-drm-edu__list { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hl-drm-edu__row {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 32px;
	align-items: baseline;
	padding: 32px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.hl-drm-edu__num {
	font-family: var(--hl-serif);
	font-size: 36px;
	line-height: 1;
	color: var(--hl-blue);
}
.hl-drm-edu__detail {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px 40px;
}
.hl-drm-edu__title {
	flex: 1 1 380px;
	min-width: 0;
	font-family: var(--hl-serif);
	font-weight: 400;
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.15;
	margin: 0;
	color: #fff;
	text-wrap: pretty;
}
.hl-drm-edu__where {
	flex: 1 1 320px;
	min-width: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--hl-sky);
	white-space: pre-line;
}
@media (max-width: 600px) {
	.hl-drm-edu__row { grid-template-columns: 1fr; gap: 12px; }
}

/* ----- 08 Areas of specialization (3 across on desktop, 2 on tablet, 1 on phones) -----
   The hairlines are the grid's own background showing through the 1px gap, so an
   incomplete last row would show grey empty cells. The last card therefore
   stretches over whatever is left of its row, for any number of cards. */
.hl-drm-spec__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--hl-line);
	border: 1px solid var(--hl-line);
	margin-top: 48px;
}

.hl-drm-spec__card:nth-child(3n + 1):last-child { grid-column: 1 / -1; } /* 1 left over: whole row */
.hl-drm-spec__card:nth-child(3n + 2):last-child { grid-column: span 2; } /* 2 left over: card spans the 2nd slot too */

@media (max-width: 1024px) {
	.hl-drm-spec__grid { grid-template-columns: repeat(2, 1fr); }
	.hl-drm-spec__card:nth-child(3n + 1):last-child,
	.hl-drm-spec__card:nth-child(3n + 2):last-child { grid-column: auto; } /* undo the 3-column rules */
	.hl-drm-spec__card:nth-child(odd):last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.hl-drm-spec__grid { grid-template-columns: 1fr; }
}
.hl-drm-spec__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 36px 34px;
	color: var(--hl-navy);
	transition: background 0.2s ease;
}
a.hl-drm-spec__card:hover,
a.hl-drm-spec__card:focus { background: var(--hl-mist); color: var(--hl-navy); }
.hl-drm-spec__num {
	font-family: var(--hl-serif);
	font-size: 28px;
	line-height: 1;
	color: var(--hl-blue);
}
.hl-drm-spec__title {
	font-size: 21px;
	font-weight: 600;
	line-height: 1.35;
	margin: 18px 0 10px;
	font-family: var(--hl-sans);
}
.hl-drm-spec__body {
	font-size: 16px;
	line-height: 1.7;
	color: var(--hl-body);
	margin: 0;
	flex: 1;
}
.hl-drm-spec__more {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hl-blue-dark);
	margin-top: 20px;
}
@media (max-width: 480px) {
	.hl-drm-spec__card { padding: 28px 24px; }
}

/* ----- 10 Practice carousel ----- */
.hl-drm-gallery { padding-left: 0; padding-right: 0; overflow: hidden; }
.hl-drm-gallery__head {
	max-width: var(--hl-max);
	margin: 0 auto 40px;
	padding: 0 var(--hl-gutter);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}
.hl-drm-gallery__head .hl-h2 { margin-bottom: 0; }
.hl-drm-gallery__hint { font-size: 14px; color: var(--hl-muted); }
.hl-drm-gallery__rows { display: flex; flex-direction: column; gap: 16px; }
.hl-drm-gallery__track {
	display: flex;
	gap: 16px;
	width: max-content;
	will-change: transform;
}
.hl-drm-gallery .hl-strip__track { gap: 16px; }
.hl-drm-gallery__rows .hl-strip__item img {
	display: block;
	height: 220px;
	width: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--hl-radius);
	cursor: zoom-in;
	flex-shrink: 0;
}
@media (max-width: 768px) {
	.hl-drm-gallery__rows .hl-strip__item img { height: 160px; }
}

/* ----- 12b Results CTA ----- */
.hl-drm-results__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
	gap: 24px;
	margin-top: 44px;
}
.hl-drm-results__card {
	display: flex;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	overflow: hidden;
	color: var(--hl-navy);
	box-shadow: 0 18px 55px rgba(11, 34, 51, 0.08);
	transition: border-color 0.2s ease;
}
.hl-drm-results__card:hover,
.hl-drm-results__card:focus { border-color: var(--hl-blue); color: var(--hl-navy); }
.hl-drm-results__photo { flex: 1 1 200px; min-height: 220px; position: relative; }
.hl-drm-results__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hl-drm-results__body {
	flex: 1.3 1 260px;
	min-width: 0;
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hl-drm-results__eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hl-blue-dark);
}
.hl-drm-results__title {
	font-family: var(--hl-serif);
	font-size: clamp(28px, 2.5vw, 34px);
	line-height: 1.1;
	margin-top: 12px;
}
.hl-drm-results__body p { font-size: 16px; line-height: 1.7; color: var(--hl-body); margin: 12px 0 0; }
.hl-drm-results__more {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hl-blue-dark);
	margin-top: 20px;
}
@media (max-width: 480px) {
	.hl-drm-results__body { padding: 24px; }
}
