/* Readable testimonial cards for the Reviews hero. */
.reviews-stage .review-float {
  display: block;
  box-sizing: border-box;
  width: 202px;
  min-height: 151px;
  padding: 14px 15px 12px;
  color: #234d54;
  text-decoration: none;
  border: 1px solid #d2e4df;
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 16px 30px rgba(25, 70, 72, .18);
  backdrop-filter: blur(8px);
}

.reviews-stage .review-float img { display: none; }

.review-card-top,
.review-card-meta {
  display: flex;
  align-items: center;
}

.review-card-top { gap: 7px; }

.review-card-top i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #e1e9e7;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font: 700 .72rem/1 Arial, sans-serif;
  font-style: normal;
}

.review-card-top small {
  color: #668286;
  font: 700 .57rem/1 "DM Sans", Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reviews-stage .review-float p {
  margin: 11px 0 10px;
  color: #2a5057;
  font: 600 .72rem/1.47 "DM Sans", Arial, sans-serif;
}

.review-card-meta {
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e4eeeb;
}

.review-card-meta strong {
  color: #395e63;
  font: 600 .63rem/1 "DM Sans", Arial, sans-serif;
}

.review-card-meta b {
  color: #d49b19;
  font: 700 .62rem/1 "DM Sans", Arial, sans-serif;
  letter-spacing: .04em;
}

.reviews-stage .float-one { left: -5px; top: 47px; }
.reviews-stage .float-two { right: -3px; top: 69px; }
.reviews-stage .float-three { right: 10px; bottom: 16px; }

/* Give the doctor image a stronger, more prominent hero presence. */
@media (min-width: 571px) {
  .reviews-hero-grid { min-height: 535px; }
  .reviews-stage { height: 500px; }
  .review-doctor { width: 280px; height: 425px; bottom: 18px; }
  .reviews-stage .doctor-identity-card { left: 52px; bottom: 26px; }
}

/* Doctor identity card: separate from the portrait, but visually anchored to it. */
.reviews-stage .doctor-identity-card {
  position: absolute;
  z-index: 7;
  left: 66px;
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 205px;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid rgba(209, 246, 237, .42);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(8, 68, 76, .93), rgba(19, 107, 106, .84));
  box-shadow: 0 10px 18px rgba(4, 35, 39, .28), inset 0 1px rgba(255, 255, 255, .14);
  backdrop-filter: blur(7px);
  animation: identityCardIn .8s .6s cubic-bezier(.2, .8, .2, 1) both, identityCardFloat 4.6s 1.5s ease-in-out infinite;
}

.doctor-identity-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6c66c, #bb8d27);
  color: #fff;
  font: 700 .82rem/1 Arial, sans-serif;
  box-shadow: 0 4px 9px rgba(8, 46, 48, .3);
}

.doctor-identity-copy { display: grid; gap: 2px; }
.doctor-identity-copy strong {
  color: #fff;
  font: 700 .74rem/1.12 "DM Sans", Arial, sans-serif;
  letter-spacing: .01em;
}
.doctor-identity-copy small {
  margin: 0;
  color: #c7eee7;
  font: 600 .58rem/1.15 "DM Sans", Arial, sans-serif;
  letter-spacing: .025em;
}

@keyframes identityCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes identityCardFloat {
  50% { transform: translateY(-4px); box-shadow: 0 14px 23px rgba(4, 35, 39, .34), inset 0 1px rgba(255, 255, 255, .16); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-stage .doctor-identity-card { animation: none; }
}

@media (max-width: 570px) {
  .reviews-stage .review-float {
    width: 142px;
    min-height: 119px;
    padding: 10px 11px;
  }
  .review-card-top i { width: 17px; height: 17px; font-size: .62rem; }
  .review-card-top small { font-size: .47rem; }
  .reviews-stage .review-float p { margin: 8px 0; font-size: .58rem; line-height: 1.35; }
  .review-card-meta { padding-top: 6px; }
  .review-card-meta strong, .review-card-meta b { font-size: .5rem; }
  .reviews-stage .doctor-identity-card { left: 12px; bottom: 10px; width: 178px; gap: 6px; padding: 7px 8px; }
  .doctor-identity-icon { width: 20px; height: 20px; flex-basis: 20px; font-size: .67rem; border-radius: 6px; }
  .doctor-identity-copy strong { font-size: .59rem; }
  .doctor-identity-copy small { font-size: .49rem; }
  .reviews-stage .float-one { left: 1px; top: 35px; }
  .reviews-stage .float-two { right: 1px; top: 57px; }
  .reviews-stage .float-three { right: 9px; bottom: 9px; }
}

@media (min-width: 571px) {
  .reviews-stage .doctor-identity-card { left: 52px; bottom: 26px; }
}
