.journey-card {
    position: relative;
    overflow: hidden;
}

.journey-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #0A4F94; /* NSA blue */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.journey-card:hover::before {
    transform: scaleX(1);
}
.journey-card {
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
}
.journey-card img {
    transition: transform .25s ease;
}

.journey-card:hover img {
    transform: scale(1.08);
}
.stage-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1;
}
.journey-card {
  position: relative;
}

.journey-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: #078f96;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.journey-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.swish-float {
  animation: swishFloat 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes swishFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swish-float {
    animation: none;
  }
}
.coach-gallery img {
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
  will-change: transform;
}

.coach-gallery figure,
.coach-gallery .spectra-image-gallery__media,
.coach-gallery .uagb-gallery__image {
  overflow: hidden;
  border-radius: 50%;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.coach-gallery figure:hover,
.coach-gallery .spectra-image-gallery__media:hover,
.coach-gallery .uagb-gallery__image:hover {
  box-shadow:
    0 0 0 6px rgba(41, 164, 180, 0.18),
    0 12px 28px rgba(20, 47, 79, 0.18);
}

.coach-gallery figure:hover img,
.coach-gallery .spectra-image-gallery__media:hover img,
.coach-gallery .uagb-gallery__image:hover img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .coach-gallery img,
  .coach-gallery figure,
  .coach-gallery .spectra-image-gallery__media,
  .coach-gallery .uagb-gallery__image {
    transition: none;
  }
}
.coach-gallery .kadence-blocks-gallery-item__caption {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 14px !important;
  top: auto !important;

  width: max-content !important;
  max-width: calc(100% - 28px) !important;
  min-height: 0 !important;

  padding: 6px 16px !important;
  margin: 0 !important;

  background: rgba(8, 38, 65, 0.88) !important;
  background-image: none !important;
  border-radius: 999px !important;

  color: #55c0c7 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap;

  transform: translateX(-50%);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;

  z-index: 5;
}

/* Lift the name pill on hover */
.coach-gallery .kadence-blocks-gallery-item-inner:hover
  .kadence-blocks-gallery-item__caption {
  transform: translateX(-50%) translateY(-5px);
  background: rgba(8, 38, 65, 0.97) !important;
}
.coach-gallery .kadence-blocks-gallery-item__caption{
    box-shadow:0 4px 14px rgba(0,0,0,.18);
}

.coach-gallery img{
    transition: transform .35s ease, filter .35s ease;
}

.coach-gallery .kadence-blocks-gallery-item-inner:hover img{
    transform: scale(1.05);
    filter: brightness(1.08);
}
.coach-gallery .kadence-blocks-gallery-item__caption{
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}