/* AfriNative — Trusted by clients (left progress rail like hero, no arrows) */

.an-trust-section {
  background:
    radial-gradient(820px 240px at 50% -10%, color-mix(in srgb, #fe4a49 8%, transparent), transparent 70%),
    #f7f9fc !important;
}

.an-trust {
  --an-ink: #0f1b2d;
  --an-muted: #5b6b7f;
  --an-line: #e3e9f2;
  --an-coral: #fe4a49;
  --an-navy: #1e2a3b;
  --an-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --an-trust-interval: 5500ms;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0 4px;
}

.an-trust__dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: 1.25rem;
}

.an-trust .an-trust__dot,
.elementor-widget-html .an-trust .an-trust__dot {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid !important;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 8px;
  width: 44px !important;
  height: 96px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer;
  overflow: visible;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Real number label (not ::before) so current/next stay clear */
.an-trust .an-trust__num {
  display: block;
  color: #7a8494;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  transition: color 0.2s ease;
}

.an-trust .an-trust__dot.is-active .an-trust__num {
  color: var(--an-navy);
}

.an-trust .an-trust__dot::before {
  content: none !important;
  display: none !important;
}

.an-trust .an-trust__dot::after {
  content: "";
  display: block;
  width: 3px;
  height: 64px;
  border-radius: 2px;
  background: #d7dde3;
  transform-origin: top center;
  transition: background 0.2s ease;
}

.an-trust .an-trust__dot.is-progressing::after {
  background: var(--an-coral);
  animation: an-trust-progress-y var(--an-trust-interval) linear forwards;
}

@keyframes an-trust-progress-y {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.an-trust.is-paused .an-trust__dot.is-progressing::after {
  animation-play-state: paused;
}

.an-trust__main {
  min-width: 0;
}

.an-trust__viewport {
  overflow: hidden;
}

.an-trust__track {
  display: flex;
  transition: transform 0.65s var(--an-ease);
  will-change: transform;
}

.an-trust__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 0 6px 8px;
  border: 0;
  background: transparent;
  text-align: center;
  opacity: 0.4;
  transform: scale(0.97);
  transition:
    opacity 0.55s var(--an-ease),
    transform 0.55s var(--an-ease);
}

.an-trust__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.an-trust__bubble {
  position: relative;
  margin: 0 auto;
  padding: 1.75rem 1.6rem 1.85rem;
  max-width: 36rem;
  background:
    radial-gradient(420px 160px at 50% 0%, color-mix(in srgb, var(--an-coral) 11%, transparent), transparent 70%),
    #fff;
  border: 1px solid var(--an-line);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(15, 27, 45, 0.08);
}

.an-trust__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-right: 1px solid var(--an-line);
  border-bottom: 1px solid var(--an-line);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 5px 0;
  box-shadow: 4px 4px 10px rgba(15, 27, 45, 0.04);
}

.an-trust__mark {
  display: block;
  margin: 0 0 0.2rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 0.7;
  color: var(--an-coral);
  user-select: none;
}

.an-trust__quote {
  margin: 0 auto;
  max-width: 34ch;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--an-ink);
  text-align: center;
}

.an-trust__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.55rem;
  text-align: left;
}

.an-trust__avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--an-navy), #2a3a52);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--an-coral) 55%, transparent);
}

.an-trust__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.an-trust__name {
  font-family: Roboto, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--an-ink);
  line-height: 1.2;
}

.an-trust__role {
  font-family: Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--an-muted);
  line-height: 1.25;
}

/* Hide any leftover arrows */
.an-trust__nav,
.an-trust__controls {
  display: none !important;
}

@media (max-width: 767px) {
  .an-trust {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .an-trust__dots {
    flex-direction: row;
    justify-content: center;
    padding-top: 0;
    order: 2;
    gap: 14px;
  }

  .an-trust__main {
    order: 1;
  }

  .an-trust .an-trust__dot {
    width: 56px !important;
    height: 28px !important;
    grid-template-rows: none;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
  }

  .an-trust .an-trust__dot::after {
    width: 36px;
    height: 3px;
    transform-origin: left center;
  }

  .an-trust .an-trust__num {
    font-size: 12px;
  }

  .an-trust .an-trust__dot.is-progressing::after {
    animation-name: an-trust-progress-x;
  }

  @keyframes an-trust-progress-x {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  .an-trust__bubble {
    padding: 1.4rem 1.15rem 1.5rem;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .an-trust__track,
  .an-trust__slide {
    transition: none;
  }

  .an-trust__dot.is-progressing::after {
    animation: none;
    transform: scale(1);
  }
}
