
/* Testimonial Cards */
.testimonial-card {
    background: rgba(13, 31, 54, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.testimonial-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Wrapper para posicionar botões (Desktop: apenas container normal) */
.testimonials-carousel-wrapper {
    position: relative;
    width: 100%;
}

/* Mobile Carousel Logic */
@media (max-width: 768px) {
    /* Transforma o grid em flex container com scroll */
    .testimonials-grid {
        display: flex;
        overflow-x: auto; /* Permite scroll */
        scroll-behavior: smooth;
        gap: 0; /* Remove gap do grid, usa padding/margin */
        scroll-snap-type: x mandatory; /* Snap ao rolar */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Esconde scrollbar Firefox */
    }
    
    .testimonials-grid::-webkit-scrollbar {
        display: none; /* Esconde scrollbar Chrome/Safari */
    }

    .testimonial-card {
        min-width: 100%; /* Cada card ocupa 100% da largura */
        scroll-snap-align: center;
        padding: 0 10px; /* Espaço lateral */
        box-sizing: border-box;
    }
    
    /* Ajuste dos botões para ficarem centralizados verticalmente sobre o carrossel */
    .testimonials-carousel-wrapper .carousel-btn {
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
        z-index: 20;
    }
    
    .testimonials-carousel-wrapper .carousel-btn.prev {
        left: -10px;
    }
    
    .testimonials-carousel-wrapper .carousel-btn.next {
        right: -10px;
    }
}
