.hf-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.hf-cards--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hf-cards--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.hf-card {
	position: relative;
	background-color: #ffffff;
	border: 1px solid var(--hf-border);
	border-radius: var(--hf-radius);
	padding: 2rem 1.75rem;
	overflow: hidden;
}

.hf-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background-color: var(--wp--preset--color--brand);
}

.hf-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background-color: var(--hf-tint);
	color: var(--wp--preset--color--brand-dark);
	margin-bottom: 1.25rem;
}

.hf-card__title {
	font-family: var(--wp--preset--font-family--body);
	color: var(--hf-ink);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.6rem;
}

.hf-card p {
	color: var(--hf-muted);
	font-size: 0.93rem;
	line-height: 1.65;
	margin: 0;
}

.hf-cards--4 .hf-card {
	padding: 1.6rem 1.5rem;
}

.hf-cards--4 .hf-card__icon {
	width: 46px;
	height: 46px;
	margin-bottom: 1rem;
}

.hf-cards--4 .hf-card__title {
	font-size: 1.05rem;
}

@media (max-width: 1023px) {
	.hf-cards,
	.hf-cards--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.hf-cards,
	.hf-cards--2,
	.hf-cards--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}
