/* Purpose: home_mentor – dark mentor panel (Home 3d68834) with the ET award card (photos open a lightbox), two paragraphs
   and the flame decorations peeking out behind the panel (z-index -1, clipped by the section). */

.home-mentor {
	--home-mentor-card-bg: #273242;
	--home-mentor-card-border: rgba(194, 150, 82, 0.35);
	--home-mentor-rule: rgba(194, 150, 82, 0.3);
	--home-mentor-copy: #D5DAE1;

	overflow: hidden;
	padding: 0 var(--space-16) var(--space-48);
}

.home-mentor__inner {
	display: flex;
	max-width: var(--container-max);
	margin-inline: auto;
}

.home-mentor__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: var(--space-32) var(--space-16);
	background-color: var(--color-secondary);
}

.home-mentor__content {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.home-mentor__heading {
	align-self: center;
	max-width: 100%;
	margin: 0;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--text-24);
	font-weight: var(--weight-bold);
	line-height: var(--leading-snug);
	text-align: center;
	text-wrap: balance;
}

/* ------------------------------------------------------------ ET award card */
.home-mentor__award {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-24) 36px;
	margin: var(--space-20) 0 var(--space-12);
	padding: var(--space-16) var(--space-16) var(--space-20);
	border: 1px solid var(--home-mentor-card-border);
	border-radius: 6px;
	background-color: var(--home-mentor-card-bg);
}

.home-mentor__gallery {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	width: 100%;
}

.home-mentor__thumbs {
	display: flex;
	gap: var(--space-10);
}

.home-mentor__photo--thumb {
	flex-grow: 1;
	width: 32%;
	line-height: 0;
	text-align: center;
}

.home-mentor__photo-link {
	display: block;
}

.home-mentor__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Thumbnails: equal tiles whatever the photo shape (landscape or portrait), cropped to fill. */
.home-mentor .home-mentor__img--thumb {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 64px;
	object-fit: cover;
	object-position: center 30%;
}

.home-mentor__photo--thumb .home-mentor__photo-link {
	display: block;
}

.home-mentor__award-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-8);
	width: 100%;
}

.home-mentor__award-text > * {
	width: 100%;
}

.home-mentor__logo {
	width: 210px;
	font-size: var(--text-16);
	line-height: 24px;
}

.home-mentor__logo-img {
	display: inline-block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.home-mentor__eyebrow {
	margin: var(--space-14) 0 0;
	color: var(--color-primary);
	font-family: var(--font-body);
	font-size: var(--text-13);
	font-weight: var(--weight-semibold);
	line-height: 1.3;
	letter-spacing: 1.2px;
	text-align: center;
	text-transform: uppercase;
	text-wrap: balance;
}

.home-mentor__award-title {
	margin: 0;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--text-22);
	font-weight: var(--weight-semibold);
	line-height: 1.15;
	text-align: center;
	text-wrap: balance;
}

.home-mentor__award-copy {
	padding-top: var(--space-14);
	border-top: 1px solid var(--home-mentor-rule);
}

.home-mentor__award-copy p {
	margin: 0;
	color: var(--home-mentor-copy);
	font-family: var(--font-body);
	font-size: var(--text-16);
	font-weight: var(--weight-regular);
	line-height: var(--leading-relaxed);
	text-align: center;
	text-wrap: pretty;
}

/* ------------------------------------------------------------ Paragraphs */
.home-mentor__lead,
.home-mentor__text {
	margin: var(--space-20) 0 0;
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: var(--text-14);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-normal);
	text-align: center;
	text-wrap: pretty;
}

.home-mentor__text {
	margin-top: var(--space-16);
	font-weight: var(--weight-regular);
}

/* ------------------------------------------------------------ Decorations (behind the panel) */
.home-mentor__decor {
	position: absolute;
	z-index: -1;
	width: auto;
	max-width: none;
	height: auto;
}

.home-mentor__decor--left {
	bottom: -140px;
	left: -140px;
}

.home-mentor__decor--right {
	display: none;
	top: 0;
	right: -116px;
}

/* ------------------------------------------------------------ Tablet */
@media (min-width: 768px) {
	.home-mentor {
		padding: 0 var(--space-20) var(--space-60);
	}

	.home-mentor__panel {
		padding: var(--space-60) var(--space-20) var(--space-32);
	}

	.home-mentor__heading {
		font-size: var(--text-32);
	}

	.home-mentor__award {
		flex-direction: row;
		flex-wrap: nowrap;
		margin: var(--space-32) 0 var(--space-16);
		padding: var(--space-24) 28px var(--space-24) var(--space-24);
	}

	.home-mentor__gallery {
		width: 54%;
	}

	.home-mentor .home-mentor__img--thumb {
		display: block;
		width: 100%;
		height: 92px;
	}

	.home-mentor__photo--thumb .home-mentor__photo-link {
		display: block;
	}

	.home-mentor__award-text {
		align-items: flex-start;
		width: 46%;
	}

	.home-mentor__eyebrow,
	.home-mentor__award-title,
	.home-mentor__award-copy p {
		text-align: start;
	}

	.home-mentor__award-title {
		font-size: var(--text-28);
	}

	.home-mentor__lead,
	.home-mentor__text {
		font-size: var(--text-18);
	}

	.home-mentor__lead {
		margin-top: var(--space-24);
	}

	.home-mentor__decor--right {
		display: block;
	}
}

/* ------------------------------------------------------------ Desktop */
@media (min-width: 1025px) {
	.home-mentor {
		padding: 0 var(--gutter) var(--space-100);
	}

	.home-mentor__panel {
		padding: var(--space-60) 0;
	}

	.home-mentor__content {
		width: 780px;
		max-width: 100%;
	}

	.home-mentor__heading {
		font-size: var(--text-40);
	}

	.home-mentor__lead,
	.home-mentor__text {
		font-size: var(--text-20);
	}
}

/* ------------------------------------------------------------ Lightbox (built by assets/js/sections/home_mentor.js) */
.home-lightbox {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.87);
}

.home-lightbox[hidden] {
	display: none;
}

.home-lightbox__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: var(--space-60) var(--space-16);
}

.home-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.home-lightbox__btn {
	position: absolute;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.9);
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
}

.home-lightbox__btn:hover,
.home-lightbox__btn:focus-visible {
	color: var(--color-white);
}

.home-lightbox__btn[hidden] {
	display: none;
}

.home-lightbox__btn--close {
	top: var(--space-8);
	right: var(--space-8);
}

.home-lightbox__btn--prev {
	top: 50%;
	left: var(--space-8);
	transform: translateY(-50%);
}

.home-lightbox__btn--next {
	top: 50%;
	right: var(--space-8);
	transform: translateY(-50%);
}
