.wrapper-testimonial{
    max-width: 1142px;
    overflow: hidden;
    margin: 0 auto; /* Centralizar o wrapper */
}

.testimonials-section {
    display: flex;
    flex-direction: column;
    padding: 60px 15px;
    background-color: #f5f5f5;
    width: 100%;
    box-sizing: border-box; /* Garante que o padding não aumente a largura */
}

.wrapper-text-testimonials {
    max-width: 1142px;
    width: 100%;
    padding: 0 2rem;
    margin: auto;
    margin-bottom: 40px;
    box-sizing: border-box; /* Importante para responsividade */
}

.testimonials-title {
    font-size: 40px;
    color: #024248;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.testimonials-subtitle {
    font-size: 20px;
    color: #333840;
    font-weight: 400;
    margin: 0;
}

.testimonial-carousel-wrapper {
    max-width: 71.1rem;
    position: relative;
    margin: auto;
    padding: 0 2rem;
    box-sizing: border-box; /* Importante para responsividade */
    overflow: visible; /* Alterado para visible para permitir que os botões de navegação apareçam */
}

.testimonial-carousel-container {
    position: relative;
    overflow: hidden; /* Movido do wrapper para o container */
    width: 100%;
}

.testimonial-carousel-items {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 25px;
    cursor: grab;
    padding-bottom: 10px; /* Para evitar corte da sombra */  
}

.testimonial-carousel-items:active {
    cursor: grabbing;
}

.testimonial-item-wrapper {
    flex: 0 0 auto;
    width: calc(45% - 15px);
    min-width: 410px;
}

.testimonial-container {
    display: grid;
    grid-template-columns: 40% 60%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.testimonial-image {
    background-color: #025257;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.testimonial-image img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.testimonial-card {
    background-color: #025257;
    color: white;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-title {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.testimonial-description {
    font-size: 1em;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.testimonial-position {
    font-size: 0.9em;
    color: #d1d1d1;
    margin-top: auto;
}

/* Estilo base para ambos os botões de controle */
.testimonial-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Botão anterior começa escondido */
.testimonial-control-prev {
    left: 0;
    opacity: 0;
    pointer-events: none;
}

/* Botão próximo é sempre visível inicialmente */
body .testimonial-control-next {
    right: 0;
    opacity: 1 !important;
    display: flex !important;
    pointer-events: auto !important;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .testimonial-carousel-wrapper {
        max-width: 95%;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .testimonial-item-wrapper {
        min-width: 380px;
    }

    .testimonial-carousel-items {
        gap: 8px;  
    }
}

@media (max-width: 992px) {
    .testimonial-item-wrapper {
        width: 100%; /* Ocupar 100% da largura disponível */
        min-width: 260px; /* Reduzido para telas menores */
        max-width: 80vw; /* Previne que fique maior que a viewport */
    }
    
    .testimonial-carousel-items {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .wrapper-text-testimonials {
        padding: 0;
    }

    .testimonials-section {
        padding: 40px 0 40px 15px;
    }
    
    .testimonials-title {
        font-size: 32px;
    }
    
    .testimonial-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .testimonial-image {
        padding: 30px 20px;
    }
    
    .testimonial-image img {
        width: 120px;
        height: 120px;
    }
    
    .testimonial-carousel-container {
        padding: 0;
        width: 100%;
    }
    
    .testimonial-carousel-wrapper {
        padding: 0 5px;
    }
    
    .testimonial-control {
        display: none !important;
    }
    
    /* Garante que os itens cabem na tela */
    .testimonial-item-wrapper {
        min-width: 250px;
        max-width: 80vw;
    }
}

@media (max-width: 480px) {
    .testimonial-image img {
        width: 100px;
        height: 100px;
    }
    
    .testimonial-title {
        font-size: 1.3em;
    }
    
    .testimonial-description {
        font-size: 0.9em;
    }
    
    /* Ajustes adicionais para telas muito pequenas */
    .testimonial-item-wrapper {
        min-width: 220px;
        max-width: 80vw;
    }
    
    .testimonial-carousel-wrapper {
        max-width: 100%;
        padding: 0;
    }
    
    .testimonial-control-prev {
        display: none !important;
    }
    
    body .testimonial-control-next {
        display: none !important;
    }
}