:root {
  --color-4: #ff7668;
  --color-3: #285f86;
  --color: white;
  --color-2: #333;
}

h2 {
  color: var(--color-4);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 3em;
  font-weight: 700;
  line-height: 1.2em;
}

h3 {
  color: var(--color-3);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.2em;
}

.body {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  line-height: 1.75em;
}

.lasik-benefits-section-jm {
  min-height: 90vh;
  background-color: #285f86;
  padding-top: 5%;
  padding-bottom: 5%;
  display: flex;
  position: relative;
}

.pink-strip {
  width: 10%;
  background-color: #ff7668;
  position: absolute;
  top: 0%;
  bottom: 0%;
  left: auto;
  right: 0%;
}

.lasik-benefits-wrapper {
  z-index: 1;
  width: 90%;
  background-color: rgba(40, 95, 134, 0);
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  position: relative;
}

.benefit-photo-div {
  width: 35%;
  object-fit: cover;
  overflow: hidden;
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-text-wrap {
  width: 65%;
  background-color: var(--color);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 50px;
  display: flex;
  /* position: absolute; */
  position: relative;
  top: 8%;
  bottom: 8%;
  left: auto;
  right: 0%;
}

.list-item-jm {
  align-items: flex-start;
  margin-bottom: 15px;
  padding-left: 20px;
  display: flex;
}

.image-2 {
  width: 30px;
  margin-right: 10px;
}

.bold-pink {
  color: var(--color-4);
  font-weight: 700;
}

.cat-h3 {
  text-align: center;
  margin-top: 25px;
  color: var(--color);
}

.cat-h3.top {
  margin-top: 25px;
}

.greviews img {
width:100px;
margin-bottom:5px;
}


@media screen and (max-width: 991px) {
  h2 {
    font-size: 2.5em;
  }

  .lasik-benefits-section-jm {
    min-height: 75vh;
    padding-top: 0%;
    padding-bottom: 0%;
  }

  .lasik-benefits-wrapper {
    width: 100%;
    flex-direction: column;
  }

  .benefit-photo-div {
    width: 100%;
    max-height: 450px;
    position: static;
    top: 0%;
    bottom: 40%;
    left: 0%;
    right: auto;
  }

  .benefit-text-wrap {
    width: 100%;
    padding: 5% 5% 3%;
    position: static;
    top: auto;
    bottom: 0%;
    left: auto;
    right: 0%;
  }
}

@media screen and (max-width: 767px) {

.greviews img {
margin:0 auto;
display:block;
}

  h2, h3 {
    font-size: 2em;
  }

  .lasik-benefits-section-jm {
    min-height: 0;
  }

  .benefit-photo-div {
    max-height: 350px;
  }
}

@media screen and (max-width: 479px) {
  .list-item-jm {
    flex-direction: column;
    padding-left: 0;
  }

  .image-2 {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  font-family: Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.testimonial-stars .star {
  color: #FFD700;
  font-size: 2rem;
  margin: 0 0.25rem;
}

.testimonial-content {
  background-color: #f4f4f4;
  border-radius: 10px;
  padding: 1rem;
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: bold;
  color: #333;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-btn {
  background-color: var(--color-4);
  color: var(--color);
  border: 1px solid var(--color-4);
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
  border-radius: 5px;
}

.carousel-btn:hover {
  background-color: #285f86;
  color:var(--color);
  border: 1px solid #285f86;
}

.testimonial-item {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.testimonial-item.active {
  opacity: 1;
  position: relative;
}