/* Content lives in native Builder Text / Buttons modules, not in this CSS. */
.themify_builder .module_column.teachify-home-stats {
	display: grid;
	grid-template-columns: minmax(190px, .78fr) minmax(300px, 1.22fr);
	grid-template-rows: repeat(2, minmax(145px, auto)) minmax(135px, auto);
	gap: 20px;
	box-sizing: border-box;
	min-width: 0;
	padding: 48px;
}

.themify_builder .module_column.teachify-home-stats::before {
	display: block;
	grid-column: 2;
	grid-row: 1 / span 2;
	min-width: 0;
	min-height: 310px;
	border: 1px solid #ead7c2;
	border-radius: 28px;
	background-color: #fff7ec;
	background-image: url("images/teachify-home-teacher.png");
	background-image: image-set(
		url("images/teachify-home-teacher.webp") type("image/webp"),
		url("images/teachify-home-teacher.png") type("image/png")
	);
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: contain;
	content: "";
}

.themify_builder .module.teachify-home-stat {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	min-height: 145px;
	margin: 0;
	padding: 30px 20px;
	border: 1px solid #ead7c2;
	border-radius: 28px;
	background: #f7dfc4;
	color: #181818;
	font-size: 18px;
	line-height: 1.45;
	text-align: center;
	overflow-wrap: anywhere;
}

.themify_builder .teachify-home-stat .tb_text_wrap {
	width: 100%;
}

.themify_builder .teachify-home-stat p {
	margin: 0;
	padding: 0;
}

.themify_builder .teachify-home-stat p + p {
	margin-top: 6px;
}

.themify_builder .teachify-home-stat strong {
	font-size: clamp(40px, 4.5vw, 68px);
	font-weight: 800;
	line-height: 1.15;
}

.themify_builder .module.teachify-home-stat--teachers {
	grid-column: 1;
	grid-row: 2;
	background: #fff7ec;
}

.themify_builder .module.teachify-home-stat--lessons {
	grid-column: 1;
	grid-row: 1;
}

.themify_builder .module.teachify-home-stat--materials {
	grid-column: 1 / -1;
	grid-row: 3;
	min-height: 135px;
	background: #f17b44;
	border-color: #f17b44;
}

.themify_builder .teachify-home-stat--materials strong {
	font-size: clamp(24px, 2.6vw, 36px);
}

.themify_builder .module.teachify-business-support {
	margin-top: 22px;
}

.themify_builder .teachify-business-support a.builder_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	max-width: 100%;
	padding: 12px 24px;
	border: 2px solid #181818;
	border-radius: 999px;
	background: #181818;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	white-space: normal;
}

.themify_builder .teachify-business-support a.builder_button:hover {
	background: #fff7ec;
	color: #181818;
}

.themify_builder .teachify-business-support a.builder_button:focus-visible {
	outline: 3px solid #181818;
	outline-offset: 4px;
}

@media (max-width: 1024px) {
	.themify_builder .module_column.teachify-home-stats {
		grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr);
		gap: 14px;
		padding: 24px;
	}
}

@media (max-width: 680px) {
	.themify_builder .module_column.teachify-home-stats {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		padding: 28px 0 0;
	}

	.themify_builder .module_column.teachify-home-stats::before {
		grid-column: 1;
		grid-row: 1;
		min-height: 300px;
	}

	.themify_builder .module.teachify-home-stat {
		min-height: 0;
		padding: 24px 20px;
	}

	.themify_builder .module.teachify-home-stat--lessons {
		grid-column: 1;
		grid-row: 2;
	}

	.themify_builder .module.teachify-home-stat--teachers {
		grid-column: 1;
		grid-row: 3;
	}

	.themify_builder .module.teachify-home-stat--materials {
		grid-column: 1;
		grid-row: 4;
	}

	.themify_builder .module.teachify-business-support {
		text-align: center;
	}
}
