/* ========================================
   TESTIMONIALS
======================================== */

.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 55px 0 70px;
  background: #fbf1eb;
}

.testimonials-heading {
  margin-bottom: 72px;
  text-align: center;
}

.testimonials-heading h2 {
  margin: 0;
  color: #2f1d18;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

.testimonial-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1250px;
  min-height: 335px;
  margin: 0 auto;
}

.testimonial-track {
  position: relative;
  width: 100%;
  min-height: 335px;
}

.testimonial-card {
  position: absolute;
  top: 28px;
  left: 50%;
  box-sizing: border-box;
  width: 285px;
  min-height: 245px;
  padding: 58px 24px 24px;
  border: 1px solid rgba(75, 47, 38, 0.06);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 28px rgba(77, 49, 38, 0.09);
  transform: translateX(-50%) scale(0.72);
  transition:
    transform 0.55s ease,
    opacity 0.55s ease,
    filter 0.55s ease;
  pointer-events: none;
}

/* Main card */

.testimonial-card.active {
  z-index: 5;
  top: 0;
  width: 350px;
  min-height: 315px;
  padding: 62px 30px 25px;
  opacity: 1;
  visibility: visible;
  filter: none;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* Cards immediately beside the main card */

.testimonial-card.prev {
  z-index: 3;
  opacity: 0.5;
  visibility: visible;
  filter: blur(1px);
  transform: translateX(calc(-50% - 300px)) scale(0.82);
}

.testimonial-card.next {
  z-index: 3;
  opacity: 0.5;
  visibility: visible;
  filter: blur(1px);
  transform: translateX(calc(-50% + 300px)) scale(0.82);
}

/* Outer cards */

.testimonial-card.far-prev {
  z-index: 1;
  opacity: 0.26;
  visibility: visible;
  filter: blur(1.8px);
  transform: translateX(calc(-50% - 510px)) scale(0.68);
}

.testimonial-card.far-next {
  z-index: 1;
  opacity: 0.26;
  visibility: visible;
  filter: blur(1.8px);
  transform: translateX(calc(-50% + 510px)) scale(0.68);
}

.testimonial-avatar {
  position: absolute;
  top: -35px;
  left: 50%;
  display: block;
  width: 72px;
  height: 72px;
  border: 2px solid #e7ae31;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  object-position: center;
  transform: translateX(-50%);
  box-shadow: 0 5px 15px rgba(45, 27, 21, 0.14);
}

.testimonial-card h3 {
  margin: 4px 0 6px;
  color: #2e211e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.testimonial-stars {
  margin-bottom: 8px;
  color: #f3c400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}

.testimonial-quote {
  display: block;
  height: 24px;
  color: #dc145e;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.testimonial-card p {
  margin: 9px auto 13px;
  max-width: 290px;
  color: #514440;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.testimonial-service {
  display: none;
}

/* Navigation arrows */

.testimonial-arrow {
  position: absolute;
  top: 45%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #c88d6d;
  font-size: 18px;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 5px 16px rgba(69, 42, 32, 0.1);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.testimonial-arrow:hover {
  background: #bd8465;
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.testimonial-prev {
  left: 4%;
}

.testimonial-next {
  right: 4%;
}

/* Dots */

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 10px;
  margin-top: -8px;
}

.testimonial-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfc5bf;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.testimonial-dot.active {
  background: #efbc00;
  transform: scale(1.25);
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {
  .testimonial-card.prev {
    transform: translateX(calc(-50% - 245px)) scale(0.8);
  }

  .testimonial-card.next {
    transform: translateX(calc(-50% + 245px)) scale(0.8);
  }

  .testimonial-card.far-prev,
  .testimonial-card.far-next {
    opacity: 0;
    visibility: hidden;
  }

  .testimonial-prev {
    left: 1%;
  }

  .testimonial-next {
    right: 1%;
  }
}

/* ==================================================
   MOBILE TESTIMONIAL CAROUSEL
================================================== */

@media (max-width: 650px) {
  .testimonials-section {
    position: relative;
    min-height: 650px;
    padding: 60px 0 75px;
    overflow: hidden;
    background:
      radial-gradient(
        circle at 50% 35%,
        rgba(220, 178, 151, 0.16),
        transparent 38%
      ),
      #fbf2ec;
  }

  .testimonials-heading {
    position: relative;
    z-index: 10;
    max-width: 330px;
    margin: 0 auto 30px;
    padding: 0 18px;
    text-align: center;
  }

  .testimonials-heading h2 {
    margin: 0;
    color: #302019;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    font-weight: 400;
    line-height: 1.05;
  }

  .testimonial-slider {
    position: relative;
    width: 100%;
    min-height: 455px;
    overflow: visible;
  }

.testimonial-track {
    position: relative;
    width: 100%;
    min-height: 430px;
    overflow: hidden;
}
  /* All cards stay absolutely positioned so they can animate */

  .testimonial-card {
    position: absolute !important;
    top: 28px;
    left: 50%;

    display: flex !important;
    width: min(82vw, 330px) !important;
    min-height: 370px;
    padding: 64px 24px 28px;

    align-items: center;
    flex-direction: column;

    border: 1px solid rgba(218, 188, 169, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    box-shadow: 0 18px 45px rgba(73, 45, 34, 0.1);

    transform:
      translateX(-50%)
      translateX(115%)
      scale(0.86);

    transition:
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease,
      filter 0.45s ease,
      visibility 0.45s ease;

    text-align: center;
  }

  /* Active card */

  .testimonial-card.active {
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    filter: none;

    transform:
      translateX(-50%)
      translateX(0)
      scale(1);
  }

  /* Previous card peeking from left */

  .testimonial-card.prev {
    z-index: 3;
    opacity: 0.38;
    visibility: visible;
    filter: blur(1.4px);

    transform:
      translateX(-50%)
      translateX(-88%)
      scale(0.83);
  }

  /* Next card peeking from right */

  .testimonial-card.next {
    z-index: 3;
    opacity: 0.38;
    visibility: visible;
    filter: blur(1.4px);

    transform:
      translateX(-50%)
      translateX(88%)
      scale(0.83);
  }

  /* Cards farther away stay hidden */

  .testimonial-card.far-prev {
    opacity: 0;
    visibility: hidden;

    transform:
      translateX(-50%)
      translateX(-145%)
      scale(0.72);
  }

  .testimonial-card.far-next {
    opacity: 0;
    visibility: hidden;

    transform:
      translateX(-50%)
      translateX(145%)
      scale(0.72);
  }

  /* Portrait */

  .testimonial-avatar {
    position: absolute;
    top: -40px;
    left: 50%;

    width: 82px;
    height: 82px;

    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #ead8cb;

    box-shadow:
      0 0 0 2px #d79b52,
      0 12px 25px rgba(69, 42, 31, 0.15);

    transform: translateX(-50%);
  }

  .testimonial-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .testimonial-card h3 {
    margin: 4px 0 6px;
    color: #302019;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
  }

  .testimonial-stars {
    margin-bottom: 8px;
    color: #e9ad00;
    font-size: 17px;
    letter-spacing: 2px;
  }

  .testimonial-quote {
    margin-bottom: 13px;
    color: #d91462;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 0.8;
  }

  .testimonial-card p {
    max-width: 275px;
    margin: 0 auto;
    color: #55443c;
    font-size: 14px;
    line-height: 1.65;
  }

  /* Dots */

  .testimonial-dots {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .testimonial-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d1c4bc;
    cursor: pointer;

    transition:
      width 0.3s ease,
      border-radius 0.3s ease,
      background-color 0.3s ease;
  }

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

  /* Arrows */

  .testimonial-arrow {
    top: 50%;
    z-index: 12;

    width: 44px;
    height: 44px;

    border: 1px solid #e0c9b9;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #bd7952;

    box-shadow: 0 9px 25px rgba(65, 40, 30, 0.09);

    transform: translateY(-50%);
  }

  .testimonial-prev {
    left: 12px;
  }

  .testimonial-next {
    right: 12px;
  }
}