/* =========================================================
   MERIDIAN HOSPITAL AND MEDICAL CENTER
   DOCTORS DIRECTORY + DOCTOR PROFILE
   ========================================================= */


/* =========================================================
   DOCTORS — PAGE HEADER
   ========================================================= */

.meridian-doctors-page-title {
	margin: 0;

	font-size: 2rem;
	font-weight: 600;
	line-height: 1.2;
}

.meridian-doctors-page-header {
	margin-bottom: 3rem;
}


/* =========================================================
   DOCTORS — DEPARTMENT HEADING
   ========================================================= */

.meridian-doctor-department-title {
	margin: 20px 0;

	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.25;
}


/* =========================================================
   DOCTORS — DIRECTORY GRID
   ========================================================= */

.meridian-doctor-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	/* Equal row heights within each department grid. */
	grid-auto-rows: 1fr;
	gap: 1.75rem;

	align-items: stretch;
}


/* =========================================================
   DOCTORS — CARD
   ========================================================= */

.meridian-doctor-card {
    /*outline: 1px solid var(--meridian-border);*/

    position: relative;
	isolation: isolate;
	overflow: hidden;

	display: flex;
	flex-direction: column;

	margin: 0;
	padding: 0;

	background: var(--meridian-white);

	border: 1px solid var(--meridian-border);
	border-radius: 16px;

	box-shadow:
		0 8px 20px rgb(11 46 79 / 6%),
		0 2px 6px rgb(11 46 79 / 4%);
}


/* Soft Meridian hover glow */
.meridian-doctor-card::before {
	content: "";

	position: absolute;
	inset: 0;
	z-index: 0;

	background:
		radial-gradient(
			circle at 75% 18%,
			rgb(0 94 168 / 18%),
			transparent 42%
		);

	opacity: 0;

	transition: opacity 360ms ease;
}


/* =========================================================
   DOCTORS — IMAGE
   ========================================================= */

.meridian-doctor-card-image-link {
	position: relative;
	z-index: 1;

	display: block;

	width: 100%;

	text-decoration: none;
}

.meridian-doctor-card-image {
	width: 100%;

	aspect-ratio: 4 / 3;

	overflow: hidden;
}

.meridian-doctor-image {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center 20%;

	transition:
		transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   DOCTORS — CARD CONTENT
   ========================================================= */

.meridian-doctor-card-content {
	position: relative;
	z-index: 1;

	display: flex;
	flex: 1;
	flex-direction: column;

	padding: 20px 22px 22px;
}


/* Doctor name */
.meridian-doctor-name {
	margin: 0 0 4px;

	color: var(--meridian-deep);

	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.meridian-doctor-name a,
.meridian-doctor-name a:visited {
	color: inherit;

	text-decoration: none;
}


/* Specialty */
.meridian-doctor-specialty {
	margin: 0 0 12px;

	/*
	 * Reserve vertical space for two lines so card content
	 * stays visually aligned across the directory grid.
	 */
	min-height: 2.8em;

	color: var(--meridian-primary);

	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
}


/* Short introduction */
.meridian-doctor-intro {
	display: -webkit-box;

	margin: 0;

	overflow: hidden;

	color: var(--meridian-secondary);

	font-size: 0.95rem;
	line-height: 1.55;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}


/* =========================================================
   DOCTORS — VIEW PROFILE CTA
   ========================================================= */

.meridian-doctor-card-actions {
	margin-top: auto;

	padding-top: 18px;
}

.meridian-doctor-profile-button,
.meridian-doctor-profile-button:visited {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	padding: 0.7rem 1.1rem;

	background-color: #0B6B3A;

	border: 1px solid #0B6B3A;
	border-radius: 8px;

	color: var(--meridian-white) !important;

	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;

	text-decoration: none !important;

	transition:
		background-color 220ms ease,
		border-color 220ms ease,
		transform 220ms ease,
		box-shadow 220ms ease;
}


/* =========================================================
   DOCTORS — CTA HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

	.meridian-doctor-profile-button:hover,
	.meridian-doctor-profile-button:focus-visible {
		background-color: #084d2b !important;
		border-color: #084d2b !important;

		color: var(--meridian-white) !important;

		transform: translateY(-2px);

		box-shadow:
			0 8px 18px rgb(11 46 79 / 18%);
	}
}


/* =========================================================
   DOCTORS — CARD HOVER MOTION
   ========================================================= */

@media (prefers-reduced-motion: no-preference) and
	   (hover: hover) and
	   (pointer: fine) {

	.meridian-doctor-card:hover,
	.meridian-doctor-card:focus-within {
		border-color: rgb(0 94 168 / 24%);

		box-shadow:
			0 20px 44px rgb(11 46 79 / 14%),
			0 8px 22px rgb(0 94 168 / 9%);
	}

	.meridian-doctor-card:hover::before,
	.meridian-doctor-card:focus-within::before {
		opacity: 1;
	}

	.meridian-doctor-card:hover .meridian-doctor-image,
	.meridian-doctor-card:focus-within .meridian-doctor-image {
		transform: scale(1.035);
	}
}


/* =========================================================
   DOCTOR PROFILE — PAGE SHELL
   ========================================================= */

.meridian-doctor-profile {
	padding-block: 3rem 4rem;
}

.meridian-doctor-profile-entry {
	margin: 0;
}


/* =========================================================
   DOCTOR PROFILE — HERO
   ========================================================= */

.meridian-doctor-profile-hero {
	display: grid;

	grid-template-columns: 280px minmax(0, 1fr);
	gap: 2.5rem;

	align-items: center;

	margin-bottom: 3rem;

	padding: 2rem;

	background: var(--meridian-white);

	border: 1px solid var(--meridian-border);
	border-radius: 18px;

	box-shadow:
		0 12px 28px rgb(11 46 79 / 7%),
		0 3px 8px rgb(11 46 79 / 4%);
}


/* =========================================================
   DOCTOR PROFILE — IMAGE
   ========================================================= */

.meridian-doctor-profile-image-wrap {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 100%;

	aspect-ratio: 4 / 3;
}

.meridian-doctor-profile-image {
	display: block;

	width: 240px;
	height: 240px;

	object-fit: cover;
	object-position: center 20%;

	border-radius: 50%;

	box-shadow:
		0 12px 28px rgb(11 46 79 / 12%);
}

.meridian-doctor-profile-image-placeholder {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 240px;
	height: 240px;

	background: rgb(0 94 168 / 7%);

	border: 1px solid rgb(0 94 168 / 12%);
	border-radius: 50%;

	color: var(--meridian-primary);

	font-weight: 600;
}


/* =========================================================
   DOCTOR PROFILE — SUMMARY
   ========================================================= */

.meridian-doctor-profile-summary {
	min-width: 0;
}

.meridian-doctor-profile-header {
	margin-bottom: 1.75rem;
}

.meridian-doctor-profile-name {
	margin: 0 0 0.4rem;

	color: var(--meridian-deep);

	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
}

.meridian-doctor-profile-specialty {
	margin: 0 0 1rem;

	color: var(--meridian-primary);

	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
}

.meridian-doctor-profile-intro {
	max-width: 62ch;

	margin: 0;

	color: var(--meridian-secondary);

	font-size: 1rem;
	line-height: 1.7;
}


/* =========================================================
   DOCTOR PROFILE — INFORMATION
   ========================================================= */

.meridian-doctor-profile-info {
	display: grid;

	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.meridian-doctor-profile-info-item {
	padding: 1rem 1.1rem;

	background: rgb(0 94 168 / 4%);

	border: 1px solid rgb(0 94 168 / 10%);
	border-radius: 12px;
}

.meridian-doctor-profile-info-label {
	display: block;

	margin-bottom: 0.25rem;

	color: var(--meridian-primary);

	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.3;

	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.meridian-doctor-profile-info-value {
	display: block;

	color: var(--meridian-deep);

	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.5;
}


/* =========================================================
   DOCTOR PROFILE — FULL CONTENT
   ========================================================= */

.meridian-doctor-profile-content {
	margin-top: 2.5rem;
}

.meridian-doctor-profile-content > * + * {
	margin-top: 1.75rem;
}

.meridian-doctor-profile-content h2,
.meridian-doctor-profile-content h3 {
	color: var(--meridian-deep);

	font-weight: 700;
	line-height: 1.25;
}

.meridian-doctor-profile-content h3 {
	margin-bottom: 0.75rem;

	font-size: 1.35rem;
}

.meridian-doctor-profile-content p,
.meridian-doctor-profile-content li {
	color: var(--meridian-secondary);

	font-size: 1rem;
	line-height: 1.7;
}

.meridian-doctor-profile-content ul {
	margin-top: 0.75rem;

	padding-left: 1.25rem;
}


/* =========================================================
   DOCTOR PROFILE — BACK CTA
   ========================================================= */

.meridian-doctor-profile-back {
	margin-top: 3rem;
	margin-bottom: 16px;
}

.meridian-doctor-profile-back a,
.meridian-doctor-profile-back a:visited {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	padding: 0.75rem 1.15rem;

	background-color: #0B6B3A;

	border: 1px solid #0B6B3A;
	border-radius: 8px;

	color: var(--meridian-white) !important;

	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;

	text-decoration: none !important;

	transition:
		background-color 220ms ease,
		border-color 220ms ease,
		transform 220ms ease,
		box-shadow 220ms ease;
}


/* =========================================================
   DOCTOR PROFILE — BACK CTA HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

	.meridian-doctor-profile-back a:hover,
	.meridian-doctor-profile-back a:focus-visible {
		background-color: #084d2b !important;
		border-color: #084d2b !important;

		color: var(--meridian-white) !important;

		transform: translateY(-2px);

		box-shadow:
			0 8px 18px rgb(11 46 79 / 18%);
	}
}


/* =========================================================
   MERIDIAN RESPONSIVE SYSTEM

   Compact:
   0 — 599.98px

   Medium:
   600 — 839.98px

   Expanded:
   840 — 1199.98px

   Large:
   1200 — 1599.98px

   Extra-large:
   1600px+
   ========================================================= */


/* =========================================================
   COMPACT
   max-width: 599.98px
   ========================================================= */

@media (max-width: 599.98px) {

	/* -----------------------------------------
	   Doctors archive
	   ----------------------------------------- */

	.meridian-doctors-archive {
		margin-top: 24px !important;
	}

	.meridian-doctors-page-header {
		margin-bottom: 2rem;
	}

	.meridian-doctors-page-title {
		font-size: 1.75rem;
	}

	.meridian-doctor-department-title {
		margin: 16px 0;

		font-size: 1.4rem;
	}


	/* -----------------------------------------
	   Directory grid
	   ----------------------------------------- */

	.meridian-doctor-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;

		gap: 20px;

		align-items: start;
	}


	/* -----------------------------------------
	   Doctor card
	   ----------------------------------------- */

	.meridian-doctor-card {
		height: auto !important;
		min-height: 0 !important;

		align-self: start;
	}

	.meridian-doctor-card-content {
		flex: none;

		min-height: 0;

		padding: 18px 18px 20px;
	}

	.meridian-doctor-name {
		font-size: 1.1rem;
	}

	.meridian-doctor-specialty {
		min-height: 0;

		font-size: 0.92rem;
	}

	.meridian-doctor-intro {
		font-size: 0.92rem;
	}

	.meridian-doctor-card-actions {
		margin-top: 18px;

		padding-top: 0;
	}


	/* -----------------------------------------
	   Doctor profile shell
	   ----------------------------------------- */

	main#primary.meridian-doctor-profile {
		margin: 24px 0 0 !important;

		padding-top: 0;
		padding-bottom: 32px;
	}


	/* -----------------------------------------
	   Doctor profile hero
	   ----------------------------------------- */

	.meridian-doctor-profile-hero {
		grid-template-columns: 1fr;
		gap: 1.5rem;

		margin-bottom: 2rem;

		padding: 1.25rem;

		border-radius: 14px;

		text-align: center;
	}

	.meridian-doctor-profile-image-wrap {
		aspect-ratio: auto;
	}

	.meridian-doctor-profile-image,
	.meridian-doctor-profile-image-placeholder {
		width: 160px;
		height: 160px;
	}

	.meridian-doctor-profile-header {
		margin-bottom: 1.5rem;
	}

	.meridian-doctor-profile-name {
		font-size: 1.8rem;
	}

	.meridian-doctor-profile-intro {
		margin-inline: auto;
	}


	/* -----------------------------------------
	   Doctor profile information
	   ----------------------------------------- */

	.meridian-doctor-profile-info {
		grid-template-columns: 1fr;

		text-align: left;
	}


	/* -----------------------------------------
	   Full profile content
	   ----------------------------------------- */

	.meridian-doctor-profile-content {
		margin-top: 2rem;
	}

	.meridian-doctor-profile-content h3 {
		font-size: 1.2rem;
	}


	/* -----------------------------------------
	   Back button
	   ----------------------------------------- */

	.meridian-doctor-profile-back {
		margin-top: 2.25rem;
	}

	.meridian-doctor-profile-back a {
		width: 100%;
	}
}


/* =========================================================
   MEDIUM
   600px — 839.98px
   ========================================================= */

@media (min-width: 600px) and (max-width: 839.98px) {

	/* -----------------------------------------
	   Doctors archive
	   ----------------------------------------- */

	.meridian-doctors-archive {
		margin-top: 28px !important;
	}

	.meridian-doctors-page-header {
		margin-bottom: 2.25rem;
	}

	.meridian-doctors-page-title {
		font-size: 1.85rem;
	}

	.meridian-doctor-department-title {
		margin: 18px 0;

		font-size: 1.5rem;
	}


	/* -----------------------------------------
	   Directory grid
	   ----------------------------------------- */

	.meridian-doctor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));

		gap: 1.25rem;

		align-items: stretch;
	}


	/* -----------------------------------------
	   Doctor card
	   ----------------------------------------- */

	.meridian-doctor-card {
		height: auto;
		min-height: 0;

		align-self: stretch;
	}

	.meridian-doctor-card-content {
		flex: 1;

		padding: 18px 18px 20px;
	}

	.meridian-doctor-name {
		font-size: 1.1rem;
	}

	.meridian-doctor-specialty {
		font-size: 0.9rem;
	}

	.meridian-doctor-intro {
		font-size: 0.92rem;
	}

	.meridian-doctor-card-actions {
		margin-top: auto;

		padding-top: 16px;
	}


	/* -----------------------------------------
	   Doctor profile shell
	   ----------------------------------------- */

	main#primary.meridian-doctor-profile {
		margin: 32px 0 0 !important;

		padding-top: 0;
		padding-bottom: 40px;
	}


	/* -----------------------------------------
	   Doctor profile hero
	   ----------------------------------------- */

	.meridian-doctor-profile-hero {
		grid-template-columns: 1fr;
		gap: 1.75rem;

		margin-bottom: 2.5rem;

		padding: 1.75rem;

		text-align: center;
	}

	.meridian-doctor-profile-image-wrap {
		aspect-ratio: auto;
	}

	.meridian-doctor-profile-image,
	.meridian-doctor-profile-image-placeholder {
		width: 190px;
		height: 190px;
	}

	.meridian-doctor-profile-name {
		font-size: 2rem;
	}

	.meridian-doctor-profile-intro {
		margin-inline: auto;
	}


	/* -----------------------------------------
	   Doctor profile information
	   ----------------------------------------- */

	.meridian-doctor-profile-info {
		grid-template-columns: repeat(2, minmax(0, 1fr));

		text-align: left;
	}
}


/* =========================================================
   EXPANDED
   840px — 1199.98px
   ========================================================= */

@media (min-width: 840px) and (max-width: 1199.98px) {

	/* -----------------------------------------
	   Doctors archive
	   ----------------------------------------- */

	.meridian-doctors-page-header {
		margin-bottom: 2.5rem;
	}

	.meridian-doctor-department-title {
		font-size: 1.6rem;
	}


	/* -----------------------------------------
	   Directory grid
	   ----------------------------------------- */

	.meridian-doctor-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.4rem;

		/* Stretch cards to the shared grid row height. */
		align-items: stretch;
	}


	/* -----------------------------------------
	   Doctor card
	   ----------------------------------------- */

	.meridian-doctor-card {
		height: auto !important;
		min-height: 0 !important;

		align-self: stretch;
	}


	/* -----------------------------------------
	   Card content
	   ----------------------------------------- */

	.meridian-doctor-card-content {
		display: flex;
		flex: 1;
		flex-direction: column;

		min-height: 0;

		padding: 18px 20px 20px;
	}

	.meridian-doctor-name {
		font-size: 1.12rem;
	}

	.meridian-doctor-specialty,
	.meridian-doctor-intro {
		font-size: 0.92rem;
	}


	/* -----------------------------------------
	   View Profile CTA
	   ----------------------------------------- */

	.meridian-doctor-card-actions {
		margin-top: auto;
		padding-top: 16px;
	}


	/* -----------------------------------------
	   Doctor profile hero
	   ----------------------------------------- */

	.meridian-doctor-profile-hero {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 2rem;

		padding: 1.75rem;

		text-align: left;
	}

	.meridian-doctor-profile-image-wrap {
		aspect-ratio: 4 / 3;
	}

	.meridian-doctor-profile-image,
	.meridian-doctor-profile-image-placeholder {
		width: 190px;
		height: 190px;
	}

	.meridian-doctor-profile-name {
		font-size: clamp(2rem, 3.4vw, 2.6rem);
	}

	.meridian-doctor-profile-intro {
		margin-inline: 0;
	}


	/* -----------------------------------------
	   Doctor profile information
	   ----------------------------------------- */

	.meridian-doctor-profile-info {
		grid-template-columns: repeat(2, minmax(0, 1fr));

		text-align: left;
	}
}


/* =========================================================
   LARGE
   1200px — 1599.98px

   Base desktop rules already represent the Large layout.
   This breakpoint is intentionally reserved for future
   Large-specific adjustments.
   ========================================================= */

@media (min-width: 1200px) and (max-width: 1599.98px) {

	.meridian-doctor-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* =========================================================
   EXTRA-LARGE
   1600px+
   ========================================================= */

@media (min-width: 1600px) {

	.meridian-doctor-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));

		gap: 2rem;
	}

	.meridian-doctor-profile-hero {
		grid-template-columns: 300px minmax(0, 1fr);

		gap: 3rem;
	}

	.meridian-doctor-profile-image,
	.meridian-doctor-profile-image-placeholder {
		width: 250px;
		height: 250px;
	}
}
