.logo-grid-wrapper {
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  width: 60vw;
  margin: 0 auto;
  text-align: center;
  /* max-width: 1024px; */
  min-width: 243px;

}

@media (min-width: 1668px) {
  .logo-grid-wrapper {
    width: 60vw;
  }
}

@media (max-width: 1667px) and (min-width: 801px) {
  .logo-grid-wrapper {
    min-width: 80vw !important;
  }
}

@media (max-width: 800px) and (min-width: 426px) {
  .logo-grid-wrapper {
    min-width: 90vw !important; /* ✅ Adjusted for better scaling */
    max-width: 90vw !important;
  }
  .logo-grid {
    gap: 25px; /* ✅ Smoothed out spacing */

  }
  #arias-pros-logo{
    width: 150px !important;
    height: 150px !important;
    margin-top: 0em !important;
  }
  #atlas-residential-logo{
    width: 150px !important;
    height: 150px !important;
    margin-top: 0.05em !important;
  }
 #the-home-depot-logo{
    min-width: 140px !important;
    min-height: 140px !important;
    margin-top: 0.5em !important;
    padding: 20px !important;
  }

}

@media (max-width: 425px) and (min-width: 321px) { /* ✅ New query added */
  .logo-grid-wrapper {
    width: 90vw;
  }
  .logo-grid {
    gap: 22px; /* ✅ Smooth spacing transition */
  }
  .logo-grid img {
  width: 100px !important;
  height: 100px !important;
}
#the-home-depot-logo{
    max-width: 120px !important;
    max-height: 120px !important;
    margin-top: 0.5rem !important;
    padding: 2rem;
}
#arias-pros-logo{
    margin-top: 0em !important;
}
#atlas-residential-logo{
    margin-top: -0.5em !important;
}
}
@media (max-width: 320px) {
  .logo-grid-wrapper {
    max-width: 100vw;
  }
  .logo-grid {
    gap: 20px;
  }
  #the-home-depot-logo{
    max-width: 120px !important;
    max-height: 120px !important;
    margin-top: 0.5em !important;
    padding: 3rem;
}
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 70px;
  row-gap: 15px;
}

#the-home-depot-logo{
    max-width: 80px;
    max-height: 80px;
    margin-top: 2.5em;

}
#arias-pros-logo{
    width: 180px;
    height: 180px;
    margin-top: -1.5em;

}
#atlas-residential-logo{
    width: 180px;
    height: 180px;
    margin-top: -1.5em;
}
.logo-grid img {
  width: 150px;
  height: 150px;
  object-fit: contain;
 /* filter: grayscale(80%) contrast(110%) brightness(90%); */
  transition: filter 0.3s ease-in-out;
}
.logo-grid img:hover {
  filter: grayscale(0%) contrast(100%) brightness(100%);
}

#clientsContainer{
    background-color: #f6f6f6;
}
/* ✅ Hide extra rows initially */
.hidden-row {
  display: none;
}

#viewMoreBtn {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column; /* ✅ Align text and icon vertically */
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    max-width: 180px;
    background-size: 40px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.view-more-icon {
    width: 150px;
    height: 100px;
    background-image: url('../icons/ui/arrow-black.png');
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto !important;
    transition: transform 0.3s ease-in-out, background-image 0.3s ease-in-out, opacity 0.3s ease-in-out; /* ✅ Ensure smooth interactions */
    text-align: center;
    opacity: 1;
}

/* ✅ Hover effect without interfering with rotation */
.view-more-icon:hover {
    background-image: url('../icons/ui/arrow.png');
    opacity: 0.8; /* ✅ Subtle fade */
}

/* ✅ Rotation stays smooth */
.view-more-icon.rotated {
    transform: rotate(180deg);
}





#viewMoreBtn:hover {
 text-decoration: underline;
}
