/* Manual navigation for the rh-hero slider (arrows, dots, pause, swipe hint). */

.rh-hero { position: relative; }
.rh-hero .rh-hero__slide { touch-action: pan-y pinch-zoom; }
.rh-hero .rh-hero__slide[hidden] { display: none !important; }

.rh-hero .rh-hero__overlay[data-rh-injected] {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.rh-hero .rh-hero__overlay[data-rh-injected] > * { pointer-events: auto; }

/* Arrows */

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav {
  position: absolute;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0a2540;
  box-shadow: 0 14px 30px -18px rgba(10, 37, 64, 0.65);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav svg { display: block; }

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav--prev { inset-inline-start: 18px; }
.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav--next { inset-inline-end: 18px; }

@media (hover: hover) and (pointer: fine) {
  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
    box-shadow: 0 18px 34px -16px rgba(2, 132, 199, 0.7);
  }
}

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav:focus-visible,
.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__pause:focus-visible,
.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 3px;
}

html[dir="rtl"] .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav svg,
html.ac-access-rtl .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav svg {
  transform: scaleX(-1);
}

/* Dots */

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 140px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.26);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button:hover {
  background: rgba(255, 255, 255, 0.82);
}

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button.is-active,
.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button[aria-current="true"] {
  width: 26px;
  background: #fff;
}

/* Autoplay toggle */

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__pause {
  position: absolute;
  inset-inline-end: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.42);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__pause svg { display: block; }

@media (hover: hover) and (pointer: fine) {
  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__pause:hover {
    background: rgba(2, 132, 199, 0.92);
    border-color: rgba(2, 132, 199, 0.92);
  }
}

/* Mobile */

@media (max-width: 720px) {
  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav {
    bottom: 10px;
    width: 40px;
    height: 40px;
  }

  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav svg { width: 18px; height: 18px; }
  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav--prev { inset-inline-start: 10px; }
  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav--next { inset-inline-end: 10px; }

  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots {
    bottom: 16px;
    max-width: calc(100% - 110px);
    padding: 6px 10px;
    gap: 6px;
  }

  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button.is-active,
  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button[aria-current="true"] { width: 22px; }

  .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__pause {
    top: 10px;
    width: 34px;
    height: 34px;
    inset-inline-end: 10px;
  }
}

/* Dark / contrast accessibility modes */

html.ac-access-dark .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav {
  background: var(--ac-dark-control, #132b41);
  border-color: var(--ac-dark-border, #2c4760);
  color: var(--ac-dark-text, #f4f8fb);
}

html.ac-access-dark .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots {
  background: rgba(0, 0, 0, 0.35);
}

html.ac-access-dark .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__pause {
  background: var(--ac-dark-control, #132b41);
  border-color: var(--ac-dark-border, #2c4760);
  color: var(--ac-dark-text, #f4f8fb);
}

html.ac-access-contrast .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav,
html.ac-access-contrast .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__pause {
  background: #fff;
  border: 2px solid #000;
  color: #000;
}

html.ac-access-contrast .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots {
  background: #fff;
  border: 2px solid #000;
}

html.ac-access-contrast .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button {
  background: #666;
}

html.ac-access-contrast .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button[aria-current="true"] {
  background: #000;
}

html.ac-access-contrast.ac-access-dark .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__nav,
html.ac-access-contrast.ac-access-dark .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__pause {
  background: #000;
  border-color: #fff;
  color: #fff;
}

html.ac-access-contrast.ac-access-dark .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots {
  background: #000;
  border-color: #fff;
}

html.ac-access-contrast.ac-access-dark .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button { background: #999; }
html.ac-access-contrast.ac-access-dark .rh-hero .rh-hero__overlay[data-rh-injected] .rh-hero__dots button[aria-current="true"] { background: #fff; }

/* Motion preferences / reduced-motion setting */

@media (prefers-reduced-motion: reduce) {
  .rh-hero .rh-hero__overlay[data-rh-injected] * {
    transition: none !important;
    animation: none !important;
  }
}

html.ac-access-motion .rh-hero .rh-hero__overlay[data-rh-injected] * {
  transition: none !important;
  animation: none !important;
}
