/* ===== Theme tokens + dark background ===== */
.uc-sa-custom-container-outer {
  --uc-sa-bg: #1d1449;
  --uc-sa-gold: #f1c233;
  --uc-sa-gold-rgb: 241, 194, 51;
  --uc-sa-text: #ffffff;
  /* circle fill, built from the #1d1449 background */
  --uc-sa-circle-top: #2b2066;
  --uc-sa-circle-bottom: #1d1449;
  background: var(--uc-sa-bg);
  color: var(--uc-sa-text);
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Screen-reader text (don't depend on the theme defining it) */
.uc-sa-custom-container-outer .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- WINDOWS (stop the tracks causing horizontal page scroll) --- */
.uc-sa-custom-icons-window,
.uc-sa-custom-cards-window {
  position: relative;
  width: 100%;
  overflow: hidden;
}
@supports (overflow: clip) {
  /* clip sideways only, so the active circle's glow isn't cut off */
  .uc-sa-custom-icons-window {
    overflow-x: clip;
    overflow-y: visible;
  }
}

/* --- CARDS TRACK --- */
.uc-sa-custom-cards {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease-in-out;
}
.uc-sa-custom-card {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}
.uc-sa-custom-card-inner {
  padding: 0 16px;
  text-align: center;
}

/* --- NUMBERS TRACK (sliding carousel) --- */
.uc-sa-custom-icons {
  display: flex;
  align-items: center;
  position: relative;
  padding: 28px 0;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.uc-sa-custom-icon {
  flex: 0 0 110px;
  width: 110px;
  margin: 0 10px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  pointer-events: none;
}
.uc-sa-custom-icon.is-active {
  opacity: 1;
  transform: scale(1.1);
  z-index: 3;
  pointer-events: auto;
}
.uc-sa-custom-icon.is-prev,
.uc-sa-custom-icon.is-next {
  opacity: 0.5;
  transform: scale(0.85);
  z-index: 2;
  cursor: pointer;
  pointer-events: auto;
}

/* --- ARROW CONNECTORS (gold) --- */
.uc-sa-arrow-connector {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  color: var(--uc-sa-gold);
  transition: opacity 0.4s ease;
}
.uc-sa-custom-icon.is-active .uc-sa-arrow-left { opacity: 0.85; left: -26px; }
.uc-sa-custom-icon.is-active .uc-sa-arrow-right { opacity: 0.85; right: -26px; }
/* no arrow leading into Requirement 1 or out of the last one */
.uc-sa-custom-icon.is-active.is-first .uc-sa-arrow-left,
.uc-sa-custom-icon.is-active.is-last .uc-sa-arrow-right { opacity: 0; }
.uc-sa-arrow-connector svg { display: block; max-width: 26px; height: auto; }

/* --- CIRCLES --- */
.uc-sa-custom-icon-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--uc-sa-circle-top) 0%, var(--uc-sa-circle-bottom) 100%);
  border: 1px solid rgba(var(--uc-sa-gold-rgb), 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: width 0.5s ease, height 0.5s ease, border-color 0.5s ease, box-shadow 0.6s ease;
}
.is-active .uc-sa-custom-icon-inner {
  width: 104px;
  height: 104px;
  border-color: rgba(var(--uc-sa-gold-rgb), 0.45);
  box-shadow:
    0 0 0 6px rgba(var(--uc-sa-gold-rgb), 0.05),
    0 0 44px rgba(var(--uc-sa-gold-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Progress ring that draws around the active circle */
.uc-sa-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  transform: rotate(-90deg);
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.uc-sa-ring circle { fill: none; stroke-width: 1.5; }
.uc-sa-ring-track { stroke: rgba(var(--uc-sa-gold-rgb), 0.14); }
.uc-sa-ring-progress {
  stroke: var(--uc-sa-gold);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.3s ease;
}
.is-active .uc-sa-ring { opacity: 1; }
.uc-sa-in-view .is-active .uc-sa-ring-progress {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

/* --- NUMBER (blur fade in / fade out) --- */
.uc-sa-number {
  position: relative;
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
  transition: font-size 0.5s ease, color 0.5s ease, text-shadow 0.5s ease;
  will-change: opacity, transform, filter;
}
.is-active .uc-sa-number {
  font-size: 38px;
  color: var(--uc-sa-gold);
  text-shadow: 0 0 22px rgba(var(--uc-sa-gold-rgb), 0.45);
}

/* hidden until the module scrolls into view */
.uc-sa-number.is-hidden { opacity: 0; }

/* first reveal: rises out of a soft blur */
.uc-sa-number.is-fading-in {
  animation: ucSaFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
/* newly active circle: old size dissolves upward, new size settles in from below */
.uc-sa-number.is-fading-swap {
  animation: ucSaFadeSwap 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* circle that was active: quick dip while it shrinks back */
.uc-sa-number.is-fading-soft {
  animation: ucSaFadeSoft 0.6s ease both;
}

@keyframes ucSaFadeIn {
  0%   { opacity: 0; filter: blur(12px); transform: translateY(0.2em) scale(0.8); }
  60%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes ucSaFadeSwap {
  0%   { opacity: 1; filter: blur(0);    transform: none; }
  30%  { opacity: 0; filter: blur(8px);  transform: translateY(-0.2em) scale(1.15); }
  45%  { opacity: 0; filter: blur(12px); transform: translateY(0.2em) scale(0.8); }
  100% { opacity: 1; filter: blur(0);    transform: none; }
}
@keyframes ucSaFadeSoft {
  0%   { opacity: 1; filter: blur(0); }
  40%  { opacity: 0; filter: blur(6px); }
  100% { opacity: 1; filter: blur(0); }
}

/* --- NAV BUTTONS (gold) --- */
.uc-sa-slides-navigation {
  padding: 20px 0;
  display: flex;
  gap: 14px;
  justify-content: center;
}
.uc-sa-slides-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--uc-sa-gold-rgb), 0.6);
  background: transparent;
  color: var(--uc-sa-gold);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.uc-sa-slides-navigation button:hover:not([disabled]) {
  background: var(--uc-sa-gold);
  color: var(--uc-sa-bg);
}
.uc-sa-slides-navigation button:focus-visible {
  outline: 2px solid var(--uc-sa-gold);
  outline-offset: 3px;
}
.uc-sa-slides-navigation button[disabled],
.uc-sa-slides-navigation button.disabled {
  opacity: 0.3;
  cursor: default;
}

/* --- CARD TEXT (forced light on the dark background) --- */

/* "REQUIREMENT 1 OF 4" tag */
.uc-sa-custom-container-outer .uc-sa-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--uc-sa-gold-rgb), 0.45);
  border-radius: 999px;
  background: rgba(var(--uc-sa-gold-rgb), 0.08);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uc-sa-gold);
}

.uc-sa-custom-container-outer .uc-sa-card-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--uc-sa-gold) !important;
}

/* Body copy: white, and override theme colours AND inline colours
   that the rich-text editor writes (e.g. <span style="color:#000">) */
.uc-sa-custom-container-outer .uc-sa-card-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--uc-sa-text) !important;
}
.uc-sa-custom-container-outer .uc-sa-card-body * {
  color: inherit !important;
}
.uc-sa-custom-container-outer .uc-sa-card-body p,
.uc-sa-custom-container-outer .uc-sa-card-body li {
  font-size: inherit;
  line-height: inherit;
}
.uc-sa-custom-container-outer .uc-sa-card-body a {
  color: var(--uc-sa-gold) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.uc-sa-custom-container-outer .uc-sa-card-body a:focus-visible {
  outline: 2px solid var(--uc-sa-gold);
  outline-offset: 2px;
}
.uc-sa-custom-container-outer .uc-sa-card-body p:last-child { margin-bottom: 0; }

/* --- DESKTOP --- */
@media (min-width: 992px) {
  .uc-sa-custom-cards-window {
    width: 40%;
    margin: 0 auto;
  }
  .uc-sa-custom-icon {
    flex: 0 0 240px;
    width: 240px;
    margin: 0 10px;
  }
  .uc-sa-custom-icon-inner { width: 147px; height: 147px; }
  .is-active .uc-sa-custom-icon-inner { width: 213px; height: 213px; }
  .uc-sa-ring {
    top: -14px;
    left: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
  }
  .uc-sa-number { font-size: 40px; }
  .is-active .uc-sa-number { font-size: 76px; }
  .uc-sa-custom-icon.is-active .uc-sa-arrow-left { left: -50px; }
  .uc-sa-custom-icon.is-active .uc-sa-arrow-right { right: -50px; }
  .uc-sa-arrow-connector svg { max-width: 50px; }
  .uc-sa-custom-container-outer .uc-sa-card-title {
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -0.69px;
  }
  .uc-sa-custom-container-outer .uc-sa-card-body {
    font-size: 16px;
    line-height: 1.43;
  }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  .uc-sa-custom-icons,
  .uc-sa-custom-cards,
  .uc-sa-custom-icon,
  .uc-sa-custom-icon-inner,
  .uc-sa-number,
  .uc-sa-ring,
  .uc-sa-ring-progress,
  .uc-sa-arrow-connector {
    transition: none !important;
  }
  .uc-sa-number { animation: none !important; filter: none !important; }
}