/* ==========================================================================
   "Meet our Leads" page beautify — scoped to body.page-id-533
   ========================================================================== */

/* ---------- Hero banner ---------- */

body.page-id-533 .stm-page-head__overlay {
	background: linear-gradient(
		100deg,
		rgba(1, 27, 58, 0.92) 0%,
		rgba(1, 27, 58, 0.62) 45%,
		rgba(129, 202, 0, 0.30) 100%
	);
}

body.page-id-533 .stm-page-head__title {
	font-size: 46px;
	font-weight: 700;
	letter-spacing: -0.5px;
	margin-bottom: 20px;
}

body.page-id-533 .stm-page-head__separator-line {
	width: 88px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, #81ca00, #00aaff);
}

/* ---------- Section ---------- */

body.page-id-533 .content {
	background: #f3f6fa;
}

body.page-id-533 .entry-content .stm-separator {
	display: none;
}

body.page-id-533 .stm-teachers {
	padding: 40px 0 30px;
}

/* ---------- Grid (equal-height cards) ---------- */

body.page-id-533 .stm-teachers .row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

body.page-id-533 .stm-teachers .row:before,
body.page-id-533 .stm-teachers .row:after {
	display: none;
}

body.page-id-533 .stm-teacher_view_grid-item {
	display: flex;
	flex-direction: column;
	margin-bottom: 44px;
}

/* ---------- Entrance animation ---------- */

@keyframes sjsTeacherIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.page-id-533 .stm-teacher_view_grid-item {
	animation: sjsTeacherIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

body.page-id-533 .stm-teachers .stm-teacher:nth-child(1)  { animation-delay: 0.05s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(2)  { animation-delay: 0.12s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(3)  { animation-delay: 0.19s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(4)  { animation-delay: 0.26s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(5)  { animation-delay: 0.33s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(6)  { animation-delay: 0.40s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(7)  { animation-delay: 0.47s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(8)  { animation-delay: 0.54s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(9)  { animation-delay: 0.61s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(10) { animation-delay: 0.68s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(11) { animation-delay: 0.75s; }
body.page-id-533 .stm-teachers .stm-teacher:nth-child(12) { animation-delay: 0.82s; }

/* ---------- Photo ---------- */

body.page-id-533 .stm-teacher__photo {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(1, 27, 58, 0.14);
}

body.page-id-533 .stm-teacher__photo img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.55s ease;
}

body.page-id-533 .stm-teacher:hover .stm-teacher__photo img {
	transform: scale(1.06);
}

body.page-id-533 .stm-teacher__photo:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(1, 27, 58, 0) 55%, rgba(1, 27, 58, 0.35));
	opacity: 0;
	transition: opacity 0.4s ease;
}

body.page-id-533 .stm-teacher:hover .stm-teacher__photo:after {
	opacity: 1;
}

/* ---------- Floating info panel ---------- */

body.page-id-533 .stm-teacher__info {
	display: flex;
	flex: 1;
	padding: 0 18px;
}

body.page-id-533 .stm-teacher__info-content {
	width: 100%;
	margin-top: -46px;
	padding: 28px 24px 22px;
	background: #fff;
	border: none;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(1, 27, 58, 0.10);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.page-id-533 .stm-teacher__info-content:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 14px 14px 0 0;
	background: linear-gradient(90deg, #81ca00, #00aaff);
}

body.page-id-533 .stm-teacher:hover .stm-teacher__info-content {
	background: #fff;
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(1, 27, 58, 0.18);
}

/* ---------- Name & position ---------- */

body.page-id-533 .stm-teacher__name {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: #011b3a;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	margin-bottom: 6px;
}

body.page-id-533 .stm-teacher__position {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2px;
	color: #5f9e00;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

/* ---------- Social icons (always visible) ---------- */

body.page-id-533 .stm-teacher__socials {
	position: static;
	transform: none;
	opacity: 1;
	margin-top: 16px;
}

body.page-id-533 .stm-teacher__socials .socials-list_type_teacher .socials-list__item-link {
	transition: transform 0.25s ease, opacity 0.25s ease;
}

body.page-id-533 .stm-teacher__socials .socials-list__item-link:hover {
	transform: translateY(-3px);
	opacity: 1;
}

/* ---------- Cancel the theme's hide-on-hover behaviour ---------- */

body.page-id-533 .stm-teacher:hover .stm-teacher__name,
body.page-id-533 .stm-teacher:hover .stm-teacher__position {
	transform: none;
	opacity: 1;
}

body.page-id-533 .stm-teacher:hover .stm-teacher__socials {
	transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	body.page-id-533 .stm-page-head__title {
		font-size: 32px;
	}

	body.page-id-533 .stm-teacher__photo img {
		height: 220px;
	}
}
