/* Berichten-carrousel – shortcode [berichten_carrousel] */

.nhv-berichten-section {
  width: 100%;
  padding: 0 0 1rem;
}

.nhv-berichten-carousel {
  position: relative;
  width: 100%;
}

.nhv-berichten-viewport {
  width: 100%;
  overflow: hidden;
}

.nhv-berichten-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding: 12px 0 1.5rem;
  will-change: transform;
}

.nhv-berichten-card {
  position: relative;
  z-index: 1;
  flex: 0 0 calc((100% - 3rem) / 3);
  max-width: calc((100% - 3rem) / 3);
  min-width: 0;
}

.nhv-berichten-card:has(.nhv-berichten-card__link:hover) {
  z-index: 2;
}

.nhv-berichten-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(35, 30, 26, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.nhv-berichten-card__link:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 48px rgba(35, 30, 26, 0.14);
}

.nhv-berichten-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e4df;
}

.nhv-berichten-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nhv-berichten-card__link:hover .nhv-berichten-card__photo img {
  transform: scale(1.05);
}

.nhv-berichten-card__info {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 16px 20px;
  text-align: center;
}

.nhv-berichten-card__title {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.3;
  color: #231e1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .nhv-berichten-card__info {
    min-height: 6.25rem;
    padding: 20px 24px;
  }
}

.nhv-berichten-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 0.25rem;
}

.nhv-berichten-nav {
  width: 40px;
  height: 40px;
  border: 1px solid #a77752;
  border-radius: 0;
  background: transparent;
  color: #a77752;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.nhv-berichten-nav:hover:not(:disabled) {
  background-color: #a77752;
  color: #faf8f5;
  border-color: #a77752;
  transform: translateY(-1px);
}

.nhv-berichten-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nhv-berichten-nav svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 767px) {
  .nhv-berichten-track {
    gap: 1rem;
    padding-bottom: 1.25rem;
  }

  .nhv-berichten-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
