/* Professional homepage slider theme. Remove this stylesheet link to restore the classic design. */
#heroSlider {
  --slider-accent: #0878f5;
  position: relative;
  isolation: isolate;
  height: clamp(520px, 42vw, 650px);
  min-height: 520px;
  background: #0a1016;
  box-shadow: 0 18px 48px rgba(11, 25, 38, 0.16);
}

#heroSlider .slide {
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s;
}

#heroSlider .slide-media,
#heroSlider .slide.has-image .slide-media {
  overflow: hidden;
}

#heroSlider .slide-media img,
#heroSlider .slide.has-image .slide-media img {
  filter: none;
  transform: scale(1.025);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

#heroSlider .slide.active .slide-media img,
#heroSlider .slide.has-image.active .slide-media img {
  transform: scale(1);
}

#heroSlider .slide .hero-content {
  display: flex;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px clamp(72px, 7vw, 118px) 112px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  opacity: 1;
  transform: none;
}

#heroSlider .slide .hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

#heroSlider .slide.active .hero-content > * {
  opacity: 1;
  transform: translateY(0);
}

#heroSlider .slide.active .hero-content > :nth-child(1) {
  transition-delay: 0.12s;
}

#heroSlider .slide.active .hero-content > :nth-child(2) {
  transition-delay: 0.2s;
}

#heroSlider .slide.active .hero-content > :nth-child(3) {
  transition-delay: 0.28s;
}

#heroSlider .slide.active .hero-content > :nth-child(4) {
  transition-delay: 0.36s;
}

#heroSlider .eyebrow {
  display: inline-flex;
  min-height: 30px;
  padding: 0 12px;
  align-items: center;
  color: #17212a;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(9, 19, 29, 0.12);
  font-size: 9px;
  letter-spacing: 2.2px;
  backdrop-filter: blur(10px);
}

#heroSlider h1 {
  max-width: min(760px, 64vw);
  margin: 18px 0 20px;
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.34);
}

#heroSlider p {
  max-width: 620px;
  margin: 0;
  color: #f2f5f7;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.7;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.58);
}

#heroSlider .hero-btns {
  gap: 12px;
  margin-top: 30px;
}

#heroSlider .btn {
  min-width: 142px;
  height: 50px;
  padding: 0 23px;
  justify-content: center;
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(4, 17, 29, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

#heroSlider .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(4, 17, 29, 0.26);
}

#heroSlider .btn-red {
  border-color: var(--slider-accent);
  background: var(--slider-accent);
}

#heroSlider .btn-dark {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(8, 15, 22, 0.34);
  backdrop-filter: blur(10px);
}

#heroSlider .slider-arrow {
  width: 52px;
  height: 52px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(7, 14, 21, 0.38);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  font-size: 30px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

#heroSlider .slider-arrow:hover {
  border-color: var(--slider-accent);
  background: var(--slider-accent);
  transform: translateY(-50%) scale(1.06);
}

#heroSlider .slider-arrow.prev {
  left: clamp(14px, 2.5vw, 38px);
}

#heroSlider .slider-arrow.next {
  right: clamp(14px, 2.5vw, 38px);
}

#heroSlider .slider-arrow:focus-visible,
#heroSlider .dot:focus-visible,
#heroSlider .btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

#heroSlider .slider-ui {
  right: auto;
  bottom: 22px;
  left: 50%;
  width: auto;
  min-height: 48px;
  padding: 8px 14px;
  gap: 18px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(7, 14, 21, 0.46);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

#heroSlider .slider-dots {
  align-items: center;
  gap: 7px;
}

#heroSlider .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.35s ease, background-color 0.35s ease;
}

#heroSlider .dot.active {
  width: 38px;
  background: var(--slider-accent);
}

#heroSlider .slider-counter {
  display: flex;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

#heroSlider .slider-counter b {
  color: #fff;
  font-size: 15px;
}

html[dir="rtl"] #heroSlider .slide .hero-content {
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 900px) {
  #heroSlider {
    height: clamp(510px, 64vw, 590px);
    min-height: 510px;
  }

  #heroSlider .slide .hero-content {
    padding: 62px 72px 105px;
  }

  #heroSlider h1 {
    max-width: 75vw;
    font-size: clamp(42px, 7.2vw, 64px);
  }
}

@media (max-width: 700px) {
  #heroSlider {
    height: clamp(500px, 126vw, 560px);
    min-height: 500px;
  }

  #heroSlider .slide .hero-content {
    padding: 48px 52px 98px 22px;
  }

  html[dir="rtl"] #heroSlider .slide .hero-content {
    padding-right: 22px;
    padding-left: 52px;
  }

  #heroSlider .eyebrow {
    max-width: calc(100vw - 78px);
    min-height: 28px;
    overflow: hidden;
    font-size: 8px;
    letter-spacing: 1.4px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #heroSlider h1 {
    max-width: calc(100vw - 72px);
    margin: 15px 0 16px;
    font-size: clamp(36px, 10.5vw, 48px);
    letter-spacing: -0.045em;
  }

  #heroSlider p {
    display: -webkit-box;
    max-width: calc(100vw - 72px);
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  #heroSlider .hero-btns {
    margin-top: 22px;
    flex-wrap: wrap;
  }

  #heroSlider .btn {
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    font-size: 9px;
  }

  #heroSlider .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  #heroSlider .slider-arrow.prev {
    left: 8px;
  }

  #heroSlider .slider-arrow.next {
    right: 8px;
  }

  #heroSlider .slider-ui {
    bottom: 16px;
    min-height: 42px;
    padding: 7px 12px;
  }

  #heroSlider .slider-counter {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  #heroSlider .slide,
  #heroSlider .slide-media img,
  #heroSlider .slide.has-image .slide-media img,
  #heroSlider .slide .hero-content > * {
    transition: none;
  }
}
