/* Estilos para o widget de depoimentos */
.elementor-testimonials-widget {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Estilos para carrossel */
.testimonials-carousel {
    position: relative;
    padding: 30px 10px;
}

.testimonials-carousel .swiper-button-next,
.testimonials-carousel .swiper-button-prev {
    color: var(--primary-color);
    background-color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.testimonials-carousel .swiper-button-next:hover,
.testimonials-carousel .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.testimonials-carousel .swiper-button-next:after,
.testimonials-carousel .swiper-button-prev:after {
    font-size: 20px;
}

.testimonials-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.testimonials-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Estilos para grade */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.testimonials-grid.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.testimonials-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.testimonials-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card de depoimento */
.testimonial-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    transform: translateY(0);
    position: relative;
    padding: 25px 25px 25px 35px;
    margin-bottom: 20px;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 5px 0 0 5px;
    box-shadow: 0 0 15px rgba(78, 84, 200, 0.5);
    animation: glowingBorder 2s infinite alternate;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card:hover::before {
    width: 8px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    box-shadow: 0 0 25px rgba(78, 84, 200, 0.9);
    animation: glowingBorderHover 1.5s infinite alternate;
}

@keyframes glowingBorder {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
        box-shadow: 0 0 20px rgba(78, 84, 200, 0.8);
    }
}

@keyframes glowingBorderHover {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.9);
    }
}

/* Imagem do depoimento */
.testimonial-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.testimonial-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Conteúdo do depoimento */
.testimonial-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.testimonial-author {
    text-align: center;
    margin-bottom: 10px;
}

.testimonial-author h3 {
    margin: 0 0 5px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2em;
}

.testimonial-author span {
    color: var(--light-text);
    font-size: 0.9em;
}

.rating {
    text-align: center;
    margin-bottom: 15px;
    color: #ffc107;
}

.testimonial-text {
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-text p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    position: relative;
}

/* Ícones de redes sociais */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icons a i {
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .testimonials-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid.columns-3,
    .testimonials-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .testimonials-grid.columns-2,
    .testimonials-grid.columns-3,
    .testimonials-grid.columns-4 {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .testimonial-card {
        padding: 20px 20px 20px 30px;
    }
    
    .testimonial-image img {
        width: 100px;
        height: 100px;
    }
}
