/**
 * Shahram B-12 — isolated, RTL-native recreation of the reference testimonials section.
 * Baseline intentionally has no hover/reveal animation (the supplied source has none).
 */
.shb12 {
  --shb12-bg: #f8f9fb;
  --shb12-card-bg: #fff;
  --shb12-text: #01193f;
  --shb12-muted: #768293;
  --shb12-accent: #16865a;
  --shb12-stars: #16865a;
  --shb12-quote: #9aa5b4;
  --shb12-border: #e9edf1;
  --shb12-avatar-size: 40px;
  --shb12-mobile-card-width: 86%;
  --shb12-hover-lift: 6px;
  --shb12-hover-speed: 250ms;
  width: 100%;
  background: var(--shb12-bg);
  color: var(--shb12-text);
  font-family: 'YekanBakh', 'Yekan Bakh', Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
  isolation: isolate;
}

.shb12, .shb12 * { box-sizing: border-box; }
.shb12 :is(h1,h2,h3,h4,p) { margin-top: 0; }

.shb12__container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 40px 16px;
}

.shb12__header {
  margin-bottom: 36px;
  text-align: center;
}

.shb12__eyebrow {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--shb12-accent);
}

.shb12__heading {
  margin: 0;
  padding: 0;
  color: var(--shb12-text);
  font-family: inherit;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: normal;
}

.shb12__heading-regular { font-weight: 300; }
.shb12__heading-bold { font-weight: 600; }

.shb12__grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: -16px;
  padding: 0 16px 4px;
  overscroll-behavior-inline: contain;
}
.shb12__grid::-webkit-scrollbar { display: none; }
.shb12__grid:focus-visible {
  outline: 2px solid var(--shb12-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.shb12__card {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--shb12-mobile-card-width);
  width: var(--shb12-mobile-card-width);
  min-width: 0;
  height: auto;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  scroll-snap-align: start;
  background: var(--shb12-card-bg);
  color: var(--shb12-text);
  text-align: right;
  position: relative;
  transform-origin: center center;
}

.shb12__quote {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-bottom: 12px;
  color: var(--shb12-quote);
  opacity: 0.4;
}

.shb12__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  margin-bottom: 12px;
  direction: ltr;
  color: var(--shb12-stars);
}
.shb12__star {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--shb12-stars);
}

.shb12__review {
  margin: 0 0 16px;
  flex: 1 1 auto;
  color: var(--shb12-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.625;
  overflow-wrap: anywhere;
}

.shb12__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  min-height: max(68px, calc(24px + var(--shb12-avatar-size)));
  padding-top: 24px;
  margin-top: auto;
  border-top: 1px solid var(--shb12-border);
  min-width: 0;
}
.shb12__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--shb12-avatar-size);
  width: var(--shb12-avatar-size);
  height: var(--shb12-avatar-size);
  border-radius: 50%;
  overflow: hidden;
  background: #e8f1ec;
  color: var(--shb12-accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.shb12__avatar img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
.shb12__user {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.5;
}
.shb12__name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0 0 2px;
  font-family: inherit;
  color: var(--shb12-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.shb12__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--shb12-muted);
}
.shb12__meta a {
  color: inherit;
  text-decoration: none;
}
.shb12__meta a:hover,
.shb12__meta a:focus-visible {
  color: var(--shb12-accent);
  text-decoration: underline;
}
.shb12__separator { padding-inline: 2px; }
.shb12__empty { text-align: center; color: var(--shb12-muted); padding: 32px 10px; margin: 0; }

@media (min-width: 640px) {
  .shb12__heading { font-size: 30px; }
  .shb12__grid { gap: 24px; }
  .shb12__card { padding: 32px; }
  .shb12__quote { width: 32px; height: 32px; margin-bottom: 16px; }
  .shb12__stars { margin-bottom: 16px; }
  .shb12__review { margin-bottom: 24px; }
}

@media (min-width: 768px) {
  .shb12__container { padding: 56px 32px; }
  .shb12__header { margin-bottom: 56px; }
  .shb12__heading { font-size: 36px; }
  .shb12__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .shb12__card {
    flex: initial;
    width: auto;
    min-width: 0;
    height: 100%;
    padding: 40px;
  }
}

/* Original source does not animate on hover. Effects below are OPT-IN only. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .shb12--hover-lift .shb12__card,
  .shb12--hover-scale .shb12__card,
  .shb12--hover-shadow .shb12__card {
    transition: transform var(--shb12-hover-speed) ease,
                box-shadow var(--shb12-hover-speed) ease;
  }
  .shb12--hover-lift .shb12__card:hover { transform: translateY(calc(-1 * var(--shb12-hover-lift))); }
  .shb12--hover-scale .shb12__card:hover { transform: scale(1.015); }
  .shb12--hover-shadow .shb12__card:hover { box-shadow: 0 14px 36px rgba(1, 25, 63, 0.095); }
}

.shb12--reveal.shb12--js-ready .shb12__card:not(.shb12--visible) {
  opacity: 0;
  transform: translateY(14px);
}
.shb12--reveal.shb12--js-ready .shb12__card {
  transition: opacity 500ms ease, transform 500ms ease, box-shadow var(--shb12-hover-speed) ease;
  transition-delay: calc(var(--shb12-card-index, 0) * 75ms);
}
.shb12--reveal.shb12--js-ready .shb12__card.shb12--visible {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .shb12--reveal.shb12--hover-lift .shb12__card.shb12--visible:hover { transform: translateY(calc(-1 * var(--shb12-hover-lift))); }
  .shb12--reveal.shb12--hover-scale .shb12__card.shb12--visible:hover { transform: scale(1.015); }
}
@media (max-width: 767px) and (pointer: fine) {
  .shb12[data-mouse-drag="yes"] .shb12__grid { cursor: grab; }
  .shb12[data-mouse-drag="yes"] .shb12__grid.shb12--dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shb12__grid { scroll-behavior: auto !important; }
  .shb12__card { transition: none !important; opacity: 1 !important; transform: none !important; }
}
