/* NEW OPTIMIZED HERO SLIDER - Clean Implementation */

.hero-slider-new {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* Container - Fixed heights for no CLS */
.hero-slider-new__container {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    overflow: hidden;
    background: #000; /* Black background to prevent visible space */
}

@media (max-width: 768px) {
    .hero-slider-new__container {
        height: 350px;
    }
}

/* Wrapper - Horizontal sliding */
.hero-slider-new__wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Slide - Full width, fixed height */
.hero-slider-new__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000; /* Black background to prevent visible space */
}

/* Slide Link */
.hero-slider-new__slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Slide Image Container */
.hero-slider-new__image-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000; /* Black background to prevent visible space */
    position: relative;
}

/* Slide Image - Ensure it fills container completely */
.hero-slider-new__image {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #000; /* Fallback background */
}

/* Picture element support */
.hero-slider-new__image-container picture {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
    background: #000; /* Black background */
}

.hero-slider-new__image-container picture img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #000; /* Fallback background */
}

/* Desktop: cover, Mobile: cover */
@media (max-width: 768px) {
    .hero-slider-new__container {
        height: 400px;
        min-height: 400px;
        max-height: 400px;
    }
    
    .hero-slider-new__image-container {
        /* min-height: 350px; */
        /* max-height: 350px; */
    }
    
    .hero-slider-new__image,
    .hero-slider-new__image-container picture img {
        object-fit: cover;
        min-height: 350px;
    }
    
    .hero-slider-new__image-container picture {
        min-height: 350px;
    }
}

/* Navigation Arrows */
.hero-slider-new__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.hero-slider-new__nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-new__nav--prev {
    left: 20px;
}

.hero-slider-new__nav--next {
    right: 20px;
}

.hero-slider-new__nav svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

@media (max-width: 768px) {
    .hero-slider-new__nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-new__nav--prev {
        left: 10px;
    }
    
    .hero-slider-new__nav--next {
        right: 10px;
    }
}

/* Hide navigation on single slide */
.hero-slider-new--single .hero-slider-new__nav {
    display: none;
}

/* Pagination Dots */
.hero-slider-new__pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.hero-slider-new--single .hero-slider-new__pagination {
    display: none;
}

.hero-slider-new__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.hero-slider-new__dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-slider-new__dot--active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .hero-slider-new__pagination {
        bottom: 10px;
    }
    
    .hero-slider-new__dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-slider-new__dot--active {
        width: 24px;
    }
}

/* Loading State - Hide until ready */
.hero-slider-new--loading {
    opacity: 0;
}

.hero-slider-new--ready {
    opacity: 1;
    transition: opacity 0.3s ease;
}

