/* Masonry Layout for Testimonials */
.testimonials-masonry-wrapper {
    padding: 60px 0;
    background: #fff;
}

.testimonials-masonry {
    columns: 3 300px;
    column-gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 50px; /* Increased margin for avatar overlap */
    break-inside: avoid;
    padding-top: 30px; /* Space for the avatar */
}

/* Card Design */
.new-testimonial-card {
    background: #fff;
    border: 1px solid #e8f5e9;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.new-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
    border-color: #20ae49;
}

.testimonial-avatar-wrapper {
    position: absolute;
    top: -30px;
    left: 20px;
    z-index: 2;
}

.testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background: #fff;
    object-fit: cover;
}

.testimonial-content {
    margin-top: 25px;
}

.testimonial-author-name {
    font-size: 18px;
    font-weight: 700;
    color: #132f3a;
    margin-bottom: 2px;
}

.testimonial-author-role {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.testimonial-rating {
    margin-bottom: 15px;
    color: #f7941d;
    font-size: 16px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 0;
}

.verified-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #20ae49;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.verified-badge:hover {
    color: #20ae49;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .testimonials-masonry {
        columns: 2 300px;
    }
}

@media (max-width: 767px) {
    .testimonials-masonry {
        columns: 1;
    }
}
