/* ============================================================
   Trust Bar Section
   Figma node: 1:14 | Canvas: 1440×236px
   4 partner logos centered horizontally on white
   ============================================================ */

.bs-trust-bar {
  background: #ffffff;
  /* Figma: 49px top padding, 47px bottom on 236px total */
  padding: clamp(28px, 3.4vw, 49px) 0;
}

/* ── Logo row ── */
.bs-trust-bar__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* Figma: 64px gap between logos */
  gap: clamp(24px, 4.4vw, 64px);
  /* Figma: container 1204px centered in 1440px */
  max-width: 1204px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.2vw, 60px);
}

/* ── Individual logo items ── */
.bs-trust-bar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bs-trust-bar__logo img {
  display: block;
  object-fit: contain;
  /* Let width be natural, height drives the scale */
}

/* Figma logo heights (max at desktop, scale down fluidly) */
/* Logo 1 — MIT Hacking Medicine: 220×100px */
.bs-trust-bar__logo--1 img {
  width: clamp(110px, 15.3vw, 220px);
  height: auto;
}

/* Logo 2 — Center for Digital Health: 210×140px */
.bs-trust-bar__logo--2 img {
  width: clamp(105px, 14.6vw, 210px);
  height: auto;
}

/* Logo 3 — PsychHub: 258×90px */
.bs-trust-bar__logo--3 img {
  width: clamp(129px, 17.9vw, 258px);
  height: auto;
}

/* Logo 4 — NEMIC: 193×81px */
.bs-trust-bar__logo--4 img {
  width: clamp(96px, 13.4vw, 193px);
  height: auto;
}

/* ── Tablet: 768px – 1023px ── */
@media (max-width: 1023px) {
  .bs-trust-bar__logos {
    gap: clamp(20px, 3.5vw, 40px);
  }
}

/* ── Mobile: < 600px ── */
@media (max-width: 599px) {
  .bs-trust-bar {
    padding: 32px 0;
  }

  .bs-trust-bar__logos {
    gap: 20px 32px;
  }

  /* On mobile, allow 2-per-row by capping widths */
  .bs-trust-bar__logo--1 img { width: clamp(90px, 38vw, 160px); }
  .bs-trust-bar__logo--2 img { width: clamp(90px, 36vw, 150px); }
  .bs-trust-bar__logo--3 img { width: clamp(100px, 42vw, 180px); }
  .bs-trust-bar__logo--4 img { width: clamp(85px, 34vw, 140px); }
}
