/* Reviews Page Specific Styles */

body {
  margin: 0;
  font-family: "Lexend", "Poppins", sans-serif;
  background: var(--cloud);
  color: var(--text);
}

.custom-container {
  width: 1176px;
  margin: 0 auto;
}

.site-footer {
  margin-top: 0;
}

/* Four Sections */

.review-title {
  top: 45px;
  font-family: "Lexend";
  font-weight: 700;
  font-size: 40px;
  text-align: center;
  color: #353a58;
  position: relative;
}

/* .review-card-container {
  width: 1176px;
  height: auto;
  gap: 20px;
  opacity: 1;
  border-radius: 16px;
  padding: 30px;
  color: #ffffff;
  background: #fff;
  position: relative;
  margin: 0 auto;
  margin-top: 60px;
} */

.review-card-image {
  width: 1116px;
  height: 320px;
  opacity: 1;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.review-card-title {
  width: 1116px;
  height: 30px;
  opacity: 1;
  font-family: "Lexend";
  font-weight: 700;
  font-size: 24px;
  line-height: 29.95px;
  letter-spacing: 0%;
  vertical-align: middle;
  margin: 20px 0 0;
  color: var(--title);
}

.review-body {
  width: 1116px;
  margin-top: 20px;
  color: var(--text);
}

.review-body p {
  font-family: "Lexend";
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  font-style: regular;
  letter-spacing: 0%;
  vertical-align: middle;
  margin: 0 0 15px;
  color: #5a5a5a;
  padding-left: 20px;
  position: relative;
}

/* .review-body p::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #5A5A5A;
  font-weight: bold;
} */

.review-body p strong {
  font-weight: 700;
  color: var(--title);
}

/* Wrapper with hidden overflow by default */
.testimonial-content-wrapper {
  max-height: 130px; /* collapsed height */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.blue-section {
  background: #0091f9;
  min-height: 200px;
  padding: 40px 0;
  position: relative;
}

.white-section {
  background: #fff;
  min-height: 200px;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-4-images-container {
  display: grid;
  grid-template-columns: repeat(6, 176px);
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.section-4-image {
  width: 176px;
  height: 96px;
  opacity: 1;
  object-fit: contain;
  display: block;
}

.section-4-line {
  opacity: 1;
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: #e0e0e0;
  margin: 0 auto;
}

/* Responsive Media Queries for Reviews Page */

/* Large Desktop (max-width: 1200px) */
@media (max-width: 1200px) {
  .review-title {
    width: calc(100% - 40px);
    max-width: 1000px;
  }

  .review-card-container {
    width: calc(100% - 40px);
    max-width: 1000px;
    height: auto;
    min-height: 800px;
  }

  .review-card-image {
    width: 100%;
    height: auto;
    max-height: 300px;
  }

  .review-card-title {
    width: 100%;
    height: auto;
  }

  .review-body {
    width: 100%;
  }

  .section-4-images-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .section-4-line {
    width: 100%;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .yellow-section,
  .blue-section,
  .white-section {
    padding: 30px 0;
  }

  .review-title {
    width: calc(100% - 40px);
    max-width: 900px;
    font-size: 36px;
    top: 30px;
  }

  .review-card-container {
    width: calc(100% - 40px);
    max-width: 900px;
    padding: 24px;
    margin-top: 40px;
  }

  .review-card-image {
    max-height: 280px;
  }

  .review-card-title {
    font-size: 22px;
    line-height: 28px;
    margin-top: 16px;
  }

  .review-body {
    margin-top: 16px;
  }

  .review-body p {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 12px;
  }

  .section-4-images-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .section-4-image {
    width: 150px;
    height: 82px;
  }
}

/* Mobile and Small Tablet (max-width: 767px) */
@media screen and (max-width: 767px) {
  .yellow-section,
  .blue-section,
  .white-section {
    padding: 30px 0;
  }

  .review-title {
    width: calc(100% - 30px);
    font-size: 28px;
    height: auto;
    top: 20px;
    margin-bottom: 20px;
  }

  .review-card-container {
    width: calc(100% - 30px);
    padding: 20px;
    margin-top: 30px;
    height: auto;
    min-height: auto;
  }

  .review-card-image {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .review-card-title {
    width: 100%;
    height: auto;
    font-size: 20px;
    line-height: 26px;
    margin-top: 16px;
  }

  .review-body {
    width: 100%;
    margin-top: 16px;
  }

  .review-body p {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 12px;
    padding-left: 16px;
  }

  .section-4-images-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px;
  }

  .section-4-image {
    width: 100%;
    max-width: 140px;
    height: auto;
    max-height: 76px;
  }

  .section-4-line {
    width: 100%;
  }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575px) {
  .yellow-section,
  .blue-section,
  .white-section {
    padding: 24px 0;
  }

  .review-title {
    width: calc(100% - 20px);
    font-size: 24px;
    top: 15px;
    margin-bottom: 15px;
  }

  .review-card-container {
    width: calc(100% - 20px);
    padding: 16px;
    margin-top: 20px;
  }

  .review-card-image {
    max-height: 180px;
  }

  .review-card-title {
    font-size: 18px;
    line-height: 24px;
    margin-top: 12px;
  }

  .review-body {
    margin-top: 12px;
  }

  .review-body p {
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 10px;
    padding-left: 14px;
  }

  .section-4-images-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }

  .section-4-image {
    max-width: 120px;
    max-height: 65px;
  }
}