﻿.clients_review {
    margin-top: 60px;
}

.testimonial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: url("../images/Background\ _xsmall.webp") no-repeat center center;
    background-size: cover;
    color: var(--basic_color);
    padding: 60px;
    width: 100%;
    height: 364px;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

    .testimonial-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--btn-bgcolor);
        opacity: 0.7;
        z-index: 1;
    }

.testimonial-content,
.arrow,
.dots-container {
    position: relative;
    z-index: 2;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 48.4px;
    text-align: center;
    margin-top: 20px;
}

.testimonial-text {
    width: 237px;
    height: 120px;
    display: flex;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 20px;
    margin-top: 40px;
    text-align: center;
    align-items: center;
}

.testimonial-text-two {
    margin-top: 20px;
    text-align: center;
    height: 15px;
    width: 110px;
    font-size: 0.5625rem;
    font-weight: 600;
    line-height: 15px;
}

#client-company {
    text-align: center;
    height: 15px;
    width: 110px;
    font-size: 0.5625rem;
    font-weight: 600;
    line-height: 15px;
}

.testimonial-text-two span {
    display: block;
}

.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 0;
}

.arrow {
    background: transparent;
    border: none;
    color: var(--basic_color);
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease;
    z-index: 10;
}

    .arrow.left-arrow {
        left: 0px;
        top: 190px;
    }

    .arrow.right-arrow {
        right: 0px;
        top: 190px;
    }

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s;
}

    .dot.active {
        background-color: var(--basic_color);
    }

@media (min-width: 576px) {
    .clients_review {
        margin-top: 50px;
    }

    .testimonial-container {
        background: url("../images/Background_small.webp") no-repeat center center;
        background-size: cover;
        padding: 60px;
        height: 364px;
    }

    .testimonial-title {
        margin-top: 0px;
        margin-bottom: 30px;
    }

    .testimonial-text {
        width: 350px;
        height: 90px;
        justify-content: center;
        margin-top: 0px;
    }

    .testimonial-text-two {
        margin-top: 0px;
    }

    #client-company {
        width: 110px;
        font-size: 0.5625rem;
    }

    .arrow {
        color: var(--basic_color);
        font-size: 2.5rem;
    }

        .arrow.right-arrow {
            padding-left: 10px;
        }

    .dots-container {
        display: flex;
        justify-content: space-between;
        height: 14px;
        width: 70px;
        margin-top: 20px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .arrow.left-arrow {
        left: 20px;
        top: 186px;
    }

    .arrow.right-arrow {
        right: 20px;
        top: 186px;
    }
}

@media (min-width: 992px) {
    .companies {
        height: 347px;
    }

        .companies h1 {
            height: 100px;
            width: 571px;
            margin-top: 40px;
            font-size: 1.875rem;
            line-height: 37.5px;
        }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-100%);
        }
    }

    .logo-track {
        margin-bottom: 40px;
    }

    .testimonial-container {
        background: url("../images/Background_medium.webp") no-repeat center center;
        background-size: cover;
        padding: 60px;
        height: 597px;
    }

    .testimonial-title {
        font-size: 2.875rem;
    }

    .testimonial-text {
        width: 708px;
        height: 300px;
        font-size: 1.875rem;
        line-height: 48.4px;
    }

    .testimonial-text-two {
        margin-bottom: 5px;
        font-size: 0.9375rem;
    }

    #client-company {
        width: 250px;
        font-size: 0.9375rem;
    }

    .dots-container {
        height: 14px;
        width: 104px;
        justify-content: space-evenly;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .arrow {
        position: absolute;
    }

        .arrow.left-arrow {
            right: 40px;
            top: 300px;
        }

        .arrow.right-arrow {
            right: 40px;
            top: 300px;
        }

    .dot {
        width: 12px;
        height: 12px;
    }
}

@media (min-width: 1200px) {
    .companies {
        margin-top: 0px;
        height: 458px;
        justify-content: center;
    }

        .companies h1 {
            height: 100px;
            width: 590px;
            margin-top: 0px;
            margin-bottom: 50px;
            font-size: 1.875rem;
        }

    .testimonial-container {
        background: url("../images/Background_large.webp") no-repeat center center;
        background-size: cover;
        padding: 60px;
        height: 597px;
    }

    .testimonial-title {
        height: 105px;
        width: 528px;
        font-size: 2.875rem;
        margin-bottom: 0px;
    }

    .testimonial-text {
        width: 890px;
        height: 250px;
    }

    .testimonial-text-two {
        margin-top: 30px;
    }

    #client-company {
        width: 250px;
        font-size: 0.9375rem;
    }

    .arrow {
        position: absolute;
    }

        .arrow.left-arrow {
            right: 40px;
            top: 286px;
        }

        .arrow.right-arrow {
            right: 40px;
            top: 286px;
        }

    .dots-container {
        justify-content: space-between;
        width: 104px;
        height: 14px;
        margin-top: 40px;
    }
}

@media (min-width: 2000px) {
    .companies {
        height: 491px;
        justify-content: space-evenly;
    }

        .companies h1 {
            height: 38px;
            width: 1396px;
            margin-top: 0px;
            margin-bottom: 0px;
            font-size: 3.5rem;
        }

    .logo-track img {
        height: 86px;
        width: 272px;
    }

    .clients_review {
        margin-top: 100px;
    }

    .testimonial-container {
        background: url("../images/Background_xlarge.webp") no-repeat center center;
        background-size: cover;
        padding: 60px;
        height: 876px;
    }

    .testimonial-title {
        height: 105px;
        width: 528px;
        font-size: 3.5rem;
    }

    .testimonial-text {
        width: 1348px;
        height: 324px;
        font-size: 2.5rem;
    }

    .testimonial-text-two {
        margin-bottom: 10px;
        font-size: 1.25rem;
    }

    #client-company {
        width: 250px;
        font-size: 1.25rem;
    }

    .arrow {
        font-size: 5rem;
        position: absolute;
    }

        .arrow.left-arrow {
            margin-left: 40px;
            top: 400px;
        }

        .arrow.right-arrow {
            margin-right: 40px;
            top: 400px;
        }

    .dot {
        width: 18px;
        height: 18px;
    }
}
