.tj-google-reviews-section {
  position: relative;
  padding: 100px 0 90px;
  background: #f8f9fc;
  overflow: hidden;
}

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

.google-reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.google-reviews-score {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.google-reviews-score-value {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: #111827;
}

.google-review-stars {
  display: flex;
  gap: 4px;
  color: #fbbc04;
  font-size: 16px;
}

.google-reviews-count {
  font-size: 14px;
  color: #6b7280;
}

.google-reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.google-reviews-link:hover {
  color: #fff;
  background: var(--tj-color-theme-primary, #5f39ff);
  border-color: var(--tj-color-theme-primary, #5f39ff);
}

.google-reviews-marquee-wrap {
  position: relative;
}

.google-reviews-marquee-wrap::before,
.google-reviews-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.google-reviews-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #f8f9fc 0%, rgba(248, 249, 252, 0));
}

.google-reviews-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #f8f9fc 0%, rgba(248, 249, 252, 0));
}

.google-reviews-marquee {
  overflow: hidden;
  width: 100%;
}

.google-reviews-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: googleReviewsScroll 45s linear infinite;
  padding: 8px 0 16px;
}

.google-reviews-marquee:hover .google-reviews-track {
  animation-play-state: paused;
}

@keyframes googleReviewsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.google-review-card {
  flex: 0 0 360px;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.google-review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.google-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.google-review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.google-review-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: var(--tj-color-theme-primary, #5f39ff);
  font-weight: 700;
  font-size: 18px;
}

.google-review-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #111827;
}

.google-review-time {
  font-size: 13px;
  color: #6b7280;
}

.google-review-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.google-review-text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767px) {
  .tj-google-reviews-section {
    padding: 70px 0 60px;
  }

  .google-review-card {
    flex-basis: 300px;
    max-width: 300px;
  }

  .google-reviews-marquee-wrap::before,
  .google-reviews-marquee-wrap::after {
    width: 40px;
  }

  .google-reviews-track {
    animation-duration: 35s;
  }
}
