/* Base */
.hpc-carousel {
	--hpc-columns: 3;
	--hpc-gap: 0;
	--hpc-slide-width: 300px;
	--hpc-slide-height: 320px;
	--hpc-title-size: 24px;
	width: 100%;
	max-width: none;
	overflow: hidden;
}

.hpc-carousel[data-columns="1"] { --hpc-columns: 1; }
.hpc-carousel[data-columns="2"] { --hpc-columns: 2; }
.hpc-carousel[data-columns="3"] { --hpc-columns: 3; }
.hpc-carousel[data-columns="4"] { --hpc-columns: 4; }
.hpc-carousel[data-columns="5"] { --hpc-columns: 5; }
.hpc-carousel[data-columns="6"] { --hpc-columns: 6; }

.hpc-carousel__intro {
	margin-bottom: 32px;
	width: auto;
	max-width: 950px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.hpc-carousel__intro-title {
	font-family: "Dosis", sans-serif;
	font-size: 3.5rem;
	font-weight: 800;
	color: var(--clr-black, #2a1816);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 2rem;
}

.hpc-carousel__intro-title::after {
	content: "";
	display: block;
	width: 80px;
	height: 5px;
	background: var(--primary, #a72a25);
	margin: 2rem auto 0;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(167, 42, 37, 0.3);
}

.hpc-carousel__intro-description {
	font-family: var(--font-body, "Lato", sans-serif);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-primary, #2a1816);
	margin: 0;
}

.hpc-carousel__intro-description > :first-child {
	margin-top: 0;
}

.hpc-carousel__intro-description > :last-child {
	margin-bottom: 0;
}

.hpc-carousel__cta-wrap {
	margin-top: 20px;
	text-align: right;
}

.hpc-carousel__cta {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 30px;
	background-color: var(--primary, #a72a25);
	color: #fff;
	font-family: var(--font-heading, "Dosis", sans-serif);
	font-size: 1rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.25s ease;
}

.hpc-carousel__cta:hover {
	background-color: var(--primary-hover, #8b231f);
	color: #fff;
}

.hpc-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.hpc-carousel__track {
	display: flex;
	gap: var(--hpc-gap);
	will-change: transform;
	transition: transform 0.65s ease;
}

.hpc-carousel__slide {
	position: relative;
	flex: 0 0 var(--hpc-slide-width);
	width: var(--hpc-slide-width);
	min-width: var(--hpc-slide-width);
	height: var(--hpc-slide-height);
	border-radius: 0;
	overflow: hidden;
	background-color: var(--clr-black, #2a1816);
	background-image: var(--hpc-slide-bg, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hpc-carousel__slide--no-image {
	background-image: linear-gradient(135deg, #2a1816 0%, #6d1b18 100%);
}

.hpc-carousel__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	background: linear-gradient(to top, rgba(42, 24, 22, 0.92) 0%, rgba(42, 24, 22, 0.35) 55%, rgba(42, 24, 22, 0.1) 100%);
}

.hpc-carousel__title {
	margin: 0 0 12px;
	font-size: var(--hpc-title-size);
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-family: var(--font-heading, "Dosis", sans-serif);
}

.hpc-carousel__title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hpc-carousel__title a:hover {
	color: var(--primary-light, #c94a45);
}

.hpc-carousel__read-more {
	display: inline-block;
	align-self: flex-start;
	padding: 10px 20px;
	border-radius: 0;
	background-color: var(--primary, #a72a25);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.25s ease;
	font-family: var(--font-heading, "Dosis", sans-serif);
}

.hpc-carousel__read-more:hover {
	background-color: var(--primary-hover, #8b231f);
	color: #fff;
}

/* Theme 1 */
.hpc-carousel--theme-1 {
	--hpc-gap: 20px;
}

.hpc-carousel--theme-1 .hpc-carousel__slide {
	border-radius: 10px;
}

.hpc-carousel--theme-1 .hpc-carousel__read-more {
	border-radius: 30px;
}

/* Theme 2 */
.hpc-carousel--theme-2 {
	--hpc-gap: 0;
}

.hpc-carousel--theme-2 .hpc-carousel__slide {
	border-radius: 0;
}

.hpc-carousel--theme-2 .hpc-carousel__read-more {
	border-radius: 0;
}

.hpc-carousel--theme-2 .hpc-carousel__overlay {
	background: transparent;
}

.hpc-carousel--theme-2 .hpc-carousel__overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(to top, rgba(42, 24, 22, 0.92) 0%, rgba(42, 24, 22, 0.35) 55%, rgba(42, 24, 22, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.hpc-carousel--theme-2 .hpc-carousel__title,
.hpc-carousel--theme-2 .hpc-carousel__read-more {
	position: relative;
	z-index: 1;
}

.hpc-carousel--theme-2 .hpc-carousel__title a {
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hpc-carousel--theme-2 .hpc-carousel__slide:hover .hpc-carousel__overlay::before,
.hpc-carousel--theme-2 .hpc-carousel__slide:focus-within .hpc-carousel__overlay::before {
	opacity: 1;
}

@media (hover: none) {
	.hpc-carousel--theme-2 .hpc-carousel__overlay::before {
		opacity: 1;
	}
}

@media (max-width: 768px) {
	.hpc-carousel__intro-title {
		font-size: 2rem;
		margin-bottom: 1.5rem;
	}

	.hpc-carousel__intro-title::after {
		width: 60px;
		height: 4px;
		margin: 1.25rem auto 0;
	}
}
