/* reviews-carousel.css */

/* === Carousel container === */
.cgrc-swiper-container {
  position: relative;
  padding: 1rem 0 4rem;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Slides wrapper === */
.cgrc-swiper-container .swiper-wrapper {
  display: flex;
  gap: 20px;
  align-items: stretch;
  align-content: stretch;
}

/* === Individual slides === */
.cgrc-swiper-container .swiper-slide {
  flex: 0 0 265px !important;
  display: flex !important;
  align-items: stretch !important;
  align-self: stretch;
}

/* === Review card === */
.cgrc-review-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}
.cgrc-review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* === Profile photo === */
.cgrc-review-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

/* === Author name === */
.cgrc-review-author {
  font-weight: 600;
  color: #222;
  margin-bottom: .5rem;
  font-size: 1rem;
}

/* === Star rating === */
.cgrc-stars {
  font-size: 1.2rem;
  color: #1eacc7;
  margin-bottom: 1rem;
  letter-spacing: .05em;
}

/* === Clamped review text === */
.cgrc-review-text {
  font-size: .95rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: .25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

/* === Expanded review text === */
.cgrc-review-text.expanded,
.cgrc-review-card.expanded .cgrc-review-text {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
}

/* === Read more button === */
.cgrc-read-more {
  display: inline-block;
  margin: 0 auto;
  background: none;
  border: none;
  font-size: .9rem;
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* === Pagination bullets === */
.cgrc-swiper-container .swiper-pagination {
  bottom: 1rem; /* ensure visible */
}
.cgrc-swiper-container .swiper-pagination-bullet {
  background: #ccc;
  opacity: .7;
}
.cgrc-swiper-container .swiper-pagination-bullet-active {
  background: #333;
  opacity: 1;
}

/* === Hide navigation arrows === */
.cgrc-swiper-container .swiper-button-prev,
.cgrc-swiper-container .swiper-button-next {
  display: none !important;
}

/* === Summary heading === */
.cgrc-summary {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}