/* AfriNative stats band — theme CSS so Elementor editor + frontend match.
   Target by :has(counter) because Elementor may not print _css_classes on sections. */

body.home .elementor-top-section:has(.elementor-widget-counter),
.an-stats-band {
  background:
    radial-gradient(900px 220px at 15% 0%, color-mix(in srgb, #fe4a49 16%, transparent), transparent 65%),
    #1e2a3b !important;
}

body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-container,
.an-stats-band .elementor-container {
  align-items: stretch;
}

body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-column,
.an-stats-band .elementor-column {
  text-align: center;
  position: relative;
}

body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter,
.an-stats-band .elementor-counter {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Number first, label under — override Elementor default title-first markup */
body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-number-wrapper,
.an-stats-band .elementor-counter-number-wrapper {
  order: 1 !important;
  display: inline-flex !important;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  line-height: 1;
  position: relative;
  padding-bottom: 14px;
}

body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-number-wrapper::after,
.an-stats-band .elementor-counter-number-wrapper::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #fe4a49;
}

body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-title,
.an-stats-band .elementor-counter-title {
  order: 2 !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  line-height: 1.35 !important;
}

body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-number,
body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-number-prefix,
body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-number-suffix,
.an-stats-band .elementor-counter-number,
.an-stats-band .elementor-counter-number-prefix,
.an-stats-band .elementor-counter-number-suffix {
  color: #fff !important;
  font-family: Roboto, sans-serif !important;
  font-weight: 800 !important;
  font-size: 44px !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-column:not(:last-child)::before,
  .an-stats-band .elementor-column:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    right: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-number,
  body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-number-prefix,
  body.home .elementor-top-section:has(.elementor-widget-counter) .elementor-counter-number-suffix,
  .an-stats-band .elementor-counter-number,
  .an-stats-band .elementor-counter-number-prefix,
  .an-stats-band .elementor-counter-number-suffix {
    font-size: 36px !important;
  }
}
