/* Custom CSS for Testimonial Client Logos */
.testimonial-author .author-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-author .author-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    padding: 8px;
    max-width: 100%;
    max-height: 100%;
}

/* Responsive adjustments */
@media only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
    .testimonial-author .author-img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Fix for testimonial-slider-2 specifically */
.testimonial-slider-2 .testimonial-item .testimonial-author .author-img {
    width: 80px !important;
    height: 80px !important;
}

.testimonial-slider-2 .testimonial-item .testimonial-author .author-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px;
}

/* Ensure logos are visible */
.testimonial-author .author-img img[src*="testimonial"] {
    display: block !important;
    visibility: visible !important;
}

/* Fallback for missing images */
.testimonial-author .author-img img:not([src]) {
    display: none;
}

/* Style for empty or broken images */
.testimonial-author .author-img img[src=""],
.testimonial-author .author-img img[src*="undefined"] {
    display: none;
}
