/* Brand Logo Wall */

.brand-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 60px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8ecf1;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.brand-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #c0c8d4;
  transform: translateY(-2px);
}

/* Real logo image: replace text when user provides PNG */
.brand-item img {
  display: none;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-item img.loaded {
  display: block;
}

/* Text fallback */
.brand-item .brand-text {
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  text-align: center;
  line-height: 1.3;
}

/* Has-logo state */
.brand-item.has-logo .brand-text {
  display: none;
}
.brand-item.has-logo img {
  display: block;
}

@media (max-width: 768px) {
  .brand-item { width: 110px; height: 50px; padding: 6px 10px; }
  .brand-item .brand-text { font-size: 12px; }
}
@media (max-width: 480px) {
  .brand-item { width: 90px; height: 44px; padding: 4px 8px; }
}
