/* =========================================
   Testimonials
   ========================================= */

.testimonials {
    width: 100%;
    overflow: hidden;
}


/* =========================================
   Cards Track
   ========================================= */

.testimonials-track {
    display: flex;
    gap: 32px;
    width: max-content;
    transition: transform 0.5s ease;
    will-change: transform;
    touch-action: pan-y;
}


/* =========================================
   Testimonial Card
   ========================================= */

.testimonial-card {
    width: 520px;
    min-height: 650px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 16px;

    padding: 36px;

    display: flex;
    flex-direction: column;

    flex-shrink: 0;
}


/* =========================================
   Top Area
   ========================================= */

.testimonial-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================
   Profile Photo
   ========================================= */

.testimonial-photo {
    width: 72px;
    height: 72px;

    flex-shrink: 0;

    border-radius: 50%;

    overflow: hidden;
}


.testimonial-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================
   Company Logo
   ========================================= */

.testimonial-logo {
    max-width: 180px;
    max-height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.testimonial-logo img {
    display: block;

    max-width: 100%;
    max-height: 70px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =========================================
   Review
   ========================================= */

.testimonial-review {
    margin-top: 45px;

    font-size: 23px;

    line-height: 1.45;

    font-weight: 400;

    color: #25252b;

    letter-spacing: -0.01em;
}


/* =========================================
   Author
   ========================================= */

.testimonial-author {
    margin-top: auto;

    padding-top: 40px;
}


.testimonial-name {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 20px;

    line-height: 1.3;

    font-weight: 600;

    color: #17171b;
}


.testimonial-name a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 3px;

    background: #222222;

    color: #ffffff;

    text-decoration: none;

    font-family: Arial, sans-serif;

    font-size: 13px;

    font-weight: 700;
}


.testimonial-position {
    margin-top: 6px;

    font-size: 18px;

    line-height: 1.4;

    color: #99999f;
}


.testimonial-company {
    margin-top: 2px;

    font-size: 16px;

    color: #99999f;
}


/* =========================================
   Controls
   ========================================= */
/* Testimonial Controls */

.testimonials .testimonials-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.testimonials .testimonials-controls button {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    background: #F0FF42 !important;
    color: #ffffff !important;

    display: grid !important;
    place-items: center !important;

    cursor: pointer !important;

    box-shadow: none !important;

    line-height: 0 !important;
}

/* Exact arrow centering */

.testimonials .testimonial-arrow {
    width: 22px !important;
    height: 22px !important;

    display: block !important;

    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #000000 !important;

    flex: none !important;
}

/* Make SVG stroke more visible */

.testimonials .testimonial-arrow path {
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.testimonials .testimonials-controls button:hover {
    background: #F0FF42 !important;
    color: #000 !important;
}

.testimonials .testimonials-controls button:focus {
    outline: none !important;
    background: #F0FF42 !important;
    color: #000 !important;
}

.testimonials .testimonials-controls button:active {
    transform: scale(0.97);
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 767px) {

    /* =====================================
       Carousel Viewport
       ===================================== */

    .testimonials {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }


    /* =====================================
       Cards Track
       ===================================== */

    .testimonials-track {
        display: flex;
        gap: 28px;
        width: max-content;

        align-items: stretch;
    }


    /* =====================================
       Testimonial Card
       ===================================== */

    .testimonial-card {
        width: 280px !important;
        flex: 0 0 280px !important;

        min-height: 492px;

        padding: 26px;

        box-sizing: border-box;

        border-radius: 16px;
    }


    /* =====================================
       Top Area
       ===================================== */

    .testimonial-card-top {
        width: 100%;

        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 18px;
    }


    /* =====================================
       Profile Photo
       ===================================== */

    .testimonial-photo {
        width: 48px;
        height: 48px;

        flex: 0 0 48px;
    }


    .testimonial-photo img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    /* =====================================
       Company Logo
       ===================================== */

    .testimonial-logo {
        max-width: 125px;
        max-height: 60px;

        min-width: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }


    .testimonial-logo img {
        display: block;

        max-width: 100%;
        max-height: 60px;

        width: auto;
        height: auto;

        object-fit: contain;
    }


    /* =====================================
       Review
       ===================================== */

    .testimonial-review {
        margin-top: 32px;

        font-size: 16px;

        line-height: 1.45;

        font-weight: 400;

        letter-spacing: 0;

        overflow-wrap: break-word;
    }


    /* =====================================
       Author
       ===================================== */

    .testimonial-author {
        margin-top: auto;

        padding-top: 30px;
    }


    .testimonial-name {
        display: flex;

        align-items: center;

        gap: 6px;

        font-size: 18px;

        line-height: 1.3;

        font-weight: 600;

        flex-wrap: wrap;
    }


    .testimonial-name a {
        width: 18px;
        height: 18px;

        font-size: 12px;
    }


    .testimonial-position {
        margin-top: 5px;

        font-size: 15px;

        line-height: 1.4;
    }


    .testimonial-company {
        margin-top: 2px;

        font-size: 14px;

        line-height: 1.4;
    }


    /* =====================================
       Controls
       ===================================== */

    .testimonials .testimonials-controls {
        display: flex;

        align-items: center;

        gap: 12px;

        margin-top: 26px;

        margin-left: -4px;
    }


    .testimonials .testimonials-controls button {
        width: 48px !important;
        height: 48px !important;

        min-width: 48px !important;
        min-height: 48px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: grid !important;
        place-items: center !important;
    }


    .testimonials .testimonial-arrow {
        width: 22px !important;
        height: 22px !important;

        display: block !important;

        position: static !important;

        margin: 0 !important;
        padding: 0 !important;

        flex: none !important;
    }

}