/* Custom Swiper Styles for Testimonials */

/* Container override para permitir extensão total */
.testimonials .container {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Esconder o slider antigo */
.testimonials-slider {
    display: none;
}

/* Manter o título centralizado */
.testimonials .section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
}

/* Swiper container principal */
.testimonials-swiper {
    padding: 0 60px;
    position: relative;
    margin: 0 -20px;
    width: calc(100% + 40px);
    overflow: visible;
}

/* Slides individuais */
.testimonials-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    margin: 0;
    gap: 0;
}

/* Wrapper do Swiper - garantir sem espaçamento */
.testimonials-swiper .swiper-wrapper {
    gap: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.testimonials-swiper .testimonial {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonials-swiper .testimonial:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonials-swiper .testimonial p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #333;
    flex-grow: 1;
}

.testimonials-swiper .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonials-swiper .avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.testimonials-swiper .testimonial-author h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.testimonials-swiper .testimonial-author span {
    font-size: 0.85rem;
    color: #666;
}

/* Navigation Buttons */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.3s ease;
    margin-top: -25px; /* Center vertically */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background: #fff;
    transform: none;
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Pagination */
.testimonials-swiper .swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cccccc;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-swiper {
        padding: 0 40px;
        margin: 0 -10px;
        width: calc(100% + 20px);
    }
    
    .testimonials-swiper .swiper-button-next,
    .testimonials-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-swiper .swiper-button-next::after,
    .testimonials-swiper .swiper-button-prev::after {
        font-size: 1rem;
    }
    
    .testimonials-swiper .testimonial {
        padding: 1.5rem;
    }
    
    .testimonials-swiper .testimonial p {
        font-size: 1rem;
    }
}

/* Accessibility improvements */
.testimonials-swiper .swiper-button-next:focus,
.testimonials-swiper .swiper-button-prev:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.testimonials-swiper .swiper-pagination-bullet:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .testimonials-swiper .testimonial {
        transition: none;
    }
    
    .testimonials-swiper .swiper-button-next,
    .testimonials-swiper .swiper-button-prev {
        transition: none;
    }
    
    .testimonials-swiper .swiper-pagination-bullet {
        transition: none;
    }
}
