/* Hero Slider Widget — Frontend Styles */

.hsw-slider {
	position: relative;
	width: 100%;
	height: 80vh;
	overflow: hidden;
	direction: ltr;
}

.hsw-slider.hsw-full-width {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

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

.hsw-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	pointer-events: none;
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.hsw-slide.hsw-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	pointer-events: auto;
}

.hsw-slide-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.hsw-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.hsw-slide-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	height: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

.hsw-heading {
	margin: 0 0 16px;
	font-size: 48px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

.hsw-subheading {
	margin: 0 0 24px;
	font-size: 18px;
	color: #f0f0f0;
	line-height: 1.6;
	max-width: 600px;
}

.hsw-button {
	display: inline-block;
	background-color: #ff5a5f;
	color: #ffffff;
	text-decoration: none;
	padding: 14px 32px;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
	border: none;
}

.hsw-button:hover {
	background-color: #e14b50;
	color: #ffffff;
	transform: translateY(-2px);
}

/* ================= ANIMATION: FADE ================= */
.hsw-slider[data-animation="fade"] .hsw-slide {
	transform: none;
}

/* ================= ANIMATION: SLIDE LTR (left to right entry) ================= */
.hsw-slider[data-animation="slide-ltr"] .hsw-slide {
	transform: translateX(-100%);
	transition: opacity 0.01s linear, transform 0.8s ease;
}

.hsw-slider[data-animation="slide-ltr"] .hsw-slide.hsw-active {
	transform: translateX(0);
}

.hsw-slider[data-animation="slide-ltr"] .hsw-slide.hsw-exit-right {
	transform: translateX(100%);
	opacity: 1;
	visibility: visible;
}

/* ================= ANIMATION: SLIDE RTL (right to left entry) ================= */
.hsw-slider[data-animation="slide-rtl"] .hsw-slide {
	transform: translateX(100%);
	transition: opacity 0.01s linear, transform 0.8s ease;
}

.hsw-slider[data-animation="slide-rtl"] .hsw-slide.hsw-active {
	transform: translateX(0);
}

.hsw-slider[data-animation="slide-rtl"] .hsw-slide.hsw-exit-left {
	transform: translateX(-100%);
	opacity: 1;
	visibility: visible;
}

/* ================= ANIMATION: ZOOM ================= */
.hsw-slider[data-animation="zoom"] .hsw-slide {
	transform: scale(1.15);
	transition: opacity 0.8s ease, transform 1.2s ease;
}

.hsw-slider[data-animation="zoom"] .hsw-slide.hsw-active {
	transform: scale(1);
}

/* ================= NAVIGATION ARROWS ================= */
.hsw-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 12px 16px;
	transition: opacity 0.3s ease, transform 0.3s ease;
	opacity: 0.75;
}

.hsw-arrow:hover {
	opacity: 1;
}

.hsw-arrow-prev {
	left: 10px;
}

.hsw-arrow-next {
	right: 10px;
}

/* ================= PAGINATION DOTS ================= */
.hsw-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 10px;
}

.hsw-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.hsw-dot.hsw-active {
	background-color: #ffffff;
	transform: scale(1.2);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
	.hsw-heading {
		font-size: 38px;
	}

	.hsw-subheading {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.hsw-slider {
		height: 60vh;
	}

	.hsw-heading {
		font-size: 28px;
	}

	.hsw-subheading {
		font-size: 14px;
	}

	.hsw-button {
		padding: 10px 24px;
		font-size: 14px;
	}

	.hsw-arrow {
		font-size: 22px;
		padding: 8px 10px;
	}

	.hsw-dots {
		bottom: 14px;
	}
}
