/*=============== HERO SINGLE TUTORS ===============*/
.hero__single__tutor {
    padding-block: 12.5rem 6.8rem;
    padding-inline: 28px 48px;

    .hero__single__tutor__container {

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

            .tutor__card {
                display: flex;
                justify-content: center;
                align-items: start;
                flex-direction: column;
                background-color: white;
                border-radius: 10px;
                gap: 16.5px;
                box-shadow: 0px 1px 2px 0px #F59E0B;
                max-width: 810px;
                width: 100%;

                .img {
                    position: relative;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    max-width: 100%;
                    width: 100%;
                    border-radius: 10px 10px 0 0;
                    height: 380px;

                    img {
                        width: 100%;
                        height: 100%;
                        border-radius: 10px;
                        object-fit: cover;
                    }

                    .play-video-popup {
                        position: absolute;
                        bottom: 27px;
                        left: 50%;
                        transform: translateX(-50%);
                        width: 184px;
                        height: 38px;
                        backdrop-filter: blur(12px);
                        background-color: #FFFFFF33;
                        color: white;
                        border: 1px solid #FFFFFF4D;
                        border-radius: 999px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        gap: 8px;
                        font-size: 14px;
                        font-weight: var(--font-semi-bold);
                        cursor: pointer;
                        transition: all 0.3s ease-in-out;

                        i {
                            font-size: 20px;
                        }
                    }
					
					 .play-btn.hidden {
						opacity: 0;
						visibility: hidden;
						pointer-events: none;
					  }
					
					.fullscreen-btn {
                            position: absolute;
                            bottom: 10px;
                            right: 10px;
                            z-index: 6;

                            width: 40px;
                            height: 40px;
                            border-radius: 50%;
                            border: none;
                            cursor: pointer;

                            background: rgba(0, 0, 0, 0.6);
                            color: #fff;

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

                .tutor__data {
                    display: flex;
                    justify-content: center;
                    align-items: start;
                    flex-direction: column;
                    gap: 8px;
                    width: 100%;
                    padding: 24px;

                    .header__card {
                        display: flex;
                        justify-content: space-between;
                        align-items: start;
                        width: 100%;
                        margin-bottom: 16px;



                        .info__tutor {
                            display: flex;
                            justify-content: center;
                            align-items: start;
                            flex-direction: column;
                            gap: 8px;

                            h3 {
                                font-size: 23px;
                                font-weight: var(--font-semi-bold);
                                color: #2C3437;
                            }

                            span {
                                font-size: 15px;
                                font-weight: var(--font-regular);
                                color: #596064;
                                white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                width: 80%;
                            }


                        }

                        .star {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            width: 85px;
                            height: 28px;
                            border-radius: 4px;
                            background-color: #F9F3E1;
                            gap: 4px;
                            color: var(--yellow);
                            font-size: 14px;
                            font-weight: var(--font-bold);
                        }
                    }

                    audio {
                        width: 100%;
                        height: 48px;
                        border-radius: 24px;
                    }

                    .tutor__items {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        width: 100%;
                        padding-block: 1rem;
                        border-block: 1px solid #ACB3B726;

                        .item {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            flex-direction: column;
                            width: 243px;

                            p {
                                font-size: 24px;
                                font-weight: var(--font-bold);
                                color: var(--dark);
                            }

                            span {
                                font-size: 15px;
                                font-weight: var(--font-bold);
                                color: #666666;
                            }

                            &:nth-child(2) {
                                border-inline: 1px solid #ACB3B726;
                            }
                        }
                    }
                }
            }

            .book {
                display: flex;
                justify-content: center;
                align-items: start;
                flex-direction: column;
                gap: 37px;
                max-width: 445px;
                width: 100%;
                border-radius: 24px;
                box-shadow: 0px 8px 10px -6px #1E3A8A0D,
                    0px 20px 25px -5px #1E3A8A0D;
                padding: 34px 34px 21.5px 34px;

                .btns {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-direction: column;
                    width: 100%;
                    gap: 12px;

                    a {
                        width: 100%;
                        height: 52px;
                        border-radius: 8px;
                        gap: 8px;
                        font-size: 18px;
                        color: white;

                        .icon {
                            width: 24px;
                            height: 24px;
                            border-radius: 50%;
                            background-color: white;
                            color: var(--yellow);
                        }

                        i {
                            font-size: 15px;
                        }
                    }

                    .prime {
                        background-color: var(--yellow);
                    }

                    .second {
                        background-color: var(--green);
                    }
                }

                .detials {
                    display: flex;
                    justify-content: center;
                    align-items: start;
                    flex-direction: column;
                    width: 100%;
                    gap: 16px;
                    padding-top: 16px;
                    border-top: 1px solid #ACB3B71A;

                    .item {
                        display: flex;
                        justify-content: start;
                        align-items: center;
                        gap: 12px;

                        i {
                            font-size: 18px;
                            color: #666666;
                        }

                        .text {
                            display: flex;
                            justify-content: center;
                            align-items: start;
                            flex-direction: column;

                            p {
                                font-size: 14px;
                                font-weight: var(--font-semi-bold);
                                color: var(--dark);
                            }

                            span {
                                font-size: 12px;
                                font-weight: var(--font-regular);
                                color: #666666;
                            }
                        }
                    }
                }

                .bannar_free {
                    display: flex;
                    justify-content: start;
                    align-items: center;
                    padding: 14.5px 16px;
                    gap: 12px;
                    border-radius: 8px;
                    background-color: #fbf7eb;

                    i {
                        color: var(--yellow);
                        font-size: 18px;
                    }

                    p {
                        font-size: 12px;
                        font-weight: var(--font-medium);
                        color: var(--dark);
                    }
                }
            }
        }
    }
}

/*=============== TUTORS DETIALS ===============*/
.tutor__details {
    padding-block: 0 53px;
    padding-inline: 28px 48px;

    .tutor__details__container {

        .tutor__details__content {
            display: flex;
            justify-content: center;
            align-items: start;
            flex-direction: column;
            gap: 61px;
            width: 100%;

            .accordion-container {
                background-color: #ACB3B71A;
                width: 100%;
                max-width: 880px;
                border-radius: 12px;
                overflow: hidden;
                gap: 15px;
                padding: 24px;
                transition: all 0.3s ease-in-out;

                .accordion-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    cursor: pointer;

                    .title {
                        font-size: 20px;
                        font-weight: var(--font-bold);
                        color: #333333;
                    }

                    .icon {
                        transition: transform 0.3s ease;
                        font-size: 1rem;
                        color: #666666;
                    }
                }

                .accordion-content {
                    max-height: 500px;
                    overflow: hidden;
                    transition: max-height 0.3s ease, padding 0.3s ease;
                    color: var(--dark);
                    line-height: 1.6;

                    p {
                        font-size: 14px;
                        font-weight: var(--font-regular);
                    }
                }

                &.closed {
                    .accordion-content {
                        max-height: 0;
                        padding-top: 0;
                    }

                    .accordion-header {
                        .icon {
                            transform: rotate(-180deg);
                        }
                    }
                }
            }

            .certifications {
                display: flex;
                justify-content: center;
                align-items: start;
                flex-direction: column;
                gap: 16px;
                width: 100%;

                h3 {
                    font-size: 24px;
                    font-weight: var(--font-medium);
                    color: var(--dark);
                }

                .certificat__items {
                    display: flex;
                    justify-content: start;
                    align-items: center;
                    gap: 27px;
                    overflow-x: scroll;
                    width: 100%;
                    scrollbar-width: thin;
                    scrollbar-color: #F4F3F2 transparent;
                    padding-bottom: 5px;

                    .certificat__item {
                        display: flex;
                        justify-content: center;
                        align-items: start;
                        flex-direction: column;
                        gap: 11px;
                        width: 250px;
                        flex-shrink: 0;
                        padding: 16px 16px 20px 16px;
                        border-radius: 12px;
                        border: 1px solid #F2E6C1;
                        box-shadow: 0px 1px 2px 0px #0000000D;

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

                            .icon {
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                width: 40px;
                                height: 40px;
                                border-radius: 8px;
                                background-color: #F9F3E1;
                                color: var(--yellow);
                                font-size: 25px;
                            }

                            a {
                                font-size: 12px;
                                font-weight: var(--font-regular);
                                color: var(--yellow);
                                text-decoration: underline;
                            }
                        }

                        .text__certificat {
                            display: flex;
                            justify-content: center;
                            align-items: start;
                            flex-direction: column;
                            gap: 6px;

                            p {
                                font-size: 16px;
                                font-weight: var(--font-medium);
                                color: var(--dark);
                            }

                            span {
                                font-size: 14px;
                                font-weight: var(--font-regular);
                                color: #666666;
                            }
                        }
                    }
                }

                .cert-modal {
                    display: none;
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: rgba(0, 0, 0, 0.8);
                    justify-content: center;
                    align-items: center;
                    z-index: 999;

                    .cert-content {
                        position: relative;
                        max-width: 80%;

                        img {
                            width: 100%;
                            border-radius: 10px;
                        }
                    }

                    .close-btn {
                        position: absolute;
                        top: 10px;
                        right: 10px;
                        font-size: 30px;
                        color: #fff;
                        cursor: pointer;
                        transition: 0.2s;

                        &:hover {
                            transform: scale(1.1);
                            color: red;
                        }
                    }
                }
            }
        }
    }
}

/*=============== TESTIMONIALS ===============*/
.testimonials {
    padding-block: 6.8125rem 3rem;
    background-color: var(--background);
    position: relative;

    .testimonial__container {

        .testimonial__content {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 40px;
            z-index: 5;

            .header_testimonial {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 29px;
                flex-direction: column;

                h2 {
                    font-size: 32px;
                    color: var(--dark);
                    font-weight: var(--font-semi-bold);
                    text-align: center;
                    width: 540px;

                    span {
                        color: var(--yellow);
                    }
                }

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

                    .btn {
                        width: 106px;
                        height: 38px;
                        background-color: #F4F3F2;
                        color: var(--dark);
                        border-radius: 999px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        font-size: 1rem;
                        font-weight: var(--font-regular);
                        color: #414944C7;
                        transition: all 0.3s ease-in-out;
                        cursor: pointer;

                        &:hover,
                        &.active {
                            background-color: var(--green);
                            color: white;
                            font-weight: var(--font-semi-bold);
                        }
                    }
                }
            }

            .testimonials_swiper {
                opacity: 0;
                visibility: hidden;
                position: absolute;
                pointer-events: none;
                transition: 0.3s;
                width: 478px;
                height: 527px;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;
                gap: 49px;

                .swiper-slide {
                    display: flex;
                    justify-content: center;
                    align-items: center;
					
					.img{
						position: relative;
						.fullscreen-btn {
                            position: absolute;
							bottom: 20px;
                            right: 20px;
                            z-index: 6;
                            width: 30px;
                            height: 30px;
                            border-radius: 50%;
                            border: none;
                            cursor: pointer;

                            background: rgba(0, 0, 0, 0.6);
                            color: #fff;

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

                        }
						
					}

                    img {
                        width: 238.78953552246094px;
                        height: 483.0308837890625px;
                        border-radius: 35px;
						border: 2px solid var(--green-gray);
                    }

                    .video_container {
                        position: relative;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        width: 238.78953552246094px;
                        height: 483.0308837890625px;
                        border-radius: 18px;
                        background: #FFFFFF;
						border: 2px solid var(--green-gray);
						
						iframe {
                            width: 100%;
                            height: 100%;
                            border-radius: 12px;
                            box-shadow: 0px 2px 12px 0px #00000036;
                            object-fit: cover;
                        }

/*                         video {
                            width: 100%;
                            height: 100%;
                            border-radius: 12px;
                            box-shadow: 0px 2px 12px 0px #00000036;
                            object-fit: cover;
                        }
						
						video.is-fullscreen {
							object-fit: contain;
						} */

/*                         .play-btn {
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            width: 64px;
                            height: 64px;
                            background-color: var(--green);
                            color: white;
                            border-radius: 50%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            font-size: 24px;
                            cursor: pointer;
                            transition: all 0.3s ease-in-out;

                            &:hover {
                                background-color: var(--green-gray);
                            }
                        } */
						
/* 						.fullscreen-btn {
                            position: absolute;
                            bottom: 10px;
                            right: 10px;
                            z-index: 6;

                            width: 40px;
                            height: 40px;
                            border-radius: 50%;
                            border: none;
                            cursor: pointer;

                            background: rgba(0, 0, 0, 0.6);
                            color: #fff;

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

                            transition: 0.3s;

                            &:hover {
                                background: rgba(0, 0, 0, 0.85);
                            }
                        } */
                    }
                }

                &.active {
                    opacity: 1;
                    visibility: visible;
                    position: relative;
                    pointer-events: auto;
                }
            }


            .swiper-pagination {
                position: relative;
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 11px;

                .swiper-pagination-bullet {
                    width: 17px;
                    height: 17px;
                    background-color: #ACB3B738;
                    border-radius: 50%;
                    opacity: 1;
                    transition: all 0.3s ease-in-out;

                    &.swiper-pagination-bullet-active {
                        background-color: var(--yellow);
                        box-shadow: 0px 0px 17.2px 0px #D4AF37FC;
                        transform: scale(1.2);
                        border: 1px solid #F9F3E1;
                    }
                }
            }
			
			
			.btns_swiper {
                position: absolute;
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 115%;
				z-index: 10;

                .my-prev-testimonials,
                .my-next-testimonials {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 60px;
                    height: 60px;
                    background: white;
                    border: 1px solid var(--yellow);
                    border-radius: 50%;
                    font-size: 25px;
                    color: var(--yellow);
                    cursor: pointer;
                    transition: all 0.3s ease-in-out;

                    &:hover {
                        background-color: var(--yellow);
                        color: white;
                        box-shadow: 0px 30.77px 61.54px -14.77px #191C1D0D;
                    }
                }
            }
			
			.image-popup {
				position: fixed;
				inset: 0;
				width: 100%;
				height: 100%;
				background: rgba(0, 0, 0, 0.92);
				display: flex;
				justify-content: center;
				align-items: center;
				opacity: 0;
				visibility: hidden;
				transition: 0.3s ease;
				z-index: 9999;
				padding: 20px;
			}

			.image-popup.active {
				opacity: 1;
				visibility: visible;
			}

			.image-popup img {
				position: absolute;
				left: 50%;
                top: 50%;
                transform: translate(-50%, -35%);
				max-width: 90%;
				max-height: 70%;
				object-fit: contain;
				border-radius: 20px;
			}

			.close-popup-image {
				position: absolute;
				top: 20%;
				right: 30px;
				width: 50px;
				height: 50px;
				border: none;
				outline: none;
				background: rgba(255, 255, 255, 0.1);
				backdrop-filter: blur(10px);
				border-radius: 50%;
				color: #fff;
				font-size: 24px;
				cursor: pointer;
				display: flex;
				justify-content: center;
				align-items: center;
				transition: 0.3s ease;
			}

			.close-popup-image:hover {
				background: rgba(255, 255, 255, 0.2);
				transform: scale(1.05);
			}

			.swiper-slide img {
				cursor: pointer;
			}
        }
    }

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

/* Popup */
.video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;

    &.active {
        opacity: 1;
        visibility: visible;
    }

    .video-popup-content {
        position: relative;
        max-width: 800px;
        width: 90%;
		height: 500px;
        border-radius: 18px;
    }
		
	.popup-video{
		height: 100%;
	}
	
    iframe {
        width: 100%;
        border-radius: 12px;
		height: 100%;
    }

    .close-popup {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        border: none;
        background: red;
        color: #fff;
        font-size: 18px;
        cursor: pointer;

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

        i {
            pointer-events: none;
        }
    }
}
/*=============== RESPONSIVE ===============*/
@media (max-width: 1200px) {

    /*=============== HERO SINGLE TUTORS ===============*/
    .hero__single__tutor {
        padding-block: 11.5rem 72px;
        padding-inline: 28px 28px;

        .hero__single__tutor__container {

            .hero__single__tutor__content {

                .tutor__card {
                    max-width: 560px;
                }

                .book {
                    max-width: 340px;
                }
            }
        }
    }

    /*=============== TESTIMONIALS ===============*/
    .testimonials {
        .testimonial__container {
            .testimonial__content {
                .header_testimonial {
                    h2 {
                        width: 100%;
                        max-width: 500px;
                        font-size: 28px;
                    }
                }

                .testimonials_swiper {
                    width: 100%;
                    max-width: 430px;
                    height: auto;

                    .swiper-slide {
                        img {
                            width: 210px;
                            height: auto;
                            max-height: 430px;
                        }

                        .video_container {
                            max-width: 100%;
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 992px) {


    /*=============== TESTIMONIALS ===============*/
    .testimonials {
        padding-block: 4rem;

        .testimonial__container {
            .testimonial__content {
                gap: 34px;

                .header_testimonial {
                    gap: 25px;

                    h2 {
                        font-size: 24px;
                        max-width: 422px;
                    }

                }

                .testimonials_swiper {
                    max-width: 403px;
                    gap: 38px;

                    .swiper-slide {
                        img {
                            width: 220px;
                            max-height: 444px;
                        }

                        .video_container {
                            .play-btn {
                                width: 56px;
                                height: 56px;
                                font-size: 22px;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 768px) {

    /*=============== HERO SINGLE TUTORS ===============*/
    .hero__single__tutor {
        padding-inline: 24px 24px;

        .hero__single__tutor__container {

            .hero__single__tutor__content {
                flex-direction: column;

                .tutor__card {
                    max-width: 100%;
                }

                .book {
                    max-width: 100%;
                }
            }
        }
    }


    /*=============== TESTIMONIALS ===============*/
    .testimonials {
        padding-block: 4.5rem;

        .testimonial__container {
            .testimonial__content {
                gap: 53px;

                .header_testimonial {

                    .buttons {

                        .btn {
                            width: auto;
                            min-width: 90px;
                            padding-inline: 23px;
                            height: 38px;
                        }
                    }
                }

                .testimonials_swiper {
                    max-width: 350px;

                    .swiper-slide {
                        img {
                            width: 205.7844696044922px;
                            max-height: 418.4860534667969px;
                            border-radius: 28px;
                        }

                        .video_container {

                            .play-btn {
                                width: 50px;
                                height: 50px;
                                font-size: 20px;
                            }
                        }
                    }
                }

                .swiper-pagination {
                    .swiper-pagination-bullet {
                        width: 14px;
                        height: 14px;
                    }
                }
            }
        }
    }
}

@media (max-width: 576px) {
    .hero__single__tutor {
        padding-block: 8.5rem 67px;


        .hero__single__tutor__container {

            .hero__single__tutor__content {

                .tutor__card {



                    .tutor__data {
                        position: relative;

                        .header__card {


                            .star {
                                position: absolute;
                                top: 0px;
                                right: 10px;
                                width: 55px;
                            }
                        }



                        .tutor__items {

                            .item {
                                width: 87.33333587646484px;

                                p {
                                    font-size: 18px;
                                }

                                span {
                                    font-size: 10px;
                                }
                            }
                        }
                    }
                }


            }
        }
    }

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

        .testimonial__container {
            .testimonial__content {
                gap: 46px;

                .header_testimonial {
                    gap: 18px;
                }

                .testimonials_swiper {
                    width: 100%;
                    max-width: 100%;

                    .swiper-slide {
                        img {
                            width: 150px;
                            max-height: 320px;
                            border-radius: 24px;
                        }

                        .video_container {
                            width: 150px;
                            max-height: 320px;

                            .play-btn {
                                width: 46px;
                                height: 46px;
                                font-size: 18px;
                            }
                        }
                    }
                }

                .swiper-pagination {
                    gap: 7px;

                    .swiper-pagination-bullet {
                        width: 15px;
                        height: 15px;
                    }
                }
				
				.btns_swiper {
					width: 95%;

					.my-prev-testimonials,
					.my-next-testimonials {
						width: 45px;
						height: 45px;
					}
				}
            }
        }
    }
}