/**
 * Block Styles: Navigation Slider
 */

.nav-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.nav-slider__wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nav-slider__swiper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 1.5rem 0 3rem;
}

.nav-slider .swiper-wrapper {
  min-width: 0;
}

.nav-slider .swiper-slide {
  min-width: 0;
  height: auto;
}

.nav-slider__card {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 225px;
  color: #fff;
  text-decoration: none;
  background: var(--brand-secondary-color-light);
  border-radius: 12px;
  overflow: hidden;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.nav-slider__card:hover {
  color: #fff;
  text-decoration: none;
  background: var(--brand-accent-color);
}

.nav-slider__card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 225px;
  padding: 2rem;
}

.nav-slider__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
}

.nav-slider__icon-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.35;
}

.nav-slider__content {
  width: 100%;
  min-width: 0;
}

.nav-slider__title {
  color: #fff;
  display: -webkit-box;
  max-width: 100%;
  min-height: 45px;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1rem, 1vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nav-slider__arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--brand-accent-color);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nav-slider__wrapper .swiper-scrollbar {
  position: relative !important;
  bottom: -1.5rem !important;
  left: 0 !important;
  width: 100% !important;
  height: 18px !important;
  background: none;
  border-radius: 999px;
}

.nav-slider__wrapper .swiper-scrollbar::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  content: '';
  background: var(--brand-secondary-color-lighter);
  border-radius: 999px;
  transform: translateY(-50%);
}

.nav-slider__wrapper .swiper-scrollbar-drag {
  height: 100% !important;
  background: var(--brand-accent-color);
  border-radius: 999px;
  outline: 2px solid #fff;
}

.nav-slider__wrapper .swiper-scrollbar-drag:active {
  cursor: grabbing;
}

.container .nav-slider > .container,
.container-fluid .nav-slider > .container {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 992px) {
  .nav-slider__card,
  .nav-slider__card-inner {
    min-height: 220px;
  }

  .nav-slider__card-inner {
    padding: 1.5rem;
  }

  .nav-slider__icon {
    width: 44px;
    height: 44px;
  }

  .nav-slider__arrow {
    top: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
  }
}
