/* Featured Partners section used by phones.html. */

.partners-section {
  padding: 80px 0 100px;
  background-color: #f9f9f9;
}

.partners-section .sec-title {
  margin-bottom: 50px;
}

.partners-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-item {
  flex: 0 0 240px;
  width: 240px;
  height: 140px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Logos have wildly different aspect ratios (Yealink ~4.7:1 wide,
   Cisco ~1.9:1). Capping both max-width and max-height normalizes
   their optical weight so each tile reads as a comparable size. */
.partner-item img {
  max-width: 170px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 992px) {
  .partner-item {
    flex: 0 0 220px;
    width: 220px;
  }
  .partner-item img {
    max-width: 150px;
  }
}

@media (max-width: 576px) {
  .partner-item {
    flex: 0 0 260px;
    width: 260px;
    height: 130px;
  }
  .partner-item img {
    max-width: 180px;
    max-height: 65px;
  }
}
