/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/
/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* Kill desktop mega menu */
  .menu {
    width: 100% !important;
  }

  .menu > li > .megadrop {
    position: static !important;
    width: 100% !important;
    left: 0 !important;
    display: none;
    border: none;
  }

  .menu > li.active > .megadrop {
    display: block;
  }

  .menu > li {
    width: 100%;
  }

  /* Product cards */
  /* .col-md-4,
  .col-lg-2,
  .col-sm-3,
  .col-sm-6 {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
  } */

  .strip.grid{
      width:100%;
  }

  .strip.grid .col-md-4{
      width:100% !important;
      max-width:100% !important;
      flex:0 0 100% !important;
  }

  /* Hide desktop menu */
  nav#menu {
    display: none !important;
  }

  /* Force mobile header */
  header {
    position: relative !important;
  }

  /* Carousel images */
  .owl-carousel .item img {
    width: 100%;
    height: auto;
  }

}
/* Contact buttons mobile layout */
@media (max-width: 768px) {

  .strip .row {
    display: flex;
    gap: 6px;
  }

  .strip .col-md-4 {
    flex: 1;
    max-width: 33.33%;
  }

  .strip .col-md-4 img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

}
/* Countries section mobile layout */
@media (max-width: 768px){

  .grid_item.small {
    display: block;
    padding: 5px;
  }

  /* Make 3 countries per row */
  .col-lg-1,
  .col-sm-2 {
    width: 33.33% !important;
    max-width: 33.33% !important;
    flex: 0 0 33.33% !important;
  }

  .grid_item.small figure img {
    height: 60px !important;
    object-fit: cover;
  }

  .grid_item.small .info {
    font-size: 12px;
    padding: 4px 0;
    text-align: center;
  }

}

/* Premium Companies waala section  */
@media (max-width: 768px){

  /* Premium company card */
  .grid_item.small figure{
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
  }

  .grid_item.small figure img{
    width: 100%;
    height: 130px !important;
    object-fit: contain;
    padding: 10px;
    background: #fff;
  }

  /* Black gradient overlay */
  .grid_item.small .info{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
    text-align: left;
  }

  .grid_item.small .info h3{
    font-size: 13px;
    color: #fff;
    margin: 2px 0 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cat_star{
    margin-bottom: 2px;
  }

  .cat_star i{
    color: gold;
    font-size: 13px;
  }

  
}
/* ===== FIX CONTACT BUTTONS ON MOBILE ===== */
@media (max-width: 768px){

  .strip .row{
      display: flex !important;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      margin: 10px 0;
  }

  .strip .row > .col-md-4{
      flex: 1 1 33.33% !important;
      max-width: 33.33% !important;
      padding: 0 4px;
      text-align: center;
  }

  .strip .row > .col-md-4 img{
      width: 100% !important;
      max-width: 110px;
      height: auto;
      object-fit: contain;
      border-radius: 6px;
  }

}
/* ===== FORCE CONTACT BUTTONS IN ONE ROW (MOBILE) ===== */
@media (max-width:768px){

  .strip .row{
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:8px !important;
    margin-top:10px;
  }

  .strip .row > div{
    width:33.33% !important;
    max-width:33.33% !important;
    flex:0 0 33.33% !important;
    text-align:center !important;
  }

  .strip .row img{
    width:100% !important;
    max-width:95px !important;
    height:auto !important;
    object-fit:contain !important;
  }
}


/* ===========================
   KILL STICKY FILTER ON MOBILE
=========================== */
@media (max-width:768px){

  .filters_listing,
  .filters_listing.sticky_horizontal{
      position: relative !important;
      top: auto !important;
      left: auto !important;
      z-index: 1 !important;
  }

  .filters_listing .container{
      overflow: visible !important;
  }

  .filters_listing ul{
      display:flex !important;
      flex-wrap:wrap !important;
      justify-content:center !important;
      gap:8px !important;
      padding:10px 0 !important;
  }
}

/* ========== TESTIMONIAL FIX (PC + MOBILE) ========== */

/* Owl item ko proper card banaye */
#carousel_in1 .item{
    background:#fff;
    padding:15px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,.08);
    text-align:center;
}

/* Text area */
#carousel_in1 .item p{
    font-size:14px;
    line-height:1.5;
    margin-bottom:15px;
}

/* Logo */
#carousel_in1 .item img{
    width:120px;
    max-height:80px;
    object-fit:contain;
    display:block;
    margin:10px auto;
}

/* Name + Designation */
#carousel_in1 .item strong{
    display:block;
    font-size:14px;
    margin-top:5px;
}

/* Make only ONE card visible at a time */
#carousel_in1 .owl-item{
    width:100% !important;
}

#carousel_in1 .owl-stage{
    display:flex;
}
/* Equal height testimonial cards */
#carousel_in1 .item{
    height: 320px;   /* 🔑 all cards same height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Text area fixed */
#carousel_in1 .item p{
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}


/* Logo */
#carousel_in1 .item img{
    max-height: 80px;
    object-fit: contain;
}

/* Stop height jumping */
#carousel_in1 .owl-stage-outer{
    height: 480px !important;   /* enough for biggest testimonial */
}

/* Each card same size */
#carousel_in1 .item{
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:#fff;
    padding:15px;
    border-radius:10px;
}

/* Text full but no overflow */
#carousel_in1 .item p{
    overflow: hidden;
}
 /* all,popular waala navbar */
/* ===== FIX FILTER BAR (Desktop + Mobile) ===== */

/* Make sticky work properly */
.filters_listing{
    position: relative;
    z-index: 100;
    background: #fff;
}

/* Sticky behavior */
/* .filters_listing.sticky_horizontal{
    position: sticky; */
    /* top: 60px; below header */
    /* z-index: 999;
    background: #fff;
} */

/* Prevent any parent from clipping */
.filters_listing,
.filters_listing .container,
.filters_listing .container ul{
    overflow: visible !important;
}

/* Layout */
.filters_listing ul{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Mobile layout */
@media (max-width: 768px){
    /* .filters_listing.sticky_horizontal{
        top: 70px; /* more space for mobile header */
    /* } */ 

    .filters_listing ul{
        justify-content: center;
    }
}
.category-section{
    background:#f7f7f7;
    padding:30px;
    border-radius:10px;
}

.category-layout{
    display:grid;
    grid-template-columns:30% 70%;
    gap:20px;
}

.left-banner{
    position:relative;
    border-radius:10px;
    overflow:hidden;
}
.left-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.left-banner .overlay{
    position:absolute;
    bottom:20px;
    left:20px;
    color:#fff;
}
.left-banner .overlay a{
    background:red;
    padding:8px 15px;
    color:#fff;
    text-decoration:none;
    border-radius:5px;
}

.right-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.cat-box{
    background:white;
    border-radius:10px;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
}
.cat-box img{
    width:70px;
    height:70px;
    border-radius:8px;
    object-fit:cover;
}

.cat-pagination{
    text-align:center;
    margin-top:20px;
}
.cat-pagination a{
    background:#222;
    color:white;
    padding:10px 20px;
    text-decoration:none;
    border-radius:5px;
    margin:5px;
}
.big-category-card{
    background:#fff;
    margin-bottom:40px;
    padding:25px;
    border-radius:10px;
}

.big-cat-layout{
    display:grid;
    grid-template-columns:28% 72%;
    gap:20px;
}

.big-left{
    position:relative;
    border-radius:10px;
    overflow:hidden;
}
.big-left img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.big-left .overlay{
    position:absolute;
    bottom:20px;
    left:20px;
}
.big-left .overlay a{
    background:red;
    padding:10px 20px;
    color:white;
    text-decoration:none;
    border-radius:5px;
}

.big-right{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.sub-card{
    background:#f9f9f9;
    padding:15px;
    border-radius:10px;
    display:flex;
    justify-content:space-between;
}

.sub-card img{
    width:80px;
    height:80px;
    border-radius:8px;
    object-fit:cover;
}

.sub-card h4{
    margin-bottom:10px;
}

.sub-card span{
    display:block;
    color:#1a73e8;
    margin-bottom:4px;
}
/* ================================
   MOBILE CATEGORY LAYOUT FIX
================================ */
/* ================= MOBILE CATEGORY HARD OVERRIDE ================= */
@media only screen and (max-width: 768px){

  /* Kill desktop grid */
  .big-cat-layout{
      display:flex !important;
      flex-direction:column !important;
  }

  /* Big image full width */
  .big-left{
      width:100% !important;
      height:180px !important;
      margin-bottom:12px !important;
  }

  .big-left img{
      width:100% !important;
      height:100% !important;
      object-fit:cover !important;
  }

  /* Sub categories = 2 per row */
  .big-right{
      display:grid !important;
      grid-template-columns:1fr 1fr !important;
      gap:12px !important;
  }

  /* Each sub card */
  .sub-card{
      display:flex !important;
      flex-direction:column !important;
      padding:10px !important;
      min-height:150px !important;
  }

  .sub-card img{
      width:55px !important;
      height:55px !important;
      align-self:flex-end !important;
  }

  .sub-card h4{
      font-size:14px !important;
      margin-bottom:6px !important;
  }

  .sub-card span{
      font-size:12px !important;
  }

  .big-category-card{
      padding:12px !important;
  }

}
/* =========================
   DESKTOP FILTER BAR FIX
========================= */
@media (min-width: 992px){

    /* Header ke niche hi sticky rahe */
    .filters_listing.sticky_horizontal{
        position: sticky !important;
        top: 90px !important;   /* header height */
        z-index: 200 !important;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
    }

    /* Koi parent clip na kare */
    .filters_listing,
    .filters_listing .container,
    .filters_listing .container ul{
        overflow: visible !important;
    }

    /* Images ke upar overlap stop */
    .container.margin_60_35{
        position: relative;
        z-index: 1;
    }
}
