/* ============================================ */
/* TESTIMONIALS — VERTICAL CHAIN SCROLL         */
/* ============================================ */

.testimonials-chain-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 50%, #f8fbff 100%);
}

/* Section Header */
.testimonials-chain-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.testimonials-chain-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(2, 93, 169, 0.08);
  color: var(--secondary, #025DA9);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.testimonials-chain-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--dark, #0f172a);
  line-height: 1.15;
  margin-bottom: 16px;
}

.testimonials-chain-header h2 span {
  background: linear-gradient(135deg, var(--primary, #EF8002), var(--secondary, #025DA9));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.testimonials-chain-header p {
  font-size: 17px;
  color: var(--text, #475569);
  line-height: 1.7;
}

/* Main Chain Layout */
.testimonials-chain-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 700px;
  position: relative;
}

/* Fade masks at top and bottom */
.testimonials-chain-wrapper::before,
.testimonials-chain-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 10;
  pointer-events: none;
}

.testimonials-chain-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, #f8fbff 0%, transparent 100%);
}

.testimonials-chain-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, #f8fbff 0%, transparent 100%);
}

/* Chain Column */
.chain-column {
  width: 380px;
  overflow: hidden;
  position: relative;
}

/* Scrolling Track */
.chain-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Column 1 — scrolls downward */
.chain-column.col-down .chain-track {
  animation: chainScrollDown 35s linear infinite;
}

/* Column 2 — scrolls upward */
.chain-column.col-up .chain-track {
  animation: chainScrollUp 40s linear infinite;
}

/* Column 3 — scrolls downward (slower) */
.chain-column.col-down-slow .chain-track {
  animation: chainScrollDown 45s linear infinite;
}

/* Pause on hover */
.chain-column:hover .chain-track {
  animation-play-state: paused;
}

@keyframes chainScrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes chainScrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* ============================================ */
/* TESTIMONIAL CARD                             */
/* ============================================ */

.tchain-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  flex-shrink: 0;
}

.tchain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--primary, #EF8002),
    var(--secondary, #025DA9));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tchain-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(2, 93, 169, 0.08);
  border-color: rgba(2, 93, 169, 0.15);
}

.tchain-card:hover::before {
  opacity: 1;
}

/* Quote Icon */
.tchain-quote {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(239, 128, 2, 0.1),
    rgba(2, 93, 169, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary, #025DA9);
  font-size: 16px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.tchain-card:hover .tchain-quote {
  opacity: 1;
}

/* Stars */
.tchain-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.tchain-stars i {
  color: #f59e0b;
  font-size: 13px;
}

/* Testimonial Text */
.tchain-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text, #475569);
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
}

/* Author Row */
.tchain-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tchain-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary, #EF8002), var(--secondary, #025DA9)) border-box;
  padding: 2px;
  flex-shrink: 0;
}

.tchain-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.tchain-author-info {
  display: flex;
  flex-direction: column;
}

.tchain-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark, #0f172a);
  line-height: 1.3;
}

.tchain-role {
  font-size: 13px;
  color: var(--secondary, #025DA9);
  font-weight: 500;
  opacity: 0.8;
}

/* ============================================ */
/* DECORATIVE ELEMENTS                          */
/* ============================================ */

.testimonials-chain-section .deco-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.testimonials-chain-section .deco-glow.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--primary, #EF8002);
  top: -100px;
  left: -150px;
}

.testimonials-chain-section .deco-glow.glow-2 {
  width: 350px;
  height: 350px;
  background: var(--secondary, #025DA9);
  bottom: -80px;
  right: -100px;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

@media (max-width: 1024px) {
  .testimonials-chain-wrapper {
    gap: 20px;
    height: 600px;
  }

  .chain-column {
    width: 320px;
  }

  /* Hide 3rd column on tablet */
  .chain-column:nth-child(3) {
    display: none;
  }
}

@media (max-width: 768px) {
  .testimonials-chain-section {
    padding: 60px 0;
  }

  .testimonials-chain-header {
    margin-bottom: 40px;
  }

  .testimonials-chain-wrapper {
    height: 500px;
    gap: 16px;
  }

  .chain-column {
    width: 280px;
  }

  .tchain-card {
    padding: 22px;
  }

  .tchain-text {
    font-size: 13.5px;
  }
}

@media (max-width: 576px) {
  .testimonials-chain-wrapper {
    gap: 12px;
  }

  .chain-column {
    width: calc(50% - 6px);
  }

  .tchain-card {
    padding: 18px;
    border-radius: 16px;
  }

  .tchain-avatar {
    width: 40px;
    height: 40px;
  }

  .tchain-name {
    font-size: 13px;
  }

  .tchain-role {
    font-size: 11px;
  }

  .tchain-text {
    font-size: 12.5px;
    margin-bottom: 14px;
  }

  .tchain-stars i {
    font-size: 11px;
  }

  .tchain-quote {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  /* Single column on very small screens */
  .testimonials-chain-wrapper {
    flex-direction: column;
    height: 400px;
    align-items: center;
  }

  .chain-column {
    width: 100%;
    max-width: 340px;
  }

  .chain-column:nth-child(2) {
    display: none;
  }
}
