/* =============================================================================
   Featured Review Section
   ============================================================================= */

.featured-review-section {
  overflow: hidden;
  background-color: #F5F9F8;
}

.featured-review-content-wrapper {
  display: grid;
  grid-template-areas:
    "header authors"
    "media authors"
    "media authors";
  grid-template-rows: auto auto auto;
  grid-template-columns: 39% 61%;
  gap: 0 40px;
  align-items: stretch;
  height: fit-content;
}

/* =============================================================================
   Left column (40%)
   ============================================================================= */

.featured-review-heading {
  grid-area: header;
  padding: 53px 0 35px;
}

.featured-review-media-wrapper {
  display: flex;
  flex-direction: column;
  grid-area: media;
  gap: 24px;
  width: 100%;
  min-width: 0;
  padding-bottom: 53px;
}

/* Heading */
.featured-review-title {
  margin: 0 0 12px;
  font-family: HarlowDuoSerifPlain, serif;
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
  color: #216F6D;
}

.featured-review-subtitle {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  color: #151515;
}

/* Desktop grid */
.featured-review-grid {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: stretch;

}

.featured-review-grid:before {
  position: absolute;
  right: -13%;
  bottom: -3%;
  display: block;
  width: 170px;
  height: 86px;
  content: '';
  background: url(../img/home-hire.svg) center / contain no-repeat;
}

.featured-review-grid-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-review-grid-col--left {
  flex: 0 0 calc(50% - 6px);
}

.featured-review-grid-col--right {
  flex: 0 0 calc(50% - 6px);
}

.featured-review-grid-item {
  overflow: hidden;
  background-color: rgba(217, 217, 217, 1);
  border: 4px solid #71BDBD;
}

/* Left column: two equal-height images */
.featured-review-grid-col--left .featured-review-grid-item {
  flex: 1;
}

/* Right column: one tall image spanning full height */
.featured-review-grid-item--tall {
  height: 100%;
  margin: 39px 0 16px;
}

.featured-review-grid-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile swiper — hidden on desktop */
.featured-review-swiper {
  display: none;
}

/* CTA */
.featured-review-media-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.featured-review-media-cta-text {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 16.8px */
  color: rgba(36, 36, 36, 0.66);
  text-transform: uppercase;
}

.featured-review-media-cta-link {
  background-color: var(--Primary-teal) !important;
  border-radius: 34px;
}

/* =============================================================================
   Right column (60%)
   ============================================================================= */

.featured-review-authors {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-area: authors;
  gap: 0;
  height: auto;
  min-height: 100%;
}

/* Authors image wrapper — position relative for badge */
.featured-review-authors-image-wrapper {
  position: relative;
  flex: 1 1 100%;
  width: 100%;
}

.featured-review-authors-image-wrapper:before {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 170px;
  height: 86px;
  content: '';
  background: url(../img/home-hire.svg) center / contain no-repeat;
}

.featured-review-authors-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge — absolute over bottom-right of photo */
.featured-review-authors-badge {
  position: absolute;
  right: 24px;
  bottom: 27px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  width: 270px;
  height: 270px;
  padding: 16px;
  text-align: center;
  background-color: #71BDBD;
  border-radius: 50%;
}

.featured-review-authors-badge-name {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 140%;
  color: #fff;
}

.featured-review-authors-badge-role {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 140%;
  color: #fff;
}

/* Quote */
.featured-review-authors-text-wrapper {
  position: relative;
  padding: 32px 310px 35px 32px;
  background-color: #D3EBEB;
}

.featured-review-authors-text-wrapper:after {
  position: absolute;
  bottom: 0;
  left: 100%;
  display: block;
  width: calc(50vw - 656px);
  height: 100%;
  content: '';
  background-color: #D3EBEB;
}

.featured-review-authors-text {
  max-width: 424px;
  margin: 0;
  font-family: HarlowDuoSerifPlain, serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 30.8px */
  color: #000;
}

.featured-review-media-wrapper {
  width: 100%;
  min-width: 0;
}

.featured-review-slider-wrapper {
  width: 100%;
  min-width: 0;
}

/* =============================================================================
   Mobile — breakpoint
   ============================================================================= */

@media (max-width: 998px) {
  .featured-review-content-wrapper {
    grid-template-areas:
    "header"
    "authors"
    "media";
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    gap: 0 40px;
    width: 100%;
    min-width: 0;
  }

  .featured-review-title {
    font-size: 24px;
    line-height: 140%;
    text-align: center;
  }

  .featured-review-subtitle {
    font-size: 12px;
    line-height: 150%; /* 18px */
    text-align: center;
  }

  .featured-review-authors {
    margin: 0 -20px;
  }

  .featured-review-grid {
    margin-top: 40px;
  }

  /* Authors on mobile */
  .featured-review-authors-image-wrapper:before {
    bottom: 180px;
  }

  .featured-review-authors-badge {
    right: 0;
    bottom: 115px;
    width: 143px;
    height: 143px;
  }

  .featured-review-authors-badge-name {
    font-size: 10px;
  }

  .featured-review-authors-badge-role {
    font-size: 9px;
  }

  .featured-review-authors-text-wrapper {
    padding: 16px;
  }

  .featured-review-authors-text {
    max-width: initial;
    font-size: 16px;
    text-align: center;
  }

  .featured-review-media-cta {
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .featured-review-grid {
    display: none;
    margin-top: 40px;
  }

  .featured-review-title {
    max-width: 268px;
    margin: 0 auto 12px;
  }

  .featured-review-authors-image-wrapper:before {
    content: none;
  }

  .featured-review-authors-image-wrapper {
    flex: 1 1 auto;
    height: 340px;
  }

  .featured-review-authors-badge {
    top: 210px;
    bottom: initial;
  }

  .featured-review-swiper {
    position: relative;
    box-sizing: border-box;
    display: block;
    padding: 32px 0 46px;
    margin: 0 -20px;
    overflow: hidden;
  }

  .featured-review-swiper .swiper-wrapper {
    height: 100%;
    padding: 0;
  }

  .featured-review-swiper-slide {
    box-sizing: border-box;
    height: auto;
    max-height: 310px;
    aspect-ratio: 73 / 58;
    border: 2px solid #71BDBD;
  }

  .featured-review-swiper-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .featured-review-swiper-button-prev:after,
  .featured-review-swiper-button-next:after {
    content: none;
  }


  .featured-review-swiper-button-prev,
  .featured-review-swiper-button-next {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    visibility: visible;
    background-color: rgba(255, 255, 255, 0.70);
    border-radius: 50%;
  }

  .featured-review-swiper-button-prev {
    left: 20px;
  }

  .featured-review-swiper-button-next {
    right: 20px;
  }

  .featured-review-swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: fit-content;
    visibility: visible;
  }

  .featured-review-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #979797;
    border: 2px solid transparent;
    border-radius: 50%;
  }

  .featured-review-swiper-pagination .swiper-pagination-bullet-active {
    border: 2px solid #216F6D;
  }
}
