/* Homepage carousel: retain contrast without placing a dark block over the image. */
.hero-slide::after {
  background: linear-gradient(90deg, rgba(14, 42, 28, .34) 0%, rgba(14, 42, 28, .18) 40%, rgba(14, 42, 28, .05) 66%, rgba(14, 42, 28, 0) 100%) !important;
}

.hero-content {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .22);
}

.hero-content p,
.hero-trust span {
  text-shadow: 0 1px 10px rgba(0, 0, 0, .24);
}

/* A quiet, editorial slide control that reads as progress rather than a toolbar. */
.hero-card-controls {
  top: -62px;
  left: auto;
  right: 0;
  gap: 10px;
  transform: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-card-controls .hero-arrow {
  position: relative;
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0 !important;
  font-weight: 400;
  box-shadow: none;
  transition: color .18s ease, opacity .18s ease;
}

.hero-card-controls .hero-arrow::after {
  content: '';
  position: absolute;
  top: 7px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.hero-card-controls .hero-arrow[data-hero-prev]::after {
  left: 8px;
  transform: rotate(135deg);
}

.hero-card-controls .hero-arrow[data-hero-next]::after {
  right: 8px;
  transform: rotate(-45deg);
}

.hero-card-controls .hero-arrow:hover,
.hero-card-controls .hero-arrow:focus-visible {
  background: transparent;
  color: var(--theme-color);
  opacity: .8;
}

.hero-card-controls .hero-arrow[data-hero-next]:hover,
.hero-card-controls .hero-arrow[data-hero-next]:focus-visible {
  transform: none;
}

.hero-slide-count {
  display: inline-flex;
  align-items:baseline;
  min-width: 52px;
  color: rgba(255, 255, 255, .72);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1;
}

.hero-slide-count strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-slide-count span {
  padding: 0 5px;
  color: rgba(255, 255, 255, .35);
}

.hero-slide-count em {
  font-style: normal;
}

.hero-card-controls .hero-dots-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .hero-slide::after {
    background: linear-gradient(90deg, rgba(14, 42, 28, .46) 0%, rgba(14, 42, 28, .27) 58%, rgba(14, 42, 28, .08) 100%) !important;
  }

  .hero-card-controls {
    top: -28px;
    right: 18px;
  }

  .hero-slide-count { min-width: 48px; }
}
