/* =====================================================
   CAROUSEL COMPONENT
   ===================================================== */

   .iyeg-carousel-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;  /* Default background */
    z-index: 1;
}

/* When background image is set via inline style, ensure it's positioned correctly */
.iyeg-carousel-section[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.iyeg-carousel-section .iyeg-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===== CAROUSEL TRACK ===== */
.iyeg-carousel-section .iyeg-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===== CAROUSEL SLIDES ===== */
.iyeg-carousel-section .iyeg-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    /* background-size: contain; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.iyeg-carousel-section .iyeg-carousel__slide.active {
    opacity: 1;
    z-index: 2;
}

/* ===== SLIDE SCALING VARIANTS ===== */
.iyeg-carousel-section .iyeg-carousel__slide--scaled-1 {
    background-size: 85% !important;
    background-position: center center;
}

.iyeg-carousel-section .iyeg-carousel__slide--scaled-2 {
    background-size: 70% !important;
    background-position: center center;
}

/* ===== CAROUSEL BUTTONS ===== */
.iyeg-carousel-section .iyeg-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin: 0;
    padding: 0;
    outline: none;
}

.iyeg-carousel-section .iyeg-carousel__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.iyeg-carousel-section .iyeg-carousel__btn:active {
    transform: translateY(-50%) scale(0.95);
}

.iyeg-carousel-section .iyeg-carousel__btn--prev {
    left: 20px;
}

.iyeg-carousel-section .iyeg-carousel__btn--next {
    right: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .iyeg-carousel-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .iyeg-carousel-section .iyeg-carousel__btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .iyeg-carousel-section {
        height: 60vh;
        min-height: 350px;
    }
    
    .iyeg-carousel-section .iyeg-carousel__btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .iyeg-carousel-section .iyeg-carousel__btn--prev {
        left: 12px;
    }
    
    .iyeg-carousel-section .iyeg-carousel__btn--next {
        right: 12px;
    }
    
    .iyeg-carousel-section .iyeg-carousel__slide--scaled-1 {
        background-size: 100% !important;
    }
    
    .iyeg-carousel-section .iyeg-carousel__slide--scaled-2 {
        background-size: 90% !important;
    }
}

@media (max-width: 480px) {
    .iyeg-carousel-section {
        height: 50vh;
        min-height: 300px;
    }
    
    .iyeg-carousel-section .iyeg-carousel__btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        border-width: 1.5px;
    }
    
    .iyeg-carousel-section .iyeg-carousel__btn--prev {
        left: 8px;
    }
    
    .iyeg-carousel-section .iyeg-carousel__btn--next {
        right: 8px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .iyeg-carousel-section .iyeg-carousel__slide {
        transition: none !important;
    }
}