/* =====================================================
   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__btn {
    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:50px;
    height:50px;

    border:none;
    background:none;


    padding:0;
    cursor:pointer;

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:10;
}

.iyeg-carousel__ring{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;
    z-index:1;
}

.iyeg-carousel__ring-base{
    fill:none;
    stroke:#fff;
    stroke-width:2;
}

.iyeg-carousel__ring-progress{
    fill:none;
    stroke:var(--iyeg-active-green);
    stroke-width:2;

    stroke-linecap:round;

    transform:rotate(-90deg);
    transform-origin:50% 50%;

    /* Circumference = 2 × π × 27 ≈ 169.65 */
    stroke-dasharray:169.65;
    stroke-dashoffset:169.65;

    transition:stroke-dashoffset .6s ease;
}

.iyeg-carousel__btn:hover .iyeg-carousel__ring-progress{
    stroke-dashoffset:0;
}

.iyeg-carousel__ring-base,
.iyeg-carousel__ring-progress {
    stroke-width: 1.3 !important;
}


.iyeg-carousel__btn:hover .iyeg-carousel__icon {
    color: var(--iyeg-active-green);
}

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

.iyeg-carousel__btn--prev {
    left: 30px;
}

.iyeg-carousel__btn--next {
    right: 30px;
}





/* ===== CAROUSEL SVG ICON ===== */

.iyeg-carousel__icon {
    width: 16px;
    height: 16px;
    display: block;
    color: #fff;
    flex-shrink: 0;
    transition: color 0.3s ease;
    z-index:2;
}



.iyeg-carousel__icon--left {
    transform: rotate(180deg);
}

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

@media (max-width: 768px) {
    .iyeg-carousel-section {
        height: 60vh;
        min-height: 350px;
    }
    
    .iyeg-carousel__btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .iyeg-carousel__btn--prev {
        left: 12px;
    }
    
    .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__btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        border-width: 1.5px;
    }
    
    .iyeg-carousel__btn--prev {
        left: 8px;
    }
    
    .iyeg-carousel__btn--next {
        right: 8px;
    }
}

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