
.slider_container{
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 32px;
    align-items: center;
}

.slider_content
{
    border-radius: 16px;
    height: 620px;
    overflow: hidden;
    position: relative;
}

.slide{
    position: relative;
}

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

#curtain{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide_overlay{
    display: flex;
    position: absolute;
    height: 100%;
    flex-direction: column;
    row-gap: 32px;
    width: 30%;
    justify-content: center;
    z-index: 5;

    margin-left: 64px;

    > *{
        color: white
    }

    > h2{
        width: 75%;
    }
    
    > p{
        width: 100%;
    }
}

.contact_bar{
    background-color: white;
    width: 1120px;
    margin-inline: auto;
    transform: translateY(-50%);
    border-radius: 16px;
    overflow: hidden;
    padding: 16px 8px;

    display: flex;
    justify-content: space-between;
    column-gap: 2px;
    position: relative;
    z-index: 3;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.contact_item{
    flex: 1;

    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    padding: 0px 16px;
    align-items: center;
}

.contact_item:not(:last-child){
    border-right: 2px solid black;
}

.contact_item .icon_holder{
    grid-row: 1/-1;
}

.contact_item p{
    font-size: 24px;
    font-weight: bold;
}

.contact_item a{
    font-weight: 500;
    color: var(--main);
    font-size: 18px;
}

main{
    position: relative;
}

#main{
    margin: 0px auto;
}

#main_section .split_content--img::before{
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: calc(50% - 8px);
    height: calc(50% - 8px);
    background-color: var(--main_pale);
    border-radius: 16px;
    transform: scale(0.9);
}

#main_section .split_content--img::after{
    content: "";
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: calc(50% - 8px);
    height: calc(50% - 8px);
    transform: scale(0.8);
    background-color: var(--main);
    border-radius: 16px;
}

#main_one, #main_two{
    position: absolute;

    width: 50%;
    height: 50%;
    max-height: 400px;
}

#main_one img, #main_two img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

#main_one{
    bottom: 0px;
    left: 0px;
}

#main_two{
    top: 0px;
    right: 0px;
}

.benefits{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 64px;
    align-items: center;
    list-style: none;
}

.benefits li{
    position: relative;
    padding-left: 48px;
    font-size: 20px;
    font-weight: bold;;
}

.benefits li::before{
    content: "";
    background-image: url('../images/check.svg');
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);

    width: 24px;
    height: 24px;
}

.bg{
    background: url('../images/ffflux.svg');
    background-size: cover;
    border-radius: 16px;
}

.services{
    display: flex;
    margin-top: 64px;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.service{
    background-color: white;
    padding: 8px;
    border-radius: 24px;
    position: relative;
    cursor: pointer;

}

.service h2{
    color: var(--main);
    position: absolute;
    bottom: 16px;
    left: 16px;
    text-align: left;
    max-width: 80%;
}

.service button{
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    outline: none;
    border-radius: 20px;
    background-color: var(--main);
    cursor: pointer;

    width: 95px;
    height: 95px;

    > svg{
        width: 60px;
        height: 60px;
        object-fit: cover;
        transform: rotate(-45deg);
        transition: all .3s;
    }
}

.service:hover button svg{
    transform: translate(4px, -4px) rotate(-45deg);
}

.service .image-wrapper {
    width: 230px;
    height: 230px;
    background-color: #DEE9E6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service .image-wrapper img {
    width: 128px;
    height: 128px;
    /* margin-left: -64px; */
    object-fit: contain;
}

#appointment_holder img{
    width: 480px;
    border-radius: 24px;
    box-shadow: -32px 32px 0px var(--main);
    border: 8px solid #f9f9f9;
}

.service:has(.image-wrapper)  button{
    margin-top: 8px;
    margin-right: 8px;
    width: 64px;
    height: 64px;
    border-radius: 8px;
}

.bg2{
    background-image: url('../images/3d-rendering-spiral-dna-consist-lines.png');
    background-size: cover;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 0px;
}

.bg2 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    background-color: var(--main_pale);
}


#team{
    z-index: 3;

    display: grid;
    grid-template-columns: 50% 50%;
    padding: 160px 0px;
    align-items: center;
    margin: 0px auto;
}

#team .split_content--text{
    padding-inline: 32px;
}

#team .split_content--img img{
    width: 50vw;
}

#team button{
    width: 75%;
    display: block;
}

#why_us{
    position: relative;
}

#why_us .bg{
    height: 500px;
    width: 1200px;
    mask: url('../images/mask2.svg');
    mask-repeat: no-repeat;
    mask-size: cover;
    margin-top: 64px;
}


#why_us .overlay{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
}

#why_us .content{
    position: relative;
}

#why_us .overlay > ul{
    list-style: none;
    display: inline-flex;
    gap: 16px;
    padding: 0px;
    margin: 8px auto;
    font-size: 18px;

    li{
        padding: 4px 16px;
        border: 2px solid var(--main);
        width: 130px;
        border-radius: 16px;
        cursor: pointer;    
        position: relative;

        transition: color .2s .1s;

        &:hover{
            color: white;
        }

        &:hover::before{
            transform: scale(1);
        }

        &.active{
            color: white;
        }

        &.active::before{
            transform: scale(1);
        }   

        &::before{
            content: "";
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            background-color: var(--main);
            z-index: -1;
            border-radius: 12px;
            transform: scale(0);
            transition: transform .3s;
        }
    }
}

.content_container{
    padding: 16px;
}

.content_page
{
    grid-template-rows: 360px;
    grid-template-columns: 55% 45%;
    padding: 32px 16px;
    column-gap: 16px;
    opacity: 0;
    margin: 0px auto;
    transform: translate(0px, 64px);
}

.content_page .section_p{
    font-size: 18px;
}

.content_page h3{
    font-size: 20px;
}

.content_page.active{
    opacity: 1;
    transform: translate(0px, 0px);
    transition: all 1s;
}

.content_page--bento{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: calc(50% - 32px) 50%;

    gap: 32px;
}

.content_page--bento  img{
    width: 100%;
    height: 100%;
    display: block;
    min-height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.content_page--bento > img:last-child{
    grid-column: 1/-1;
}

.content_page--text{
    padding: 32px;
    margin: 16px;
    text-align: start;

    background-color: white;
    border-radius: 16px;

    > p{
        font-size: 18px;
    }
}

#blog{
    align-items: center;
}

#blog .section_body{
    display: flex;
    align-items: center;
    column-gap: 8px;
}

.blogs_container{
    overflow: hidden;
    padding: 32px 13px;
}

.blogs{
    display: flex;
    column-gap: 32px;
    flex-wrap: nowrap;
    width: fit-content;
}

.blog{
    width: 370px;
    height: 360px;
    background-color: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--main_shadow) lightgray;
    position: relative;
}

.blog > img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.blog > span{
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 4px;
}

.blog_footer{
    display: flex;
}

.blog_calendar{
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 70px;
    text-align: center;
}

.blog_calendar span
{
    color: white;
    background-color: var(--main_accent);
    text-align: center;
    border-radius: 8px;
}

.blog h3{
    margin-top: 12px;
}

.scroll_slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    padding-top: 70px;
    position: absolute;
    left: 16px;
    
    width: calc(50% - 48px);
}

.scroll_slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.team_card {
    width: 260px;
    flex: 0 0 auto;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding-top: 80px;
    position: relative;
    text-align: center;
    overflow: visible;
    transition: border 0.3s;
  }
  
  .img_container {
    width: 160px;
    height: 160px;
    border: 4px solid  white;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    transition: border-color 0.3s;
    z-index: 1;
  }
  
  .img_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .team_card:hover .img_container {
    border-color: var(--main_accent)
  }
  
  .card_content {
    padding: 48px 0px 32px 0px;
  }
  
  .card_content h3 {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
  }
  
  .card_content p {
    font-size: 16px;
    color: #666;
  }
  
  .team_controls {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

#testimonials > h1, #testimonials > p{
    text-align: center;
}

#testimonials .edit_admin h1, #testimonials .edit_admin p{
    text-align: center;
}

#testimonials{
    padding: 0px;
}

.mySwiper{
    height: 270px;
    width: 80%;
    margin: 48px auto;
}

.swiper-slide{
    opacity: .3;
    height: 250px;
}

.testimonial{
    background-color: var(--main_pale);
    height: 240px;
    border-radius: 16px;

    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 32px;
    padding: 32px;
    margin-bottom: 12px
}

.testimonial p{
    text-align: start;
    font-size: 24px;

}

.testimonial_content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars{
    margin-bottom: -12px;
}

.testimonial_person{
    text-align: center;
}

.swiper-slide-active{
    opacity: 1;
}

.swiper_controls{
    display: flex;
    justify-content: center;
    column-gap: 16px;
}

.bg3{
    background-color: var(--main);
    border-radius: 16px;
}

#faq{
    color: white;
    align-items: center;
}

#faq h1, #faq .section_p{
    color: white;
}



@media (max-width: 1440px){
    .slider_container{
        position: relative;
        grid-template-columns: 1fr auto;
    }

    .slider_container .action:first-child{
        position: absolute;
        right: 0px;
        top: calc(calc(50% - 22px) + 56px);
    }

    .contact_bar{
        transform: translateY(0);
        margin-top: 24px;
        width: 100%;;
    }

    .slide_overlay{    
        max-width: 40%;
        min-width: 400px;
    }

    #why_us .bg{
        display: none;
    }

    #why_us .overlay{
        position: relative;
        background-image: url('../images/ffflux.svg');
        background-size: cover;
        border-radius: 16px;
    }

    #why_us .overlay > ul{
        background-color: white;
        padding: 8px;
        border-radius: 24px;
    }
    
    #why_us .overlay > ul li.active{
        background-color: var(--main);   
    }

    #why_us .overlay > ul li:hover{
        background-color: var(--main);
        color: white;
    }

    .content_page{
        grid-template-columns: 1fr;
        grid-template-rows: 360px auto;
        width: 720px;
        left: calc(50% - 360px);
        row-gap: 24px;
        align-content: center;
    }

    .content_page--bento{
        height: 360px;
    }

    .content_page--text{
        margin: 0px;
    }

    .lottie_animation{
        display: none;
    }
    
}


@media (max-width: 1264px){
    .slider_container{
        grid-template-columns: 1fr;
    }

       .slider_container .action{
        position: absolute;
        z-index: 99;
        bottom: 8px;
        left: calc(50% + 8px);
    }

    .slider_container .action:first-child{
        left: calc(50% - 44px - 4px);
        right: auto;
        bottom: 8px;
        top: auto;
    }

    .contact_item .icon_holder img{
        width: 48px;
    }

    .contact_item p{
        font-size: 20px;
    }

    .contact_item a{
        font-size: 16px;
    }

    .bg{
        mask: none;
    }

    .blog{
        width: 300px;
        height: 320px;
    }
    .blogs{
        column-gap: 16px;
    }

    .blog h3{
        font-size: 16px;
    }

    .mySwiper{
        width: 100%;
    }
    
    .testimonial p{
        font-size: 20px;
    }

    .testimonial > img{
        width: 48px;
    }
}

@media (max-width: 1024px){
    .contact_bar{
        flex-direction: column;
        row-gap: 24px;
    }
    .contact_item:not(:last-child){
        border-right: none;
    }
    
    #team button{
        width: 100%;
    }
}


@media (max-width: 960px){

    #team{
        grid-template-columns: 1fr;
        row-gap: 32px;
        padding: 80px 12px;
    }

    .scroll_slider{
        position: relative;
        width: 100%;
        left: 0px;
    }

    .content_page{
        grid-template-columns: 1fr;
        width: 500px;
        left: calc(50% - 250px);
        row-gap: 24px;
        align-content: center;
    }
    .slider_content{
        height: 580px;
    }

    .service img{
        width: 300px;
        height: 300px;
    }

    .service button{
        width: 110px;
        height: 110px;
    }


}

@media (max-width: 720px){
    .slide_overlay{
        width: calc(100% - 64px);
        margin-left: 16px;
        justify-content: flex-end;
        padding-bottom: 88px;
        min-width: unset;
        max-width: unset;
    }
    


    #main_two{
        right: 0px;
    }



    .content_page{
        grid-template-columns: 1fr;
        width: 100%;
        left: 0px;
        row-gap: 24px;
        align-content: center;
    }
}

@media (max-width: 650px){
    .service .image-wrapper{
        width: auto;
        height: auto;
        padding: 48px;
    }

    .service .image-wrapper img{
        width: 96px;
        height: 96px;
    }

    .service h2{
        font-size: 18px;
    }

    .service button{
        width: 48px !important;
        height: 48px !important;
    }

    .service button svg{
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 500px){
    .service .image-wrapper{
        padding: 46px;
    }

    .service .image-wrapper img{
        width: 50px;
        height: 50px;
    }

    .service h2{
        font-size: 16px;
    }

    .service button{
        width: 36px !important;
        height: 36px !important;
    }

    .service button svg{
        width: 28px;
        height: 28px;
    }

    .mySwiper{
        height: 320px;
    }

    .testimonial{
        height: 285px;
        column-gap: 8px;
    }

    .content_page--text{
        padding: 8px;
    }

    .slider_content{
        height: 540px;
    }
    
    #why_us .overlay > ul{
        gap: 8px;
        flex-direction: column;
        width: 90%;
        margin: 8px auto;
    }

    #why_us .overlay > ul li{
        width: 100%;
        font-size: 16px;
    }

    #appointment_holder img {
        max-width: 300px;
    }

    .content_page--text h3{
        font-size: 18px;
    }

    .content_page--text p{
        font-size: 14px;
    }

    .benefits{
        gap: 8px;
        grid-template-columns: 1fr;
        margin-top: 24px !important;
    }

    .benefits li{
        font-size: 16px;
    }
    
    .content_page--bento{
        gap: 16px
    }

    #blog{
        position: relative;
    }

    #blog .action{
        position: absolute;
        bottom: -8px;
    }

    #blog .action:first-child{
        left: calc(50% - 14px - 28px - 8px);
    }

    #blog .action:last-child{
        right: calc(50% - 14px - 28px - 8px);
    }

    #appointment_holder img{
        box-shadow: -24px 24px 0px var(--main);
    }
}
