/* Team Members Carousel */
.tmc {
	position: relative;
	/* side gutters reserved for the arrows so they never overlap the cards */
	padding: 0 64px;
}

.tmc-track {
	display: flex;
	flex-direction: row;
	gap: var(--tmc-gap, 30px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 10px 4px 20px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	outline: none;
}

.tmc-track::-webkit-scrollbar {
	display: none;
}

/* Card — open layout: no background, no shadow, everything centered */
.tmc-card {
	flex: 0 0 var(--tmc-card, 300px);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.35s ease;
	/* entrance animation (staggered via --tmc-i, added by tmc.js) */
	opacity: 0;
	transform: translateY(24px);
}

.tmc.is-in .tmc-card {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease calc(var(--tmc-i, 0) * 90ms), transform 0.6s ease calc(var(--tmc-i, 0) * 90ms);
}

.tmc.is-in .tmc-card:hover {
	transform: translateY(-6px);
	transition: transform 0.35s ease;
}

.tmc-photo {
	display: block;
	flex: none;
	width: var(--tmc-photo, 100px);
	height: var(--tmc-photo, 100px);
	border-radius: 50%;
	background-size: cover;
	background-position: top center;
	transition: transform 0.5s ease;
}

.tmc-card:hover .tmc-photo {
	transform: scale(1.06);
}

.tmc-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 10px 0;
}

.tmc-name {
	font-family: Cormorant, serif;
	font-size: 22px !important;
	font-weight: 900;
	line-height: 1.2;
	color: #0a132b;
}

.tmc-role {
	margin-top: 6px;
	font-family: Inter, sans-serif;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #75808b;
	opacity: 0.85;
}

.tmc-bio {
	margin-top: 12px;
	font-family: Inter, sans-serif;
	font-size: 14px !important;
	line-height: 1.6;
	color: #75808b;
}

.tmc-year {
	margin-top: 12px;
	font-family: Inter, sans-serif;
	font-size: 13px !important;
	font-style: italic;
	font-weight: 600;
	color: #2b2a7a;
}

/* Arrows */
.tmc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: #c2aa22;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 5px 14px rgba(43, 42, 122, 0.25);
	transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.tmc-arrow svg {
	width: 22px;
	height: 22px;
}

.tmc-prev {
	left: 0;
}

.tmc-next {
	right: 0;
}

.tmc-arrow:hover {
	background: #2b2a7a;
	transform: translateY(-50%) scale(1.08);
}

.tmc-arrow[disabled] {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

.tmc-track:focus-visible {
	box-shadow: 0 0 0 3px #c2aa22;
	border-radius: 20px;
}

@media (max-width: 767px) {
	.tmc {
		padding: 0 46px;
	}
	.tmc-arrow {
		width: 38px;
		height: 38px;
	}
	.tmc-arrow svg {
		width: 18px;
		height: 18px;
	}
	/* one member per view */
	.tmc-card {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmc-card,
	.tmc.is-in .tmc-card,
	.tmc-photo,
	.tmc-arrow {
		transition: none;
	}
	.tmc-card {
		opacity: 1;
		transform: none;
	}
	.tmc-track {
		scroll-behavior: auto;
	}
}
