/* ==========================================================================
   SHN Ceylon — Reviews / Testimonials Section
   ========================================================================== */

.shn-reviews {
  background-color: var(--shn-white);
  padding-bottom: clamp(56px, 7vw, 100px);
}

.shn-reviews__intro {
  text-align: center;
  font-size: var(--fs-body-lg);
  color: var(--shn-ink);
  margin-bottom: 18px;
}

.shn-reviews__intro a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shn-reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--shn-ink);
}

.shn-reviews__stars {
  display: inline-flex;
  gap: 4px;
}

.shn-reviews__stars svg {
  width: 22px;
  height: 22px;
  color: var(--shn-star-gold);
}

/* ---- Keyword filter pills ---- */
.shn-reviews__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.shn-tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--shn-gray-300);
  border-radius: var(--radius-pill);
  background: var(--shn-white);
  font-size: 0.875rem;
  color: var(--shn-gray-700);
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.shn-tag:hover {
  border-color: var(--shn-ink);
  color: var(--shn-ink);
}

/* ---- Review cards track ---- */
.shn-reviews__track-wrap {
  position: relative;
}

.shn-reviews__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--shn-gray-200);
}

.shn-review-card {
  padding: 28px 32px;
  border-right: 1px solid var(--shn-gray-200);
  border-bottom: 1px solid var(--shn-gray-200);
}

.shn-reviews__track .shn-review-card:last-child {
  border-right: none;
}

.shn-review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.shn-review-card__user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shn-review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.shn-review-card__avatar--text {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1F4A41;
  color: var(--shn-white);
  font-weight: 700;
  font-size: 1.1rem;
}

.shn-review-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--shn-ink);
  margin-bottom: 2px;
}

.shn-review-card__date {
  font-size: 0.85rem;
  color: var(--shn-gray-500);
}

.shn-review-card__source svg {
  width: 22px;
  height: 22px;
}

.shn-review-card__stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 16px;
}

.shn-review-card__stars svg {
  width: 18px;
  height: 18px;
  color: var(--shn-star-gold);
}

.shn-review-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--shn-gray-700);
}

.shn-review-card__more {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--shn-ink);
  cursor: pointer;
}

/* ---- Prev / Next nav arrows (overlap card edges) ---- */
.shn-reviews__nav {
  position: absolute;
  top: 142px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--shn-gray-300);
  background: var(--shn-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shn-ink);
  z-index: 2;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.shn-reviews__nav:hover {
  border-color: var(--shn-ink);
  background: var(--shn-gray-50);
}

.shn-reviews__nav svg {
  width: 18px;
  height: 18px;
}

.shn-reviews__nav--prev {
  left: -22px;
}

.shn-reviews__nav--next {
  right: -22px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 991.98px) {
  .shn-reviews__track {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-top: none;
  }

  .shn-review-card {
    scroll-snap-align: start;
    border-top: 1px solid var(--shn-gray-200);
  }

  .shn-reviews__nav {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .shn-reviews__track {
    grid-template-columns: minmax(260px, 88vw);
  }

  .shn-review-card {
    padding: 22px 22px;
  }

  .shn-reviews__tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
    -webkit-overflow-scrolling: touch;
  }

  .shn-reviews__rating {
    font-size: 1rem;
    flex-wrap: wrap;
  }
}
