.nh-testimonials-slider {
  --nh-accent-width: 42px;
  --nh-accent-height: 42px;
  --nh-accent-stroke: 2px;
  position: relative;
  width: 100%;
}

.nh-testimonials-slider__swiper {
  overflow: hidden;
}

.nh-testimonials-slider__slide {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.nh-testimonials-slider__accent,
.nh-testimonials-slider__corner {
  position: absolute;
  display: inline-block;
  width: var(--nh-accent-width);
  height: var(--nh-accent-height);
  color: #ef1c1c;
  pointer-events: none;
}

.nh-testimonials-slider__accent {
  left: 14px;
  top: 14px;
  border-top: var(--nh-accent-stroke) solid currentColor;
  border-left: var(--nh-accent-stroke) solid currentColor;
}

.nh-testimonials-slider__corner {
  right: 14px;
  bottom: 14px;
  border-right: var(--nh-accent-stroke) solid currentColor;
  border-bottom: var(--nh-accent-stroke) solid currentColor;
  z-index: 1;
}

.nh-testimonials-slider__quote {
  line-height: 1;
  display: inline-flex;
}

.nh-testimonials-slider__quote i,
.nh-testimonials-slider__quote svg {
  display: block;
  color: inherit;
  fill: currentColor;
}

.nh-testimonials-slider__quote svg * {
  fill: currentColor;
}

.nh-testimonials-slider__content {
  white-space: pre-line;
}

.nh-testimonials-slider__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding-right: calc(var(--nh-accent-width) + 24px);
  padding-bottom: calc(var(--nh-accent-height) + 6px);
  min-height: calc(var(--nh-accent-height) + 24px);
}

.nh-testimonials-slider__client {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}

.nh-testimonials-slider__avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
}

.nh-testimonials-slider__avatar img,
.nh-testimonials-slider__avatar span {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nh-testimonials-slider__avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ef1c1c;
  color: #fff;
  font-weight: 700;
}

.nh-testimonials-slider__client-meta {
  min-width: 0;
}

.nh-testimonials-slider__name,
.nh-testimonials-slider__designation {
  word-break: break-word;
}

.nh-testimonials-slider__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.nh-testimonials-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.25s ease;
}

.nh-testimonials-slider__button:hover {
  transform: translateY(-1px);
}

.nh-testimonials-slider__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nh-testimonials-slider__button svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

.nh-testimonials-slider__pagination {
  position: static !important;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nh-testimonials-slider__pagination .swiper-pagination-bullet {
  margin: 0 !important;
  opacity: 1;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nh-testimonials-slider__pagination .swiper-pagination-bullet-active {
  transform: translateZ(0);
}

.nh-testimonials-slider .swiper-fade .swiper-slide {
  pointer-events: none;
}

.nh-testimonials-slider .swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .nh-testimonials-slider__slide {
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .nh-testimonials-slider__slide {
    gap: 16px;
  }

  .nh-testimonials-slider__footer {
    align-items: flex-start;
    padding-right: calc(var(--nh-accent-width) + 10px);
    padding-bottom: calc(var(--nh-accent-height) + 2px);
  }

  .nh-testimonials-slider__client {
    width: 100%;
  }
}
