/* Clients */
.clients {
  padding-block: clamp(28px, 6vw, 64px);
  text-align: center;
}
.clients__title {
  margin: 0 0 clamp(18px, 4vw, 28px); /* 原本 14/3vw/22 → 18/4vw/28 */
  font-weight: 900;
  font-size: clamp(22px, 3.8vw, 32px);
  line-height: 1.5;
}

/* Grid：手機 2 欄 → 平板 3 欄 → 桌機 4 欄 */
.clients__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 3.2vw, 28px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
}
@media (min-width: 768px) {
  .clients__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .clients__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 圓形容器：保證是正方形 + 裁剪內容 */
.clients__item {
  aspect-ratio: 1 / 1; /* 讓容器始終是正方形 */
  width: 100%;
  max-width: clamp(120px, 18vw, 200px);
  border-radius: 50%; /* 圓形 */
  overflow: hidden; /* 把超出圓形的部分裁掉 */
  background: #fff;
  display: grid;
  place-items: center; /* 讓圖置中 */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* 讓圖填滿而不變形（保留居中裁切） */
.clients__logo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 填滿容器，必要時裁切邊緣 */
  object-position: center; /* 以中心對齊 */
  filter: none; /* 之前的灰階若還在，取消 */
}

@media (hover: hover) {
  .clients__logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 576px) {
  .clients__title {
    margin-bottom: 25px;
  }
}
