/* Trusted brands — 4-color Office palette, contained carousel (no 100vw clip) */

body section.ishi-trusted,
section.ishi-trusted {
  --office: #056066;
  --office-deep: #02383c;
  --office-mid: #0b8e98;
  --office-accent: #f4a62a;
  --office-coral: #e97e7b;
  --office-white: #ffffff;
  --office-max: 1180px;

  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: clamp(3.25rem, 6vw, 4.75rem) 0 !important;
  clear: both !important;
  float: none !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  background:
    radial-gradient(circle at 12% 20%, rgba(233, 126, 123, 0.22), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(244, 166, 42, 0.18), transparent 40%),
    linear-gradient(145deg, var(--office-deep) 0%, var(--office) 55%, var(--office-mid) 100%) !important;
  color: var(--office-white) !important;
  font-family: Poppins, Inter, "Segoe UI", system-ui, sans-serif !important;
}

.ishi-trusted *,
.ishi-trusted *::before,
.ishi-trusted *::after {
  box-sizing: border-box !important;
}

.ishi-trusted__wrap {
  width: min(var(--office-max), calc(100% - 40px)) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

.ishi-trusted__head {
  width: 100% !important;
  max-width: 42rem !important;
  margin: 0 auto 2.35rem !important;
  padding: 0 0.25rem !important;
  text-align: center !important;
}

body .ishi-trusted .ishi-trusted__kicker,
.ishi-trusted__kicker {
  margin: 0 0 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: var(--office-accent) !important;
}

body .ishi-trusted .ishi-trusted__title,
.ishi-trusted__title {
  margin: 0 0 0.45rem !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: none !important;
  color: var(--office-white) !important;
  overflow-wrap: anywhere !important;
}

body .ishi-trusted .ishi-trusted__sub,
.ishi-trusted__sub {
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: var(--office-coral) !important;
}

.ishi-trusted__viewport {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.5rem 0 !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(2, 56, 60, 0.28) !important;
}

.ishi-trusted__fade {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: clamp(2rem, 7vw, 4.5rem) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.ishi-trusted__fade--left {
  left: 0 !important;
  background: linear-gradient(90deg, rgba(2, 56, 60, 0.95) 0%, rgba(2, 56, 60, 0) 100%) !important;
}

.ishi-trusted__fade--right {
  right: 0 !important;
  background: linear-gradient(270deg, rgba(5, 96, 102, 0.95) 0%, rgba(5, 96, 102, 0) 100%) !important;
}

.ishi-trusted__track {
  display: flex !important;
  width: max-content !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 1rem 0 !important;
  animation: ishiTrustedMarquee 38s linear infinite !important;
  will-change: transform;
}

.ishi-trusted__viewport:hover .ishi-trusted__track,
.ishi-trusted__viewport:focus-within .ishi-trusted__track {
  animation-play-state: paused !important;
}

.ishi-trusted__set {
  display: flex !important;
  align-items: stretch !important;
  gap: 1rem !important;
  padding-left: 1rem !important;
  padding-right: 0 !important;
}

.ishi-trusted__card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 11.25rem !important;
  height: 7rem !important;
  margin: 0 !important;
  padding: 0.9rem 1rem !important;
  background: var(--office-coral) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-top: 3px solid var(--office-accent) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
}

.ishi-trusted__card:nth-child(3n) {
  border-top-color: var(--office-white) !important;
}

.ishi-trusted__card:nth-child(4n) {
  border-top-color: var(--office-mid) !important;
}

.ishi-trusted__card img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 4.5rem !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
}

@keyframes ishiTrustedMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 700px) {
  .ishi-trusted__wrap {
    width: min(var(--office-max), calc(100% - 28px)) !important;
  }

  .ishi-trusted__card {
    width: 9.25rem !important;
    height: 6.1rem !important;
  }

  .ishi-trusted__card img {
    max-height: 3.6rem !important;
  }

  .ishi-trusted__track {
    animation-duration: 30s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ishi-trusted__track {
    animation: none !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    gap: 0.85rem !important;
    padding: 1rem !important;
  }

  .ishi-trusted__set:last-child {
    display: none !important;
  }

  .ishi-trusted__set {
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    padding-left: 0 !important;
    gap: 0.85rem !important;
  }

  .ishi-trusted__fade {
    display: none !important;
  }
}
