.testimonials {
  padding: 120px 0;
  background-color: #fff;
  color: #0b1221;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonials-title {
  font-family: 'Pretendard', sans-serif;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0b1221;
  text-align: center;
  margin-bottom: 80px;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 10px 10px 50px 10px;
  display: flex;
  flex-direction: column;
}

.testimonials-list {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  display: flex;
  flex: 1 1 100%;
  width: 100%;
  height: 100%;
  gap: 10px;
  align-items: center;
  flex-direction: row;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  border-radius: 0;
  scroll-behavior: smooth;
  will-change: mask-image, -webkit-mask-image;
}

.testimonials-list::-webkit-scrollbar {
  display: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
}

.testimonials-list::-webkit-scrollbar-thumb {
  display: none;
}

.testimonials-list {
  scrollbar-width: none;
  scrollbar-height: none;
}

.testimonial-item {
  scroll-snap-align: center;
  flex-shrink: 0;
  scroll-snap-stop: always;
  width: calc(100% - 70px);
  min-width: 280px;
  max-width: 1000px;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background: linear-gradient(100deg, #e9ecff, #a5adff);
  border-radius: 16px;
  height: 480px;
}

.testimonial-text {
  font-family: 'Pretendard Medium', sans-serif;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #0b1221;
  line-height: 1.4;
}

.testimonial-author {
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: rgba(11, 18, 33, 0.8);
  font-weight: 400;
}

.testimonials-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border: 0;
  padding: 20px;
  margin: 0;
  flex-direction: row;
  z-index: 10;
}

.carousel-btn {
  border: none;
  display: block;
  place-content: center;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  will-change: transform;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

.carousel-btn img {
  width: 40px;
  height: 40px;
}

.testimonials-pagination {
  display: flex;
  place-content: center;
  place-items: center;
  overflow: hidden;
  position: absolute;
  pointer-events: auto;
  left: 50%;
  top: unset;
  transform: translateX(-50%);
  flex-direction: row;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  z-index: 10;
  bottom: 0;
}

.pagination-btn {
  border: none;
  display: flex;
  place-content: center;
  place-items: center;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  margin: 0;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
}

.pagination-btn:first-child {
  padding: 12px 12px 12px 16px;
}

.pagination-btn:last-child {
  padding: 12px 16px 12px 12px;
}

.pagination-dot {
  border-radius: 50%;
  background: rgb(255, 255, 255);
  cursor: pointer;
  border: none;
  place-content: center;
  place-items: center;
  padding: 0;
  width: 10px;
  height: 10px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.pagination-dot.active {
  opacity: 1;
}

/* 재생/일시정지 버튼 스타일 */
.carousel-play-pause-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: auto;
}

.carousel-play-pause-btn:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.carousel-play-pause-btn:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.carousel-play-pause-btn .play-icon,
.carousel-play-pause-btn .pause-icon {
  width: 16px;
  height: 16px;
}

/* 모바일 반응형 */
@media (max-width: 1024px) {
  .testimonials {
    padding: 80px 0;
  }

  .testimonials-title {
    font-size: 32px;
    margin-bottom: 60px;
  }

  .testimonial-content {
    padding: 30px 20px;
  }

  .testimonial-text {
    font-size: 22px;
  }

  .testimonial-author {
    font-size: 18px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 36px;
  }

  .carousel-btn img {
    width: 36px;
    height: 36px;
  }

  .carousel-play-pause-btn {
    width: 28px;
    height: 28px;
    bottom: 15px;
    left: 15px;
  }

  .carousel-play-pause-btn .play-icon,
  .carousel-play-pause-btn .pause-icon {
    width: 14px;
    height: 14px;
  }
}

/* 작은 모바일 화면 */
@media (max-width: 768px) {
  .testimonial-text {
    font-size: 20px;
  }

  .testimonial-author {
    font-size: 18px;
  }

  .testimonial-content {
    padding: 25px 15px;
    height: 380px;
  }

  .testimonials-pagination {
    bottom: 0px;
  }

  .carousel-play-pause-btn {
    bottom: 10px;
    left: 10px;
  }
}
