.hero-slideshow {
	position: relative;
	height: 580px;
	overflow: hidden;
	color: #fff;
}

@media screen and (max-width: 768px) {
	.hero-slideshow {
		height: 480px;
	}
}

@media screen and (max-width: 480px) {
	.hero-slideshow {
		height: 420px;
	}
}

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

.hero-slideshow__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1);
	transition: opacity 1.2s ease;
	z-index: 1;
}

.hero-slideshow__slide.is-active {
	opacity: 1;
	z-index: 2;
	transition: opacity 1.2s ease;
	animation: hero-slideshow-ken-burns 8s ease-out forwards;
}

@keyframes hero-slideshow-ken-burns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-slideshow__slide,
	.hero-slideshow__slide.is-active {
		transition: opacity 0.4s ease;
		animation: none;
	}
}

.hero-slideshow__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%),
		linear-gradient(90deg, rgba(4, 73, 29, 0.75) 0%, rgba(4, 73, 29, 0.6) 45%, rgba(4, 73, 29, 0.05) 82%);
	z-index: 1;
}

.hero-slideshow__content {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	z-index: 2;
	text-align: left;
	max-width: 620px;
	margin: 0;
	padding: 0 50px 0 130px;
}

.hero-slideshow__content h1 {
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
	line-height: 1.12;
	margin: 0;
}

.hero-slideshow__content h1,
.hero-slideshow__content p {
	color: #fff;
	opacity: 0;
	transform: translateY(20px);
}

.hero-slideshow__content p {
	margin-top: 16px;
	font-size: 20px;
	line-height: 1.5;
	max-width: 480px;
}

.hero-slideshow__buttons {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	justify-content: flex-start;
	margin-top: 36px;
	flex-wrap: wrap;
	opacity: 0;
	transform: translateY(20px);
}

.hero-slideshow__btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: var(--wp--custom--button--border-radius, 6px);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
	border: 2px solid transparent;
}

.hero-slideshow__btn--primary {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.hero-slideshow__btn--primary:hover {
	background: #183d2d;
}

.hero-slideshow__btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
}

.hero-slideshow__btn--outline:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #fff;
}

.hero-slideshow__slide.is-active .hero-slideshow__content h1,
.hero-slideshow__slide.is-active .hero-slideshow__content p,
.hero-slideshow__slide.is-active .hero-slideshow__buttons {
	animation: hero-slideshow-fade-in-up 0.8s ease 0.3s both;
}

@keyframes hero-slideshow-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-slideshow__content h1,
	.hero-slideshow__content p,
	.hero-slideshow__buttons {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

@media screen and (max-width: 768px) {
	.hero-slideshow__content {
		text-align: center;
		max-width: 100%;
		padding: 0 40px;
	}

	.hero-slideshow__content p {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-slideshow__buttons {
		justify-content: center;
	}
}

@media screen and (max-width: 480px) {
	.hero-slideshow__content {
		padding: 0 24px;
	}

	.hero-slideshow__content p {
		font-size: 17px;
	}

	.hero-slideshow__btn {
		padding: 12px 22px;
	}
}

.hero-slideshow__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 10px;
	line-height: 1;
	transition: all 0.3s ease;
}

.hero-slideshow__arrow svg {
	width: 40px;
	height: 40px;
	display: block;
}

.hero-slideshow__arrow--prev {
	left: 20px;
}

.hero-slideshow__arrow--prev:hover {
	left: 12px;
	opacity: 0.6;
}

.hero-slideshow__arrow--next {
	right: 20px;
}

.hero-slideshow__arrow--next:hover {
	right: 12px;
	opacity: 0.6;
}

@media screen and (max-width: 480px) {
	.hero-slideshow__arrow svg {
		width: 30px;
		height: 30px;
	}
}

.hero-slideshow__dots {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.hero-slideshow__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s ease;
}

.hero-slideshow__dot:hover {
	background: rgba(255, 255, 255, 0.75);
}

.hero-slideshow__dot.is-active {
	background: #fff;
	width: 22px;
	border-radius: 5px;
}
