/* Full Width Hero Slider — Frontend Styles */

.fws-slider-outer {
	box-sizing: border-box;
}

/* True full width: breaks out of ANY parent container (Elementor section,
   theme wrapper, boxed layout, etc.) regardless of that container's max-width. */
.fws-slider-outer.fws-full-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc( 50% - 50vw );
	margin-right: calc( 50% - 50vw );
}

.fws-slider {
	position: relative;
	width: 100%;
	height: var( --fws-height-desktop, 700px );
	overflow: hidden;
	background: #000;
}

@media ( max-width: 767px ) {
	.fws-slider {
		height: var( --fws-height-mobile, 600px );
	}
}

/* Auto height mode: the box height is derived directly from the image's
   own aspect ratio, so object-fit: cover never has to crop anything —
   the box and the image always share the exact same proportions. */
.fws-slider.fws-height-auto {
	height: auto;
	aspect-ratio: var( --fws-ratio-desktop, 1128 / 608 );
}

@media ( max-width: 767px ) {
	.fws-slider.fws-height-auto {
		height: auto;
		aspect-ratio: var( --fws-ratio-mobile, 1376 / 768 );
	}
}

.fws-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.fws-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 1;
	transition: transform var( --fws-transition-speed, 600ms ) ease, opacity var( --fws-transition-speed, 600ms ) ease;
}

.fws-slide:first-child {
	opacity: 1;
	z-index: 2;
}

.fws-slide picture {
	position: absolute;
	inset: 0;
	display: block;
}

.fws-slide picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.fws-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.fws-slide-content {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	box-sizing: border-box;
	padding: 40px 6%;
}

.fws-valign-top {
	align-items: flex-start;
}
.fws-valign-center {
	align-items: center;
}
.fws-valign-bottom {
	align-items: flex-end;
}

.fws-halign-left {
	justify-content: flex-start;
}
.fws-halign-center {
	justify-content: center;
}
.fws-halign-right {
	justify-content: flex-end;
}

.fws-content-inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.fws-el {
	margin: 0;
	font-size: var( --fs-d, inherit );
	line-height: 1.25;
}

@media ( max-width: 767px ) {
	.fws-el {
		font-size: var( --fs-m, inherit );
	}
}

.fws-heading {
	line-height: 1.15;
}

.fws-description {
	line-height: 1.6;
}

.fws-button-wrap {
	margin-top: 6px;
}

.fws-button {
	display: inline-block;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.fws-button:hover,
.fws-button:focus {
	background-color: var( --btn-hover-bg, inherit );
	color: var( --btn-hover-text, inherit );
}

@media ( max-width: 767px ) {
	.fws-hide-mobile {
		display: none !important;
	}
}

/* Arrows */
.fws-arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 5;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 2px solid var( --fws-arrow-color, #fff );
	color: var( --fws-arrow-color, #fff );
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	transition: opacity 0.25s ease, background-color 0.25s ease;
	opacity: 0.75;
}

.fws-arrow:hover {
	opacity: 1;
	background-color: rgba( 255, 255, 255, 0.15 );
}

.fws-prev {
	left: 24px;
}

.fws-next {
	right: 24px;
}

@media ( max-width: 767px ) {
	.fws-arrow {
		width: 36px;
		height: 36px;
		font-size: 13px;
	}
	.fws-prev {
		left: 12px;
	}
	.fws-next {
		right: 12px;
	}
}

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

.fws-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var( --fws-arrow-color, #fff );
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.fws-dot.is-active {
	background-color: var( --fws-arrow-color, #fff );
}

/* Reduced motion */
@media ( prefers-reduced-motion: reduce ) {
	.fws-slide {
		transition: none;
	}
}
