/* Testimonial slider component styles — loaded only when landing-testimonials partial is used */

@keyframes testimonialPopIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Base (mobile-first) ── */

.testimonial {
  width: 100%;
  margin: 50px 0;
}

.testimonial:not(.animate):not(.slick-slider) {
  display: flex;
  flex-wrap: nowrap;
}

.testimonial:not(.animate):not(.slick-slider) .testimonial__item {
  flex-shrink: 0;
}

.testimonial .slick-dots {
  bottom: -15px;
}

.testimonial .slick-current .testimonial__item {
  border: 1px solid var(--color-secondary);
}

.testimonial__item {
  position: relative;
  width: 100%;
  max-width: 280px;
  min-height: 260px;
  margin: 0 auto 30px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #c9cef4;
  box-shadow: 0px 30px 30px -20px rgba(0, 0, 0, 0.06);
  border-radius: 5px;
}

.testimonial__item blockquote {
  position: relative;
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  line-height: 25px;
  margin: 0 0 50px 10px;
  padding: 0;
  color: #464646;
}

.testimonial__item blockquote:before {
  content: "";
  display: block;
  width: 14px;
  height: 10px;
  background-image: url("/images/landing/apostrophe.svg");
  background-size: contain;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-20px, 0px);
}

.testimonial__item blockquote:after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 10px;
  background-image: url("/images/landing/apostrophe.svg");
  background-size: contain;
  background-position: center;
  transform: rotate(180deg) translate(-4px, 5px);
}

.testimonial__item.buzzilla blockquote,
.testimonial__item.tastewise blockquote,
.testimonial__item.controlup blockquote {
  font-size: 15px;
  line-height: 22px;
}

.testimonial__item.controlup .testimonial__person__position {
  align-items: flex-start;
}

.testimonial__item.zoomin blockquote {
  font-size: 17px;
  line-height: 23px;
}

.testimonial__item.lukka blockquote,
.testimonial__item.opentable blockquote,
.testimonial__item.notion blockquote {
  font-size: 18px;
  line-height: 24px;
}

.testimonial__item.au10tix blockquote {
  font-size: 16px;
  line-height: 23px;
}

.testimonial__item.au10tix .testimonial__person__position {
  flex-direction: column;
  align-items: flex-end;
}

.testimonial__person {
  position: absolute;
  bottom: 25px;
  right: 20px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  text-align: right;
  color: #262626;
}

.testimonial__person__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
}

.testimonial__person__position {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
  font-size: 15px;
  line-height: 18px;
  opacity: 0.9;
}

.testimonial__person > img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #5a63b0;
}

.testimonial__navigation {
  display: none;
}

.testimonial__button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.testimonial__button:focus {
  outline: none;
}

.testimonial__button:focus-visible {
  outline: 1px solid var(--color-secondary);
}

/* ── Desktop (≥ 768px) ── */

@media (min-width: 768px) {
  .testimonial {
    position: relative;
    width: 435px;
    height: 252px;
    opacity: 0;
    margin-bottom: 0;
  }

  .testimonial__item {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-height: auto;
    box-shadow: none;
    transform: translate(0, 0);
    opacity: 1;
  }

  .testimonial__item:nth-child(1) {
    z-index: 2;
  }

  .testimonial__item blockquote {
    border-left: 8px solid var(--color-secondary);
    padding-left: 34px;
    font-size: 23px;
    line-height: 28px;
  }

  .testimonial__item blockquote:before {
    width: 15px;
    height: 11px;
    transform: translate(14px, 2px);
  }

  .testimonial__item blockquote:after {
    width: 15px;
    height: 11px;
  }

  .testimonial__item.buzzilla blockquote,
  .testimonial__item.tastewise blockquote {
    font-size: 18px;
    line-height: 24px;
  }

  .testimonial__item.zoomin blockquote,
  .testimonial__item.au10tix blockquote {
    font-size: 20px;
    line-height: 26px;
  }

  .testimonial__item.lukka blockquote,
  .testimonial__item.opentable blockquote,
  .testimonial__item.notion blockquote {
    font-size: 23px;
    line-height: 28px;
  }

  .testimonial__item.controlup blockquote {
    font-size: 16px;
    line-height: 22px;
  }

  .testimonial__person {
    right: 25px;
  }

  .testimonial__navigation {
    display: flex;
    gap: 10px;
    margin: 20px auto 0;
    color: var(--color-secondary);
    transform: translateX(25px);
  }

  .testimonial .stack-top {
    z-index: 5;
    opacity: 1;
    transform: translate(50px, -48px);
    border: 1px solid var(--color-secondary);
  }

  .testimonial .stack-top.slide {
    transform: translate(100px, -96px);
    opacity: 0;
    transition: transform 1s, opacity 0.4s;
  }

  .testimonial .stack-middle {
    z-index: 4;
    opacity: 1;
    transform: translate(25px, -24px);
  }

  .testimonial .stack-middle.slide {
    transform: translate(50px, -48px);
    transition: transform 1s, opacity 1s;
    border: 1px solid var(--color-secondary);
  }

  .testimonial .stack-bottom {
    z-index: 3;
    opacity: 1;
    transform: translate(0, 0);
  }

  .testimonial .stack-bottom.slide {
    transform: translate(25px, -24px);
    transition: transform 1s, opacity 1s;
  }

  .testimonial .stack-reset {
    opacity: 0 !important;
  }

  .testimonial.animate {
    animation: 1s forwards testimonialPopIn;
    animation-delay: 0.5s;
  }
}
