/* Testimonials Carousel — Our Customers Vouch section */

.c-testimonials {
  padding: 64px 0 80px;
  background: #ffffff;
  overflow: visible;
}

.c-testimonials__heading {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #012c52;
  margin: 0 0 56px;
  padding: 0 20px;
  line-height: 1.3;
  font-family: var(--font-family, sans-serif);
}

/* ---- Stage ---- */
.c-testimonials__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}

/* ---- Track wrapper ---- */
.c-testimonials__track-wrapper {
  overflow: visible;
  width: 100%;
  position: relative;
}

.c-testimonials__track {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  position: relative;
  overflow: visible;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  width: max-content;
}

/* ---- Individual slide ---- */
.c-testimonials__item {
  flex: 0 0 auto;
  width: 420px;
  margin: 0 -36px;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(0.85) translateY(16px);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.c-testimonials__item.is-active {
  transform: scale(1) translateY(0);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.c-testimonials__item.is-prev,
.c-testimonials__item.is-next {
  pointer-events: auto;
  cursor: pointer;
}

.c-testimonials__item.is-hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

/* ---- Card ---- */
.c-testimonials__card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 92px 28px 28px;
  margin-top: 130px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 380px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition: box-shadow 0.8s ease, border-color 0.8s ease;
}

/* Active card: border/shadow changes smoothly without layout shifts */
.c-testimonials__item.is-active .c-testimonials__card {
  border: 1px solid transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ---- Photo-wrap — always absolute, anchored at top of item ---- */
.c-testimonials__photo-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 260px;
  height: 205px;
}

/* ---- Gradient circle — hidden on side cards via opacity ---- */
.c-testimonials__arc {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, #009be3 0%, #00b341 100%);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
}

.c-testimonials__item.is-active .c-testimonials__arc {
  opacity: 1;
  top: 34px;
}

/* ---- Photo ---- */
.c-testimonials__photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 94px; /* Center of arc area */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 3px solid #fff;
  background: #d0d5de;
}

.c-testimonials__item.is-active .c-testimonials__photo {
  width: 150px;
  height: 150px;
  top: 55px;
  border-width: 4px;
}

.c-testimonials__photo--placeholder {
  background: #b0b8c8;
}

/* ---- Quote badge ---- */
.c-testimonials__quote-badge {
  position: absolute;
  top: 131px;
  left: calc(50% + 22px);
  width: 26px;
  height: 26px;
  background: #e91e8c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  z-index: 3;
  font-family: Georgia, serif;
  padding-top: 6px;
  box-sizing: border-box;
}

.c-testimonials__item.is-active .c-testimonials__quote-badge {
  top: 170px;
  left: calc(50% + 34px);
  width: 30px;
  height: 30px;
  font-size: 18px;
  padding-top: 8px;
}

/* ---- Text content ---- */
.c-testimonials__name {
  font-size: 17px;
  font-weight: 700;
  color: #012c52;
  margin: 0 0 4px;
  line-height: 1.3;
  font-family: MMCBold, var(--font-family, sans-serif);
}

.c-testimonials__item.is-active .c-testimonials__name {
  font-size: 24px;
  line-height: 30px;
  color: #2c3e50;
  font-family: MMCBold, var(--font-family, sans-serif);
  margin-bottom: 6px;
}

.c-testimonials__designation {
  font-size: 13px;
  color: #718096;
  margin: 0 0 14px;
  line-height: 1.4;
  font-family: var(--font-family, sans-serif);
}

.c-testimonials__item.is-active .c-testimonials__designation {
  font-size: 16px;
  line-height: 24px;
  color: #727B83;
  font-family: var(--font-family, sans-serif);
  margin-bottom: 0;
  padding-bottom: 20px;
}

.c-testimonials__text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin: 0 0 20px;
  font-family: var(--font-family, sans-serif);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-testimonials__item.is-active .c-testimonials__text {
  font-size: 15px;
  -webkit-line-clamp: 6;
  text-align: center;
  padding-top: 18px;
  margin-top: 6px;
}

/* ---- Company logo ---- */
.c-testimonials__company {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  text-align: center;
}

/* Use fixed height (not max-height) — SVGs ignore max-height constraints */
.c-testimonials__company-logo {
  display: block;
  margin: 0 auto;
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(20%);
}

.c-testimonials__item.is-active .c-testimonials__company-logo {
  filter: none;
  height: 44px;
  max-width: 140px;
}

/* ---- Nav buttons ---- */
.c-testimonials__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #003865;
  margin-left: 3px;
  border: 1px solid #003865;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.c-testimonials__nav--prev { left: 24px; }
.c-testimonials__nav--next { right: 24px; }

.c-testimonials__nav-icon {
  width: 12px;
  height: 12px;
  display: block;
  filter: invert(1);
  transition: transform 0.2s ease;
}

.c-testimonials__nav-icon--next {
  transform: rotate(180deg);
}

/* ---- CTA action ---- */
.c-testimonials__action {
  text-align: center;
  margin-top: 48px;
}

.c-testimonials__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #008cd0 0%, #00ac69 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 140, 208, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ---- Pagination Dots (hidden on desktop) ---- */
.c-testimonials__dots {
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .c-testimonials__stage { padding: 0 48px; }
  .c-testimonials__item {
    width: 300px;
    margin: 0 -20px;
  }
  .c-testimonials__nav--prev { left: 16px; }
  .c-testimonials__nav--next { right: 16px; }
}

@media (max-width: 600px) {
  .c-testimonials {
    padding-bottom: 90px;
    position: relative;
  }
  
  .c-testimonials__heading {
    font-size: 22px;
    margin-bottom: 24px;
    line-height: 28px;
    padding: 0 16px;
  }

  .c-testimonials__stage {
    padding: 0;
  }

  .c-testimonials__track-wrapper {
    overflow: hidden; /* Hide side cards entirely */
  }

  .c-testimonials__item {
    width: calc(100vw - 32px);
    margin: 0;
    transform: scale(0.85) translateY(12px);
  }

  .c-testimonials__item.is-active {
    transform: scale(1) translateY(0);
  }

  /* ---- Card dimensions on mobile ---- */
  .c-testimonials__card {
    margin-top: 100px;
    padding: 70px 20px 20px;
    min-height: auto; /* let it adapt to content size */
  }

  /* ---- Circle/Avatar dimensions on mobile ---- */
  .c-testimonials__photo-wrap {
    width: 200px;
    height: 160px;
  }

  .c-testimonials__arc {
    width: 200px;
    height: 200px;
  }

  .c-testimonials__photo {
    width: 50px;
    height: 50px;
    top: 75px; /* Center of circle */
  }

  .c-testimonials__item.is-active .c-testimonials__photo {
    width: 110px;
    height: 110px;
    top: 45px;
  }

  /* ---- Quote badge on mobile ---- */
  .c-testimonials__quote-badge {
    top: 85px;
    left: calc(50% + 15px);
    width: 20px;
    height: 20px;
    font-size: 12px;
    padding-top: 4px;
  }

  .c-testimonials__item.is-active .c-testimonials__quote-badge {
    top: 125px;
    left: calc(50% + 35px);
    width: 24px;
    height: 24px;
    font-size: 14px;
    padding-top: 5px;
  }

  /* ---- Pagination Dots on mobile ---- */
  .c-testimonials__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 24px;
    left: 20px;
    z-index: 5;
  }

  .c-testimonials__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #003865;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    outline: none;
  }

  .c-testimonials__dot.is-active {
    background-color: #003865;
    transform: scale(1.2);
  }

  /* ---- Navigation Arrows on mobile ---- */
  .c-testimonials__nav {
    position: absolute;
    top: auto !important;
    bottom: 14px;
    transform: none !important;
    width: 30px !important;
    height: 30px !important;
    background-color: #003865 !important;
    border: 1px solid #003865 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    outline: none !important;
  }

  .c-testimonials__nav--prev {
    left: auto !important;
    right: 60px !important;
  }

  .c-testimonials__nav--next {
    right: 20px !important;
  }

  .c-testimonials__nav-icon {
    width: 10px !important;
    height: 10px !important;
    filter: invert(1) !important;
  }
}
