/* CSS for laptops */
@media screen and (min-width: 1024px) and (max-width: 2560px) {
    .grid-wrapper {
        display: flex;
        flex-wrap: wrap; 
        justify-content: space-between; 
    }

    .apo-testimonial-author {
        flex: 0 0 calc(20% - 10px);
        max-width: calc(20% - 10px);
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 320px) and (max-width: 768px) {
    .apo-sub-menu li a {
        width: 100%;
        display: block;
        margin-bottom: -15px;
        margin-top: -4%;   
    }
    .apo-sub-menu li a:nth-child(3n+1) {
        clear: both;
    }
    /* Target the logo image */
    #logo-img {
        position: absolute;
        top: 10px; 
        left: 10px; 
        width: 100px;
        z-index: 1000;
    }
  
    /* Target the specific <li> elements */
    .apo-navigation .apo-has-children.apo-current,
    .apo-navigation .apo-has-children:nth-child(2),
    .apo-navigation .apo-has-children:nth-child(3),
    .apo-navigation li:last-child {
        margin-left: -460px;
    }
    .apo-sub-menu li:nth-child(7) a {
        margin-left: 460px;
    }
    
    .img-fluid {
        max-width: 100%;
        height: auto;
    }

    /* Margin top for client images */
    .client-image:nth-child(-n+34) {
        margin-top: -40px;
    }

    /* Ensure grid layout overrides Owl Carousel styles */
    .apo-testimonials {
        display: flex;
        flex-wrap: wrap;
    }

    /* Ensure grid layout overrides Owl Carousel styles */
    .apo-testimonial-author {
        flex: 0 0 100%; 
        max-width: 100%;
    }
    
    .grid-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two columns */
        gap: 10px;
    }

    .apo-service p,
    .apo-section p {
        text-align: center;
    }

}
/*   for Tablet media ........Query   here..................... */

@media screen and (min-width: 768px) and (max-width: 1024px) {
   /* ...........navbar......css......... */
   .apo-sub-menu li:nth-child(7) a {
    margin-left: 252px;
    margin-top: 20px;
   }
    #logo-img {
    width: 100px; 
    }

    /* Ensure all navigation items are displayed in one row */
    .apo-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .apo-navigation li {
        margin-right: 20px;
    }
    .apo-navigation li:last-child {
        margin-right: 0; 
    }
    
/*  .p ..............tag....css.................................... */

.apo-style-top-3 {
    text-align: center;
}

.apo-style-top-3 p {
    font-size: 18px;
    line-height: 1.5;
}
/* ...process......p tag........css......... */
.col-sm-3 {
        width: 25%;
        display: inline-block; /* Ensure columns are displayed in one row */
        box-sizing: border-box;
        padding: 0rem;
        vertical-align: top; 
        margin-right: initial;
        margin-top: -2rem; 
    }

    .apo-icon-box-title {
        text-align: center;
        font-size: 30px;
        margin-top: -95px;
      }
    
    .apo-icon-box-content {
        text-align: center; 
        font-size: 20px;
        margin-top: -20px; 
      }
/*    this is   client section images ...css........... */
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    /* Margin top for client images */
    .client-image:nth-child(-n+34) {
        margin-top: -40px;
    }
    .apo-testimonials {
        display: flex;
        flex-wrap: wrap;
    }

    /* Ensure grid layout overrides Owl Carousel styles */
    .apo-testimonial-author {
        flex: 0 0 100%; 
        max-width: 100%;
    }
    
    .grid-wrapper {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr)); 
        gap: 10px; 
    }

    .apo-service p,
    .apo-section p {
        text-align: center;
        margin-right: 100px;
    }

    .apo-same-height h2,
    .apo-same-height h3 {
        font-size: 2.5rem;
    margin-left: 0px;
    margin-right: 39px;

}
}


