.testimonial-area {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin: 15px;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.testimonial-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testimonial-icon:hover .testimonial-img {
    transform: scale(1.1);
}

.quote-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: #4e54c8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: pulse 2s infinite;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    position: relative;
    padding: 0 20px;
}

.testimonial-text:before,
.testimonial-text:after {
    content: '"';
    font-size: 60px;
    color: #4e54c8;
    opacity: 0.2;
    position: absolute;
}

.testimonial-text:before {
    top: -20px;
    left: -10px;
}

.testimonial-text:after {
    bottom: -40px;
    right: -10px;
}

.testimonial-ratting {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

.author-role {
    display: block;
    font-weight: 400;
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

/* Animation for slider */
.h1-testimonial-active {
    position: relative;
}

.single-testimonial {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px);
}

.single-testimonial.slick-active {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for quote icon */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
        padding: 0 10px;
    }
}