/**
 * Block Styles: Navigation Slider
 * 
 * BEM Notation: .nav-slider__element--modifier
 */

.nav-slider__headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Wrapper */
.nav-slider {
  overflow: hidden;
}

.nav-slider__wrapper {
  position: relative;
  overflow: hidden;
}

.nav-slider__wrapper .swiper {
  overflow: hidden;
  padding-bottom: 3rem;
}

/* Slide */
.nav-slider__wrapper .swiper-slide {
  height: auto;
}

/* Card */
.nav-slider__card {
  display: block;
  position: relative;
  min-height: 280px;
  height: 100%;
  text-decoration: none;
  background: var(--brand-secondary-color-light);
  color: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

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

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

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

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

/* Content */

.nav-slider__title {
  min-height: 45px;
  max-height: 45px;
  margin: 0;
   display: -webkit-box;
  font-size: clamp(1rem, 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  text-wrap: balance;
     -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2; 
}

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



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

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

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

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

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

  .nav-slider__icon {
    top: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
  }

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

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

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

  .nav-slider__title {
    font-size: 1.1rem;
  }
}