@media screen and (max-width:1024px) and (min-width:769px){
    html,body{
        overflow-x:hidden;
    }
    .counterx{
            display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    }
    .stat-item h5{
            font-size: 3rem;
    }
    .tab_read_more{
        display:none;
    }
    .tab_read_more_btn{
        display:block;
        margin-bottom:20px;
        margin-top:-10px;
        color:var(--primary);
    }
    .container{
        max-width:100%;
    }
    /*.hero_grid{*/
    /*    grid-template-columns:1fr;*/
    /*        padding: 15px;*/
    /*}*/
    .hero2{
        height:500px;
    }
    .anime .first{
        width:300px;
        height:300px;
    }
    .anime .third{
        width:300px;
        height:300px;
    }
    .anime .second{
        width:300px;
        height:300px;
    }
    .about-img{
        flex: none;
    }
    .about-img{
        max-width:100%;
    }
    .about-content{
        padding-left:15px;
    }
    .hero_grid .text{
        padding-right:0;
    }
    .hero_grid .text #headinlines{
            font-size: 40px;
    }
    .hero_grid .anim{
        position: relative;
    right: 100px;
    top:50px;
    }
    .about-section >.container{
        display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items:start !important;
    }
    .team_grid{
        display:grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .section.bg{
        padding:60px 0  !important;
    }
    .clinic-gallery-section img{
        height:100%;
    }
    .test_vi_2{
        width:100%;
    }
    .video_hero{
            height: 400px;
    }
    .why-image{
        height:400px;
    }
    .location_book{
        align-items:none !important;
    }
    
    .location_book img{
        height:100%;
        object-fit:cover;
        
    }
    .inner_home_title{
            padding-left: 56px;
    }
    .video_hero_overlay{
            justify-content: start;
    }
    .team_grid_item{
        width:100%;
    }
    
    #navbarNav{
        display:block;
    position: fixed;
    left: -100%;
    width: 370px;
    bottom: 0;
    background: white;
    z-index: 999;
    top: 0;
    transition:300ms;
    padding:30px;
    box-shadow: 0 0 16px rgba(0, 0, 0, .5);
    }
    #navbarNav.active{
        left:0;
    }
    #navbarNav .navbar-nav{
            align-items: start !important;
            max-width:100%;
            
    }
    #navbarNav .nav-item.dropdown{
        width:100%;
    }
    .xtra_link{
            align-items: center;
    width: 100%;
    justify-content: space-between;
    }
    .navbar-expand-lg .navbar-nav .nav-link{
            display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right:0;
    }
    .nav-item .dropdown-menu{
        position:static;
        box-shadow:none;
        padding-left:30px;
    }
    .mobile_logo{
    display:block;
    width:120px;
    }
    .mobile_close{
       display:block;
           font-size: 36px;
    color: #5c5c5c;
    }
    .site_logo img{
            width: 90px;
    }
    .hide_mobile{
        display:none;
    }
    
    .top_class_menu a{
        font-size:12px;
    }
    header{
        height:auto;
    }
    .dropdown:hover .dropdown-menu{
            left: 0;
    }
    .sprr{
                   width: 120px;
        height: 120px;
        font-size: 14px;
        margin-left: auto;
        margin-right: 0;
    }
    .hero_grid .text #headinlines{
        text-align:right
    }
    .hero_grid .text #headinlines{
      
    }
    .anime{
        height:350px;
    }
    .ani_content i{
        font-size:40px;
    }
    .ani_content{
        font-size:14px;
    }
    .my-mb-0{
        margin-top:0 !important;
        margin-bottom:0 !important;
    }
    .stats-box{
        display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .section{
        padding:30px 0 !important;
    }
    .success_stories .story_item:last-child{
            grid-column: 1 / span 3;
    }
    .section.tab_our_advance{
        padding:30px 0 !important;
    }
    .tab_our_advance h2{
        line-height:1.4 !important;
        font-size:28px !important;
    }
    .doctor-profile > .container{
        /*display:block !important;*/
    }
    .doctor-image{
        width:100%;
    }
    .red-circle{
            width: 80px;
    height: 80px;
    background-color: var(--primary);
    top:-10px;
    right:30px;
    }
    .yellow-circle{
            width: 40px;
    height: 40px;
    left:0;
    }
    .masonry-gallery img{
            margin-bottom: 0;
    }
    .masonry-gallery .clinic-gallery{
        margin-bottom: 10px;
                display: flex;
        justify-content: center;
        align-items: center;
    }
    ._mns{
        height:auto;
    }
    .success_stories{
        
        grid-template-columns:1fr 1fr;
        margin-top:30px;
    }
    .success_stories .story_item{
            position: static;
            width:100% !important;
                object-fit: cover;
                height:auto !important;
    transform: none !important;
    }
    
    .success_stories {
             display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
        grid-template-rows: 150px 150px 150px;
    }
    
    .story_item {
      break-inside: avoid;      /* Prevent breaking items between columns */
   
    }
    
    .story_item img.story_main {
      width: 100%;
      display: block;
      border-radius: 8px;
      height:100% !important;
    }
    .pt-mb-0{
        padding-top:0 !important;
    }
    .cta-section{
            padding: 15px 0 15px 0;
    }
    .treatment-nav{
        display:flex;
    }
    .team-single{
        grid-template-columns:1fr;
        gap:0
    }
    .team-content p:nth-of-type(2){
        display:none;
    }
    .team-content{
                padding: 15px;
    }
    .clinic-gallery-section{
        padding:30px 0;
    }
    .masonry-gallery{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
        
        grid-template-rows: 135px 135px 135px;
    }
    .xrrr{
                font-size: 14px;
       
        height: auto !important;
    }
    .ps-mb-0{
        padding-left:15px !important;
    }
    .offers_row{
            grid-template-columns: 1fr 1fr 1fr;
    }
    .service-hero{
            padding: 30px 0;
    }
    .service-hero img{
        margin-top:30px;
    }
    .branch_ img{
        height:180px;
    }
    .other_location_p{
        padding:10px !important;
    }
    .faq-section, .blog-section,.contact-section{
        padding:40px 0;
    }
    .mb-tab-2{
        margin-bottom:8px !important;
    }
    .branch_ a{
        display:block;
    }
    
    .test_vi{
        height:270px;
        width:100%;
    }
    .address_box iframe{
        margin-top:15px;
    }
    .address_box img{
        margin-top:35px;
    }
    footer .navbar-brand img{
        max-width:100% !important;
    }
    
}