/**
 * Custom Elfsight-Style Google Reviews Widget
 * Vaasan Builders & Designs
 */

.google-reviews-section {
  padding: 80px 0;
  background: #f8fafc;
  position: relative;
}

/* ==========================================
   HEADER SUMMARY BADGE
========================================== */
.gr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 24px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.gr-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gr-google-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.gr-rating-badge {
  display: flex;
  flex-direction: column;
}

.gr-rating-num-stars {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gr-rating-score {
  font-size: 28px;
  font-weight: 800;
  color: #202124;
  line-height: 1;
}

.gr-stars {
  color: #fbbc04;
  font-size: 18px;
  display: inline-flex;
  gap: 3px;
}

.gr-header-sub {
  font-size: 14px;
  color: #5f6368;
  margin-top: 4px;
}

.gr-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color, #e0a965);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(224, 169, 101, 0.3);
}

.gr-write-btn:hover {
  background: var(--primary-color, #1a2238);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   REVIEW CARDS
========================================== */
.gr-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.gr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.gr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gr-card-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.gr-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.gr-user-meta h4 {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
  margin: 0;
  line-height: 1.2;
}

.gr-user-meta span {
  font-size: 12px;
  color: #70757a;
}

.gr-google-badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.gr-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.gr-card-stars {
  color: #fbbc04;
  font-size: 14px;
  display: inline-flex;
  gap: 2px;
}

.gr-verified-tag {
  font-size: 11px;
  color: #1e8e3e;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.gr-review-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #3c4043;
  margin-bottom: 0;
  word-break: break-word;
}

.gr-read-more-btn {
  color: var(--accent-color, #e0a965);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
}

/* ==========================================
   CAROUSEL CONTROLS
========================================== */
.gr-carousel-container {
  position: relative;
  padding: 0 10px;
}

.gr-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #202124;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.3s ease;
  border: none;
}

.gr-nav-btn:hover {
  background: var(--accent-color, #e0a965);
  color: #ffffff;
}

.gr-nav-prev {
  left: -20px;
}

.gr-nav-next {
  right: -20px;
}

@media (max-width: 768px) {
  .gr-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .gr-write-btn {
    width: 100%;
    justify-content: center;
  }
  .gr-nav-prev {
    left: 2px;
  }
  .gr-nav-next {
    right: 2px;
  }
}
