.tabContainer{
    position: relative;
}
.educational-facilities_slide img{
    transition: all 0.5s;
}
.educational-facilities_slide:hover img{
    transform: scale(1.1);
}
.nav-item svg{
    pointer-events: none;
}
.tab_nav{
    display: flex;
}
.tab_nav{
    position: relative;
    justify-content: space-between;
}
.nav-item{
    padding: 26px 17px;
    display: flex;
    align-items: center;
}
.Tabcondent.active{
    transform: none !important;
    opacity: 1 !important;
    border-radius:0px;
    z-index: 3;
    transition:all ease-in-out 0.6s;
    margin:0 auto;
}
.Tabcondent{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: fit-content;
    transform-origin: 0 0;
    transition: opacity .4s,transform .4s;
    opacity: 0;
    transform: translateY(50px);
}
.top_tabs_bar{

}
.nav-indicator {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    -webkit-transition: .4s;
    transition: .4s;
    height: 5px;
    z-index: 1;
    border-radius: 8px 8px 0 0;
}


.educational-facilities_block {
    position: relative;
}

.educational-facilities_block-decor {
    position: absolute;
    top: 160px;
    right: -30px;
    z-index: -1;
}

.educational-facilities__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.educational-facilities__title {
    font-weight: 400;
}


.educational-facilities__header .tab_nav a {
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 25px 17px 29px 0 rgba(109, 65, 51, 0.08);
    display: flex;
    max-width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 19px;
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    color: #565656;
}

.educational-facilities__title strong{
    font-weight: 600;
}

.educational-facilities_slide_inside {
    border: 3px solid #ABC9F6;
    border-radius: 52px;
}

.educational-facilities_slide_inside img{
    object-fit: cover;
    width: 100%;
    transition: all ease 0.3s;
}

.main-swiper .swiper-slide-next .educational-facilities_slide_inside img,
.main-swiper .swiper-slide-prev .educational-facilities_slide_inside img{
    height: 210px;
}

.main-swiper .swiper-slide.swiper-slide-next .educational-facilities_slide_inside,
.main-swiper .swiper-slide.swiper-slide-prev .educational-facilities_slide_inside {
    transition: all ease 0.5s; /* Додали анімацію зміни transform, max-height та margin-top */

}

.main-swiper .swiper-slide,
.main-swiper .swiper-slide .educational-facilities_slide_inside{
    transition: all ease 0.5s;
    overflow: hidden;
}

.main-swiper .swiper-slide {
    overflow: visible;
}




.educational-facilities__slide-body {
    border-radius: 30px 30px 52px 52px;
    background: #FFFFFF;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    transition: all ease 0.5s;
}
.educational-facilities__slide-title {
    font-size: 24px;
    line-height: 140%;
    margin-bottom: 15px;
    color: #1E1E1E;
}

.educational-facilities__slide-row {
    display: flex;
}

.educational-facilities__slide-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #1E1E1E;
}

.educational-facilities__slide-row .educational-facilities__slide-item:nth-child(1){
    background: #e6e6fe;
}

.educational-facilities__slide-row .educational-facilities__slide-item:nth-child(2){
    background: #ABC9F6;
}


.nav-item {
    position: relative;
}

.nav-item:hover .nav-item-decor,
.educational-facilities__header .tab_nav a.active .nav-item-decor{
    opacity: 1;
}

.educational-facilities__header .tab_nav a:hover,
.educational-facilities__header .tab_nav a.active{
    background: rgba(255, 255, 255, 1);
}

.nav-item-icon path{
    transition: all ease 0.5s;
}

.nav-item:hover .nav-item-icon path,
.educational-facilities__header .tab_nav a.active .nav-item-icon path{
    fill: #70ABF1;
    stroke: #70ABF1;
    transition: all ease 0.5s;
}

.nav-item-decor {
    position: absolute;
    right: -2.5px;
    top: -1.75px;
    opacity: 0;
    transition: all ease 0.3s;
}



.top_tabs_bar-swiper {
    max-width: 496px;
    overflow: visible;
}

.educational-facilities_slide {
    position: relative;
}

.educational-facilities_slide-decor {
    position: absolute;
    left: -40px;
    bottom: -80px;
    z-index: -1;
}

.main-swiper .swiper-slide-next .educational-facilities_slide-decor,
.main-swiper .swiper-slide-prev .educational-facilities_slide-decor{
    bottom: -60px;
}

.educational-facilities__slide-link {
    display: flex;
}

.educational-facilities__slide-item-countries {
background: #e6e6fe !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 47px;
    border-radius: 20px;
}

.educational-facilities__slide-item-countries p{
margin: 0;
}

@media screen and (min-width: 1200px) {
    .educational-facilities__slide-body {
        padding: 20px 30px;
    }
}

@media screen and (max-width: 1200px) {
    .educational-facilities__slide-title {
        font-size: 22px;
    }
}
@media screen and (min-width: 991px) and (max-width: 1200px){
    .educational-facilities__slide-body {
        padding: 20px;
    }
}

@media screen and (min-width: 991px){
    .educational-facilities__header {
        margin-bottom: 70px;
    }

    .educational-facilities__header .tab_nav a {
        padding: 14px 20px 18px 24px;
    }

    .educational-facilities_slide_inside img{
        height: 250px;
    }

    .educational-facilities_swiper,
    .educational-facilities_swiper_mid{
        padding: 30px;
        padding-bottom: 50px;
    }

    .educational-facilities__slide-row {
        gap: 20px;
    }

    .educational-facilities__slide-item {
        width: fit-content;
        height: 47px;
        font-size: 16px;
    }

    .educational-facilities__slide-item p {
        margin: 0;
    }

    .main-swiper .swiper-slide-active {
        transform: scale(1.14);
    }

    .main-swiper .swiper-slide-next .educational-facilities_slide_inside {
        transform: translateY(-26px) rotate(3deg); /* Застосовуємо зсув по вертикалі на половину висоти елементу, щоб зберегти центральну позицію при обертанні */
    }

    .main-swiper .swiper-slide-next .educational-facilities_slide_inside .educational-facilities__slide-body{
        transform: translateY(8px) translateX(8px) rotate(-4deg);
        margin-left: -10px;
        transition: all ease 0.5s;
    }


    .main-swiper .swiper-slide-prev .educational-facilities_slide_inside {
        transform: translateY(-26px) rotate(-3deg); /* Застосовуємо зсув по вертикалі на половину висоти елементу, щоб зберегти центральну позицію при обертанні */
    }

    .main-swiper .swiper-slide-prev .educational-facilities_slide_inside .educational-facilities__slide-body{
        transform: translateY(8px) translateX(-8px) rotate(4deg);
        margin-right: -10px;
        transition: all ease 0.5s;
    }

    .main-swiper .swiper-slide.swiper-slide-next,
    .main-swiper .swiper-slide.swiper-slide-prev {
        transform: translateY(40px);
        transition: all ease 0.5s;
    }
}

@media screen and (max-width: 991px){
    .educational-facilities__header {
        margin-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .educational-facilities__header .tab_nav a {
        padding: 19px 29px;
    }

    .educational-facilities_slide_inside img{
        height: 210px;
    }

    .educational-facilities__slide-row {
        gap: 10px;
    }

    .educational-facilities__slide-item {
        width: fit-content;
        height: 40px;
        font-size: 14px;
    }

    .educational-facilities__slide-body {
        padding: 20px 25px;
    }

    .nav-item-icon {
        display: none;
    }

    .top_tabs_bar {
        width: 100%;
    }

    .tab_nav {
        justify-content: unset;
        gap: 8px;
    }

    .top_tabs_bar-swiper {
        max-width: unset;
    }

    .educational-facilities__slide-body {
        margin-top: -20px;
    }

    .educational-facilities_slide-decor {
        display: none;
    }

    .educational-facilities__slide-link svg {
        height: 40px;
        width: 40px;
    }
    
    .educational-facilities__slide-item-countries {
    width: fit-content;
    height: 40px;
}
}