* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef4fb;
}

/* ---------- Testimonials Section ---------- */

.testimonials-section {
  padding: 70px 20px;
  background: #eef4fb;
}

.testimonials-container {
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.testimonials-title {
  color: #16357a;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* ---------- Divider ---------- */

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 35px;
}

.title-divider span {
  height: 2px;
  background: #c7d0dc;
}

.title-divider span.line-left,
.title-divider span.line-right {
  width: 90px;
}

.title-divider span.line-center {
  width: 60px;
  background: #2e8b6f;
  height: 3px;
}

/* ---------- Slider ---------- */

.testimonial-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  padding: 0 10px;
}

/* ---------- Testimonial Card ---------- */

.testimonial-card {
  width: 100%;
  max-width: 100%;

  background: #ffffff;
  border-radius: 10px;

  padding: 35px 30px;

  box-shadow: 0 10px 30px rgba(20, 40, 80, 0.08);

  /* Important */
  height: auto;
  min-height: 220px;
  overflow: visible;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ---------- Testimonial Text ---------- */

.testimonial-card p {
  width: 100%;
  max-width: 100%;

  margin: 0 0 25px;

  font-size: 18px;
  line-height: 1.6;
  text-align: center;

  /* Important for wrapping */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* ---------- Name ---------- */

.testimonial-card h4 {
  width: 100%;
  margin: 0;

  font-size: 20px;
  line-height: 1.4;
  text-align: center;

  color: #24569a;

  white-space: normal;
}

/* ---------- Arrows ---------- */

.testimonial-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
}

.arrow-btn {
  background: none;
  border: none;
  cursor: pointer;

  color: #16357a;
  font-size: 1.3rem;
  line-height: 1;

  padding: 4px 10px;

  transition: color 0.2s ease, transform 0.2s ease;
}

.arrow-btn:hover {
  color: #2e8b6f;
  transform: scale(1.15);
}

/* ---------- Dots ---------- */

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.testimonial-dots span {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: #c7d0dc;

  cursor: pointer;

  transition: background 0.2s ease;
}

.testimonial-dots span.active {
  background: #16357a;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .testimonials-section {
    padding: 50px 10px;
  }

  .testimonials-container {
    width: 100%;
    max-width: 500px;
  }

  .testimonial-slide {
    padding: 0 5px;
  }

  .testimonial-card {
    width: 100%;
    max-width: 100%;

    padding: 30px 20px;

    min-height: 220px;
    height: auto;
  }

  .testimonial-card p {
    width: 100%;
    max-width: 100%;

    font-size: 16px;
    line-height: 1.6;

    margin-bottom: 20px;

    white-space: normal;
    overflow-wrap: break-word;
  }

  .testimonial-card h4 {
    width: 100%;
    font-size: 18px;
    line-height: 1.4;
  }
}