/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Unbounded:wght@600&display=swap");

/*=============== REUSABLE CSS CLASSES ===============*/
.swiper__container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== TESTIMONIAL CARD ===============*/
.testimonial {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff 0%, #66ff66c0 30%, #00ff0070 50%, #66ff66c2 70%, #ffffff 100%);
}

.testimonial__swiper {
  padding-bottom: 7rem;
}

.testimonial__title {
  font-size: var(--h1-font-size);
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial__card {
  width: 280px;
  background-color: var(--container-color);
  box-shadow: 0 8px 16px hsla(265, 75%, 4%, .1);
  padding: 2rem 1.5rem 3rem;
  border-radius: 1.5rem;
  text-align: center;
}

.testimonial__img {
  width: 200px;
  border-radius: 4rem;
  border: 4px solid var(--first-color);
  margin: 0 auto .5rem;
}

.testimonial__name {
  font-size: var(--h3-font-size);
  margin-bottom: 2rem;
}

.testimonial__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: .75rem;
}

.testimonial__stars {
  display: flex;
  align-items: center;
  column-gap: .25rem;
}

.testimonial__stars i {
  font-size: 1rem;
  color: var(--second-color);
}

.testimonial__number {
  font-size: var(--h3-font-size);
}

/* Swiper class */
.testimonial .swiper-pagination-bullets {
  bottom: 4rem;
}

.testimonial .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity .4s;
}

.testimonial .swiper-button-prev {
  left: calc(50% - 3rem);
}

.testimonial .swiper-button-next {
  right: calc(50% - 3rem);
}

.testimonial .swiper-button-prev::after, 
.testimonial .swiper-button-next::after {
  content: "";
}

.testimonial :is(.swiper-button-prev, .swiper-button-next) {
  top: initial;
  bottom: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  border-radius: 50%;
  font-size: 1.5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 300px) {
  .testimonial__title {
    font-size: 1.25rem;
  }
  .testimonial__card {
    width: 240px;
    padding-inline: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 640px) {
  .testimonial__swiper {
    max-width: 640px;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .testimonial__swiper {
    max-width: 760px;
  }
  .testimonial__title {
    margin-bottom: 4rem;
  }
  .testimonial__card {
    width: 330px;
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
  }
  .testimonial__number {
    font-size: var(--normal-font-size);
  }
}
