.grl-hero:has(.grl-hero__testimonial) {
  position: relative;
}

.grl-hero__testimonial {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 320px;
  margin: 0.75rem 1rem 1rem;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: #1f2937;
}

.grl-hero__testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.grl-hero__testimonial-avatars {
  display: flex;
  align-items: center;
}

.grl-hero__testimonial-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #fff;
  object-fit: cover;
  background: #7d8354;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

.grl-hero__testimonial-avatar + .grl-hero__testimonial-avatar {
  margin-left: -0.55rem;
}

.grl-hero__testimonial-count {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5d6138;
  white-space: nowrap;
}

.grl-hero__testimonial-rating {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1;
  color: #eab308;
}

.grl-hero__testimonial-rating .fa-star,
.grl-hero__testimonial-rating .text-yellow-400 {
  font-size: 0.9rem;
  color: #eab308;
}

.grl-hero__testimonial-quote[hidden] {
  display: none;
}

.grl-hero__testimonial-quote.is-active {
  display: block;
  animation: grl-hero-t-in 0.24s ease;
}

.grl-hero__testimonial-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grl-hero__testimonial-author {
  margin: 0.45rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.grl-hero__testimonial-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
}

.grl-hero__testimonial-company {
  font-size: 0.6875rem;
  color: #4b5563;
}

.grl-hero-centered--light-text .grl-hero__testimonial {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.grl-hero-centered--light-text .grl-hero__testimonial-count,
.grl-hero-centered--light-text .grl-hero__testimonial-name {
  color: #fff;
}

.grl-hero-centered--light-text .grl-hero__testimonial-company {
  color: rgba(255, 255, 255, 0.78);
}

.grl-hero--video .grl-hero__testimonial {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 4;
  width: min(22rem, calc(100% - 8rem));
  max-width: 22rem;
  margin: 0;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.grl-hero--video .grl-hero__testimonial-text,
.grl-hero--video .grl-hero__testimonial-name,
.grl-hero--video .grl-hero__testimonial-count {
  color: #1f2937;
}

.grl-hero--video .grl-hero__testimonial-company {
  color: #4b5563;
}

@keyframes grl-hero-t-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .grl-hero__testimonial {
    width: calc(100% - 48px);
    max-width: 340px;
    margin: 0.85rem 1.5rem 1.15rem;
  }
}

@media (min-width: 1024px) {
  .grl-hero__testimonial {
    width: 360px;
    max-width: 360px;
    margin: 0 2rem 1.5rem;
  }

  .grl-hero__testimonial-text {
    -webkit-line-clamp: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grl-hero__testimonial-quote.is-active {
    animation: none;
  }
}

@media (max-width: 1023px), (max-height: 820px) {
  .grl-hero--video .grl-hero__testimonial {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(22rem, calc(100% - 2.5rem));
    max-width: 22rem;
    margin: 0.5rem 1.25rem 1.25rem;
  }
}

@media (min-width: 1024px) and (min-height: 821px) {
  .grl-hero--video .grl-hero__testimonial {
    position: absolute;
    left: auto;
    right: 2.5rem;
    bottom: 2.5rem;
    width: 22rem;
    max-width: 22rem;
    margin: 0;
  }
}
