.testimonials-coverflow {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.testimonials-slider {
    margin-bottom: 40px;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
}

.testimonial-slide {
    position: relative;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 -60px;
    transform-origin: center center;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
}

.testimonial-slide::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    z-index: 0;
}

.client-image {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
    margin-top: 50px;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.client-name {
    font-weight: 700;
    font-size: 18px;
    color: #222;
    margin-top: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.client-name::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #4CAF50;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Slide positioning classes - True Coverflow Effect */
.active-slide {
    transform: scale(1) translateX(0) translateZ(100px);
    opacity: 1;
    z-index: 10;
    background: #E8F3EF !important;
}

.slide-left-1 {
    transform: translateX(-80%) scale(0.85) translateZ(0) rotateY(25deg);
    opacity: 0.85;
    z-index: 9;
}

.slide-left-2 {
    transform: translateX(-140%) scale(0.7) translateZ(-100px) rotateY(40deg);
    opacity: 0.7;
    z-index: 8;
}

.slide-right-1 {
    transform: translateX(80%) scale(0.85) translateZ(0) rotateY(-25deg);
    opacity: 0.85;
    z-index: 9;
}

.slide-right-2 {
    transform: translateX(140%) scale(0.7) translateZ(-100px) rotateY(-40deg);
    opacity: 0.7;
    z-index: 8;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 20px;
    z-index: 20;
}

.slick-prev, .slick-next {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 20;
    transition: all 0.3s ease;
}

.slick-prev {
    margin-right: 20px;
}

.slick-next {
    margin-left: 20px;
}

.slick-prev img, .slick-next img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.slick-prev:hover img, .slick-next:hover img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transform: scale(1.1);
}

.slick-prev img {
    transform: rotate(180deg);
}

.slick-prev:hover img {
    transform: rotate(180deg) scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-dots .slick-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.slider-dots .slick-dots li {
    margin: 0 6px;
}

.slider-dots .slick-dots li button {
    width: 12px;
    height: 12px;
    background: #ddd;
    border: none;
    border-radius: 50%;
    text-indent: -9999px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .slick-dots li.slick-active button {
    background: #4CAF50;
    transform: scale(1.3);
}

/* Slick Slider Overrides */
.slick-list {
    overflow: visible;
    padding: 0 !important;
}

.slick-track {
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.slick-slide {
    height: auto;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .testimonial-slide {
        width: 300px;
        height: 400px;
        padding: 35px;
        margin: 0 -50px;
    }
    
    .client-image {
        width: 70px;
        height: 70px;
    }
    
    .testimonial-content {
        font-size: 15px;
        margin-top: 45px;
    }
    
    .slide-left-1 {
        transform: translateX(-70%) scale(0.85) translateZ(0) rotateY(20deg);
    }
    
    .slide-left-2 {
        transform: translateX(-120%) scale(0.7) translateZ(-80px) rotateY(35deg);
    }
    
    .slide-right-1 {
        transform: translateX(70%) scale(0.85) translateZ(0) rotateY(-20deg);
    }
    
    .slide-right-2 {
        transform: translateX(120%) scale(0.7) translateZ(-80px) rotateY(-35deg);
    }
}

@media (max-width: 768px) {
    .testimonials-coverflow {
        padding: 40px 0;
    }
    
    .testimonial-slide {
        width: 280px;
        height: 380px;
        padding: 30px;
        margin: 0 -40px;
    }
    
    .testimonial-content {
        font-size: 14px;
        margin-top: 40px;
        -webkit-line-clamp: 6;
    }
    
    .client-name {
        font-size: 16px;
    }
    
    .slick-prev, .slick-next {
        width: 35px;
        height: 35px;
    }
    
    .slick-prev {
        margin-right: 15px;
    }
    
    .slick-next {
        margin-left: 15px;
    }
    
    .slide-left-1 {
        transform: translateX(-60%) scale(0.85) translateZ(0) rotateY(15deg);
    }
    
    .slide-left-2 {
        transform: translateX(-100%) scale(0.7) translateZ(-60px) rotateY(25deg);
    }
    
    .slide-right-1 {
        transform: translateX(60%) scale(0.85) translateZ(0) rotateY(-15deg);
    }
    
    .slide-right-2 {
        transform: translateX(100%) scale(0.7) translateZ(-60px) rotateY(-25deg);
    }
}

@media (max-width: 480px) {
    .testimonial-slide {
        width: 260px;
        height: 360px;
        padding: 25px;
        margin: 0 -30px;
    }
    
    .testimonial-content {
        font-size: 14px;
        margin-top: 35px;
        -webkit-line-clamp: 5;
    }
    
    .client-image {
        width: 60px;
        height: 60px;
        top: 20px;
        right: 20px;
    }
    
    .slick-prev, .slick-next {
        width: 30px;
        height: 30px;
    }
    
    .slider-dots .slick-dots li button {
        width: 10px;
        height: 10px;
    }
    
    .slide-left-1 {
        transform: translateX(-50%) scale(0.85) translateZ(0) rotateY(10deg);
    }
    
    .slide-left-2 {
        transform: translateX(-80%) scale(0.7) translateZ(-40px) rotateY(20deg);
    }
    
    .slide-right-1 {
        transform: translateX(50%) scale(0.85) translateZ(0) rotateY(-10deg);
    }
    
    .slide-right-2 {
        transform: translateX(80%) scale(0.7) translateZ(-40px) rotateY(-20deg);
    }
}