.testimonials-carousel {
    max-width: 420px;
    margin: 3rem auto 0;
    position: relative;
}

.testimonials-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-grid {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    margin-top: 0;
    perspective: 1000px;
}

.testimonial-card-new {
    flex: 0 0 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 10px 30px -5px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
}

.testimonial-card-new:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow:
        0 20px 40px -5px rgba(0, 102, 255, 0.15),
        0 0 0 1px rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.2);
    z-index: 10;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.stars {
    color: #FFB800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(255, 184, 0, 0.2);
}

.quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: #E2E8F0;
    font-family: serif;
    margin-top: -1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.testimonial-card-new:hover .quote-icon {
    color: rgba(0, 102, 255, 0.1);
    transform: scale(1.1) rotate(-10deg);
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #F1F5F9;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #F8FAFC;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: #1E293B;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
}

.author-title {
    font-size: 0.875rem;
    color: #0066FF;
    font-weight: 600;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0066FF;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover {
    background: #0066FF;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 255, 0.2);
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E2E8F0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #0066FF;
    width: 24px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonials-carousel {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .testimonial-card-new {
        padding: 2rem;
    }

    .testimonial-card-new:hover {
        transform: translateY(-5px);
    }

    .carousel-controls {
        gap: 1.5rem;
    }
}