/* ==========================================================================
   HeroSlide - Frontend Styles
   ========================================================================== */

.hs-slider-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	user-select: none;
	background: #111;
}

.hs-slider-wrapper *, .hs-slider-wrapper *::before, .hs-slider-wrapper *::after {
	box-sizing: inherit;
}

/* Height modes */
.hs-height-custom {
	height: var(--hs-height-d, 550px);
}
@media (max-width: 1024px) {
	.hs-height-custom { height: var(--hs-height-t, 420px); }
}
@media (max-width: 600px) {
	.hs-height-custom { height: var(--hs-height-m, 320px); }
}

.hs-height-fullscreen {
	height: 100vh;
	min-height: 480px;
}

.hs-height-16-9 { aspect-ratio: 16 / 9; height: auto; }
.hs-height-21-9 { aspect-ratio: 21 / 9; height: auto; }
.hs-height-4-3  { aspect-ratio: 4 / 3;  height: auto; }

/* Track & Slide Layout */
.hs-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.hs-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	display: flex;
	transition: opacity .8s cubic-bezier(0.25, 1, 0.5, 1), visibility .8s;
}

.hs-slide.hs-slide-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* Transition Types */
.hs-trans-slide .hs-slide {
	transform: translate3d(100%, 0, 0);
	transition: transform .75s cubic-bezier(0.22, 1, 0.36, 1), opacity .75s ease, visibility .75s;
}
.hs-trans-slide .hs-slide.hs-slide-active {
	transform: translate3d(0, 0, 0);
}
.hs-trans-slide .hs-slide.hs-slide-prev {
	transform: translate3d(-100%, 0, 0);
}

.hs-trans-fade .hs-slide {
	transition: opacity .8s ease-in-out, visibility .8s;
}

.hs-trans-zoom-fade .hs-slide {
	transform: scale(1.08);
	transition: opacity .8s ease, transform .8s cubic-bezier(0.25, 1, 0.5, 1), visibility .8s;
}
.hs-trans-zoom-fade .hs-slide.hs-slide-active {
	transform: scale(1);
}

/* Slide Background & Overlay */
.hs-slide-bg-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
}

.hs-slide-bg-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease;
}

.hs-slide-overlay {
	position: absolute;
	inset: 0;
	background: var(--hs-overlay-color, #000);
	opacity: var(--hs-overlay-op, 0.3);
	z-index: 1;
	pointer-events: none;
}

/* Image Effects */
.hs-effect-zoom-hover .hs-slide-bg-img {
	transform: scale(1);
}
.hs-effect-zoom-hover.hs-slide-active .hs-slide-bg-img {
	transform: scale(1.08);
}

.hs-effect-ken-burns.hs-slide-active .hs-slide-bg-img {
	animation: hsKenBurns 12s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}
@keyframes hsKenBurns {
	0%   { transform: scale(1) translate(0, 0); }
	100% { transform: scale(1.15) translate(-2%, -2%); }
}

.hs-effect-grayscale .hs-slide-bg-img {
	filter: grayscale(100%);
}

.hs-effect-blur-up .hs-slide-bg-img {
	filter: blur(8px);
	transform: scale(1.06);
}
.hs-effect-blur-up.hs-slide-active .hs-slide-bg-img {
	filter: blur(0);
	transform: scale(1);
}

.hs-effect-dark-overlay .hs-slide-overlay {
	background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
	opacity: 0.85;
}

.hs-effect-duotone .hs-slide-bg-img {
	filter: grayscale(100%) contrast(1.15);
}
.hs-effect-duotone .hs-slide-bg-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	mix-blend-mode: color;
	background: var(--hs-duotone-dark, #1a1a1a);
	opacity: 0.85;
	z-index: 1;
}
.hs-effect-duotone .hs-slide-bg-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hs-duotone-light, #f5e6c8);
	mix-blend-mode: multiply;
	opacity: 0.4;
	z-index: 2;
}

/* Container & Alignment */
.hs-slide-container {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	padding: 24px;
}

.hs-align-h-left   .hs-slide-container { justify-content: flex-start; text-align: left; }
.hs-align-h-center .hs-slide-container { justify-content: center; text-align: center; }
.hs-align-h-right  .hs-slide-container { justify-content: flex-end; text-align: right; }

.hs-align-v-top    .hs-slide-container { align-items: flex-start; }
.hs-align-v-middle .hs-slide-container { align-items: center; }
.hs-align-v-bottom .hs-slide-container { align-items: flex-end; }

/* Content Box (Glassmorphism & Styling) */
.hs-content-box {
	max-width: var(--hs-box-max-w, 650px);
	width: 100%;
	background: var(--hs-box-bg, rgba(0,0,0,0.4));
	backdrop-filter: blur(var(--hs-box-blur, 8px));
	-webkit-backdrop-filter: blur(var(--hs-box-blur, 8px));
	padding: var(--hs-box-padding, 30px);
	border-radius: var(--hs-box-radius, 12px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (max-width: 600px) {
	.hs-content-box {
		padding: 18px;
		gap: 12px;
	}
}

/* Typography */
.hs-title {
	margin: 0;
	font-family: var(--hs-slide-title-font, var(--hs-title-font, inherit));
	font-size: var(--hs-slide-title-size, var(--hs-title-size-d, 42px));
	font-weight: var(--hs-title-weight, 700);
	color: var(--hs-slide-title-color, var(--hs-title-color, #ffffff));
	text-transform: var(--hs-title-transform, none);
	line-height: 1.2;
}

.hs-title.hs-has-shadow {
	text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hs-excerpt {
	margin: 0;
	font-family: var(--hs-slide-excerpt-font, var(--hs-excerpt-font, inherit));
	font-size: var(--hs-slide-excerpt-size, var(--hs-excerpt-size-d, 18px));
	color: var(--hs-slide-excerpt-color, var(--hs-excerpt-color, #f0f0f0));
	line-height: 1.6;
}

@media (max-width: 600px) {
	.hs-title {
		font-size: var(--hs-slide-title-size, var(--hs-title-size-m, 26px));
	}
	.hs-excerpt {
		font-size: var(--hs-slide-excerpt-size, var(--hs-excerpt-size-m, 14px));
	}
}

/* Button & Hover Effects */
.hs-btn-wrap {
	margin-top: 6px;
}

.hs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .03em;
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid var(--hs-btn-bg, #2271b1);
	transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease, opacity .25s ease;
	cursor: pointer;
}

.hs-btn-filled {
	background: var(--hs-btn-bg, #2271b1);
	color: var(--hs-btn-color, #fff);
	border-color: var(--hs-btn-bg, #2271b1);
}

.hs-btn-outline {
	background: transparent;
	color: var(--hs-btn-color, var(--hs-btn-bg, #fff));
	border-color: var(--hs-btn-bg, #fff);
}

.hs-btn-link {
	background: none;
	border: none;
	padding: 0;
	color: var(--hs-btn-color, #fff);
	text-decoration: underline;
}

/* Button Hover State */
.hs-btn:hover {
	color: var(--hs-btn-hover-color, #fff);
	background: var(--hs-btn-hover-bg, #135e96);
	border-color: var(--hs-btn-hover-border, #135e96);
}

.hs-btn-link:hover {
	background: none;
	border: none;
	color: var(--hs-btn-hover-color, var(--hs-btn-hover-bg, #135e96));
}

.hs-btn-hover-lift:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.hs-btn-hover-scale:hover {
	transform: scale(1.06);
}
.hs-btn-hover-opacity:hover {
	opacity: 0.85;
}

/* Element Entry Animations */
.hs-slide-active .hs-anim-slide-up {
	animation: hsAnimSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hs-slide-active .hs-anim-slide-down {
	animation: hsAnimSlideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hs-slide-active .hs-anim-slide-left {
	animation: hsAnimSlideLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hs-slide-active .hs-anim-slide-right {
	animation: hsAnimSlideRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hs-slide-active .hs-anim-fade-in {
	animation: hsAnimFadeIn 0.8s ease both;
}
.hs-slide-active .hs-anim-zoom-in {
	animation: hsAnimZoomIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hsAnimSlideUp {
	from { opacity: 0; transform: translate3d(0, 35px, 0); }
	to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hsAnimSlideDown {
	from { opacity: 0; transform: translate3d(0, -35px, 0); }
	to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hsAnimSlideLeft {
	from { opacity: 0; transform: translate3d(-40px, 0, 0); }
	to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hsAnimSlideRight {
	from { opacity: 0; transform: translate3d(40px, 0, 0); }
	to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hsAnimFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes hsAnimZoomIn {
	from { opacity: 0; transform: scale(0.88); }
	to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.hs-slide, .hs-slide-bg-img, .hs-title, .hs-excerpt, .hs-btn-wrap {
		animation: none !important;
		transition: opacity 0.3s ease !important;
		transform: none !important;
	}
}

/* Navigation Controls */
.hs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 50%;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: all .25s ease;
	outline: none;
}
.hs-arrow:hover {
	background: rgba(0, 0, 0, 0.7);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-50%) scale(1.08);
}
.hs-prev { left: 20px; }
.hs-next { right: 20px; }

/* Control styles */
.hs-nav-style-box .hs-arrow {
	border-radius: 6px;
}
.hs-nav-style-minimal .hs-arrow {
	background: transparent;
	border: none;
	backdrop-filter: none;
}
.hs-nav-style-minimal .hs-arrow:hover {
	background: transparent;
	transform: translateY(-50%) scale(1.2);
}

/* Dots */
.hs-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 10px;
	align-items: center;
}

.hs-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: all .3s cubic-bezier(0.22, 1, 0.36, 1);
	padding: 0;
	outline: none;
}

.hs-dot.active {
	background: #fff;
	transform: scale(1.3);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Progress bar */
.hs-progress-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: rgba(255, 255, 255, 0.15);
	z-index: 12;
}

.hs-progress-fill {
	height: 100%;
	width: 0%;
	background: #fff;
	transition: width linear;
}
