/* Testimonials — Figma 5904:846
   Timer tab + horizontal paper-scroll slider
   ========================================================= */

.testimonialsSection {
  --test-title-fs: clamp(28px, calc(28px + 20 * ((100vw - 1200px) / 720)), 48px);
  --test-tab-h: clamp(44px, calc(44px + 10 * ((100vw - 1200px) / 720)), 54px);
  --test-tab-fs: clamp(13px, calc(13px + 3 * ((100vw - 1200px) / 720)), 16px);
  --test-tab-first-w: clamp(160px, calc(160px + 82 * ((100vw - 1200px) / 720)), 242px);
  --test-card-min-h: clamp(320px, calc(320px + 43 * ((100vw - 1200px) / 720)), 363px);
  --test-photo-w: clamp(180px, calc(180px + 67 * ((100vw - 1200px) / 720)), 247px);
  --test-photo-h: clamp(176px, calc(176px + 65 * ((100vw - 1200px) / 720)), 241px);
  --test-panel-pad-x: clamp(16px, calc(16px + 9 * ((100vw - 1200px) / 720)), 25px);
  --test-panel-pad-y: clamp(20px, calc(20px + 9 * ((100vw - 1200px) / 720)), 29px);
  --test-col-gap: clamp(16px, calc(16px + 4 * ((100vw - 1200px) / 720)), 20px);
  --test-quote-gap: clamp(16px, calc(16px + 9 * ((100vw - 1200px) / 720)), 25px);
  --test-quote-offset: clamp(12px, calc(12px + 16 * ((100vw - 1200px) / 720)), 28px);
  --tab-slide-ms: 7000ms;
  --tab-scroll-ms: 850ms;

  padding-block: clamp(32px, calc(32px + 8 * ((100vw - 1200px) / 720)), 40px);
}

.testimonialsTitle {
  font-family: var(--font-display);
  font-size: var(--test-title-fs);
  line-height: 1.3;
  color: var(--color-power-red);
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 25px var(--color-white);
  margin-bottom: clamp(36px, calc(36px + 24 * ((100vw - 1200px) / 720)), 60px);
}

.testimonialsWrap {
  max-width: 1142px;
  margin-inline: auto;
}

.testimonialsStack {
  display: flex;
  flex-direction: column;
}

.testimonialsTabs {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.testimonialsTabs::-webkit-scrollbar {
  display: none;
}

.testimonialsTab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: var(--test-tab-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(16px, 2vw, 40px);
  background: rgba(88, 89, 91, 0.05);
  color: var(--color-cool-gray);
  font-weight: 300;
  font-size: var(--test-tab-fs);
  line-height: normal;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background var(--transition), color var(--transition);
}

.testimonialsTab:first-child {
  flex: 0 0 var(--test-tab-first-w);
}

.testimonialsTab.isActive {
  background: var(--color-white);
  color: var(--color-power-red);
  font-weight: 600;
}

/* Paper-scroll viewport */
.testimonialsPanels {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  min-height: var(--test-card-min-h);
}

.testimonialsPanel {
  display: flex;
  gap: var(--test-col-gap);
  align-items: flex-start;
  padding: var(--test-panel-pad-y) var(--test-panel-pad-x);
  min-height: var(--test-card-min-h);
  box-sizing: border-box;
}

.testimonialsProfile {
  flex: 0 0 var(--test-photo-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonialsPhoto {
  position: relative;
  width: var(--test-photo-w);
  height: var(--test-photo-h);
  border: 2px solid var(--color-white);
  box-shadow: var(--shadow-photo);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonialsPhoto img {
  position: absolute;
  max-width: none;
  object-fit: cover;
}

/* Figma 5920:805 portrait crops */
.testimonialsPhoto--srihari img {
  width: 150.11%;
  height: 142.17%;
  left: -24.85%;
  top: -38.89%;
}

.testimonialsPhoto--shrushti img {
  inset: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
}

.testimonialsPhoto--fiza img {
  width: 138.82%;
  height: 189.7%;
  left: -19.41%;
  top: -71.37%;
}

.testimonialsPhoto--chirag img {
  width: 158.3%;
  height: 216.32%;
  left: -29.15%;
  top: -61.24%;
}

.testimonialsMeta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--color-power-red);
  text-shadow: 0 0 25px var(--color-white);
  text-transform: uppercase;
}

.testimonialsName {
  font-weight: 600;
  font-size: clamp(14px, calc(14px + 2 * ((100vw - 1200px) / 720)), 16px);
  line-height: 1.3;
}

.testimonialsBatch {
  font-weight: 400;
  font-size: clamp(12px, calc(12px + 2 * ((100vw - 1200px) / 720)), 14px);
  line-height: 1.3;
}

.testimonialsQuote {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--test-quote-gap);
  padding-top: var(--test-quote-offset);
}

.testimonialsQuoteIcon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  overflow: hidden;
}

.testimonialsQuoteIcon img {
  width: 100%;
  height: 100%;
  display: block;
}

.testimonialsQuoteText {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonialsHeadline {
  font-weight: 400;
  font-size: clamp(14px, calc(14px + 2 * ((100vw - 1200px) / 720)), 16px);
  line-height: 1.8;
  color: var(--color-black);
}

.testimonialsBody {
  font-weight: 300;
  font-size: clamp(13px, calc(13px + 1 * ((100vw - 1200px) / 720)), 14px);
  line-height: 1.8;
  color: var(--color-black);
}

@media (max-width: 980px) {
  .testimonialsPanel {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonialsPanels {
    min-height: 0;
  }

  .testimonialsQuote {
    padding-top: 0;
    width: 100%;
  }

  .testimonialsProfile {
    flex: none;
    width: min(var(--test-photo-w), 220px);
  }
}

@media (max-width: 768px) {
  .testimonialsSection {
    --test-tab-h: 48px;
    --test-tab-fs: 14px;
    --tab-scroll-ms: 700ms;
  }

  .testimonialsStack {
    position: relative;
  }

  .testimonialsStack::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: var(--test-tab-h);
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--color-white) 75%);
    pointer-events: none;
    z-index: 2;
  }

  .testimonialsTab,
  .testimonialsTab:first-child {
    flex: 0 0 auto;
    min-width: max-content;
    padding-inline: 20px;
  }

  .testimonialsPanel {
    gap: 24px;
  }

  .testimonialsProfile {
    width: min(200px, 58vw);
  }
}

@media (max-width: 480px) {
  .testimonialsTitle {
    font-size: 28px;
  }

  .testimonialsTab {
    padding-inline: 16px;
    font-size: 13px;
  }
}

