/*=============== HERO TESTIMONIALS ===============*/
.hero__testimonials {
    position: relative;
    padding-block: 180px 120px;
    min-height: 100dvh;
    background-color: #F1F1F1;

    .hero__testimonials__container {
        display: flex;
        justify-content: center;
        align-items: center;

        .hero__testimonials__content {
            display: flex;
            justify-content: start;
            align-items: center;
            gap: 39px;
            flex-direction: column;
            text-align: center;
            max-width: 970px;
            width: 100%;

            h1 {
                font-size: 38px;
                font-weight: 900;
                color: #334155;
                text-shadow: 4px 4px 0 #0000000D;
                text-transform: uppercase;

                .orange {
                    color: var(--orange);
                }

                .blue {
                    color: var(--blue);
                }
            }

            .btns {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 12px;
                flex-wrap: wrap;

                .btn {
                    gap: 8px;
                    padding: 13.5px 35.25px;
                    border-radius: 6px;
                    border: 0.75px solid #D1D5DB;
                    font-size: 13.5px;
                    text-transform: uppercase;
                    letter-spacing: 1.1px;
                    font-weight: var(--font-bold);
                    transition: all 0.3s ease-in-out;

                    img {
                        width: 20px;
                        height: 20px;
                        transition: all 0.3s ease-in-out;
                    }
                }

                .primary {
                    background-color: var(--blue);
                    color: white;

                    &:hover {
                        background-color: #075C94;
                    }
                }

                .secondary {
                    background-color: white;
                    color: #4B5563;

                    &:hover {
                        background-color: var(--orange);
                        color: white;

                        img {
                            filter: brightness(0) invert(1);
                        }
                    }
                }
            }

            .testimonial__card {
                position: absolute;
                background-color: white;
                border-radius: 8px;
                overflow: hidden;
                break-inside: avoid;
                box-shadow: 0px 4px 34px #D7D7D7;
                border: 1px solid #D1D5DB;
                transition: 0.3s;
                width: 281px;
                transition: all 0.3s ease-in-out;
                filter: blur(3px);

                &:hover {
                    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
                    filter: blur(0);
                }

                .video_container {
                    position: relative;
                    width: 100%;
                    height: 185px;

                    video {
                        position: absolute;
                        inset: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }

                    .play-btn {
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        width: 50px;
                        height: 50px;
                        border: none;
                        border-radius: 50%;
                        background-color: var(--orange);
                        color: white;
                        display: flex;
                        font-size: 22px;
                        justify-content: center;
                        align-items: center;
                        cursor: pointer;
                        box-shadow: 0px 0px 9px 0px #C45C14;
                        transition: 0.3s;

                        &:hover {
                            transform: translate(-50%, -50%) scale(1.1);
                            background-color: #ff6a00;
                        }
                    }
                }

                .testimonial__content {
                    padding: 25px 19.5px 12px 19.5px;
                    text-align: start;

                    .testimonial__text {
                        font-size: 12px;
                        font-weight: var(--font-bold);
                        line-height: 1.5;
                        color: #333333;
                        margin-bottom: 18px;
                    }

                    .testimonial__user {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        width: 100%;

                        .testimonial__user-info {
                            display: flex;
                            justify-content: start;
                            align-items: center;
                            gap: 8px;

                            .testimonial__avatar {
                                width: 32px;
                                height: 32px;
                                border-radius: 50%;
                                object-fit: cover;
                                border: 1px solid #D1D5DB;
                            }

                            .testimonial__name {
                                font-size: 14px;
                                font-weight: var(--font-semi-bold);
                                color: #333333;
                            }

                        }

                        .testimonial__date {
                            font-size: 10px;
                            font-weight: var(--font-semi-bold);
                            color: #6B7280;
                        }
                    }
                }
            }

            .card__video {
                bottom: 22px;
                left: 50%;
                transform: translateX(-50%);
                z-index: 6;
            }

            .card1 {
                bottom: 88px;
                left: 70px;
                z-index: 4;
            }

            .card2 {
                bottom: 155px;
                left: 250px;
                z-index: 5;
                transform: rotate(15.5deg);
            }

            .card3 {
                bottom: 130px;
                right: 76px;
                z-index: 4;
                transform: rotate(7.2deg);
            }

            .card4 {
                bottom: 40px;
                right: 260px;
                z-index: 3;
            }

            .card5 {
                bottom: 247px;
                right: 247px;
                z-index: 2;
                transform: rotate(-15.5deg);
            }

        }
    }
}

/*=============== TESTIMONIALS ===============*/
.testimonials {
    position: relative;
    padding-block: 95px 70px;
    background: linear-gradient(358.95deg, rgba(206, 208, 211, 0.5) 22.93%, #FFFFFF 84.3%);

    .testimonials__container {

        .testimonials__contant {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 22px;
            z-index: 5;

            .testimonials__header {
                position: relative;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;
                gap: 3px;
                text-align: center;

                h2 {
                    font-size: 38px;
                    font-weight: var(--font-bold);
                    color: var(--blue);
                }

                p {
                    font-size: 22px;
                    font-weight: var(--font-regular);
                    color: #4B5563;
                }

            }

            .imags {
                position: relative;
                max-width: 916px;
                width: 100%;
                height: 178px;
                z-index: 5;

                img {
                    position: absolute;
                    width: 56px;
                    height: 56px;
                    box-shadow: 0px 1px 22px 0px #D1D5DB;
                    border-radius: 50%;
                    object-fit: cover;
                    border: 3px solid #F3F4F6
                }

                .img1 {
                    top: 50%;
                    left: 0;
                    transform: translateY(-50%);
                    animation: chatFloat1 3s ease-in-out infinite;
                }

                .img2 {
                    top: 10px;
                    left: 115px;
                    animation: chatFloat2 3s ease-in-out infinite;
                }

                .img3 {
                    bottom: 20px;
                    left: 122px;
                    animation: chatFloat1 3s ease-in-out infinite;
                }

                .img4 {
                    top: 38px;
                    left: 225px;
                    animation: chatFloat2 3s ease-in-out infinite;
                }

                .img5 {
                    top: 18px;
                    left: 355px;
                    animation: chatFloat1 3s ease-in-out infinite;
                }

                .img6 {
                    bottom: 0px;
                    left: 325px;
                    animation: chatFloat2 3s ease-in-out infinite;
                }

                .img7 {
                    top: 35%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    animation: chatFloat1 3s ease-in-out infinite;
                }

                .img8 {
                    top: 0px;
                    right: 245px;
                    animation: chatFloat2 3s ease-in-out infinite;
                }

                .img9 {
                    bottom: 16px;
                    right: 290px;
                    animation: chatFloat1 3s ease-in-out infinite;
                }

                .img10 {
                    bottom: 48px;
                    right: 133px;
                    animation: chatFloat2 3s ease-in-out infinite;
                }

                .img11 {
                    top: 10px;
                    right: 38px;
                    animation: chatFloat1 3s ease-in-out infinite;
                }

                .img12 {
                    bottom: 10px;
                    right: 0;
                    animation: chatFloat2 3s ease-in-out infinite;
                }
            }

            .testimonials__masonry {
                column-count: 3;
                column-gap: 38px;
                padding-block: 22px;
                z-index: 5;

                .testimonial__card {
                    background-color: white;
                    border-radius: 8px;
                    overflow: hidden;
                    break-inside: avoid;
                    box-shadow: 0px 4px 34px #D7D7D7;
                    border: 1px solid #D1D5DB;
                    transition: 0.3s;
                    width: 281px;
                    margin-bottom: 24px;

                    &:hover {
                        transform: translateY(-5px);
                        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
                    }

                    .video_container {
                        position: relative;
                        width: 100%;
                        height: 185px;

                        video {
                            position: absolute;
                            inset: 0;
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }

                        .play-btn {
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            width: 50px;
                            height: 50px;
                            border: none;
                            border-radius: 50%;
                            background-color: var(--orange);
                            color: white;
                            display: flex;
                            font-size: 22px;
                            justify-content: center;
                            align-items: center;
                            cursor: pointer;
                            box-shadow: 0px 0px 9px 0px #C45C14;
                            transition: 0.3s;

                            &:hover {
                                transform: translate(-50%, -50%) scale(1.1);
                                background-color: #ff6a00;
                            }
                        }
                    }

                    .testimonial__content {
                        padding: 25px 19.5px 12px 19.5px;

                        .testimonial__text {
                            font-size: 12px;
                            font-weight: var(--font-bold);
                            line-height: 1.5;
                            color: #333333;
                            margin-bottom: 18px;
                        }

                        .testimonial__user {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            width: 100%;

                            .testimonial__user-info {
                                display: flex;
                                justify-content: start;
                                align-items: center;
                                gap: 8px;

                                .testimonial__avatar {
                                    width: 32px;
                                    height: 32px;
                                    border-radius: 50%;
                                    object-fit: cover;
                                    border: 1px solid #D1D5DB;
                                }

                                .testimonial__name {
                                    font-size: 14px;
                                    font-weight: var(--font-semi-bold);
                                    color: #333333;
                                }

                            }

                            .testimonial__date {
                                font-size: 10px;
                                font-weight: var(--font-semi-bold);
                                color: #6B7280;
                            }
                        }
                    }
                }
            }
        }
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../image/bg-testimonials.png');
        background-size: cover;
        background-position: center;
        z-index: 0;
    }
}

@media (max-width: 991px) {

    /*===============HERO TESTIMONIALS===============*/
    .hero__testimonials {
        padding-block: 140px 90px;
        overflow: hidden;

        .hero__testimonials__container {
            .hero__testimonials__content {

                h1 {
                    font-size: 21px;
                    max-width: 640px;
                }

                .testimonial__card {
                    width: 204px;

                    .video_container {
                        height: 135px;
                    }

                    .testimonial__content {
                        padding: 18px 15px 12px;

                        .testimonial__text {
                            font-size: 8.7px;
                        }

                        .testimonial__user {
                            .testimonial__user-info {
                                gap: 6px;

                                .testimonial__avatar {
                                    width: 24px;
                                    height: 24px;
                                }

                                .testimonial__name {
                                    font-size: 10px;
                                }
                            }

                            .testimonial__date {
                                font-size: 7px;
                            }
                        }
                    }
                }


                .card1 {
                    left: 20px;
                    bottom: 50px;
                }

                .card2 {
                    left: 90px;
                    bottom: 120px;
                }

                .card3 {
                    right: 20px;
                    bottom: 80px;
                }

                .card4 {
                    right: 90px;
                    bottom: 20px;
                }

                .card5 {
                    right: 90px;
                    bottom: 210px;
                }
            }
        }
    }

    /*===============TESTIMONIALS===============*/
    .testimonials {
        padding-block: 96px;

        .testimonials__container {

            .testimonials__contant {
                gap: 22px;

                .testimonials__header {
                    margin-bottom: 48px;

                    h2 {
                        font-size: 34px;
                    }

                    p {
                        font-size: 18px;
                    }

                    &::after {
                        bottom: -60px;
                        width: 326.5px;
                        height: 32px;
                    }

                }

                .imags {
                    max-width: 820px;
                    height: 154px;

                    img {
                        width: 49px;
                        height: 49px;
                    }
                }
            }
        }
    }
}

@media (max-width: 768px) {

    /*===============HERO TESTIMONIALS===============*/
    .hero__testimonials {
        padding-block: 120px 80px;

        .hero__testimonials__container {
            .hero__testimonials__content {

                h1 {
                    font-size: 26px;
                }

                .btns {
                    .btn {
                        padding: 12px 28px;
                        font-size: 12px;
                    }
                }


                .card1 {
                    left: 10px;
                    bottom: 30px;
                }

                .card2 {
                    left: 55px;
                    bottom: 100px;
                }

                .card3 {
                    right: 10px;
                    bottom: 60px;
                }

                .card4 {
                    right: 55px;
                    bottom: 10px;
                }

                .card5 {
                    right: 55px;
                    bottom: 165px;
                }
            }
        }
    }

    /*===============TESTIMONIALS===============*/
    .testimonials {

        .testimonials__container {

            .testimonials__contant {

                .imags {

                    .img9,
                    .img8,
                    .img7 {
                        display: none;
                    }

                }

                .testimonials__masonry {
                    column-count: 2;
                    column-gap: 20px;

                    .testimonial__card {
                        margin-bottom: 20px;
                    }
                }
            }
        }
    }
}

@media (max-width: 576px) {

    /*===============HERO TESTIMONIALS===============*/
    .hero__testimonials {
        padding-block: 166px 90px;
        min-height: 110vh;

        .hero__testimonials__container {
            .hero__testimonials__content {

                h1 {
                    font-size: 22px;
                }

                .btns {
                    gap: 13px;

                    .btn {
                        padding: 10px 20px;
                        font-size: 10px;
                    }
                }

                .testimonial__card {


                    .testimonial__content {
                        padding: 10px;

                        .testimonial__text {
                            font-size: 9px;
                            margin-bottom: 10px;
                        }

                        .testimonial__user {
                            .testimonial__user-info {
                                gap: 5px;

                                .testimonial__avatar {
                                    width: 24px;
                                    height: 24px;
                                }

                                .testimonial__name {
                                    font-size: 10px;
                                }
                            }

                            .testimonial__date {
                                font-size: 8px;
                            }
                        }
                    }
                }

                .card__video {
                    bottom: 30px;
                    left: 60%;
                }

                .card1 {
                    left: 20px;
                    bottom: 70px;
                }

                .card2 {
                    left: 20px;
                    bottom: 130px;
                }

                .card3 {
                    right: 20px;
                    bottom: 80px;
                    display: none;
                }

                .card4 {
                    right: 20px;
                    bottom: 10px;
                }

                .card5 {
                    right: 20px;
                    bottom: 200px;
                }
            }
        }
    }

    /*===============TESTIMONIALS===============*/
    .testimonials {

        .testimonials__container {

            .testimonials__contant {

                .imags {
                    max-width: 100%;

                    .img6,
                    .img4,
                    .img5 {
                        display: none;
                    }

                    .img10 {
                        bottom: 95px;
                        right: 250px;
                    }

                }

                .testimonials__masonry {
                    column-count: 1;
                    column-gap: 0;
                }
            }
        }
    }

    .section {
        padding-inline: 1rem;
    }
}