.testimonial-carousel {
    width: 100%;
    max-width: 1400px;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    cursor: grab;
    touch-action: pan-x;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-track.animating {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    border-radius: 16px;
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    break-inside: avoid;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background: rgba(255, 255, 255, 0.9); */
    border: none;
    /* border-radius: 50%; */
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.nav-arrow:hover {
    /* background: #fff; */
    color: #aaa;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); */
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-arrow.prev {
    left: -22px;
}

.nav-arrow.next {
    right: -22px;
}

.nav-arrow svg {
    width: 36px;
    height: 36px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.dot.active {
    background-color: #184341;
    transform: scale(1.3);
}

@media (max-width: 768px) {

    .carousel-card {
        flex: 0 0 calc(100% - 10px);
        margin: 0 5px;
        padding: 5px;
        min-height: 300px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
        /* background: rgba(255, 255, 255, 0.95); */
    }

    .nav-arrow.prev {
        left: -18px;
    }

    .nav-arrow.next {
        right: -18px;
    }

 /*    .nav-arrow svg {
        width: 18px;
        height: 18px;
    } */

    .carousel-dots {
        margin-top: 20px;
        gap: 6px;
    }
    .dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .carousel-card {
        padding: 20px;
        min-height: 300px;
    }
    .nav-arrow {
        width: 25px;
    }
       .nav-arrow.prev {
        left: -5px;
    }
    .nav-arrow.next {
        right: -5px;
    }
}