* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.testimonial {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: #3d5a80; */
  color: #3d5a80;
}

.testimonial-slide {
  padding: 40px 20px;
}

.teamowner {
  background-color: #748de1f1;
  border-radius: 50px;
  color: black;
}

.margin {
  margin-left: 10px;
}

.testimonial_box-top {
  background-color: #fffafa;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid gray;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  box-shadow: 5px 5px 20px rgba(152, 193, 217, 0.493);
}

.testimonial_box-icon {
  padding: 10px 0;
}

.testimonial_box-icon i {
  font-size: 25px;
  color: #14213d;
}

.testimonial_box-text {
  padding: 10px 0;
}

.testimonial_box-text p {
  color: #293241;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 0;
}

.testimonial_box-img {
  /* padding: 20px 0 10px; */
  display: flex;
  justify-content: center;
}

.testimonial_box-img img {
  width: 130px;
  height: 130px;
  border-radius: 10px;
  border: 2px solid #e5e5e5;
}

.testimonial_box-name {
  padding-top: 10px;
}

.testimonial_box-name h4 {
  font-size: 20px;
  line-height: 25px;
  color: #293241;
  margin-bottom: 0;
}

.testimonial_box-job p {
  color: #293241;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 20px;
  font-weight: 300;
  margin-bottom: 0;
}




.testimonial1_box-top {
  position: relative;
  overflow: hidden;
}

.testimonial-slide1 {
  padding: 40px 20px;
}




.testimonial1_box-img img {
  width: 65%;
  display: block;
  transition: transform 0.5s ease;
}

.testimonial_box-name1 h4 {
  font-size: 18px;
  line-height: 25px;
  color: #fff;
  margin-bottom: 0;
}

.testimonial_box-job1 p {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 20px;
  font-weight: 300;
  margin-bottom: 0;
}


/* overlay background (appears on hover) */
.overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* gap: 10px; */
  text-align: center;
  transition: top 0.5s ease;

  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* overlay text (slides from bottom) */
.overlay-text {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 65%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  z-index: 2;
  transition: bottom 0.5s ease;
}

/* hover effects */
.testimonial1_box-top:hover .overlay-bg {
  opacity: 1;
}

.testimonial1_box-top:hover .overlay-text {
  bottom: -70px;
}

.testimonial1_box-top:hover .testimonial_box-img img {
  transform: scale(1.05);
}

/* social links style */
.social-links a {
  color: #fff;
  margin: 0 5px;
  font-size: 18px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ffdd57;
}