/**
 * Department detail — shared by single-coe.php and single-speciality.php
 * (single-speciality.css @imports this file). Figma COE Detail 342:18664 /
 * Speciality Detail 333:16419. The two designs are one template; Speciality
 * simply omits the "Where we excel" carousel.
 */

/* ---- Hero ------------------------------------------------------------ */
.dept-hero {
	position: relative;
	background: var(--ne-primary-500);
	background-image: var(--dept-hero-img, none);
	background-size: cover;
	background-position: center;
}
.dept-hero::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(14,7,57,0.9) 0%, rgba(14,7,57,0.7) 42%, rgba(23,11,91,0.42) 100%);
}
.dept-hero__inner {
	position: relative;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: var(--ne-space-m);
	padding-block: var(--ne-space-5xl) var(--ne-space-6xl);
}
.dept-hero__badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: rgba(255,255,255,0.16);
	color: var(--ne-neutral-100);
	border: 1px solid rgba(255,255,255,0.35);
	backdrop-filter: blur(4px);
}
.dept-hero__badge .ne-icon { width: 16px; height: 16px; }
.dept-hero__title {
	margin: 0;
	color: var(--ne-neutral-100);
	font-size: var(--ne-h1-size);
	line-height: 1.06;
	max-width: 18ch;
}
.dept-hero__sub {
	margin: 0;
	color: var(--ne-neutral-200);
	font-size: var(--ne-h8-size);
	line-height: 1.6;
	max-width: 52ch;
}
.dept-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ne-space-s);
	margin-top: var(--ne-space-xs);
}
.dept-hero__emergency { white-space: nowrap; }

/* ---- Overlapping "Book an Appointment" card -------------------------- */
.dept-hero__card-wrap {
	position: relative;
	z-index: 3;
	margin-top: calc(-1 * var(--ne-space-4xl));
	margin-bottom: var(--ne-space-2xl);
}
.dept-bookcard {
	background: var(--ne-neutral-100);
	border: 1px solid var(--ne-neutral-200);
	border-radius: 18px;
	box-shadow: var(--ne-shadow-deep);
	padding: var(--ne-space-l) var(--ne-space-xl) var(--ne-space-xl);
}
.dept-bookcard__head {
	display: flex; align-items: center; gap: var(--ne-space-s);
	margin-bottom: var(--ne-space-m);
}
.dept-bookcard__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 10px;
	background: var(--ne-secondary-a10); color: var(--ne-secondary-400);
}
.dept-bookcard__icon .ne-icon { width: 20px; height: 20px; }
.dept-bookcard__title { font-weight: 700; color: var(--ne-primary-500); font-size: var(--ne-h8-size); }
.dept-bookcard__form {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: var(--ne-space-m);
	align-items: end;
}
.dept-bookcard__field { display: flex; flex-direction: column; gap: 6px; }
.dept-bookcard__label { font-size: var(--ne-b3-size); font-weight: 600; color: var(--ne-neutral-900); }
.dept-bookcard__submit { white-space: nowrap; height: fit-content; }

/* ---- Intro ----------------------------------------------------------- */
.dept-intro__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: var(--ne-space-3xl);
	align-items: center;
}
.dept-intro__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 16px;
	aspect-ratio: 4 / 3;
}
.dept-intro__title { font-size: var(--ne-h4-size); }
.dept-intro__copy { color: var(--ne-neutral-900); font-size: var(--ne-b1-size); line-height: var(--ne-b1-line); }
.dept-intro__copy p { margin: 0 0 var(--ne-space-s); }

/* ---- Where we excel (COE only) --------------------------------------- */
.dept-excel__card .ne-card__media { aspect-ratio: 16 / 10; }
.dept-excel__card .ne-card__title { color: var(--ne-secondary-500); }

/* ---- Treatments & Procedures ----------------------------------------- */
.dept-treatments__grid { gap: var(--ne-space-l); }
.dept-treatment {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ne-space-s);
	cursor: default;
	text-align: left;
}
.dept-treatment .ne-btncard__icon {
	background: var(--ne-tertiary-a10);
	color: var(--ne-tertiary-500);
}
.dept-treatment__name { font-weight: 700; color: var(--ne-primary-500); font-size: var(--ne-h8-size); }
.dept-treatment__body { display: flex; flex-direction: column; gap: 4px; }
.dept-treatment__text { color: var(--ne-neutral-700); font-size: var(--ne-b3-size); line-height: var(--ne-b3-line); }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
	.dept-bookcard__form { grid-template-columns: 1fr 1fr; }
	.dept-bookcard__submit { grid-column: 1 / -1; }
	.dept-intro__grid { grid-template-columns: 1fr; gap: var(--ne-space-xl); }
}
@media (max-width: 640px) {
	.dept-hero__inner { min-height: 360px; padding-block: var(--ne-space-4xl) var(--ne-space-5xl); }
	.dept-hero__actions { width: 100%; }
	.dept-hero__actions .ne-btn { flex: 1 1 auto; justify-content: center; }
	.dept-bookcard__form { grid-template-columns: 1fr; }
	.dept-hero__card-wrap { margin-top: calc(-1 * var(--ne-space-3xl)); }
}
