/* STR Reviews Slider - frontend */
:root {
  --strrs-per-view: 3;
  --strrs-gap: 16px;
  --strrs-radius: 14px;
  --strrs-border: rgba(0,0,0,.08);
  --strrs-shadow: 0 10px 30px rgba(0,0,0,.06);
  --strrs-text: rgba(0,0,0,.88);
  --strrs-muted: rgba(0,0,0,.6);
  --strrs-accent: #f5b301; /* star */
}

.strrs-slider {
  position: relative;
  width: 100%;
  /* Keep background transparent so it blends into any section background */
  padding: 0 0 18px;
}

.strrs-viewport {
  overflow: hidden;
  /* Give cards room so shadows/rounded corners don't get clipped */
  padding: 14px 54px 18px;
  box-sizing: border-box;
}

.strrs-track {
  display: flex;
  gap: var(--strrs-gap);
  will-change: transform;
  transition: transform 360ms ease;
  padding: 0;
}

.strrs-slide {
  flex: 0 0 calc((100% - (var(--strrs-gap) * (var(--strrs-per-view) - 1))) / var(--strrs-per-view));
  min-width: 0;
}

.strrs-card {
  height: 100%;
  /* More like your site cards: soft border, subtle shadow, slightly softened background */
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--strrs-radius);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 22px;
}

.strrs-card__header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.strrs-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.strrs-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strrs-initials {
  font-weight: 700;
  color: rgba(0,0,0,.7);
  letter-spacing: .5px;
}

.strrs-meta {
  min-width: 0;
  width: 100%;
}

.strrs-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.strrs-name {
  font-weight: 700;
  color: var(--strrs-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strrs-source {
  margin-top: 2px;
  font-size: 13px;
  color: var(--strrs-muted);
}

.strrs-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.strrs-dot {
  margin: 0 6px;
  opacity: .7;
}

.strrs-stars {
  display: inline-flex;
  gap: 2px;
  flex: 0 0 auto;
}

.strrs-star {
  font-size: 14px;
  line-height: 1;
  color: rgba(0,0,0,.18);
}

.strrs-star.is-filled {
  color: var(--strrs-accent);
}

.strrs-card__body p {
  margin: 0;
  color: var(--strrs-text);
  font-size: 15px;
  line-height: 1.5;
}

/* Nav */
.strrs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.strrs-nav span {
  font-size: 22px;
  line-height: 1;
  color: rgba(0,0,0,.75);
}

/* Place arrows in the viewport padding area so they never overlap review text */
.strrs-prev { left: 18px; }
.strrs-next { right: 18px; }

.strrs-nav:disabled {
  opacity: .4;
  cursor: default;
}

.strrs-nav:focus-visible {
  outline: 3px solid rgba(0,0,0,.2);
  outline-offset: 2px;
}

/* Dots */
.strrs-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.strrs-dotbtn {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.20);
  cursor: pointer;
  padding: 0;
}

.strrs-dotbtn.is-active {
  width: 18px;
  background: rgba(0,0,0,.60);
}

@media (max-width: 1023px) {
  .strrs-viewport { padding: 12px 12px 16px; }
  .strrs-nav { display: none; }
}
