/**
 * Yakda Hero Slider Styles
 * Full-width background slider with fade animation
 *
 * @package Hello_Elementor_Child
 */

/* Container */
.yakda-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Hero Slider - Sticky at top, all sections scroll over it */
.yakda-hero-slider {
	position: sticky;
	top: 0;
	z-index: 1;
	width: 100%;
	min-height: 500px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.yakda-hero-slider {
		min-height: 100vh;
	}
}

.yakda-hero-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.yakda-hero-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: inherit;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
	z-index: 0;
}

.yakda-hero-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.yakda-hero-slider__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.yakda-hero-slider__bg--placeholder {
	background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1e3a5f 100%);
}

.yakda-hero-slider__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.6) 0%,
		rgba(0, 0, 0, 0.35) 50%,
		rgba(0, 0, 0, 0.2) 100%
	);
	z-index: 1;
}

.yakda-hero-slider__content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: inherit;
	padding: 80px 24px 100px;
}

.yakda-hero-slider__text {
	max-width: 640px;
}

.yakda-hero-slider__heading {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.yakda-hero-slider__subheading {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.95);
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.5;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.yakda-hero-slider__cta {
	display: inline-block;
	padding: 14px 32px;
	background: #9bcd2c;
	color: #1e3a5f;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.yakda-hero-slider__cta:hover {
	background: #d4b23a;
	color: #1e3a5f;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.yakda-hero-slider__cta:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Controls */
.yakda-hero-slider__controls {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 16px;
	z-index: 10;
}

.yakda-hero-slider__prev,
.yakda-hero-slider__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.yakda-hero-slider__prev:hover,
.yakda-hero-slider__next:hover {
	background: rgba(255, 255, 255, 0.35);
	border-color: #fff;
	transform: scale(1.05);
}

.yakda-hero-slider__prev:focus,
.yakda-hero-slider__next:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.yakda-hero-slider__dots {
	display: flex;
	gap: 8px;
}

.yakda-hero-slider__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	background: rgba(255, 255, 255, 0.5);
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.yakda-hero-slider__dot:hover {
	background: rgba(255, 255, 255, 0.7);
}

.yakda-hero-slider__dot.is-active {
	background: #fff;
	border-color: #fff;
	transform: scale(1.2);
}

.yakda-hero-slider__dot:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
@media (max-width: 767px) {
    .yakda-hero-slider__prev,
    .yakda-hero-slider__next {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
