/* =========================================================
   Home Testimonials
   ========================================================= */

.home-testimonials {
    display: grid;
    grid-template-columns: 42% 58%;
    width: 100%;
    /* min-height: 650px; */
    overflow: hidden;
}


/* =========================================================
   Video Side
   ========================================================= */

.home-testimonials__media {
    position: relative;
    /* min-height: 650px; */
    background: #D2D4D8;
    overflow: hidden;
}

.home-testimonials__video {
    display: block;
    width: 100%;
    height: 100%;
    /* min-height: 650px; */

    object-fit: cover;
    object-position: center;

    border: 0;
}


/* =========================================================
   Content Side
   ========================================================= */

.home-testimonials__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding: 60px;

    background: #ffffff;
}


/* =========================================================
   Header
   ========================================================= */

.home-testimonials__header {
    margin-bottom: 65px;
}

.home-testimonials__title {
    margin: 0 0 10px;

    color: #3535A7;

    font-size: clamp(42px, 4vw, 68px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.home-testimonials__subtitle {
    display: block;

    color: #000000;

    font-size: clamp(18px, 1.4vw, 24px);
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   Slider
   ========================================================= */

.home-testimonials__slider {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 30px;

    width: 100%;
}


/* =========================================================
   Testimonial Track
   ========================================================= */

.home-testimonials__track {
    position: relative;
    min-width: 0;
    min-height: 300px;
}

.home-testimonials__item {
    display: none;
    width: 100%;
    animation: homeTestimonialsFade 0.45s ease;
}

.home-testimonials__item.is-active {
    display: block;
}

@keyframes homeTestimonialsFade {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   Quote
   ========================================================= */

.home-testimonials__quote {
    position: relative;

    margin: 0;
    padding: 0;

    color: #282A2C;

    font-size: clamp(17px, 1.25vw, 21px);
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   Reviewer
   ========================================================= */

.home-testimonials__author {
    margin-top: 38px;

    color: #000000;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;

    text-align: right;
}


/* =========================================================
   Arrows
   ========================================================= */

.home-testimonials__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;

    color: #3535A7;
    background: transparent;

    border: 1px solid rgba(53, 53, 167, 0.35);
    border-radius: 50%;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.home-testimonials__arrow i {
    font-size: 17px;
}

.home-testimonials__arrow:hover {
    color: #ffffff;
    background-color: #3535A7;
    border-color: #3535A7;

    transform: translateY(-2px);
}

.home-testimonials__arrow:focus-visible {
    outline: 2px solid #3535A7;
    outline-offset: 4px;
}

.home-testimonials__arrow:active {
    transform: translateY(0);
}


/* =========================================================
   Counter
   ========================================================= */

.home-testimonials__counter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 35px;

    color: #3535A7;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.home-testimonials__counter-line {
    display: block;

    width: 35px;
    height: 1px;

    background: #3535A7;
}

/* =========================================================
   Bottom Image
   ========================================================= */

.home-testimonials__bottom-image {
    width: 100%;
    height: 20vw;
    overflow: hidden;
    grid-column: 1 / -1;
}

.home-testimonials__bottom-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .home-testimonials {
        grid-template-columns: 40% 60%;
    }

    .home-testimonials__content {
        padding: 70px 5vw;
    }

    .home-testimonials__header {
        margin-bottom: 45px;
    }

    .home-testimonials__slider {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 20px;
    }

    .home-testimonials__arrow {
        width: 44px;
        height: 44px;
    }

    .home-testimonials__quote {
        font-size: 16px;
        line-height: 1.75;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .home-testimonials {
        display: flex;
        flex-direction: column;

        min-height: auto;
    }


    .home-testimonials__media {
        width: 100%;
        min-height: 360px;
        height: 360px;
    }

    .home-testimonials__video {
        min-height: 360px;
    }


    .home-testimonials__content {
        width: 100%;
        padding: 60px 24px 55px;
    }


    .home-testimonials__header {
        margin-bottom: 40px;
    }


    .home-testimonials__title {
        font-size: 42px;
    }

    .home-testimonials__subtitle {
        font-size: 18px;
    }


    .home-testimonials__slider {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 12px;
    }


    .home-testimonials__track {
        min-height: 390px;
    }


    .home-testimonials__quote {
        font-size: 16px;
        line-height: 1.75;
    }


    .home-testimonials__author {
        margin-top: 30px;
        font-size: 16px;
    }


    .home-testimonials__arrow {
        width: 42px;
        height: 42px;
    }

    .home-testimonials__arrow i {
        font-size: 14px;
    }


    .home-testimonials__counter {
        margin-top: 25px;
    }

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 480px) {

    .home-testimonials__media {
        min-height: 300px;
        height: 300px;
    }

    .home-testimonials__video {
        min-height: 300px;
    }

    .home-testimonials__content {
        padding: 50px 18px 45px;
    }

    .home-testimonials__title {
        font-size: 36px;
    }

    .home-testimonials__slider {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 8px;
    }

    .home-testimonials__arrow {
        width: 36px;
        height: 36px;
    }

    .home-testimonials__quote {
        font-size: 15px;
        line-height: 1.7;
    }

    .home-testimonials__track {
        min-height: 430px;
    }

    .home-testimonials__bottom-image {
        height: 20vw;
    }

}