/* GOOGLE COLORS */
.google-color-b { color: #4285f4; }
.google-color-r { color: #ea4335; }
.google-color-y { color: #fbbc05; }
.google-color-g { color: #34a853; }

/* SECTION WRAPPER */
.google-review-section {
  max-width: 1200px;
  margin: auto;
}

/* LEFT STATIC SCORE BOX */
.overall-rating-card {
  width: 250px;
  flex-shrink: 0;
  margin-right: 40px;
}

.rating-stars-lg {
  font-size: 24px;
  color: #ffc107;
  letter-spacing: 3px;
}

.google-logo-full {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -2px;
}

.google-g-logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #4285f4;
}

/* CAROUSEL */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px 50px; /* space for buttons */
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* SLIDER BUTTONS */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#prevBtn { left: 0; }
#nextBtn { right: 0; }

/* REVIEW CARDS */
.review-card {
  min-width: 320px;
  max-width: 320px;
  min-height: 240px;
  background: #fafafa;
  margin-right: 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
}

.reviewer-info {
  display: flex;
  align-items: center;
}

.profile-photo,
.initial-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 10px;
}

.initial-badge {
  background: #fce4ec;
  color: #c2185b;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reviewer-name { font-weight: 600; }
.review-date { font-size: 0.8rem; color: #777; }

.review-stars-sm {
  color: #ffc107;
  letter-spacing: 2px;
}

.verified-icon {
  color: #1a73e8;
  margin-left: 2px;
  font-size: 0.85rem;
}

.review-text {
  font-size: 1rem;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.review-text.expanded {
  max-height: 800px !important;
}

.read-more {
  cursor: pointer;
  color: #444;
  font-size: 0.85rem;
}

/* RESPONSIVE BREAKPOINTS */

   /* TABLET VIEW (≤ 992px) */

@media (max-width: 992px) {

  /* Stack items vertically */
  .google-review-section .d-flex {
    flex-direction: column !important;
    align-items: center !important;
  }

  .overall-rating-card {
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: center;
    padding: 15px;
    transform: scale(0.95); 
  }

  .overall-rating-card h2 {
    font-size: 1.7rem;
  }

  .rating-stars-lg {
    font-size: 20px;
  }

  .google-logo-full {
    font-size: 26px;
  }

  .carousel-container {
    width: 100%;
    padding: 20px 40px;
  }

  .review-card {
    min-width: 300px;
    max-width: 300px;
  }
}


   /* MOBILE VIEW (≤ 768px) */

@media (max-width: 768px) {

  .overall-rating-card {
    transform: scale(0.85);
  }

  .overall-rating-card h2 {
    font-size: 1.5rem;
  }

  .rating-stars-lg {
    font-size: 18px;
  }

  .google-logo-full {
    font-size: 22px;
  }

  .carousel-container {
    padding: 20px 35px;
  }

  .review-card {
    min-width: 260px;
    max-width: 260px;
  }

  .review-text {
    font-size: 0.9rem;
  }
}


   /* SMALL MOBILE (≤ 480px) */

@media (max-width: 480px) {

  .overall-rating-card {
    transform: scale(0.8);
  }

  .overall-rating-card h2 {
    font-size: 1.3rem;
  }

  .rating-stars-lg {
    font-size: 16px;
  }

  .google-logo-full {
    font-size: 20px;
  }

  .carousel-container {
    padding: 20px 30px;
  }

  .review-card {
    min-width: 220px;
    max-width: 220px;
  }

  #prevBtn, #nextBtn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}
