/* css/testimonials.css */

.testimonials-section {
    background-color: var(--bg-dark);
padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* --- Cabeçalho da Seção (AGORA CENTRALIZADO) --- */
.testimonials-header {
    display: flex; /* Mantém flex para espaçamento */
    flex-direction: column; /* Organiza itens em coluna */
    align-items: center; /* CENTRALIZA tudo horizontalmente */
    margin-bottom: 4rem;
    text-align: center; /* CENTRALIZA o texto */
}

.testimonials-title {
    max-width: 700px; /* Limita a largura para melhor leitura */
    margin-bottom: 2rem; /* Espaço entre o texto e os botões */
}

.testimonials-title h2 {
    text-align: center; /* Garante o título centralizado */
    margin: 0 0 0.5rem 0;
}

.testimonials-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    /* max-width removido daqui, agora está no container do título */
}

/* --- Controles do Carrossel (Reposicionados) --- */
.carousel-controls {
    display: flex;
    gap: 0.8rem;
    /* Já centralizados por align-items: center no testimonials-header */
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--gradient-start);
    color: #fff;
    border-color: var(--gradient-start);
}

/* --- Carrossel --- */
.testimonial-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* --- Card de Depoimento --- */
.testimonial-card {
    flex: 0 0 100%;
    background-color: var(--bg-card);
    padding: 3rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    position: relative;
    z-index: 2;
}

.card-content {
    flex-grow: 1;
}

.client-rating {
    margin-bottom: 1.5rem;
    color: #f59e0b; /* Amarelo/Dourado para estrelas */
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.client-info h5 {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

/* --- Elemento de design: aspas gigantes de fundo --- */
.quote-icon-bg {
    position: absolute;
    top: -50px;
    left: -30px;
    font-size: 20rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05); 
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .testimonials-header {
        flex-direction: column;
        align-items: center; /* Garante que o header e os botões fiquem centralizados */
        gap: 2rem;
    }

    .testimonials-title {
        margin-bottom: 1.5rem; /* Ajuste para espaçamento em mobile */
    }

    .testimonials-title h2,
    .testimonials-title p {
        text-align: center; /* Força centralização em mobile também */
    }

    .testimonial-card {
        padding: 2rem;
        min-height: auto;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }
}