@use "../abstracts" as vars;

.testimonial1 {
    background: vars.$color-white;
    position: relative;
    overflow: hidden;

    &__student-img {
        margin-bottom: -50px;
        margin-left: -250px;


        @media (max-width: 1599px) {
            margin-left: -70px;
            margin-bottom: -150px;
        }

        @media (max-width: 1399px) {
            margin-left: -30px;
            margin-bottom: -250px;
        }

        @media (max-width: 1199px) {
            margin-left: -30px;
            margin-bottom: 0px;
            margin-top: -30px;
        }

        @media (max-width: 992px) {
            margin-left: 0;
            margin-bottom: 0;
            margin-top: 0;
        }

        img {
            width: 100%;
            display: block;
        }
    }

    &__content {
        margin-left: -230px;

        @media (max-width: 1199px) {
            margin-left: 0px;
        }

    }

    &__nav {
        display: flex;
        gap: vars.rem(0);
        margin-bottom: vars.rem(50);

        @media (max-width: 991px) {
            justify-content: center;
            margin-bottom: 0;

        }

        &-btn {
            width: vars.rem(100);
            height: vars.rem(70);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: vars.rem(20);
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;

            @media (max-width:1199px) {
                width: vars.rem(80);
                height: vars.rem(60);
                font-size: vars.rem(16);
            }

            @media (max-width:991px) {
                width: vars.rem(60);
                height: vars.rem(50);
                font-size: vars.rem(14);
            }

            &--next {
                background-color: vars.$color-primary;
                color: vars.$color-white;
                border-top-right-radius: 50px;
                border-bottom-right-radius: 50px;
            }

            &--prev {
                background-color: #E2E2E2;
                color: vars.$color-heading;

                border-top-left-radius: 50px;
                border-bottom-left-radius: 50px;
            }

            &:hover {
                transform: scale(1.02);
            }
        }
    }

    &__slider {
        position: relative;
        overflow: hidden;
        padding: 0 vars.rem(150) vars.rem(20);
        margin-left: vars.rem(-150);
        margin-right: vars.rem(-150);
        height: vars.rem(710);
        margin-bottom: 120px;


        @media (max-width: 2099px) {
            margin-left: 0;
            margin-right: 0;
            padding: 10px 0 10px;
            height: 780px;
            margin-bottom: 0;
        }

        @media (max-width: 1399px) {
            margin-left: 0;
            margin-right: 0;
            padding: 0px 0 0;
            height: 650px;
            margin-bottom: 0;
        }

        @media (max-width: 1199px) {
            height: 300px;
            padding-top: 0;
        }

        @media (max-width: 1024px) {
            height: 272px;
            padding-top: 0;
        }

        @media (max-width: 992px) {
            height: 290px;
        }

        @media (max-width: 767px) {
            height: auto;
        }

        .swiper-wrapper {
            gap: vars.rem(20);

            @media (max-width: 1199px) {
                gap: vars.rem(0);
            }
        }

        .testimonial1__card.swiper-slide.swiper-slide-active {
            padding-right: 141px;
            padding-left: 0;
            padding-top: 100px;

            @media (max-width: 1399px) {
                padding-right: 0;
                padding-top: 0;
            }
        }

        .testimonial1__card.swiper-slide {
            height: 350px !important;

            @media (max-width: 1599px) {
                height: 320px !important;
            }

            @media (max-width: 1399px) {
                height: 300px !important;
            }

            @media (max-width: 1199px) {
                height: 272px !important;
            }
            
            @media (max-width: 1024px) {
                height: auto !important;
            }
        }
    }

    &__card {
        display: flex;
        align-items: center;
        width: 100%;
        position: relative;
        transition: all 0.3s ease;
        padding-left: 141px;
        margin-bottom: 0 !important;

        @media (max-width: 1199px) {
            padding-left: 0;
        }

        &-body {
            background-color: #f1f6ff;
            border: 2px solid #0073E6;
            border-radius: vars.rem(15);
            padding: 34px 38px 34px 129px;
            flex: 1;
            position: relative;
            z-index: 2;

            @media (max-width: 1399px) {
                padding: 20px 20px 20px 120px;
            }

            @media (max-width: 767px) {
                padding: 20px 20px 20px 80px;
            }

            .quote-icon {
                width: vars.rem(75);
                height: vars.rem(75);
                background-color: vars.$color-white;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                top: vars.rem(34);
                left: vars.rem(30);
                box-shadow: 0px 0px 30px 0px #00000026;

                z-index: 5;

                @media (max-width: 1399px) {
                    width: 50px;
                    height: 50px;
                    font-size: 18px;
                }

                @media (max-width: 767px) {
                    width: 50px;
                    height: 50px;
                    font-size: 18px;
                }

                @media (max-width: 767px) {
                    left: vars.rem(10);
                    top: vars.rem(10);
                }

                img {
                    width: vars.rem(35);
                    height: auto;
                    object-fit: contain;
                }
            }

            .text {
                font-family: vars.$font-family-base;
                font-weight: 500;
                font-size: 16px;
                line-height: 28px;
                color: #878C8F;
                margin-bottom: vars.rem(25);
                position: relative;
                z-index: 2;

                @media (max-width: 767px) {
                    font-size: vars.rem(14);
                    line-height: 1.3;
                }
            }

            .rating {
                display: flex;
                flex-direction: column;
                gap: vars.rem(5);

                .stars {
                    color: #0073E6;
                    font-size: vars.rem(14);
                    margin-bottom: vars.rem(5);
                }

                .score {
                    font-size: vars.rem(13);
                    font-weight: 700;
                    color: vars.$color-heading;
                    text-transform: uppercase;
                }
            }
        }

        &-user {
            width: vars.rem(100);
            background-color: #0A0A0A;
            border-radius: vars.rem(50);
            padding: vars.rem(10);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            margin-left: 0;
            position: relative;
            z-index: 3;
            height: vars.rem(320);

            @media (max-width: 1899px) {
                height: 17rem;
            }

            @media (max-width: 767px) {
                padding: vars.rem(20);
                max-width: vars.rem(200);
                gap: vars.rem(15);
                border-radius: vars.rem(100);
                display: none;
            }

            @media (max-width: 575px) {
                padding: vars.rem(10);
                max-width: vars.rem(70);
                gap: vars.rem(10);
                border-radius: vars.rem(100);
            }

            @media (max-width: 325px) {
                display: none;
            }

            .avatar {
                width: vars.rem(80);
                height: vars.rem(80);
                border-radius: 50%;
                overflow: hidden;
                border: 2px solid #333;
                background: #222;
                margin-bottom: vars.rem(20);
                flex-shrink: 0;

                @media (max-width: 767px) {
                    margin-bottom: 0;
                    width: vars.rem(60);
                    height: vars.rem(60);
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }

            .info {
                text-align: center;
                display: flex;
                align-items: center;
                gap: vars.rem(5);
                margin-top: auto;
                margin-bottom: vars.rem(20);


                .role {
                    font-size: vars.rem(10);
                    color: #9DA6AE;
                    text-transform: uppercase;
                    letter-spacing: 1px;
                    font-weight: 600;
                    writing-mode: vertical-rl;
                    transform: rotate(180deg);

                }

                .name {
                    font-size: vars.rem(18);
                    color: vars.$color-white;
                    font-weight: 700;
                    margin: 0;
                    writing-mode: vertical-rl;
                    transform: rotate(180deg);
                    white-space: nowrap;


                }
            }
        }

        &--alt {
            flex-direction: row-reverse;
            padding-right: 0;


            .testimonial1__card-user {
                margin-left: 0;
                margin-right: 0;

                @media (max-width: 767px) {
                    margin-right: 0;
                    margin-bottom: vars.rem(-30);
                    display: none;
                }
            }

            .quote-icon {
                top: vars.rem(34);
                left: vars.rem(30);

                @media (max-width: 767px) {
                    left: vars.rem(10);
                    top: vars.rem(10);
                }
            }
        }
    }
}