/* Meet the Team — Clinical Profile Cards */

.meet-the-team-wall {
	--meet-the-team-navy: #173f58;
	--meet-the-team-blue: #63aed5;
	--meet-the-team-blue-light: #9fcde5;
	--meet-the-team-blue-pale: #edf5f9;
	--meet-the-team-grey-bg: #edeef0;
	--meet-the-team-accent: #0551b1;
	--meet-the-team-role: #5c9cc8;
	--meet-the-team-gap: 32px;
	--meet-the-team-visible: 3;
	--meet-the-team-card-width: calc(
		(100cqw - (var(--meet-the-team-visible) - 1) * var(--meet-the-team-gap)) / var(--meet-the-team-visible)
	);

	container-type: inline-size;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	overflow: hidden;
}

.meet-the-team-track {
	display: flex;
	gap: var(--meet-the-team-gap);
	width: max-content;
	/* 6 steps x 4s each = 24s per full loop */
	animation: meet-the-team-scroll 24s infinite;
}

.meet-the-team-wall:hover .meet-the-team-track {
	animation-play-state: paused;
}

@keyframes meet-the-team-scroll {
	0%, 14.5833% {
		transform: translateX(0);
	}
	16.6667%, 31.25% {
		transform: translateX(calc(-1 * (var(--meet-the-team-card-width) + var(--meet-the-team-gap)) * 1));
	}
	33.3333%, 47.9167% {
		transform: translateX(calc(-1 * (var(--meet-the-team-card-width) + var(--meet-the-team-gap)) * 2));
	}
	50%, 64.5833% {
		transform: translateX(calc(-1 * (var(--meet-the-team-card-width) + var(--meet-the-team-gap)) * 3));
	}
	66.6667%, 81.25% {
		transform: translateX(calc(-1 * (var(--meet-the-team-card-width) + var(--meet-the-team-gap)) * 4));
	}
	83.3333%, 97.9167% {
		transform: translateX(calc(-1 * (var(--meet-the-team-card-width) + var(--meet-the-team-gap)) * 5));
	}
	100% {
		transform: translateX(calc(-1 * (var(--meet-the-team-card-width) + var(--meet-the-team-gap)) * 6));
	}
}

@media (prefers-reduced-motion: reduce) {
	.meet-the-team-track {
		animation: none;
	}
}

.meet-the-team-card {
	position: relative;
	flex: 0 0 var(--meet-the-team-card-width);
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--meet-the-team-grey-bg);
	border-radius: 10px;
	overflow: hidden;
	padding: 0;
	text-align: center;
	box-shadow: 0 4px 10px rgba(23, 63, 88, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.meet-the-team-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 24px rgba(23, 63, 88, 0.14);
	border-color: var(--meet-the-team-blue-light);
}

.meet-the-team-card__photo-wrap {
	width: 100%;
	flex-shrink: 0;
	height: calc(var(--meet-the-team-card-width) * 3 / 4) !important;
	margin: 0 0 14px;
	position: relative;
}

.meet-the-team-card__photo {
	width: 100% !important;
	height: 100% !important;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
	background: var(--meet-the-team-grey-bg);
}

.meet-the-team-card__photo img {
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: var(--meet-the-team-photo-position, center);
}

.meet-the-team-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 16px 18px;
}

.meet-the-team-card__name {
	font-size: 15px;
	font-weight: 600;
	color: var(--meet-the-team-navy);
	line-height: 1.3;
}

.meet-the-team-card__role {
	margin-top: 4px;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 500;
	color: var(--meet-the-team-role);
	line-height: 1.4;
}

.meet-the-team-card__clinic {
	display: inline-block;
	align-self: center;
	margin-top: auto;
	padding: 3px 12px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--meet-the-team-navy);
	background: var(--meet-the-team-blue-pale);
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;
}

.meet-the-team-card__clinic:hover {
	background: var(--meet-the-team-blue-light);
	color: #fff;
}

/* Responsive */

@media (max-width: 780px) {
	.meet-the-team-wall {
		--meet-the-team-visible: 2;
	}
}

@media (max-width: 460px) {
	.meet-the-team-wall {
		--meet-the-team-visible: 1;
	}
}