/* ===========================================
   GOOGLE REVIEWS WIDGET STYLES
   =========================================== */
.reviews-container {
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  padding: 20px 0;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.google-logo {
  width: 80px;
  height: auto;
}

.rating-stars {
  color: #fbbc04;
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-number {
  font-size: 28px;
  font-weight: 700;
  color: #202124;
}

.rating-text {
  color: #5f6368;
  font-size: 14px;
}

.trustindex-badge {
  background: #0b7a75;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.carousel-wrapper {
  position: relative;
  padding: 0 50px;
}

.carousel-track-container {
  overflow: hidden;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.review-card {
  min-width: calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  background: white;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
  display: flex;
  flex-direction: column;
  height: auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(60, 64, 67, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #34a853;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-info {
  flex: 1;
}

.review-author {
  font-weight: 700;
  font-size: 14px;
  color: #202124;
  margin-bottom: 2px;
}

.review-date {
  font-size: 12px;
  color: #70757a;
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.review-stars-small {
  color: #fbbc04;
  font-size: 16px;
  letter-spacing: -2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-badge {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
}

.review-text {
  font-size: 15px;
  line-height: 1.5;
  color: #3c4043;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.review-text.truncated {
  max-height: 4.5em;
}

.review-text.expanded {
  max-height: none;
}

.read-more-btn {
  color: #1a73e8;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  text-align: left;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: #5f6368;
}

@media (max-width: 1024px) {
  .review-card {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .review-card {
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .carousel-wrapper {
    padding: 0 40px;
  }
}
