/* TESTIMONIAL MARQUEE */
.custom-testimonial-marquee {
    --tm-bg: #eef2f5;
    --tm-text: #555555;
    --tm-gap: 30px;
    --tm-speed: 32s;
    width: 100%;
    overflow: hidden;
    background: var(--tm-bg);
    padding: 30px 10px;
    box-sizing: border-box;
    position: relative;
}

/* RESET */
.custom-testimonial-marquee *,
.custom-testimonial-marquee *::before,
.custom-testimonial-marquee *::after {
    box-sizing: border-box;
}

/* TRACK */
.custom-testimonial-track {
    display: flex;
    width: max-content;
    animation: testimonial-marquee-scroll var(--tm-speed) linear infinite;
    will-change: transform;
}

/* MỖI SET */
.custom-testimonial-set {
    display: flex;
    flex-shrink: 0;
    gap: var(--tm-gap);
    padding-right: var(--tm-gap);
}

/* CARD */
.custom-testimonial-card {
    width: 250px;
    min-width: 250px;
    height: 210px;
    background: var(--color-white);
    border-radius: 12px;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    transition: transform .3s ease,  box-shadow .3s ease;
}

/* TEXT */
.custom-testimonial-text {
    color: var(--tm-text);
    font-size: 15px;
    line-height: 1.5;
    font-style: italic;
    font-weight: 400;
    margin: 0;
}

/* AUTHOR */
.custom-testimonial-author {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.3;
}

/* DASH */
.custom-testimonial-dash {
    color: var(--color-main);
    font-weight: 700;
    font-size: 16px;
}

/* NAME */
.custom-testimonial-name {
    color: var(--color-main);
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
}

/* ROLE */
.custom-testimonial-role {
    color: #777;
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
}

/* HOVER CARD */
.custom-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.13);
}

/* PAUSE KHI HOVER */
.custom-testimonial-marquee:hover .custom-testimonial-track {
    animation-play-state: paused;
}

/* MARQUEE ANIMATION */
@keyframes testimonial-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* TABLET */
@media (max-width: 991px) {
    .custom-testimonial-marquee {
        --tm-gap: 20px;
        --tm-speed: 28s;
        padding: 25px 10px;
    }

    .custom-testimonial-card {
        width: 240px;
        min-width: 240px;
        height: 205px;
        padding: 18px;
    }

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

/* MOBILE */
@media (max-width: 767px) {
    .custom-testimonial-marquee {
        --tm-gap: 15px;
        --tm-speed: 24s;
        padding: 20px 8px;
    }

    .custom-testimonial-set {
        gap: var(--tm-gap);
        padding-right: var(--tm-gap);
    }

    .custom-testimonial-card {
        width: calc(100vw - 55px);
        min-width: calc(100vw - 55px);
        height: 205px;
        padding: 18px;
        border-radius: 11px;
    }

    .custom-testimonial-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .custom-testimonial-name {
        font-size: 12px;
    }

    .custom-testimonial-role {
        font-size: 11px;
    }
}

/* IPHONE NHỎ */
@media (max-width: 380px) {
    .custom-testimonial-card {
        width: calc(100vw - 40px);
        min-width: calc(100vw - 40px);
        height: 200px;
    }
}