.hfc-card-carousel {
	position: relative;
	width: 100%;
}

.hfc-card-carousel .hfc-swiper {
	width: 100%;
}

.hfc-card-carousel .swiper-wrapper {
	align-items: stretch;
}

.hfc-card-carousel .swiper-slide {
	height: auto;
}

.hfc-card {
	position: relative;
	display: block;
	height: var(--hfc-card-height, 520px);
	border-radius: var(--hfc-radius, 28px);
	overflow: hidden;
	text-decoration: none;
	transform: translateZ(0);
}

.hfc-card__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: saturate(1.05);
	transform: scale(1.02);
}

.hfc-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, var(--hfc-overlay-alpha, 0.65)) 0%,
		rgba(0, 0, 0, calc(var(--hfc-overlay-alpha, 0.65) * 0.35)) 45%,
		rgba(0, 0, 0, 0.0) 80%
	);
}

.hfc-card__content {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 22px;
	z-index: 2;
}

.hfc-card__title {
	margin: 0 0 8px 0;
	font-size: 34px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hfc-card__desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	opacity: 0.95;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
	max-width: 34ch;
}

/* Hover */
.hfc-card:hover .hfc-card__bg {
	transform: scale(1.06);
	transition: transform 500ms ease;
}

.hfc-card .hfc-card__bg {
	transition: transform 500ms ease;
}

/* Nav buttons */
.hfc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	border-radius: 999px;
	border: 0;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	z-index: 5;
}

.hfc-nav--prev {
	left: 14px;
}

.hfc-nav--next {
	right: 14px;
}

.hfc-nav svg {
	display: block;
}

/* Tablet */
@media (max-width: 1024px) {
	.hfc-card__title {
		font-size: 30px;
	}

	.hfc-card {
		height: min(var(--hfc-card-height, 520px), 460px);
	}

	.hfc-nav {
		width: 52px;
		height: 52px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.hfc-card {
		height: min(var(--hfc-card-height, 520px), 420px);
	}

	.hfc-card__content {
		left: 18px;
		right: 18px;
		bottom: 18px;
	}

	.hfc-card__title {
		font-size: 28px;
	}

	.hfc-card__desc {
		font-size: 15px;
		max-width: 40ch;
	}

	/* keep arrows usable on touch */
	.hfc-nav--prev {
		left: 10px;
	}

	.hfc-nav--next {
		right: 10px;
	}
}

/* Empty message */
.hfc-card-carousel__empty {
	padding: 14px 16px;
	border-radius: 12px;
	background: #f3f3f3;
	color: #333;
}
