/* cmwordpress-testimonial-style */

.cmwordpress-testimonial-wrapper .testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    position: relative;
    height: 100%;
}

.cmwordpress-testimonial-wrapper .quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: #f1f5f9;
    opacity: 0.5;
}

.cmwordpress-testimonial-wrapper .testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    color: #8A8A8A; /* Default color, can be overridden by Elementor */
}

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

.cmwordpress-testimonial-wrapper .author-avatar {
    color: #8A8A8A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmwordpress-testimonial-wrapper .author-info h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.cmwordpress-testimonial-wrapper .author-info span {
    font-size: 0.875rem;
    color: #8A8A8A;
}

/* Swiper overrides and spacing */
.cmwordpress-testimonial-carousel-container {
    overflow: hidden;
}

.cmwordpress-swiper-button-prev,
.cmwordpress-swiper-button-next {
    transition: all 0.3s ease;
}

.cmwordpress-swiper-button-prev:hover,
.cmwordpress-swiper-button-next:hover {
    background: #f1f5f9;
    transform: translateY(-50%) scale(1.05);
}

.swiper-slide.testimonial-card {
    height: auto; /* Allow Swiper to manage height */
    margin-bottom: 20px; /* Space for shadow */
    margin-top: 10px;
}

@media (max-width: 768px) {
    .cmwordpress-testimonial-carousel-container {
        padding: 0 10px !important;
    }
    
    /* Hide arrows on mobile for better space usage, users can just swipe */
    .cmwordpress-swiper-button-prev,
    .cmwordpress-swiper-button-next {
        display: none !important;
    }
    
    .cmwordpress-testimonial-wrapper .testimonial-card {
        padding: 1.5rem !important;
    }
}
