/* ─── Core Materials Widget ──────────────────────────────────────────────── */

.hbc-cm-wrap {
	padding: 26px 4% 42px;
	background: #ffffff;
}

.hbc-cm-heading {
	margin: 0 0 36px;
	padding: 0;
	text-align: center;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.25;
	color: #000000;
}

.hbc-cm-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.hbc-cm-card {
	min-width: 0;
	text-align: center;
}

.hbc-cm-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 280px;
	margin-bottom: 24px;
	overflow: hidden;
	background: #f6f6f6;
}

.hbc-cm-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hbc-cm-title {
	margin: 0 0 18px;
	padding: 0;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.25;
	color: #000000;
}

.hbc-cm-desc {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	color: #777777;
}

/* ─── Tablet (≤1024px) ───────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.hbc-cm-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.hbc-cm-heading {
		font-size: 30px;
	}

	.hbc-cm-image {
		height: 250px;
	}
}

/* ─── Mobile (≤767px) ────────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.hbc-cm-wrap {
		padding: 28px 18px 32px;
	}

	.hbc-cm-heading {
		font-size: 24px;
		margin-bottom: 28px;
	}

	.hbc-cm-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.hbc-cm-image {
		height: 230px;
		margin-bottom: 18px;
	}

	.hbc-cm-title {
		font-size: 19px;
		margin-bottom: 12px;
	}

	.hbc-cm-desc {
		font-size: 13px;
	}
}

/* ─── Small mobile (≤480px) ─────────────────────────────────────────────── */

@media (max-width: 480px) {
	.hbc-cm-heading {
		font-size: 22px;
	}

	.hbc-cm-image {
		height: 210px;
	}
}
