.custom-logo-section {
  background: #f9f9fb;
  border-radius: 14px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.05);
  padding: 40px 0 32px 0;
  margin: 0 auto 48px auto;
  max-width: 1600px;
}

.custom-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: 0 24px;
  justify-items: center;
  align-items: center;
}

.custom-logo-grid .logo-item {
  width: 100%;
  height: 110px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #ececec;
  box-shadow: 0 2px 8px 0 rgba(16,30,54,0.04);
  transition: box-shadow 0.22s cubic-bezier(.23,1,.32,1),
              transform    0.22s cubic-bezier(.23,1,.32,1);
  cursor: pointer;
  padding: 16px;
  overflow: hidden;
}

.custom-logo-grid .logo-item:hover {
  box-shadow: 0 8px 28px 0 rgba(16,30,54,0.09);
  transform: translateY(-3px) scale(1.04);
}

.custom-logo-grid .logo-item img {
  max-width: 85%;
  max-height: 68px;
  object-fit: contain;
  border-radius: 6px;
  background: none !important;
  transition: box-shadow 0.25s cubic-bezier(.23,1,.32,1);
}

/* Black background for transparent logos */
.custom-logo-grid .logo-item img[src*="OTTI"],
.custom-logo-grid .logo-item img[src*="THERMOGROOUP"] {
  background: #1a1a1a !important;
  padding: 7px 16px;
  border-radius: 6px;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.11);
}

/* Tablet: 3 columns */
@media (max-width: 1199px) {
  .custom-logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 8px;
  }
}

/* Mobile: 2 columns */
@media (max-width: 700px) {
  .custom-logo-section {
    padding: 18px 0 12px 0;
  }
  .custom-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 2px;
  }
  .custom-logo-grid .logo-item {
    height: 64px;
    min-width: 90px;
    padding: 2px;
  }
  .custom-logo-grid .logo-item img {
    max-height: 32px;
  }
}
