/*----------------------------------------------------
Section
------------------------------------------------------*/

.testimonial-section {
  padding: 80px 40px;
  background: #faf6f0;
  font-family: "Georgia", serif;
  text-align: center;
}

.testimonial-label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a24a;
  margin-bottom: 12px;
}

.testimonial-title {
  font-size: 38px;
  color: #2b2b2b;
  margin-bottom: 10px;
}

.testimonial-subtitle {
  font-size: 16px;
  color: #888;
  margin-bottom: 50px;
}

/*----------------------------------------------------
Testimonial Carousel Wrapper — renamed to avoid conflict
------------------------------------------------------*/

.testimonial-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

/*----------------------------------------------------
Carousel Track
------------------------------------------------------*/

.testimonial-carousel {
  display: flex;
  gap: 24px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 16px 40px 16px;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

/*----------------------------------------------------
Force isolation from Swiper and Bootstrap
------------------------------------------------------*/

.testimonial-section,
.testimonial-section * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Stop Swiper from touching testimonial carousel */
.testimonial-carousel {
  overflow-x: scroll !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  transform: none !important; /* Swiper uses transform to slide */
}

/* Stop Bootstrap flex utilities overriding cards */
.testimonial-card {
  flex: 0 0 320px !important;
  width: 320px !important;
  max-width: 320px !important;
}

/*----------------------------------------------------
Card
------------------------------------------------------*/

.testimonial-card {
  flex: 0 0 320px;
  background: white;
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  scroll-snap-align: start;
  border: 1px solid #f0ebe3;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/*----------------------------------------------------
Quote Icon
------------------------------------------------------*/

.quote-icon {
  font-size: 48px;
  color: #c9a24a;
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

/*----------------------------------------------------
Stars
------------------------------------------------------*/

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.star {
  width: 18px;
  height: 18px;
  background: #c9a24a;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%,
    68% 57%, 79% 91%, 50% 70%,
    21% 91%, 32% 57%, 2% 35%,
    39% 35%
  );
}

.star.empty {
  background: #ddd;
}

/*----------------------------------------------------
Review Text
------------------------------------------------------*/

.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  margin-bottom: 28px;
  border-bottom: 1px solid #f0ebe3;
  padding-bottom: 24px;
}

/*----------------------------------------------------
User
------------------------------------------------------*/

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-user img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c9a24a;
}

.avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a24a, #e8c97a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  border: 2px solid #c9a24a;
}

.user-info h4 {
  font-size: 15px;
  color: #222;
  margin-bottom: 3px;
}

.user-info span {
  font-size: 12px;
  color: #c9a24a;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/*----------------------------------------------------
Dots
------------------------------------------------------*/

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: #c9a24a;
  width: 24px;
  border-radius: 4px;
}

/*----------------------------------------------------
Testimonial Arrow Buttons — renamed to avoid conflict
------------------------------------------------------*/

.testimonial-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: white;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 10;
  font-size: 18px;
  color: #2b2b2b;
}

.testimonial-nav-btn:hover {
  background: #c9a24a;
  color: white;
  border-color: #c9a24a;
}

.testimonial-nav-btn.prev {
  left: 8px;
}

.testimonial-nav-btn.next {
  right: 8px;
}

/*----------------------------------------------------
Responsive
------------------------------------------------------*/

@media (max-width: 768px) {
  .testimonial-section {
    padding: 60px 20px;
  }

  .testimonial-title {
    font-size: 28px;
  }

  .testimonial-card {
    flex: 0 0 280px;
  }

  .testimonial-carousel-wrapper {
    padding: 0 20px;
  }

  /* SHOW arrows on mobile */
  .testimonial-nav-btn {
    display: flex;
  }
}