/**
 * @file
 * Full hero carousel styles.
 *
 * Each Slick slide is a complete hero layout (text col + image col).
 * Dots live in a fixed bar outside the carousel, centred at the bottom
 * of .ssuk-hero__main so they never move between slides.
 */

/* ── Slick slide float (required for horizontal sliding) ─────────────── */
.ssuk-hero__carousel .slick-slide {
  float: left;
}

/* ── Credential badge card — absolute over image ─────────────────────── */
.ssuk-hero__image-col .ssuk-hero__float-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 240px;
  z-index: 3;
  box-sizing: border-box;
}

/* ── Fixed dots bar — centred below the carousel ─────────────────────── */
/* Absolutely positioned so it's always at the bottom-centre of .ssuk-hero
   regardless of how Slick or flexbox affects child widths.
   .ssuk-hero must have position: relative (it does). */
.ssuk-hero__dots-bar {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  z-index: 5;
  pointer-events: none; /* let clicks pass through the bar itself */
}

.ssuk-hero__dots-bar .slick-dots {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
  width: auto !important;
  pointer-events: all; /* buttons stay clickable */
}

.ssuk-hero__dots-bar .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
  line-height: 0;
}

/* Inactive dot — small circle, purple tint */
.ssuk-hero__dots-bar .slick-dots li button {
  display: block;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(68, 45, 114, 0.25);
  border: none;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

/* Active dot — pill, dark purple */
.ssuk-hero__dots-bar .slick-dots li.slick-active button {
  width: 24px;
  border-radius: 4px;
  background: #442d72;
}

.ssuk-hero__dots-bar .slick-dots li button:hover {
  background: #442d72;
}
