/* 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;                   /* one swipe = one banner */
}
.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: auto; }   /* never stretched or cropped */

/* 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; }
}
/* =========================================================
   LAW DEPARTMENT BANNER
   ========================================================= */

.hero .hero-slide {
    position: relative;
}

/* Keep image exactly inside the slide */

.hero .hero-slide > a {
    display: block;
    width: 100%;
}

.hero .hero-slide picture {
    display: block;
    width: 100%;
}

.hero .hero-slide img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   BROWN HORIZONTAL OMBRE
   ========================================================= */

.hero .hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    background:
        linear-gradient(
            90deg,
            rgba(93, 62, 0, 0) 0%,
            rgba(93, 62, 0, 0.02) 32%,
            rgba(93, 62, 0, 0.16) 45%,
            rgba(93, 62, 0, 0.48) 60%,
            rgba(93, 62, 0, 0.78) 75%,
            rgba(93, 62, 0, 0.94) 100%
        );

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   TEXT
   ========================================================= */

.hero .hero-content {
    width: 43%;
    margin-right: 7%;

    color: #ffffff;

    text-align: left;
}


/* Small line */

.hero .hero-line {
    width: 85px;
    height: 3px;

    margin-bottom: 22px;

    background: #ffffff;
}


/* Welcome */

.hero .hero-welcome {
    display: block;

    margin-bottom: 10px;

    font-family: "Noto Sans", sans-serif;

    font-size: clamp(16px, 1.5vw, 28px);

    font-weight: 400;

    letter-spacing: 0.16em;

    line-height: 1.3;

    color: #ffffff;
}


/* Main title */

.hero .hero-content h1 {
    margin: 0;

    font-family: "Noto Sans", sans-serif;

    font-size: clamp(38px, 4.4vw, 78px);

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: 0.025em;

    color: #ffffff;
}


/* Government */

.hero .hero-content p {
    margin: 22px 0 0;

    font-family: "Noto Sans", sans-serif;

    font-size: clamp(16px, 1.55vw, 28px);

    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.95);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .hero .hero-content {
        width: 48%;
        margin-right: 5%;
    }

    .hero .hero-line {
        width: 65px;
        height: 2px;
        margin-bottom: 15px;
    }

    .hero .hero-content p {
        margin-top: 14px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .hero .hero-overlay {
        justify-content: center;

        background:
            linear-gradient(
                90deg,
                rgba(93, 62, 0, 0.48),
                rgba(93, 62, 0, 0.88)
            );
    }

    .hero .hero-content {
        width: 84%;
        margin: 0 auto;
    }

    .hero .hero-line {
        width: 55px;
        height: 2px;

        margin-bottom: 12px;
    }

    .hero .hero-welcome {
        font-size: 13px;
        letter-spacing: 0.12em;
        margin-bottom: 7px;
    }

    .hero .hero-content h1 {
        font-size: clamp(28px, 8vw, 45px);
    }

    .hero .hero-content p {
        margin-top: 10px;

        font-size: 13px;

        letter-spacing: 0.06em;
    }
}