/* ============================================================
   Hero Slider (nhub_slider)
   ============================================================ */
.nhub-slider {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
}

.nhub-slider-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.nhub-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.nhub-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nhub-slide.nhub-slide-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.nhub-slide-panel {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 90%;
    max-width: 1300px;
    height: 368px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 55px 0 300px;
    box-sizing: border-box;
}

/* Wraps chevron + content so they stay side by side even when the panel itself stacks (image on top) on mobile. */
.nhub-slide-info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1 1 auto;
  min-width: 0;
}

.nhub-slide-chevron {
  flex: 0 0 auto;
  opacity: 0;
}

.nhub-slide-chevron img {
  display: block;
  height: 120px;
  width: auto;
}

.nhub-slide-content {
  flex: 1 1 auto;
  min-width: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nhub-slide-category {
    color: #eb1000;
    text-transform: uppercase;
    font: 19px / 21px ffunitstdmedium;
}

h2.nhub-slide-title a {
    margin: 0;
    font: 32px / 40px "ffunitstdregular";
}

.nhub-slide-title a {
  color: #222;
  text-decoration: none;
}

.nhub-slide-image {
  flex: 0 0 auto;
  opacity: 0;
}

.nhub-slide-image img {
  display: block;
  max-height: 220px;
  width: auto;
  object-fit: cover;
}

/* ---- Animations ----
   Content and chevron fade in left-to-right (opacity + translateX) with
   ease-in-out. The image fades in after a short delay with a quick fade.
   All restart each time .nhub-slide-active is re-applied (see
   nhub-slider.js goToSlide()). */
.nhub-slide-active .nhub-slide-chevron,
.nhub-slide-active .nhub-slide-content {
  animation-name: nhubFadeLeftRight;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.nhub-slide-active .nhub-slide-chevron {
  animation-duration: 1.5s;
}

.nhub-slide-active .nhub-slide-content {
  animation-duration: 1s;
}

.nhub-slide-active .nhub-slide-image {
  animation-name: nhubFadeIn;
  animation-timing-function: ease-in-out;
  animation-duration: 1.30s;
  animation-delay: 1s;
  animation-fill-mode: both;
}

@keyframes nhubFadeLeftRight {
  from {
    opacity: .2;
    transform: translateX(-500px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nhubFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Dot navigation -- fixed position over the panel's lower-left area, same
   spot regardless of which slide is active. Adjust left/bottom to taste. */
.nhub-slider-dots {
  position: absolute;
  left: 407px;
  bottom: 126px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.nhub-slider-dot {
  width: 40px;
  height: 6px;
  border-radius: 0;
  border: none;
  background: #cccccc;
  cursor: pointer;
  padding: 0;
}

.nhub-slider-dot.nhub-slide-active {
  background: #eb1000;
}
@media (max-width: 1300px) {
  .nhub-slide-panel {
    padding: 45px 100px;
  }
}
@media (max-width: 1068px) {
  .nhub-slide-panel {
    padding: 35px 50px;
  }
  h2.nhub-slide-title a {
    font: 22px / 27px "ffunitstdregular";
  }
  .nhub-slide-category, a.chevron.mainlink.nhub-slide-readmore {
    font: 15px / 17px ffunitstdmedium;
  }
  
}
@media (max-width: 767px) {
  /* Slides stay absolutely positioned (so inactive ones don't add height),
     but the panel switches to a stacked layout: image on top, chevron +
     content (kept side by side via .nhub-slide-info) below. Achieved with
     column-reverse so the image (last in markup) renders first visually. */
  .nhub-slider {
    height: 615px;
  }

  .nhub-slide-panel {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    max-height: calc(100% - 40px);
    width: 90%;
    max-width: none;
    margin: 0;
    padding: 25px 25px 90px 25px;
    gap: 16px;
    overflow-y: auto;
  }

  .nhub-slide-image {
    width: 100%;
  }

  .nhub-slide-image img {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
  }

  .nhub-slide-chevron img {
    height: 96px;
  }

  .nhub-slide-title {
    font-size: 22px;
  }

  .nhub-slider-dots {
    left: 105px;
    bottom: 95px;
    transform: none;
  }
  .nhub-slider-dot {
     width: 36px;
     height: 6px;
  }
  h2.nhub-slide-title {
     min-height: 86px;
  }
  .nhub-slide-category {
    font: 13px / 16px ffunitstdmedium;
  }
  .nhub-slide-info {
    gap: 16px;
  }
  h2.nhub-slide-title a {
    font: 20px / 25px "ffunitstdregular";
  }
  a.chevron.nhub-slide-readmore {
     font-size: 17px;
     line-height: 23px;
  }
}
