/* ===============================
   GX9 TESTIMONIALS – COMPACT VIEW
================================ */

.gx9-testimonials {
  --accent-start: #6366f1;
  --accent-end: #8b5cf6;
  --dark: #1f2937;
  --muted: #6b7280;

  padding: 60px 20px;
  overflow: hidden;
  background-color: #f9fafb;

  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.gx9-testimonials * {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Container */
.gx9-container {
  max-width: 1100px;
  margin: auto;
}

/* Header */
.testimonial-header {
  text-align: center;
  margin-bottom: 40px;
}

.testimonial-header h2 {
  font-size: 38px;
  margin: 10px 0;
  color: var(--dark);
}

.testimonial-header p {
  color: var(--muted);
}

/* Gradient Tag */
.gx9-tag {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #b85cff, #4f8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===============================
   CAROUSEL
================================ */

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

/* ===============================
   TESTIMONIAL CARD
================================ */

.testimonial-card {
  min-width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid #eef2f7;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(99,102,241,0.16);
}

/* Logo */
.gx9-logo {
  max-height: 32px;
  margin-bottom: 16px;
  opacity: 0.85;
}

/* Text */
.testimonial-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--dark);
}

.testimonial-card h4 {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-card span {
  font-size: 12px;
  color: var(--muted);
}

/* ===============================
   ARROWS – PERFECTLY CENTERED
================================ */

.gx9-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Left / Right positions */
.prev {
  left: -22px;
}

.next {
  right: -22px;
}

/* ===============================
   DOTS
================================ */

.dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.dots span {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.dots .active {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

/* ===============================
   ANIMATION
================================ */

.animate {
  opacity: 0;
  transform: translateY(20px);
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.6s ease;
}

/* ===============================
   MOBILE FIXES
================================ */

@media (max-width: 600px) {
  .testimonial-header h2 {
    font-size: 28px;
  }

  .gx9-testimonials {
    padding: 45px 16px;
  }

  /* Keep arrows centered & inside */
  .prev {
    left: -6px;
  }

  .next {
    right: -6px;
  }
}
