/* Banner slider: full width, auto-advances until paused.
   Arrows on the sides; dots and a pause / play button at the bottom right.
   Pauses while the pointer or keyboard focus is on the banner.
   Visitors who prefer reduced motion get no auto-advance.
   Controls sit over images, so they use fixed black and white (not theme colours). */

.hero {
  position: relative;
  background: var(--bright-gray);
}

.hero .hero-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.hero .hero-track::-webkit-scrollbar { display: none; }

.hero .hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.hero .hero-slide a {
    display: block;
}
.hero .hero-slide a:focus-visible {
    outline: 3px solid var(--key);
    outline-offset: -3px;
}

.hero .hero-slide img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .hero .hero-slide img {
        height: 280px;
    }
}
/* Arrows: black squares with a white chevron */
.hero .hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  border: 0;
  cursor: pointer;
}
.hero .hero-prev { left: 1rem; }
.hero .hero-next { right: 1rem; }
.hero .hero-btn::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.hero .hero-next::before { transform: translateX(-0.1rem) rotate(45deg); }
.hero .hero-prev::before { transform: translateX(0.1rem) rotate(-135deg); }

/* Controls at the bottom right: dots + pause / play */
.hero .hero-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero .hero-dots {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.125rem 0.5rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}
.hero .hero-dots button {
  position: relative;
  width: 1.5rem;                              /* easy to tap */
  height: 1.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hero .hero-dots button::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--columbia-blue);
}
.hero .hero-dots button[aria-current="true"]::before { background: var(--key); }

.hero .hero-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.hero .hero-toggle::before {                  /* pause: two bars */
  content: "";
  width: 0.625rem;
  height: 0.875rem;
  border-left: 0.1875rem solid currentColor;
  border-right: 0.1875rem solid currentColor;
}
.hero.is-paused .hero-toggle::before {        /* play: triangle */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.4375rem 0 0.4375rem 0.75rem;
  border-color: transparent transparent transparent currentColor;
}

.hero .hero-btn:focus-visible,
.hero .hero-toggle:focus-visible,
.hero .hero-dots button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #000000;
}

/* Small screens: smaller controls, tucked into the corners */
@media (max-width: 575.98px) {
  .hero .hero-prev { left: 0.5rem; }
  .hero .hero-next { right: 0.5rem; }
  .hero .hero-controls { right: 0.5rem; bottom: 0.5rem; gap: 0.5rem; }
  .hero .hero-btn { width: 2rem; height: 2rem; }
  .hero .hero-toggle { width: 2rem; height: 2rem; }
}

.hero-sub {
    position: relative;
    width: 100%;
    height: 180px;

    background-image: url("../images/banners/sub-banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}

/* Left-side content */
.hero-sub-content {
    position: absolute;

    left: 5%;
    top: 50%;
    transform: translateY(-50%);

    z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;

    font-size: 22px;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb a:last-child {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.breadcrumb span {
    color: #ffffff;
}

/* Page title */
.hero-sub-content h1 {
    margin: 0;

    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
}