/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Unbounded:wght@600&display=swap");

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --h1-font-size: 2.25rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
  }
}

/*=============== REUSABLE CSS CLASSES ===============*/

/*=============== TESTIMONIAL CARD ===============*/
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 1rem 0;
  background-color: rgb(255, 255, 255);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.testimonial__swiper {
  padding-bottom: 3rem;
  padding-top: 1rem;
  background-color: rgb(255, 255, 255);
  border-radius: 15px;
}

.testimonial__title {
  font-size: 30px;
  text-align: center;
  color: rgb(32, 32, 102);
}

.testimonial__card {
  width: 280px;
  min-height: 340px;
  background-color: rgb(10, 73, 116);
  box-shadow: 0 8px 16px hsla(265, 75%, 4%, 0.1);
   padding: 1rem 1.3rem 1rem;
  border-radius: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.testimonial__img {
  width: 100px;
  height: 100px;
  border-radius: 4rem;
  border: 4px solid var(--first-color);
  margin: 0 auto 0.5rem;
}

.testimonial__name {
  font-size: var(--h3-font-size);
  color: white;
}

.testimonial__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 0.6rem;
  color: white;
}

.testimonial__stars {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.testimonial__stars i {
  font-size: 1rem;
  color: var(--secondary);
}

.testimonial__number {
  font-size: var(--h3-font-size);
}

.testimony {
  text-align: center;
  margin-bottom: 1rem;
  max-width: 650px;
  color: rgb(36, 36, 100);
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial__description {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: white;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.testimonial__description::after{

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 2rem;

    pointer-events: none;

    background: linear-gradient(
    to bottom,
    rgba(20,110,180,0),
    #146eb4
);

}

/* Swiper class */
.testimonial .swiper-pagination-bullets {
  bottom: 1.8rem;
}

.testimonial .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

.testimonial .swiper-button-prev {
  left: calc(50% - 4rem);
}

.testimonial .swiper-button-next {
  right: calc(50% - 4rem);
}

.testimonial .swiper-button-prev::after,
.testimonial .swiper-button-next::after {
  content: "";
}

.testimonial :is(.swiper-button-prev, .swiper-button-next) {
  top: initial;
  bottom: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--first-color);
  color: var(--light);
  border-radius: 50%;
  font-size: 1.5rem;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: px) {
  .testimonial__title {
    font-size: 1.25rem;
  }
}

/*=============== 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: 1050px;
  }
  .testimonial__title {
    margin-bottom: 1rem;
  }
  .testimonial__card {
    width: 330px;
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
  }
  .testimonial__number {
    font-size: var(--normal-font-size);
  }
}
/*==================================
EMPTY TESTIMONIAL
==================================*/

.testimonial-empty,
.testimonial-loading {
  width: 100%;
  min-height: 10px; /* or whatever height you want */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.testimonial-empty p,
.testimonial-loading p {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin: 0;
}

.read-more-btn {
  margin-top: auto;

  align-self: center;

  background: none;

  border: none;

  color: white;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.read-more-btn:hover {
  color: var(--secondary);
}

/* review modal */

.review-modal {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.6);

  display: none;

  justify-content: center;

  align-items: center;

  padding: 2rem;

  z-index: 9999;

  backdrop-filter: blur(6px);
}

.review-modal.active {
  display: flex;
}

.review-modal-content {
  width: 100%;

  max-width: 700px;

  background: #fff;

  border-radius: 20px;

  padding: 2.5rem;

  position: relative;

  max-height: 85vh;

  overflow-y: auto;

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);

  animation: modalFade 0.35s ease;
}
.close-modal {
  position: absolute;

  right: 18px;

  top: 18px;

  width: 42px;

  height: 42px;

  border: none;

  border-radius: 50%;

  background: #f4f4f4;

  cursor: pointer;

  font-size: 1.7rem;

  transition: 0.3s;
}

.close-modal:hover {
  background: var(--secondary);

  color: #fff;
}

.modal-rating {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 0.5rem;

  margin-bottom: 1rem;
}

.modal-rating i {
  color: #f5b301;

  font-size: 1.3rem;
}

.modal-rating span {
  font-size: 1.1rem;

  font-weight: 700;

  color: var(--primary);
}
.review-modal-content h2 {
  text-align: center;

  margin-bottom: 0.5rem;

  color: var(--primary);
}

.modal-service {
  text-align: center;

  color: #777;

  margin-bottom: 2rem;
}

.modal-review {
  line-height: 2;

  color: #555;

  font-size: 1rem;
}

@keyframes modalFade {
  from {
    opacity: 0;

    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}
