.review-container {
  width: 100vw;

  height: 80vh;
  background-color: #014d4d;
  margin: -40px auto; /* centers container horizontally */

  display: flex; /* flex instead of block */
  justify-content: center; /* horizontal center */
  align-items: center; /* vertical center */
  flex-direction: column;

  padding: 40px;
  box-sizing: border-box;
  text-align: center;
}

.review-section-heading {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.review-logo-img {
  max-width: 200px;
  margin-bottom: 2rem;
  height: 30px;
}

.review-slider-container {
  width: 95%;
  max-width: 1000px;
  overflow: hidden;
  position: relative;

  padding: 0 20px;
}

.review-slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 40px;
}

.review-card {
  background-color: #ffffff;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid #e9ecef;
  min-height: 250px;
  position: relative;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../bg-2.jpg");
  opacity: 0.8;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  z-index: 0;
}

.review-quote-marks {
  font-family: "Playfair Display", serif;
  font-size: 5rem;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.review-text {
  color: #2a2929;
  font-size: 1rem;
  line-height: 1.6;

  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.reviewer-info {
  display: flex;
  align-items: center;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.reviewer-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 2px solid #f8f9fa;
}

.review-author-name {
  font-weight: 400;
  color: #000000;
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
}

.review-dots-container {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.review-dot {
  height: 14px;
  width: 14px;
  margin: 0 6px;
  background-color: #d1d1d1;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.review-dot.active {
  background-color: #6c757d;
}

@media (max-width: 768px) {
  .review-slides {
    grid-auto-columns: 100%;
  }

  .review-card {
    padding: 30px;
    min-height: 220px;
  }

  .review-section-heading {
    font-size: 2rem;
  }
}

/*=================================
Responsive design
=====================================*/

/* =============== 1200px and below =============== */
@media (max-width: 1200px) {
  .review-container {
    height: auto;
    padding: 30px;
    margin: 0 auto;
  }

  .review-card {
    padding: 40px;
  }

  .review-section-heading {
    font-size: 2.25rem;
  }
}

/* =============== 1000px and below =============== */
@media (max-width: 1000px) {
  .review-container {
    padding: 25px;
  }

  .review-card {
    padding: 35px;
  }

  .review-section-heading {
    font-size: 2.1rem;
  }

  .review-text {
    font-size: 1.05rem;
  }
}

/* =============== 800px and below =============== */
@media (max-width: 800px) {
  .review-container {
    height: auto;
    padding: 20px;
  }

  .review-card {
    padding: 30px;
    min-height: 200px;
  }

  .review-section-heading {
    font-size: 1.7rem;
  }

  .review-text {
    font-size: 1rem;
  }

  .reviewer-img {
    width: 55px;
    height: 55px;
    margin-right: 15px;
  }
}

/* =============== 600px and below =============== */
@media (max-width: 600px) {
  .review-slider-container {
    width: 100%;
    padding: 0 10px;
  }

  .review-card {
    padding: 25px;
    border-radius: 12px;
  }

  .review-section-heading {
    font-size: 1.6rem;
  }

  .review-text {
    font-size: 0.95rem;
  }

  .reviewer-img {
    width: 50px;
    height: 50px;
  }

  .review-dot {
    height: 12px;
    width: 12px;
  }
}

/* =============== 400px and below =============== */
@media (max-width: 400px) {
  .review-card {
    padding: 20px;
  }

  .review-section-heading {
    font-size: 1.5rem;
  }

  .review-text {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .review-author-name {
    font-size: 0.85rem;
  }

  .reviewer-img {
    width: 45px;
    height: 45px;
  }
}

/* =============== 320px and below =============== */
@media (max-width: 320px) {
  .review-card {
    padding: 15px;
    min-height: auto;
  }

  .review-section-heading {
    font-size: 1.3rem;
  }

  .review-text {
    font-size: 0.9rem;
  }

  .review-author-name {
    font-size: 0.8rem;
  }

  .reviewer-img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }

  .review-dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
  }
}
