.reviews-section {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 0;
}

.reviews-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.reviews-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 40px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 85%;
    margin: 0 auto;
}

/* fade edges */
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.carousel-wrapper::before { left: 0;  background: linear-gradient(to right, #ffffff, transparent); z-index: 1; }
.carousel-wrapper::after  { right: 0; background: linear-gradient(to left,  #ffffff, transparent); z-index: 1; }

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

/* .carousel-track:hover { animation-play-state: paused; } */

.review-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    padding: 24px 28px;
    width: 300px;
    flex-shrink: 0;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.review-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }

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

.review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e8e3f0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b4fa0;
    flex-shrink: 0;
}

.review-meta { flex: 1; min-width: 0; }

.review-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 1px;
}

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

.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50%;
}

.review-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.78rem;
    color: #6b4fa0;
    text-decoration: none;
    font-weight: 500;
}
.review-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .reviews-section {
        padding: 10px 0;
    }

    .carousel-wrapper {
        max-width: 100%;
    }

    .review-stars {
        margin-bottom: 4px;
    }

    .review-header {
        margin-bottom: 4px;
    }

    .review-card {
        width: 220px;
        padding: 10px 11px;
    }

    .review-text {
        -webkit-line-clamp: 4;
        font-size: 0.75rem;
    }

    .review-link {
        display: none;
    }

    /* .carousel-track:hover {
        animation-play-state: running;
    } */
}

.gr-widget-animate {
    opacity: 0;
}

.gr-widget-animate.gr-visible {
    animation: gr-fade-in 1s ease 0.5s forwards;
}

@keyframes gr-fade-in {
    to {
        opacity: 1;
    }
}

.gr-widget {
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: inline-block;
    position: absolute;
    top: auto;
    bottom: 1.5rem;
    left: 1rem;
    z-index: 1;
  }

  .gr-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: default;
  }

  .gr-badge:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    transform: translateY(-1px);
  }

  .gr-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .gr-divider {
    width: 1px;
    height: 36px;
    background: #e8e8e8;
    flex-shrink: 0;
  }

  .gr-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .gr-top {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gr-score {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.5px;
  }

  .gr-stars {
    display: flex;
    align-items: center;
    gap: 1px;
  }

  .gr-star {
    font-size: 18px;
    color: #dadada;
    line-height: 1;
  }

  .gr-star.filled {
    color: #FBBC05;
  }

  .gr-star.half {
    position: relative;
    color: #dadada;
    display: inline-block;
  }

  .gr-star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #FBBC05;
  }

  .gr-bottom {
    font-size: 12px;
    color: #888;
  }

  .gr-count-short { display: none; }

  .gr-bottom strong {
    color: #555;
    font-weight: 600;
  }

@media (max-width: 600px) {
  .gr-widget {
    top: auto;
    bottom: 6.2rem;
    left: 7px;
  }

  .gr-badge {
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
  }

  .gr-logo svg {
    width: 17px;
    height: 17px;
  }

  .gr-divider {
    height: 26px;
  }

  .gr-score {
    font-size: 13px;
  }

  .gr-star {
    font-size: 14px;
  }

  .gr-bottom {
    font-size: 10px;
  }

  .gr-count-full { display: none; }
  .gr-count-short { display: inline; }
}