@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500&display=swap");

* {
  font-family: "Open Sans", sans-serif;
}

.container {
  height: 110vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--body);
  max-width: 100vw;
}

.testimonial {
  position: relative;
  max-width: 900px;
  height: 100%;
  width: 100%;
  padding: 50px 0;
  overflow: hidden;
  background-color: #fffae5;
  border-radius: 30px;
  box-shadow: 7px 7px rgb(0, 0, 0);
  border: 2px solid black;
}

.testimonial .image {
  height: 170px;
  width: 170px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  row-gap: 30px;
  height: 100%;
  width: 100%;
}

.slide p {
  text-align: center;
  padding: 0 20px; /* Adjusted padding for smaller screens */
  font-size: 15px;
  font-weight: 400;
  color: #333;
}

.slide .quote-icon {
  font-size: 30px;
  color: #000000;
}

.slide .details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details .name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.details .job {
  font-size: 12px;
  font-weight: 400; /* Removed !important */
  color: #333;
}

/* swiper button css */
.nav-btn {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  transform: translateY(30px);
  background-color: rgba(255, 179, 0, 0.985);
  transition: 0.2s;
}

.nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.nav-btn::after,
.nav-btn::before {
  font-size: 20px;
  color: #fff;
}

.swiper-pagination-bullet {
  background-color: rgba(0, 0, 0, 0.8);
}

.swiper-pagination-bullet-active {
  background-color: #000000;
}

.container > .testimonial > h1 {
  color: black;
  font-size: 50px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  text-shadow: 1px 2px 5px rgb(255, 255, 255);
  text-transform: capitalize;
  text-align: center;
  padding-bottom: 30px;
}

@media screen and (max-width: 768px) {
  .testimonial{
    height: 90%;
  }
  .slide p {
    font-size: 14px;
    padding: 0 10px; /* Adjusted padding for smaller screens */
  }

  .testimonial .image {
    height: 170px;
    width: 170px;
    object-fit: cover;
    border-radius: 50%;
  }

  .nav-btn {
    display: none;
  }

  .container > .testimonial > h1 {
    font-size: 60px;
  }
}
