.tg-mentors-heading {
	margin: 0 0 1.25rem;
	font-size: 1.75rem;
	line-height: 1.2;
	color: #1d2443;
}

.tg-mentors-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
}

.tg-mentor-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	border: 1px solid #d7d9df;
	background: #fff;
	transition: border-color .15s ease, transform .15s ease;
}

.tg-mentor-card:hover {
	border-color: #1d2443;
}

.tg-mentor-card__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	color: #111;
	text-decoration: none;
}

.tg-mentor-card__main:focus-visible,
.tg-mentor-social__link:focus-visible,
.tg-mentor-carousel__button:focus-visible,
.tg-mentor-back:focus-visible {
	outline: 3px solid #005fcc;
	outline-offset: 3px;
}

.tg-mentor-card__photo {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f3f5;
}

.tg-mentor-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tg-mentor-card__body {
	padding: 1rem 1rem .75rem;
}

.tg-mentor-card__name {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.25;
	color: #1d2443;
}

.tg-mentor-card__role {
	margin: .35rem 0 0;
	font-size: .95rem;
	line-height: 1.45;
	color: #5d6068;
}

.tg-mentor-socials {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
}

.tg-mentor-card__socials {
	padding: 0 1rem 1rem;
}

.tg-mentor-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #cfd2d8;
	color: #1d2443;
	background: #fff;
	text-decoration: none;
}

.tg-mentor-social__link:hover {
	border-color: #1d2443;
	background: #f6f7f9;
}

.tg-mentor-carousel {
	position: relative;
}

.tg-mentor-carousel__controls {
	display: flex;
	justify-content: flex-end;
	gap: .5rem;
	margin-bottom: .75rem;
}

.tg-mentor-carousel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #1d2443;
	background: #fff;
	color: #1d2443;
	font: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	cursor: pointer;
}

.tg-mentor-carousel__button:hover:not(:disabled) {
	background: #1d2443;
	color: #fff;
}

.tg-mentor-carousel__button:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.tg-mentor-carousel__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	list-style: none;
	margin: 0 !important;
	padding: 0 0 .5rem !important;
	scrollbar-gutter: stable;
}

.tg-mentor-carousel__track:focus-visible {
	outline: 3px solid #005fcc;
	outline-offset: 3px;
}

.tg-mentor-carousel__slide {
	flex: 0 0 calc((100% - 4rem) / 5);
	min-width: 0;
	scroll-snap-align: start;
}

.tg-mentor-carousel__slide .tg-mentor-card {
	height: 100%;
}

.tg-mentor-single {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 3rem 0 4rem;
}

.tg-mentor-back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-bottom: 1.5rem;
	color: #1d2443;
	font-weight: 700;
	text-decoration: none;
}

.tg-mentor-back:hover {
	text-decoration: underline;
	text-underline-offset: .2em;
}

.tg-mentor-single__grid {
	display: grid;
	grid-template-columns: minmax(240px, .75fr) minmax(0, 1.7fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}

.tg-mentor-single__side {
	min-width: 0;
}

.tg-mentor-single__photo {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #f2f3f5;
}

.tg-mentor-single__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tg-mentor-single__socials {
	margin-top: 1rem;
}

.tg-mentor-single__name {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.08;
	color: #1d2443;
}

.tg-mentor-single__role {
	margin: .7rem 0 0;
	font-size: 1.15rem;
	line-height: 1.45;
	color: #5d6068;
}

.tg-mentor-single__content {
	margin-top: 2rem;
	font-size: 1rem;
	line-height: 1.75;
}

.tg-mentor-single__content > :first-child {
	margin-top: 0;
}

.tg-mentor-single__content > :last-child {
	margin-bottom: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 1100px) {
	.tg-mentors-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tg-mentor-carousel__slide {
		flex-basis: calc((100% - 2rem) / 3);
	}
}

@media (max-width: 900px) {
	.tg-mentors-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tg-mentor-carousel__slide {
		flex-basis: calc((100% - 1rem) / 2);
	}
}

@media (max-width: 680px) {
	.tg-mentors-grid {
		grid-template-columns: 1fr;
	}

	.tg-mentor-carousel__slide {
		flex-basis: 88%;
	}

	.tg-mentor-single {
		padding-top: 2rem;
	}

	.tg-mentor-single__grid {
		grid-template-columns: 1fr;
	}

	.tg-mentor-single__photo {
		max-width: 420px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tg-mentor-card {
		transition: none;
	}

	.tg-mentor-carousel__track {
		scroll-behavior: auto;
	}
}
