/* Hero Slider Wrapper - Scoped to prevent conflicts */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Ensure proper stacking context */
    z-index: 1;
    /* Prevent conflicts with other page elements */
    isolation: isolate;
}

/* Main Slider - Scoped to wrapper */
.hero-slider-wrapper .hero-main-slider {
    position: relative;
    width: 100%;
}

/* Progress bar - Scoped to wrapper */
.hero-slider-wrapper .hero-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 25;
}
.hero-slider-wrapper .hero-progress-inner {
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width 0s linear;
}

.hero-slider-wrapper .hero-slide {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Background Media - Scoped to wrapper */
.hero-slider-wrapper .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Remove Overlay - Scoped to wrapper */
.hero-slider-wrapper .hero-bg::after {
    display: none !important;
    content: none;
}

/* Ensure images/videos maintain aspect ratio and don't stretch - Scoped to wrapper */
.hero-slider-wrapper .hero-bg img,
.hero-slider-wrapper .hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents elongation while covering full area */
    object-position: center;
}

/* Desktop & Mobile background elements - Scoped to wrapper */
.hero-slider-wrapper .hero-bg-desktop,
.hero-slider-wrapper .hero-bg-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider-wrapper .hero-bg-desktop {
    display: block;
}

.hero-slider-wrapper .hero-bg-mobile {
    display: none;
}

/* Content Layer - Scoped to wrapper */
.hero-slider-wrapper .hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 5%;
    color: white;
    text-align: center;
}

.hero-slider-wrapper .hero-text-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding-top: 40px;
}

.hero-slider-wrapper .hero-title {
    font-size: clamp(24px, 2.82vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 15px;
    text-align: center;
}

.hero-slider-wrapper .hero-subtitle {
    font-size: clamp(20px, 3vw, 42px);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 40px;
}

/* Slide-Specific Styling - Use classes instead of nth-child for better flexibility */
.hero-slider-wrapper .hero-slide .slide-02 {
    color: #000;
}

.hero-slider-wrapper .hero-description p {
    text-align: left;
    max-width: 75%;
}

/* Use data attributes or classes for slide-specific styling instead of nth-child */
.hero-slider-wrapper .hero-slide[data-slide="1"] .hero-title .slide-01,
.hero-slider-wrapper .hero-slide .slide-01 {
    font-family: "Inter", sans-serif;
    font-size: clamp(18px, 3.5vh + 0.8vw, 30px);
}

/* Remove slide-specific styling for slide 2 to make it consistent */
.hero-slider-wrapper .hero-slide .slide-02 {
    font-family: "Inter", sans-serif;
    font-size: clamp(18px, 3.5vh + 0.8vw, 30px);
    font-weight: 300;
    display: block;
}

.hero-slider-wrapper .hero-slide .slide-02 strong {
    font-size: clamp(18px, 3.5vh + 0.8vw, 30px);
    font-weight: 700;
    display: block;
    font-family: "Inter", sans-serif;
}

/* Mobile Slide Fonts - Make consistent across all slides */
@media (max-width: 768px) {
    .hero-slider-wrapper .hero-slide .slide-01,
    .hero-slider-wrapper .hero-slide .slide-02 {
        font-size: clamp(18px, 4vw, 24px) !important;
    }

    .hero-slider-wrapper .hero-slide .slide-01 strong,
    .hero-slider-wrapper .hero-slide .slide-02 strong {
        font-size: clamp(18px, 4vw, 24px);
    }
}

@media (max-width: 480px) {
    .hero-slider-wrapper .hero-slide .slide-01,
    .hero-slider-wrapper .hero-slide .slide-02 {
        font-size: clamp(16px, 4vw, 20px);
    }

    .hero-slider-wrapper .hero-slide .slide-01 strong,
    .hero-slider-wrapper .hero-slide .slide-02 strong {
        font-size: clamp(16px, 4vw, 20px);
    }
}

/* Hero Description - Scoped to wrapper */
.hero-slider-wrapper .hero-description {
    position: absolute;
    left: 5%;
    bottom: 40px;
    max-width: 600px;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.6;
}

/* Thumbnail Slider - Scoped to wrapper */
.hero-slider-wrapper .hero-thumb-slider {
    position: absolute;
    bottom: 40px;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 20px;
    pointer-events: auto;
}

.hero-slider-wrapper .hero-thumb-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-slider-wrapper .hero-thumb-item {
    position: relative;
    cursor: pointer;
    width: 140px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.hero-slider-wrapper .hero-thumb-item:hover {
    transform: translateY(-5px);
}

.hero-slider-wrapper .hero-thumb-item.slick-current {
    border-color: #d5d5d5;
    transform: scale(1.05);
}

.hero-slider-wrapper .hero-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumbnail text - Scoped to wrapper */
.hero-slider-wrapper .hero-thumb-text {
    margin-top: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    line-height: 1.2;
}

/* Slick Arrows - Scoped to wrapper */
.hero-slider-wrapper .hero-main-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
}

.hero-slider-wrapper .hero-main-slider .slick-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-slider-wrapper .hero-main-slider .slick-arrow::before {
    font-size: 20px;
    color: white;
}

.hero-slider-wrapper .hero-main-slider .slick-prev {
    left: 30px;
}

.hero-slider-wrapper .hero-main-slider .slick-next {
    right: 30px;
}

/* Responsive Adjustments - Scoped to wrapper */
@media (max-width: 1024px) {
    .hero-slider-wrapper .hero-thumb-slider {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        gap: 15px;
    }

    .hero-slider-wrapper .hero-thumb-item {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .hero-slider-wrapper .hero-bg-desktop {
        display: none;
    }

    .hero-slider-wrapper .hero-bg-mobile {
        display: block;
    }

    /* Mobile video height adjustment - extend to include thumbnails */
    .hero-slider-wrapper .hero-slide {
        height: auto;
        min-height: 100vh;
        max-height: 130vh;
        position: relative;
    }
	
	.hero-slider-wrapper .hero-bg {
    height: auto;
    min-height: 100vh;
    max-height: 130vh;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slider-wrapper .hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* black overlay */
    z-index: 1;
}
	

	

/* Make sure inner content stays above overlay */
.hero-slider-wrapper .hero-bg > * {
    position: relative;
    z-index: 2;
}

	.hero-main-slider .hero-slide[data-slide="3"] .hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* Dark overlay */
    z-index: 1;
}

    .hero-slider-wrapper .hero-bg {
        height: auto;
        min-height: 100vh;
        max-height: 130vh;
        position: relative;
    }

    .hero-slider-wrapper .hero-bg video {
        width: 100%;
        height: auto;
        min-height: 100vh;
        max-height: 130vh;
        object-fit: cover;
        object-position: center;
    }

    /* Ensure video maintains square-ish aspect ratio on mobile */
    .hero-slider-wrapper .hero-bg-mobile video {
        aspect-ratio: 3/4.5; /* Slightly taller to accommodate thumbnails */
        height: auto;
        width: 100%;
        object-fit: cover;
    }

    .hero-slider-wrapper .hero-content {
        padding: 0 20px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 80px; /* Leave space for thumbnails */
        display: flex;
        flex-direction: column;
/*         justify-content: flex-start; */
		justify-content: space-around;
        align-items: center;
        text-align: center;
    }

    .hero-slider-wrapper .hero-text-wrapper {
        max-width: calc(100% - 40px);
        width: 100%;
        padding: 20px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-slider-wrapper .hero-title {
        text-align: center;
        margin-bottom: 20px;
    }

    .hero-slider-wrapper .hero-description {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        text-align: center;
        font-size: 14px;
        margin-top: 20px;
    }

    .hero-slider-wrapper .hero-description p {
        text-align: center;
        max-width: 100%;
    }

    .hero-slider-wrapper .hero-thumb-slider {
        gap: 8px;
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        z-index: 15;
        background: rgba(0, 0, 0, 0.4);
        padding: 8px 12px;
        border-radius: 15px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-slider-wrapper .hero-thumb-item {
        width: 70px;
        height: 45px;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .hero-slider-wrapper .hero-thumb-item:hover {
        transform: scale(1.05);
    }

    .hero-slider-wrapper .hero-thumb-item.slick-current {
        border-color: #ffffff;
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .hero-slider-wrapper .hero-thumb-text {
        font-size: 9px;
        color: #ffffff;
        text-align: center;
        margin-top: 4px;
        font-weight: 500;
    }

    .hero-slider-wrapper .hero-main-slider .slick-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-slider-wrapper .hero-main-slider .slick-prev {
        left: 15px;
    }

    .hero-slider-wrapper .hero-main-slider .slick-next {
        right: 15px;
    }
	/* Progress bar - Scoped to wrapper */
.hero-slider-wrapper .hero-progress {
    z-index: 9999;
}
	
.hero-slider-wrapper .hero-bg-mobile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 40%); /* black overlay for mobiles*/
    z-index: 1;
}
	

}
