/* Slider Fixes - Correções para o Carousel */

/* 1. GARANTIR QUE O SLIDER FUNCIONE */
#customCarousel1 {
    position: relative;
    z-index: 5;
}

#customCarousel1 .carousel-inner {
    position: relative;
    overflow: hidden;
}

#customCarousel1 .carousel-item {
    transition: transform 0.6s ease-in-out;
    position: relative;
    display: none;
}

#customCarousel1 .carousel-item.active {
    display: block;
}

#customCarousel1 .carousel-item.active,
#customCarousel1 .carousel-item-next,
#customCarousel1 .carousel-item-prev {
    display: block;
}

#customCarousel1 .carousel-item-next:not(.carousel-item-left),
#customCarousel1 .carousel-item-prev:not(.carousel-item-right) {
    transform: translateX(0);
}

#customCarousel1 .carousel-item-next,
#customCarousel1 .carousel-item-prev {
    position: absolute;
    top: 0;
    width: 100%;
}

#customCarousel1 .carousel-item-next {
    transform: translateX(100%);
}

#customCarousel1 .carousel-item-prev {
    transform: translateX(-100%);
}

/* 2. CONTROLES DO SLIDER */
.carousel_btn-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.1);
}

.carousel-control-prev i,
.carousel-control-next i {
    color: #333;
    font-size: 1.2rem;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    color: white;
}

/* 3. INDICADORES CUSTOMIZADOS */
.carousel-indicators-custom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover,
.carousel-indicator.active {
    background: #667eea;
    transform: scale(1.2);
}

/* 4. ANIMAÇÕES DO SLIDER */
#customCarousel1 .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

#customCarousel1 .carousel-item.active {
    opacity: 1;
}

/* 5. RESPONSIVIDADE DO SLIDER */
@media (max-width: 768px) {
    .carousel_btn-box {
        bottom: 20px;
        right: 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 1rem;
    }
    
    .carousel-indicators-custom {
        bottom: 15px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .carousel_btn-box {
        bottom: 15px;
        right: 15px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 0.9rem;
    }
    
    .carousel-indicators-custom {
        bottom: 10px;
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

/* 6. GARANTIR QUE O BOOTSTRAP CAROUSEL FUNCIONE */
.carousel {
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    align-items: center;
    width: 100%;
    transition: transform 0.6s ease-in-out;
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-left),
.carousel-item-prev:not(.carousel-item-right) {
    transform: translateX(0);
}

.carousel-item-next,
.carousel-item-prev {
    position: absolute;
    top: 0;
    width: 100%;
}

.carousel-item-next {
    transform: translateX(100%);
}

.carousel-item-prev {
    transform: translateX(-100%);
}

/* 7. CORREÇÕES ESPECÍFICAS */
#customCarousel1 .carousel-inner .carousel-item {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

#customCarousel1 .carousel-inner .carousel-item .container {
    position: relative;
    z-index: 5;
}

/* 8. AUTOPLAY FORÇADO */
#customCarousel1 {
    animation: none;
}

#customCarousel1 .carousel-inner {
    animation: none;
}

/* 9. GARANTIR QUE OS CONTROLES FUNCIONEM */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    color: #fff;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: 0.9;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

/* 10. INDICADORES BOOTSTRAP ORIGINAIS */
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}

.carousel-indicators li {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.carousel-indicators .active {
    opacity: 1;
}

