/* ========= Modern Testimonial Styles =================*/

.testimonial-area {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonial-grid {
    margin-bottom: 40px;
}

.testimonial-card.modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.testimonial-card.modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c33764 0%, #2cb624 100%);
    border-radius: 20px 20px 0 0;
}

.testimonial-card.modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #c33764;
    box-shadow: 0 5px 15px rgba(195, 55, 100, 0.2);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.testimonial-rating .star {
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-rating .star.checked {
    background: #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.testimonial-rating .star.checked::before {
    content: "★";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.testimonial-content {
    text-align: left;
}

.testimonial-author {
    font-family: "Quicksand", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0d2156;
    margin-bottom: 15px;
    line-height: 1.3;
}

.testimonial-text {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #888c92;
    margin: 0;
    font-style: italic;
}

.view-more-btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #c33764 0%, #2cb624 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(195, 55, 100, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(195, 55, 100, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-area {
        padding: 60px 0;
    }

    .testimonial-card.modern {
        padding: 25px;
        margin-bottom: 20px;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }

    .testimonial-rating .star {
        width: 18px;
        height: 18px;
    }

    .testimonial-rating .star.checked::before {
        font-size: 11px;
    }

    .testimonial-author {
        font-size: 16px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .view-more-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .testimonial-card.modern {
        padding: 20px;
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
    }

    .testimonial-rating .star {
        width: 16px;
        height: 16px;
    }

    .testimonial-rating .star.checked::before {
        font-size: 10px;
    }
}
