/* 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: none;
}

.hpc-carousel__intro-title {
	font-family: var(--font-heading, 'Bebas Neue', sans-serif);
	font-size: 2.75rem;
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--accent-color, #08203c);
	margin: 0 0 16px;
}

.hpc-carousel__intro-description {
	font-family: var(--font-body, 'Open Sans', sans-serif);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-dark, #000);
	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-color, #d59a2b);
	color: var(--text-dark, #000);
	font-family: var(--font-heading, 'Bebas Neue', 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-dark, #b88424);
	color: var(--text-dark, #000);
}

.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: #08203c;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hpc-carousel__slide--no-image {
	background-image: linear-gradient(135deg, #08203c 0%, #0d3058 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(8, 32, 60, 0.92) 0%, rgba(8, 32, 60, 0.35) 55%, rgba(8, 32, 60, 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;
}

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

.hpc-carousel__title a:hover {
	color: #d59a2b;
}

.hpc-carousel__read-more {
	display: inline-block;
	align-self: flex-start;
	padding: 10px 20px;
	border-radius: 0;
	background-color: #d59a2b;
	color: #000;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.25s ease;
}

.hpc-carousel__read-more:hover {
	background-color: #b88424;
	color: #000;
}

/* 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(8, 32, 60, 0.92) 0%, rgba(8, 32, 60, 0.35) 55%, rgba(8, 32, 60, 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;
	}
}
