.hero-slider {
	position: relative;
	width: 100%;
	height: var(--hero-slider-height, 70vh);
	min-height: 320px;
	overflow: hidden;
	background: #111;
}

.hero-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* --- Slide base (shared) --- */
.hero-slider__slide {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
}

/* --- Fade mode: slides stack, crossfade via opacity --- */
.hero-slider--fade .hero-slider__track {
	position: relative;
	height: 100%;
}
.hero-slider--fade .hero-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
	z-index: 1;
}
.hero-slider--fade .hero-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* --- Slide mode: all slides sit side by side in a row; the whole
       track shifts left/right so only one slide shows at a time.
       This is what makes next/prev/dots animate correctly in both
       directions with no snapping. --- */
.hero-slider--slide .hero-slider__track {
	display: flex;
	height: 100%;
	width: 100%;
	transition: transform 0.6s ease;
	will-change: transform;
}
.hero-slider--slide .hero-slider__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.hero-slider__content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 60px;
	color: #fff;
	box-sizing: border-box;
}

.hero-slider__content--left { text-align: left; }
.hero-slider__content--center { text-align: center; margin: 0 auto; }
.hero-slider__content--right { text-align: right; margin-left: auto; }

.hero-slider__title {
	font-size: clamp(1.75rem, 4vw, 3.25rem);
	line-height: 1.15;
	margin: 0 0 16px;
	font-weight: 700;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-slider__subtitle {
	font-size: clamp(1rem, 1.6vw, 1.35rem);
	margin: 0 0 28px;
	max-width: 640px;
	opacity: 0.95;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-slider__content--center .hero-slider__subtitle {
	margin-left: auto;
	margin-right: auto;
}
.hero-slider__content--right .hero-slider__subtitle {
	margin-left: auto;
}

.hero-slider__button {
	display: inline-block;
	padding: 14px 32px;
	background: #fff;
	color: #111;
	text-decoration: none;
	font-weight: 600;
	border-radius: 4px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-slider__button:hover,
.hero-slider__button:focus {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	color: #111;
}

/* --- Arrows --- */
.hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.hero-slider__arrow:hover { background: rgba(255, 255, 255, 0.3); }
.hero-slider__arrow--prev { left: 20px; }
.hero-slider__arrow--next { right: 20px; }

/* --- Dots --- */
.hero-slider__dots {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	z-index: 4;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.hero-slider__dot {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

/* Invisible larger hit area so dots stay small visually but are easy
   to tap accurately on touch screens (44px is the recommended minimum). */
.hero-slider__dot::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	transform: translate(-50%, -50%);
}

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

/* --- Tablet and below --- */
@media (max-width: 900px) {
	.hero-slider__content { padding: 0 40px; }
}

/* --- Mobile phones --- */
@media (max-width: 600px) {
	.hero-slider {
		min-height: 420px;
	}

	.hero-slider__content { padding: 0 20px; }

	.hero-slider__title {
		margin-bottom: 10px;
	}

	.hero-slider__subtitle {
		margin-bottom: 20px;
		/* Clamp long subtitles to 3 lines so they don't push the button
		   off a short mobile viewport. */
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.hero-slider__button {
		padding: 12px 26px;
		font-size: 0.95rem;
	}

	/* Arrows: keep the visible circle compact but give it a real
	   44px touch target via padding, per mobile accessibility guidelines. */
	.hero-slider__arrow {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}
	.hero-slider__arrow--prev { left: 8px; }
	.hero-slider__arrow--next { right: 8px; }

	.hero-slider__dots {
		bottom: 14px;
		gap: 8px;
	}
}

/* --- Small phones --- */
@media (max-width: 380px) {
	.hero-slider {
		min-height: 360px;
	}
	.hero-slider__content { padding: 0 16px; }
	.hero-slider__arrow { display: none; } /* swipe/scroll still work; arrows crowd very small screens */
}

/* --- Landscape phones (short viewport height) --- */
@media (max-height: 420px) and (orientation: landscape) {
	.hero-slider {
		min-height: 260px;
	}
	.hero-slider__subtitle { -webkit-line-clamp: 1; margin-bottom: 12px; }
}

