/**
 * Boksiowo Portal Engine PRO — Hero Slider module styles.
 * Dependency-free carousel: works with the vanilla JS in hero-slider.js,
 * degrades gracefully to a stacked list of slides if JS is disabled
 * (the "hidden" attribute on inactive slides is removed by the script).
 */

.bpe-hero-slider {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	margin: 0 0 32px;
}

.bpe-hero-slider__track {
	position: relative;
}

.bpe-hero-slider__slide {
	position: relative;
	display: block;
}

.bpe-hero-slider__slide[hidden] {
	display: none;
}

.bpe-hero-slider__image {
	aspect-ratio: 16 / 7;
	overflow: hidden;
}

.bpe-hero-slider__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bpe-hero-slider__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 32px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	color: #fff;
}

.bpe-hero-slider__title {
	margin: 0 0 8px;
	font-size: 1.6rem;
	color: #fff;
}

.bpe-hero-slider__subtitle {
	margin: 0 0 16px;
	font-size: 1rem;
	opacity: 0.9;
}

.bpe-hero-slider__button {
	display: inline-block;
	padding: 10px 20px;
	background: #d4351c;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}

.bpe-hero-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	z-index: 2;
}

.bpe-hero-slider__nav:hover,
.bpe-hero-slider__nav:focus-visible {
	background: rgba(0, 0, 0, 0.65);
}

.bpe-hero-slider__nav--prev {
	left: 16px;
}

.bpe-hero-slider__nav--next {
	right: 16px;
}

.bpe-hero-slider__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.bpe-hero-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.bpe-hero-slider__dot.is-active {
	background: #fff;
}

@media (max-width: 600px) {
	.bpe-hero-slider__caption {
		padding: 16px 20px;
	}

	.bpe-hero-slider__title {
		font-size: 1.2rem;
	}

	.bpe-hero-slider__nav {
		width: 32px;
		height: 32px;
	}
}
