/* 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;
  }
}

/* ===== STATIC TESTIMONIALS SLIDER (tm-) ===== */
#tm-slider { background: #fff; padding: 60px 0; overflow: hidden; }
.tm-top-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #E8EAED; }
.tm-branding { display: flex; align-items: center; gap: 14px; }
.tm-title { font-size: 15px; font-weight: 600; color: #003566; line-height: 1.2; }
.tm-rating-row { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.tm-rating-num { font-size: 24px; font-weight: 700; color: #202124; line-height: 1; }
.tm-rating-stars { color: #FBBC05; font-size: 17px; letter-spacing: 2px; }
.tm-rating-count { font-size: 13px; color: #70757a; }
.tm-see-all { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dadce0; border-radius: 6px; padding: 9px 18px; font-size: 13px; font-weight: 500; color: #003566; text-decoration: none; transition: background .15s, box-shadow .15s; flex-shrink: 0; }
.tm-see-all:hover { background: #f0f4f9; box-shadow: 0 1px 4px rgba(0,0,0,0.1); color: #003566; }
.tm-slider-wrap { overflow: hidden; position: relative; }
.tm-track { display: flex; gap: 20px; transition: transform .65s cubic-bezier(.4,0,.2,1); }
.tm-card {
  flex-shrink: 0;
  background: #fff; border-radius: 12px; padding: 1.25rem 1.4rem;
  border: 1px solid #E8EAED;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow .2s; box-sizing: border-box;
}
.tm-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.tm-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.tm-card-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0; }
.tm-user-name { font-size: 13px; font-weight: 600; color: #202124; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-user-sub { font-size: 11px; color: #70757a; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tm-card-stars { color: #FBBC05; font-size: 14px; letter-spacing: 1px; }
.tm-card-date { font-size: 12px; color: #70757a; }
.tm-card-text { font-size: 13px; color: #3c4043; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tm-card-text.tm-expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.tm-read-more { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: #003566; cursor: pointer; }
.tm-read-more:hover { text-decoration: underline; }
.tm-dots { display: flex; gap: 6px; align-items: center; }
.tm-dot { width: 8px; height: 8px; border-radius: 50%; background: #dadce0; border: none; padding: 0; cursor: pointer; transition: background .3s, width .3s; }
.tm-dot.active { background: #003566; width: 22px; border-radius: 4px; }
.tm-nav { display: flex; gap: 8px; }
.tm-nav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #dadce0; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #5f6368; font-size: 14px; transition: background .15s, border-color .15s, box-shadow .15s; }
.tm-nav-btn:hover { background: #f6f8fa; box-shadow: 0 1px 4px rgba(0,0,0,0.12); border-color: #003566; color: #003566; }

@media (max-width: 480px) {
  .tm-title { font-size: 13px; }
  .tm-rating-num { font-size: 20px; }
  .tm-rating-stars { font-size: 14px; }
}
