/**
 * Estilos para o Slider de Imagens
 * 
 * Baseado nas imagens de referência fornecidas, com navegação 
 * à esquerda em desktop e centralizada em mobile.
 */

.mf-image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: auto;
    border-radius: 0px 0px 16px 16px;
}

/* Altura mínima para os slides */
.mf-image-slide .relative {
    min-height: 463px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 767px) {
    /* .mf-image-slider,
    .mf-image-slide,
    .mf-image-slide .relative {
        min-height: 300px;
    } */
}

/* Estilos para o conteúdo do slide */
.mf-image-slide .slide-content {
    max-width: 1366px;
    width: 100%;
    z-index: 2;
    padding: 0 20px;
}

/* Estilos para alineación del contenido */
.mf-image-slide .slide-content.align-left {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.mf-image-slide .slide-content.align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.mf-image-slide .slide-content.align-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

/* Responsive para tablets y desktop */
@media (min-width: 768px) {
    .mf-image-slide .slide-content.md-align-left {
        margin-right: auto;
        margin-left: 0;
        text-align: left;
    }
    
    .mf-image-slide .slide-content.md-align-center {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .mf-image-slide .slide-content.md-align-right {
        margin-left: auto;
        margin-right: 0;
        text-align: right;
    }
}

/* Remover qualquer overlay escuro */
.mf-image-slide .absolute.inset-0::before,
.mf-image-slide .absolute.inset-0::after {
    display: none;
}

.mf-image-slide .absolute.inset-0 {
    background: transparent;
}

/* Estilos para alinhamento do conteúdo */
.mf-image-slide h2 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.mf-image-slide p {
    color: #fff;
    margin-bottom: 1rem;
}

/* Controles do slider */
.mf-slider-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: auto;
}

/* Navegação com paginação entre as setas */
.swiper-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    width: auto;
}

/* Paginação (dots) */
.mf-image-slider .swiper-pagination {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 20;
    margin: 0;
    flex: 1;
}

.mf-image-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: transparent;
    border: 1px solid #fff;
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    transform: translateX(0px);
}

.mf-image-slider .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.mf-image-slider .swiper-pagination-bullet-active {
    background-color: #fff;
    border: 1px solid #fff;
    transform: scale(1);
}

/* Botones de navegación */
.mf-image-slider .swiper-button-next,
.mf-image-slider .swiper-button-prev {
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 0;
    color: #fff;
    transition: all 0.3s ease;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex: 0 0 auto;
}

.mf-image-slider .swiper-button-next:hover,
.mf-image-slider .swiper-button-prev:hover {
    color: rgba(255, 255, 255, 0.8);
}

.mf-image-slider .swiper-button-next:after,
.mf-image-slider .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
}

/* Navegação (setas) */
.mf-image-slider .swiper-navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mf-image-slider .swiper-button-next,
.mf-image-slider .swiper-button-prev {
    position: static;
    width: 30px;
    height: 30px;
    margin: 0;
    background-color: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mf-image-slider .swiper-button-next:after,
.mf-image-slider .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

/* Imagens de fundo */
.mf-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Botão CTA */
.mf-image-slide a {
    background-color: #C71121;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.mf-image-slide a:hover {
    background-color: #a50e1c;
}

/* Responsividade */
@media (max-width: 768px) {
    /* .mf-image-slide .relative {
        min-height: 300px;
    } */
    
    .mf-image-slide .slide-content {
        max-width: 100%;
    }
    
    /* Centralizar controles em dispositivos móveis */
    .mf-slider-controls {
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
    }
    
    .mf-image-slide .relative::after {
        background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    }
}
