/* Educators
--------------------------------------------- */
body.page {
	margin: 0;
}

.educators-page {
	--educators-green: #267b68;
	--educators-yellow: #ffbc42;

	overflow: hidden;
	color: #20252d;
}

.educators-container {
	width: min(100% - 2rem, 77.5rem);
	margin-inline: auto;
}

.educators-hero {
	position: relative;
	display: grid;
	min-height: clamp(28rem, 58vw, 40rem);
	place-items: center;
	isolation: isolate;
	overflow: hidden;
	background: #1d2926;
	color: #fff;
	text-align: center;
}

.educators-hero::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: rgba(15, 22, 20, 0.62);
	content: "";
}

.educators-hero__background {
	position: absolute;
	z-index: -2;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.educators-hero__content {
	padding-block: clamp(4rem, 10vw, 7rem);
}

.educators-hero__logo {
	display: block;
	width: clamp(8rem, 18vw, 13rem);
	height: auto;
	margin: 0 auto 1.25rem;
}

.educators-hero h1 {
	margin: 0;
	color: var(--educators-yellow);
	font-size: clamp(2.5rem, 7vw, 4.5rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.educators-hero p {
	max-width: 58rem;
	margin: 1rem auto 0;
	color: #fff;
	font-size: clamp(1rem, 2vw, 1.15rem);
	line-height: 1.7;
}

.educators-team,
.educators-cards {
	background: var(--educators-green);
}

.educators-team {
	padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
	color: #fff;
	text-align: center;
}

.educators-team__inner {
	max-width: 62rem;
}

.educators-team__image {
	display: block;
	width: min(100%, 43rem);
	max-height: 25rem;
	margin: 0 auto 1.5rem;
	object-fit: contain;
}

.educators-team h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.1;
}

.educators-team p {
	max-width: 54rem;
	margin: 1rem auto 0;
	color: #fff;
	font-size: clamp(0.98rem, 2vw, 1.1rem);
	line-height: 1.7;
}

.educators-cards {
	padding-block: 1rem clamp(4rem, 8vw, 7rem);
}

.educators-cards__grid {
	display: grid;
	gap: 1.25rem;
}

.educator-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 1rem 2.5rem rgba(12, 54, 45, 0.18);
}

.educator-card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center top;
}

.educator-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-start;
	gap: 1.25rem;
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.educator-card__bottom-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.educator-card__occupation {
	margin: 0;
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}

.educator-card h3 {
	color: #17191d;
	font-size: 1rem;
	line-height: 1.45;
}

.educator-card__bio {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.65;
}

.educators-page + .site-footer,
.site-footer {
	margin-top: 0;
}

@media screen and (min-width: 40em) {

	.educators-container {
		width: min(100% - 4rem, 77.5rem);
	}

	.educators-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.educator-card__occupation {
		min-height: 2.5em;
	}
}

@media screen and (min-width: 64em) {

	.educators-cards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
