/* Diensten-carrousel – apart bestand i.v.m. WP Rocket minify-cache op style.css */

.nhv-diensten-section {
  width: 100%;
  background: none !important;
  padding: 0 0 4rem;
}

.nhv-diensten-carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-inline: 0;
  box-sizing: border-box;
  background: none !important;
}

.nhv-diensten-viewport {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.nhv-diensten-track {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1rem 0 2.5rem;
  transform: translateX(-10vw);
}

.nhv-dienst-card {
  position: relative;
  flex: 0 0 24vw;
  max-width: 24vw;
  height: 540px;
  border-radius: 18px;
  overflow: hidden;
  background: none;
}

.nhv-dienst-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 0.9s ease-in-out;
}

.nhv-dienst-card:hover .nhv-dienst-card-bg {
  transform: scale(1.12);
}

.nhv-dienst-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.nhv-dienst-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.nhv-dienst-card-content {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 1.55rem;
  z-index: 1;
  color: #faf8f5;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nhv-dienst-card-title {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #faf8f5 !important;
  height: calc(24px * 1.25 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nhv-dienst-card-link,
.nhv-dienst-card-link:visited,
.nhv-dienst-card-link:hover {
  color: #faf8f5 !important;
}

.nhv-dienst-card-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(250, 248, 245, 0.9);
  height: calc(0.9rem * 1.5 * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nhv-diensten-nav {
  position: absolute;
  bottom: -2rem;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid #a77752;
  background-color: transparent;
  color: #a77752;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
  z-index: 2;
}

.nhv-diensten-nav span {
  display: inline-block;
  font-size: 0.8rem;
  line-height: 1;
}

.nhv-diensten-icon {
  width: 24px;
  height: 24px;
}

.nhv-diensten-nav--prev {
  left: calc(50% - 48px);
}

.nhv-diensten-nav--next {
  left: calc(50% + 8px);
}

.nhv-diensten-nav:hover {
  background-color: #a77752;
  color: #faf8f5;
  border-color: #a77752;
  transform: translateY(-1px);
}

@media (min-width: 961px) {
  .nhv-dienst-card {
    width: 620px;
  }
}

@media (max-width: 960px) {
  .nhv-diensten-carousel {
    --nhv-diensten-card-width: 72vw;
    padding-inline: 0;
  }

  .nhv-dienst-card {
    flex: 0 0 var(--nhv-diensten-card-width) !important;
    max-width: var(--nhv-diensten-card-width) !important;
    width: var(--nhv-diensten-card-width) !important;
    height: 360px;
  }

  .nhv-diensten-track {
    transform: translateX(calc((100vw - var(--nhv-diensten-card-width)) / 2));
  }

  .nhv-diensten-nav--prev {
    left: calc(50% - 52px) !important;
  }

  .nhv-diensten-nav--next {
    left: calc(50% + 12px) !important;
  }
}
