/* --- Testimonial Section Redesign --- */

.testimonial-redesign {
  /* background-color: #f1f5f9; */
  overflow: hidden;
}

.testimonial-heading-box {
  padding-right: 30px;
}

.testimonial-heading-box .sub-title {
  color: #4f46e5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.testimonial-heading-box p {
  color: #64748b;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px;
}

/* Scrollable Grid Container */
.testimonial-grid-container {
  height: 600px;
  position: relative;
  overflow: hidden;
  background: aliceblue;
  border-radius: 5px;
  border: 1px solid aliceblue;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonial-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Vertical Scrolling Animations */
.anim-up {
  animation: slide-up 60s linear infinite;
}

.anim-down {
  animation: slide-down 60s linear infinite;
}

@keyframes slide-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-33.33%);
  }
}

@keyframes slide-down {
  0% {
    transform: translateY(-33.33%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Card Styling */
.testimonial-card-v2 {
  background: #ffffff;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.testimonial-card-v2:hover {
  transform: scale(1.02);
}

.testimonial-card-v2.dark-card {
  background: #1f2937;
  color: #ffffff !important;
}

.testimonial-card-v2.dark-card h6,
.testimonial-card-v2.dark-card p {
  color: #ffffff !important;
}

.testimonial-card-v2 p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.author-meta-v2 {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-meta-v2 img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info-v2 h6 {
  margin-bottom: 2px;
  font-weight: 700;
}

.author-info-v2 small {
  color: #94a3b8;
  font-weight: 500;
}

.dark-card .author-info-v2 small {
  color: #9ca3af;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .testimonial-grid-container {
    height: 500px;
  }
}

@media (max-width: 767px) {
  .testimonial-track {
    grid-template-columns: 1fr;
  }
  .testimonial-column {
    animation-duration: 30s;
  }
}
