.container-testimonials {
  width: 100%;
  min-height: 400px;
  margin: 0 auto;
  padding: 2% 0;
  color: #fff;
  background: #e7e7e7;
}

.container-testimonials h2 {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #161c28;
  position: relative;
  z-index: 1;
  background-color: #f6b800;
  width: fit-content;
  padding: 0 10px;
  margin: 20px auto;
}

.container-testimonials::before {
  content: "";
  height: 1px;
  width: 30%;
  display: block;
  position: relative;
  top: 2.8rem;
  background-color: #161c28;
  margin: 0 auto;
  z-index: 1;
}

.container-testimonials .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4%;
}

.container-testimonials .testimonial-item {
  padding: 20px;
  border-radius: 10px;
  max-width: 410px;
  text-align: left;
  background-color: #20a09f;
}

.container-testimonials .testimonial-up {
  display: flex;
  align-items: center;
  gap: 10px;
}

.container-testimonials .testimonial-list h3 {
  color: #f6b800;
  font-size: 20px;
}

.container-testimonials .testimonial-down {
  margin-top: 6%;
}

/* breakpoints ================================== */
@media (max-width: 1070px) {
  .container-testimonials .testimonial-list {
    display: flex;
    justify-content: flex-start;
  }
}

@media (min-width: 320px) and (max-width: 430px) {
  .container-testimonials .testimonial-list {
    justify-content: center;
    row-gap: 1rem;
    padding: 10px;
  }

  .container-testimonials::before {
    width: 90%;
  }
}

@media (min-width: 1024px) {
  .container-testimonials .testimonial-list {
    column-gap: 1.5rem;
    row-gap: 1rem;
  }

  .container-testimonials .testimonial-down p {
    line-height: 33px;
  }
}

@media (min-width: 460px) and (max-width: 1023px) {
  .container-testimonials {
    padding-left: 5px;
    padding-right: 5px;
  }
  .container-testimonials .testimonial-item {
    max-width: 48%;
  }

  .container-testimonials .testimonial-list {
    row-gap: 1rem;
    column-gap: 0.8rem;
  }
}
