/* =========================================
   Bikeshift Testimonial Card
   ========================================= */

.testimonial {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Sticker in linker bovenhoek van de card */
.testimonial__sticker {
  position: absolute;
  top: 0;
  left: -1em;
  transform: translateY(-50%);
  z-index: 3;
}

/* Logos bovenaan */
.testimonial__logos {
  gap: 0;
}

.testimonial__logo {
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonial__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Grote logo in het midden */
.testimonial__logo--main {
  width: 96px;
  height: 96px;
  border: 3px solid var(--green);
  z-index: 2;
  position: relative;
}

.testimonial__logo--main img {
  padding: 10%;
}

/* Kleinere prev/next logos */
.testimonial__logo--side {
  width: 64px;
  height: 64px;
  border: 2px solid var(--green);
  opacity: 0.9;
  z-index: 1;
}

.testimonial__logo--side:hover {
  opacity: 1;
  transform: scale(1.05);
}

.testimonial__logo--side img {
  padding: 12%;
}

.testimonial__logo--side:first-child {
  margin-right: -16px;
}

.testimonial__logo--side:last-child {
  margin-left: -16px;
}

/* Verberg side logos als ze geen src hebben */
.testimonial__logo img:not([src]),
.testimonial__logo img[src=""] {
  display: none;
}

/* Items */
.testimonial__list {
  display: grid;
  position: relative;
}

.testimonial__item {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  width: 100%;
}

.testimonial__item.is--active {
  opacity: 1;
  visibility: visible;
}

.testimonial__name {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

.testimonial__text {
  color: var(--dark-green);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.text-line-mask {
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

/* Pagination dots */
.testimonial__dots {
  min-height: 12px;
}

.testimonial__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.25s ease, width 0.25s ease;
}

.testimonial__dot:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.testimonial__dot.is--active {
  background-color: var(--pink);
  width: 24px;
  border-radius: 4px;
}

/* =========================================
   Responsive
   ========================================= */

@media screen and (max-width: 767px) {
  .testimonial__logo--main {
    width: 80px;
    height: 80px;
  }

  .testimonial__logo--side {
    width: 52px;
    height: 52px;
  }

  .testimonial__name {
    font-size: 1.125rem;
  }
}

@media screen and (max-width: 479px) {
  .testimonial__logo--main {
    width: 72px;
    height: 72px;
  }

  .testimonial__logo--side {
    width: 44px;
    height: 44px;
  }

  .testimonial__name {
    font-size: 1rem;
  }

  .testimonial__text {
    font-size: 0.9375rem;
  }
}
