/* ==========================================================
   SCI MEDIA — TRUST SECTION (VERSI GRID - FINAL)
   Menggunakan CSS Grid agar tidak bisa di-override oleh flex.
   Font diperkecil sesuai permintaan.
   ========================================================== */

.trust {
  padding-block: var(--space-10) var(--space-12);
  background-color: var(--color-white);
}

/* ---------- Judul ---------- */
.trust__heading {
  text-align: center;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-navy-900);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.trust__heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-orange-500);
  border-radius: 999px;
  margin: var(--space-3) auto 0;
}

/* ---------- Stats Bar: GRID 4 KOLOM ---------- */
.trust__bar {
  display: grid !important;             /* GRID, bukan flex */
  grid-template-columns: 1fr !important; /* Mobile: 1 kolom */
  gap: 0;
  padding: var(--space-6) var(--space-8);
  background-color: var(--color-navy-900);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 1100px;
  margin-inline: auto;
  min-height: 140px;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* ---------- Item: GRID ITEM ---------- */
.trust__item {
  display: flex !important;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.trust__item + .trust__item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Ikon (diperkecil) ---------- */
.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;                          /* Diperkecil dari 48px */
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  background-color: var(--color-blue-500);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(46, 107, 224, 0.4);
}

.trust__icon svg {
  width: 20px;                          /* Diperkecil dari 24px */
  height: 20px;
}

/* ---------- Teks (font diperkecil) ---------- */
.trust__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.trust__number {
  color: var(--color-white);
  font-size: var(--fs-h4);              /* Diperkecil dari h3 */
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.trust__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-caption);         /* Diperkecil dari fs-small */
  font-weight: var(--fw-medium);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 768px) {
  .trust {
    padding-block: var(--space-12) var(--space-16);
  }

  .trust__heading {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-8);
  }

  /* 4 KOLOM SAMA LEBAR */
  .trust__bar {
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: center;
    padding: var(--space-6) var(--space-6);
    min-height: 130px;
  }

  .trust__item {
    justify-content: flex-start;
    padding: var(--space-2) var(--space-3);
  }

  .trust__item + .trust__item {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 1024px) {
  .trust__bar {
    padding: var(--space-8) var(--space-10);
    min-height: 150px;
    border-radius: var(--radius-2xl);
  }

  .trust__number {
    font-size: var(--fs-h3);            /* Sedikit lebih besar di desktop */
  }

  .trust__icon {
    width: 48px;
    height: 48px;
  }

  .trust__icon svg {
    width: 24px;
    height: 24px;
  }
}


/* Counter — sembunyikan angka awal agar tidak flash */
.trust__number[data-count] {
  font-variant-numeric: tabular-nums; /* Angka tidak goyang saat berubah */
  min-width: 2ch; /* Reserve space agar layout tidak geser */
  display: inline-block;
}