/* Shihab Sections: Review Wall widget */

.rw {
  --rw-line: rgba(125, 162, 255, .2);
  font-family: "Geist", sans-serif;
}

.rw-wall {
  position: relative;
  height: var(--rw-height, 620px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.rw-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: rw-up var(--rw-speed, 46s) linear infinite;
}

.rw-track.rw-dn {
  animation-name: rw-dn;
  animation-duration: calc(var(--rw-speed, 46s) * 1.13);
}

.rw-wall:hover .rw-track {
  animation-play-state: paused;
}

@keyframes rw-up {
  to { transform: translateY(calc(-50% - 8px)); }
}

@keyframes rw-dn {
  from { transform: translateY(calc(-50% - 8px)); }
  to { transform: none; }
}

.rw-card {
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--rw-line);
  transition: border-color .24s ease, background .24s ease;
}

.rw-card:hover {
  border-color: rgba(125, 162, 255, .45);
  background: rgba(255, 255, 255, .08);
}

.rw-stars {
  display: flex;
  gap: 3px;
}

.rw-stars svg {
  width: 16px;
  height: 16px;
  color: #7DA2FF;
}

.rw-card blockquote {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  font-size: 16.5px;
  line-height: 1.6;
  font-style: normal;
  color: #fff;
}

.rw-card figcaption {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 162, 255, .16);
}

.rw-ini {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #DCE6FF;
  background: rgba(125, 162, 255, .18);
}

.rw-who {
  flex: 1;
  min-width: 0;
}

.rw-who b,
.rw-who small {
  font-style: normal;
}

.rw-who b {
  display: block;
  font-size: 14.5px;
  color: #fff;
}

.rw-who small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #949EAF;
}

.rw-vf {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #2BD576;
}

.rw-vf svg {
  width: 13px;
  height: 13px;
}

.rw-swipe {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 13px;
  color: #949EAF;
}

.rw-swipe svg {
  width: 16px;
  height: 16px;
  color: #7DA2FF;
  animation: rw-nudge 1.8s ease-in-out infinite;
}

@keyframes rw-nudge {
  50% { transform: translateX(5px); }
}

/* Phones: a swipeable row instead of the moving wall */
@media (max-width: 767px) {
  .rw-wall {
    height: auto;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 18px 14px;
    margin: 0 -18px;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .rw-wall::-webkit-scrollbar {
    display: none;
  }

  .rw-track {
    display: contents;
    animation: none;
  }

  .rw-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }

  .rw-card[aria-hidden="true"] {
    display: none;
  }

  .rw-swipe {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rw-track,
  .rw-swipe svg {
    animation: none;
  }
}
