/* Google Reviews carousel — scoped to .google-reviews */

.google-reviews {
  /* Matches main's existing position:relative + z-index:1 (main.css) so this
     section stacks like normal page content above the always-fixed footer,
     instead of competing with it at the same (auto) stacking level. */
  position: relative;
  z-index: 1;
  padding: 64px 0;
  background-color: #ffffff;
  overflow: hidden;
}

.google-reviews__inner {
  max-width: 100%;
}

.google-reviews__header {
  text-align: center;
  margin-bottom: 40px;
}

.google-reviews__subtitle {
  display: inline-block;
  color: #BAD433;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.google-reviews__title {
  color: #262626;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

@media (min-width: 768px) {
  .google-reviews__title {
    font-size: 34px;
  }
}

.google-reviews__carousel-wrap {
  position: relative;
  padding: 0 8px;
}

@media (min-width: 1200px) {
  .google-reviews__carousel-wrap {
    padding: 0 56px;
  }
}

.google-reviews__carousel {
  overflow: hidden;
  padding: 8px 4px 24px;
}

.google-reviews__carousel .swiper-slide {
  height: auto;
  display: flex;
}

.google-review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: #f7f7f5;
  border-radius: 16px;
  padding: 32px 24px 24px;
  text-align: center;
}

.google-review-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 14px;
  background-color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.google-review-card__avatar-fallback {
  color: #ffffff;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.google-review-card__name {
  color: #262626;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.google-review-card__date {
  color: #939393;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 12px;
  margin-top: 2px;
}

.google-review-card__stars {
  display: flex;
  gap: 3px;
  margin-top: 12px;
}

.google-review-card__star {
  fill: #d9d9d9;
}

.google-review-card__star.is-filled {
  fill: #eeba04;
}

.google-review-card__text-wrap {
  margin-top: 16px;
  width: 100%;
}

.google-review-card__text {
  color: #4f4f4f;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  text-align: left;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.google-review-card__text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.google-review-card__toggle {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #262626;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.google-review-card__toggle:hover,
.google-review-card__toggle:focus {
  color: #BAD433;
  outline: none;
}

.google-review-card__toggle[hidden] {
  display: none;
}

.google-review-card__badge {
  margin-top: 18px;
  color: #a3a3a3;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Arrows */

.google-reviews__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}

.google-reviews__nav svg {
  fill: #262626;
  transition: fill 0.3s ease;
}

.google-reviews__nav:hover,
.google-reviews__nav:focus {
  background-color: #BAD433;
  outline: none;
}

.google-reviews__nav:hover svg,
.google-reviews__nav:focus svg {
  fill: #262626;
}

.google-reviews__nav:active {
  opacity: 0.8;
}

.google-reviews__nav[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.google-reviews__nav--prev {
  left: 0;
}

.google-reviews__nav--next {
  right: 0;
}

@media (max-width: 767px) {
  .google-reviews__nav {
    width: 32px;
    height: 32px;
  }

  .google-reviews__carousel-wrap {
    padding: 0 40px;
  }
}
