* {
  font-family: "Funnel Display", sans-serif;
  /* Apply your font globally */
}


.bbx-advantage-btn {
  --font-size: 16px;
  --duration: 0.44s;
  --move-hover: -4px;
  --font-shadow: var(--font-size);
  transform: translateY(var(--y)) translateZ(0);
}

.bbx-advantage-btn:hover {
  --y: var(--move-hover);
}

/* text animation only */
.bbx-text div {
  display: flex;
  overflow: hidden;
  text-shadow: 0 var(--font-shadow) 0 currentColor;
}

.bbx-text span {
  display: block;
  backface-visibility: hidden;
  transform: translateY(var(--m)) translateZ(0);
  transition: transform var(--duration) ease;
}

.bbx-advantage-btn:hover .bbx-text span {
  --m: calc(var(--font-size) * -1);
}

/* stagger */
.bbx-text span:nth-child(n) {
  transition-delay: calc(0.05s * var(--i));
}


/* ===== BBX Advantage Button White Variant ===== */
.bbx-advantage-btn-white {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-right: 10px;
  border-radius: 9999px;
  background-color: transparent;
  color: black;
  /* default text color */
  overflow: hidden;
  /* background: rgba(255, 255, 255, 0.171); */
  transition: background-color 0.4s ease;
}

/* Circle */
.bbx-circle-white {
  width: 40px;
  height: 40px;
  background-color: white;
  /* Circle color */
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.4s ease;
  z-index: 2;
  color: black;
  /* icon color inside circle */
}

.bbx-circle-white:hover {
  color: white;
}

/* Text */
.bbx-text-white {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 2;
  color: white;
  /* default text color */
  transition: color 0.4s ease;
}

/* Hover background fill */
.bbx-advantage-btn-white::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #5396d8;
  /* hover fill color */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
  border-radius: 9999px;
}

/* Hover effects */
.bbx-advantage-btn-white:hover::before {
  transform: scaleX(1);
}

.bbx-advantage-btn-white:hover .bbx-circle-white {
  transform: scale(1.2);
  background-color: #5396d8;
}

.bbx-advantage-btn-white:hover .bbx-text-white {
  color: white;
  /* text stays visible on white background */
}