/**
 * Match former Elementor teacher cards (grid #90f26bc + card containers).
 */

.edu-teacher-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-flow: row;
	gap: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	direction: inherit;
}

.edu-teacher-card {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	margin: 0;
	/* Match Elementor: padding 100px top/bottom keeps card height without cropping faces badly */
	padding: 100px 16px;
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--edu-card-bg, #087884);
	background-image: var(--edu-card-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
	min-height: 220px;
}

.edu-teacher-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image: var(--edu-card-overlay);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.33;
	z-index: 0;
	pointer-events: none;
}

.edu-teacher-card__link {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	text-decoration: none !important;
	color: #ffffff;
}

.edu-teacher-card__title {
	display: block;
	font-size: 28px;
	line-height: 1.35;
	font-weight: 600;
	color: #ffffff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
	transition: color 0.2s ease;
}

.edu-teacher-card__link:hover .edu-teacher-card__title,
.edu-teacher-card__link:focus .edu-teacher-card__title {
	color: #f69523;
}

/* Elementor shortcode widget wrapper should not shrink cards */
.elementor-widget-shortcode .edu-teacher-cards {
	width: 100%;
}

@media (max-width: 767px) {
	.edu-teacher-cards {
		grid-template-columns: 1fr;
	}

	.edu-teacher-card {
		padding: 70px 12px;
		min-height: 180px;
	}

	.edu-teacher-card__title {
		font-size: 22px;
	}
}

/* Safety: keep header logo sized if theme option CSS is missing */
.site-branding img.site-logo,
.logo-wrapper img.site-logo,
.navbar-brand.site-main-logo img,
.elementor-widget-edublink-site-logo img {
	width: 150px !important;
	max-width: 150px !important;
	height: auto !important;
}
