/* =========================================================
   DOCTORS — PAGE HEADER
   ========================================================= */

.meridian-doctors-page-title {
	margin: 0;
	font-weight: 600;
	font-size: 2rem;
}

.meridian-doctors-page-header {
	margin-bottom: 3em;
}

/* =========================================================
   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));
	gap: 1.75rem;
}


/* =========================================================
   DOCTORS — CARD
   ========================================================= */

.meridian-doctor-card {
	position: relative;
	overflow: hidden;

	display: flex;
	flex-direction: column;

	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%);
}


/* =========================================================
   DOCTORS — IMAGE
   ========================================================= */

.meridian-doctor-card-image-link {
	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%;
}


/* =========================================================
   DOCTORS — CARD CONTENT
   ========================================================= */

.meridian-doctor-card-content {
	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 {
	color: inherit;
	text-decoration: none;
}


/* Specialty */
.meridian-doctor-specialty {
	margin: 0 0 12px;

	color: var(--meridian-primary);

	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
}


/* Short introduction */
.meridian-doctor-intro {
	margin: 0;

	color: var(--meridian-secondary);

	font-size: 0.95rem;
	line-height: 1.55;
}


/* =========================================================
   DOCTORS — VIEW PROFILE
   ========================================================= */

.meridian-doctor-card-actions {
	margin-top: auto;
	padding-top: 18px;
}

.meridian-doctor-profile-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	color: var(--meridian-primary);

	font-size: 0.95rem;
	font-weight: 600;

	text-decoration: none;
}


/* =========================================================
   DOCTORS — CARD HOVER MOTION
   ========================================================= */

.meridian-doctor-card {
	transition:
		transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 280ms ease,
		border-color 280ms ease;
}

.meridian-doctor-image {
	transition:
		transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.meridian-doctor-profile-button {
	position: relative;

	transition:
		color 220ms ease,
		transform 220ms ease;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {

	.meridian-doctor-card:hover,
	.meridian-doctor-card:focus-within {
		transform: translateY(-6px);

		border-color: rgb(0 94 168 / 24%);

		box-shadow:
			0 20px 42px rgb(11 46 79 / 13%),
			0 8px 20px rgb(0 94 168 / 8%);
	}

	.meridian-doctor-card:hover .meridian-doctor-image,
	.meridian-doctor-card:focus-within .meridian-doctor-image {
		transform: scale(1.035);
	}

	.meridian-doctor-card:hover .meridian-doctor-profile-button,
	.meridian-doctor-card:focus-within .meridian-doctor-profile-button {
		transform: translateX(3px);
	}
}


/* =========================================================
   DOCTORS — RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

	.meridian-doctor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


@media (max-width: 640px) {

	.meridian-doctor-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.meridian-doctor-card-content {
		padding: 18px 20px 20px;
	}

}