/* ====================================================== */
/* TRUSTED BY SECTION                                     */
/* Homepage — after hero, before about/services           */
/* Menampilkan logo institusi/partner dalam grayscale      */
/* ====================================================== */

.trusted-section {
  padding: 2.5rem 0;
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}

.trusted-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neutral-400);
  margin-bottom: 2rem;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* ── Logo item (placeholder state) ── */
.trusted-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

/* ── Gambar logo asli (saat sudah diupload) ── */
.trusted-logo-item img {
  max-height: 48px;
  width: auto;
  filter: none;
  opacity: 1;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* ── Per-logo size control — ubah nilai max-height sesuai kebutuhan ── */
.trusted-logo-item--bpom      img { max-height: 52px; }
.trusted-logo-item--doha      img { max-height: 44px; }
.trusted-logo-item--huawei    img { max-height: 36px; }
.trusted-logo-item--tangerang img { max-height: 52px; }
.trusted-logo-item--sgu       img { max-height: 42px; }

.trusted-logo-item img:hover {
  filter: none;
  opacity: 0.85;
}

/* ── Placeholder teks (saat logo belum tersedia) ── */
.trusted-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-400);
  letter-spacing: 0.5px;
  background: var(--white);
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.trusted-logo-placeholder:hover {
  border-color: var(--primary-400);
  color: var(--primary-500);
}

/* ── Responsive: Tablet (≤992px) — semua logo 1 baris ── */
@media (max-width: 992px) {
  .trusted-logos {
    gap: 1.5rem;
    flex-wrap: nowrap;         /* paksa 1 baris agar tidak ada orphan */
    justify-content: space-around;
    overflow: hidden;
  }

  .trusted-logo-item {
    min-width: 0;              /* biarkan flex shrink */
    flex: 1 1 0;
  }

  .trusted-logo-item img {
    max-height: 28px;
    width: auto;
    max-width: 100%;
  }
}

/* ── Responsive: Mobile (≤576px) ── */
@media (max-width: 576px) {
  .trusted-section {
    padding: 1.75rem 0;
  }

  .trusted-logos {
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  .trusted-logo-item img {
    max-height: 22px;
    max-width: 100%;
  }

  .trusted-logo-placeholder {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
}

/* ── Responsive: Small mobile (≤400px) ── */
@media (max-width: 400px) {
  .trusted-logos {
    flex-wrap: wrap;           /* di HP kecil, wrap 3+2 centered */
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }

  .trusted-logo-item {
    flex: 0 0 auto;
    min-width: 60px;
  }

  .trusted-logo-item img {
    max-height: 20px;
  }
}
