/* Estilos base */
.testimonials {
    display: none; /* REMOVER  */
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonialsText {
    margin-top: 10rem;
}

.testimonialsText h3 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--green);
}

.testimonialsText h1 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 52px;
    font-weight: bold;
    color: var(--black-400);
}

.cardsTestimonials {
    display: flex;
    gap: 6rem; 
    margin-top: 1.6rem;
    overflow: hidden;
    position: relative;
    padding: 0 2rem;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}


.onlyTestimonials {
    background: var(--white);
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10rem;
    flex: 0 0 calc(100% - 4rem); /* Ajusta a largura considerando o espaçamento */
    max-width: calc(100% - 4rem);
    border-radius: 8px;
    margin: 0 2rem; /* Adiciona margem lateral para cada depoimento */
}

.cardsTestimonials p {
    font-family: "Josefin Sans", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--gray);
    margin-top: 2rem;
}

.cardsTestimonials h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--black-100);
    margin-top: 1.5rem;
}

/* Controles do carrossel */
.testimonial-controls {
    margin-top: 2rem;
    
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 6rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--green);
}

.testimonial-arrows {
    position: absolute;
    top: 50%;
    width: calc(100% - 8rem); 
    left: 4rem; 
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.testimonial-arrow {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    z-index: 10;
}

/* Ajustes para telas maiores */
@media screen and (min-width: 768px) {
    .onlyTestimonials {
        flex: 0 0 calc(50% - 6rem); /* Ajusta considerando o novo gap */
        max-width: calc(50% - 6rem);
        margin: 0 1rem; /* Margem reduzida em telas maiores */
    }
}

@media screen and (min-width: 992px) {
    .onlyTestimonials {
        flex: 0 0 calc(33.333% - 6rem); /* Ajusta considerando o novo gap */
        max-width: calc(33.333% - 6rem);
        margin: 0 1rem; /* Margem reduzida em telas maiores */
    }
}

@media screen and (max-width: 768px) {
    .testimonialsText h3 {
        font-size: 32px;
    }
    
    .testimonialsText h1 {
        font-size: 42px;
    }
    
    .cardsTestimonials p {
        font-size: 20px;
    }
    
    .cardsTestimonials h2 {
        font-size: 26px;
    }
}

@media screen and (max-width: 480px) {
    .testimonialsText h3 {
        font-size: 28px;
    }
    
    .testimonialsText h1 {
        font-size: 36px;
    }
    
    .cardsTestimonials p {
        font-size: 18px;
    }
}