/* Customer testimonial carousel — isolated continuation of the Sahand about module. */
@font-face {
  font-family: "SLC Univia Pro";
  src: url("../fonts/customer-testimonials/UniviaPro-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SLC Univia Pro";
  src: url("../fonts/customer-testimonials/UniviaPro-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.slc-about-shell .slc-customer-testimonials {
  --slc-ct-heading: #1e2539;
  --slc-ct-card-text: #ffffff;
  --slc-ct-secondary-text: rgb(255 255 255 / 0.68);
  --slc-ct-accent: #168cff;
  --slc-ct-route-accent: #b5db32;
  --slc-ct-focus: #75bfff;
  --slc-ct-frame-base: #24485f;
  --slc-ct-frame-border: rgb(255 255 255 / 0.13);
  --slc-ct-card-surface: rgb(255 255 255 / 0.075);
  --slc-ct-frame-radius: clamp(10px, 1.45vw, 22px);
  --slc-ct-font-latin: "SLC Univia Pro", "Segoe UI", Arial, Helvetica, sans-serif;
  --slc-ct-font-fa: "IRANSansX", "IRANYekanX", Tahoma, Arial, sans-serif;

  width: 100%;
  margin-top: clamp(26px, 2.8vw, 40px);
  color: var(--slc-ct-heading);
  direction: ltr;
  font-family: var(--slc-ct-font-latin);
}

.slc-about-shell .slc-ct-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border-radius: var(--slc-ct-frame-radius);
  background: var(--slc-ct-frame-base);
}

.slc-about-shell .slc-ct-frame::before {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 0;
  background: var(--slc-ct-frame-base);
  pointer-events: none;
}

.slc-about-shell .slc-ct-ambient {
  position: absolute;
  left: 50%;
  z-index: 0;
  width: 62%;
  height: 55%;
  border-radius: 999px;
  transform: translateX(-50%);
  filter: blur(clamp(72px, 9vw, 132px));
  pointer-events: none;
}

.slc-about-shell .slc-ct-ambient--top {
  top: -22%;
  background: rgb(59 130 246 / 0.24);
}

.slc-about-shell .slc-ct-ambient--bottom {
  bottom: -22%;
  background: rgb(168 85 247 / 0.2);
}

.slc-about-shell .slc-ct-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 528px;
  margin: 0;
  padding: 90px 132px 54px 72px;
  overflow: hidden;
  isolation: isolate;
  grid-template-columns: minmax(236px, 280px) minmax(0, 1fr);
  grid-template-rows: minmax(210px, auto) auto;
  column-gap: clamp(42px, 4.6vw, 62px);
  row-gap: 28px;
  align-content: center;
  border: 1px solid var(--slc-ct-frame-border);
  border-radius: var(--slc-ct-frame-radius);
  background:
    repeating-linear-gradient(
      45deg,
      rgb(147 197 253 / 0.062) 0 1px,
      transparent 1px 12px
    ),
    linear-gradient(135deg, rgb(255 255 255 / 0.045), transparent 54%),
    var(--slc-ct-card-surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: var(--slc-ct-card-text);
  direction: ltr;
}

.slc-about-shell .slc-ct-card > * {
  position: relative;
  z-index: 1;
}

.slc-about-shell .slc-ct-corner-label {
  position: absolute;
  z-index: 5;
  top: clamp(18px, 2vw, 28px);
  left: 0;
  display: inline-flex;
  min-width: clamp(192px, 18vw, 256px);
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px 11px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.17);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background:
    radial-gradient(circle at 82% 12%, rgb(116 184 255 / 0.22), transparent 72%),
    linear-gradient(105deg, rgb(255 255 255 / 0.1), rgb(14 38 68 / 0.08)),
    rgb(255 255 255 / 0.045);
  box-shadow:
    0 12px 30px rgb(0 0 0 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    inset 0 -8px 18px rgb(0 0 0 / 0.09);
  -webkit-backdrop-filter: blur(8px) saturate(88%) brightness(88%) contrast(110%);
  backdrop-filter: blur(8px) saturate(88%) brightness(88%) contrast(110%);
  color: rgb(255 255 255 / 0.96);
  direction: rtl;
  font-family: var(--slc-ct-font-fa);
  font-size: clamp(12.5px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.34);
  white-space: nowrap;
}

.slc-about-shell .slc-ct-side-heading {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: clamp(26px, 2.7vw, 40px);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.slc-about-shell .slc-ct-side-title {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.slc-about-shell .slc-ct-side-title__strong,
.slc-about-shell .slc-ct-side-title__light {
  display: block;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--slc-ct-font-latin);
  font-size: clamp(11.5px, 1.15vw, 17px);
  letter-spacing: 0.1em;
  line-height: 1.05;
}

.slc-about-shell .slc-ct-side-title__strong {
  color: #fff;
  font-weight: 700;
}

.slc-about-shell .slc-ct-side-title__light {
  color: var(--slc-ct-secondary-text);
  font-weight: 400;
}

.slc-about-shell .slc-ct-side-quote {
  position: absolute;
  top: -25px;
  right: -4px;
  width: 25px;
  height: auto;
  fill: none;
  stroke: var(--slc-ct-accent);
  stroke-linejoin: round;
  stroke-width: 2.4;
  transform: rotate(90deg);
}

.slc-about-shell .slc-ct-line-glow,
.slc-about-shell .slc-ct-line {
  position: absolute;
  z-index: 0;
  left: 50%;
  width: clamp(116px, 29vw, 382px);
  transform: translateX(-50%);
  pointer-events: none;
}

.slc-about-shell .slc-ct-line-glow {
  height: 8px;
  filter: blur(10px);
}

.slc-about-shell .slc-ct-line {
  height: 2px;
}

.slc-about-shell .slc-ct-line--top,
.slc-about-shell .slc-ct-line-glow--top {
  top: 0;
}

.slc-about-shell .slc-ct-line--bottom,
.slc-about-shell .slc-ct-line-glow--bottom {
  bottom: 0;
}

.slc-about-shell .slc-ct-line-glow--top {
  background: rgb(59 130 246 / 0.64);
}

.slc-about-shell .slc-ct-line--top {
  background: linear-gradient(90deg, transparent, #93c5fd 50%, transparent);
}

.slc-about-shell .slc-ct-line-glow--bottom {
  background: rgb(168 85 247 / 0.62);
}

.slc-about-shell .slc-ct-line--bottom {
  background: linear-gradient(90deg, transparent, #d8b4fe 50%, transparent);
}

.slc-about-shell .slc-ct-emblem {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: start;
}

.slc-about-shell .slc-ct-emblem__ring {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.slc-about-shell .slc-ct-emblem__text {
  fill: #f8f8f7;
  font-family: var(--slc-ct-font-latin);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 3px;
}

.slc-about-shell .slc-ct-emblem__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: min(46%, 142px);
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 19px rgb(22 140 255 / 0.2));
  pointer-events: none;
  user-select: none;
}

.slc-about-shell .slc-ct-live {
  width: 100%;
  min-width: 0;
  min-height: 210px;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.slc-about-shell .slc-ct-live.is-changing,
.slc-about-shell .slc-ct-author.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.slc-about-shell .slc-ct-quote {
  margin: 0;
}

.slc-about-shell .slc-ct-copy-frame {
  position: relative;
}

.slc-about-shell .slc-ct-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--slc-ct-card-text);
  direction: rtl;
  font-family: var(--slc-ct-font-fa);
  font-size: clamp(22px, 1.82vw, 27px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.76;
  overflow-wrap: break-word;
  text-align: right;
}

.slc-about-shell .slc-ct-inline-quote {
  position: absolute;
  z-index: 0;
  width: 34px;
  height: auto;
  fill: rgb(255 255 255 / 0.16);
  pointer-events: none;
}

.slc-about-shell .slc-ct-inline-quote--open {
  top: -14px;
  right: -38px;
}

.slc-about-shell .slc-ct-inline-quote--close {
  bottom: 2px;
  left: -32px;
}

.slc-about-shell .slc-ct-author {
  display: flex;
  width: 100%;
  min-width: 0;
  margin: 0;
  /* Optical correction: keep the author group breathing from the right rail. */
  padding-inline-start: clamp(16px, 5.75cqi, 76px);
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  align-self: start;
  gap: 24px;
  direction: rtl;
  font-family: var(--slc-ct-font-fa);
  transition: opacity 220ms ease, transform 220ms ease;
}

.slc-about-shell .slc-ct-author__avatar-wrap {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 50%;
  background: #eef3f5;
}

.slc-about-shell .slc-ct-author__avatar {
  display: block;
  width: 88px;
  height: 88px;
  padding: 11px;
  border-radius: 50%;
  object-fit: contain;
}

.slc-about-shell .slc-ct-author__meta {
  min-width: 0;
}

.slc-about-shell .slc-ct-author__name {
  display: block;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.slc-about-shell .slc-ct-author__role {
  display: flex;
  margin: 9px 0 0;
  align-items: center;
  gap: 6px;
  color: var(--slc-ct-route-accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.slc-about-shell .slc-ct-author__location {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: #fff;
}

.slc-about-shell .slc-ct-controls {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.slc-about-shell .slc-ct-control {
  position: absolute;
  top: 56%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: rgb(255 255 255 / 0.95);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.slc-about-shell .slc-ct-control--prev {
  left: 18px;
}

.slc-about-shell .slc-ct-control--next {
  right: 140px;
}

.slc-about-shell .slc-ct-control--pause {
  top: auto;
  right: 78px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  color: rgb(255 255 255 / 0.66);
  transform: none;
}

.slc-about-shell .slc-ct-control svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.slc-about-shell .slc-ct-control--pause svg {
  width: 20px;
  height: 20px;
}

.slc-about-shell .slc-ct-control-icon--play {
  display: none;
}

.slc-about-shell .slc-customer-testimonials[data-autoplay-paused="true"] .slc-ct-control-icon--pause {
  display: none;
}

.slc-about-shell .slc-customer-testimonials[data-autoplay-paused="true"] .slc-ct-control-icon--play {
  display: block;
}

.slc-about-shell .slc-ct-control:focus-visible {
  outline: 2px solid var(--slc-ct-focus);
  outline-offset: 2px;
}

.slc-about-shell .slc-ct-control:disabled {
  opacity: 0.44;
  cursor: default;
}

.slc-about-shell .slc-ct-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) and (pointer: fine) {
  .slc-about-shell .slc-ct-control:hover {
    background: rgb(255 255 255 / 0.09);
    color: #e6f2ff;
    transform: translateY(-50%) scale(1.06);
  }

  .slc-about-shell .slc-ct-control--pause:hover {
    transform: scale(1.06);
  }
}

@container slc-about (max-width: 1100px) {
  .slc-about-shell .slc-ct-card {
    padding: 82px 116px 50px 58px;
    grid-template-columns: minmax(210px, 248px) minmax(0, 1fr);
    column-gap: 40px;
  }

  .slc-about-shell .slc-ct-copy {
    font-size: clamp(21px, 2.25cqi, 25px);
  }

  .slc-about-shell .slc-ct-control--prev {
    left: 10px;
  }

  .slc-about-shell .slc-ct-control--next {
    right: 120px;
  }
}

@container slc-about (max-width: 860px) {
  .slc-about-shell .slc-customer-testimonials {
    margin-top: 32px;
  }

  .slc-about-shell .slc-ct-card {
    min-height: 0;
    padding: 72px 80px 40px 44px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 28px;
    justify-items: stretch;
  }

  .slc-about-shell .slc-ct-side-heading {
    right: 20px;
  }

  .slc-about-shell .slc-ct-side-title,
  .slc-about-shell .slc-ct-side-heading {
    gap: 7px;
  }

  .slc-about-shell .slc-ct-side-title__strong,
  .slc-about-shell .slc-ct-side-title__light {
    font-size: clamp(10px, 1.7cqi, 12px);
    letter-spacing: 0.08em;
  }

  .slc-about-shell .slc-ct-emblem {
    width: min(240px, 100%);
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .slc-about-shell .slc-ct-live {
    min-height: 0;
    grid-column: 1;
    grid-row: 2;
  }

  .slc-about-shell .slc-ct-copy {
    font-size: clamp(20px, 3.2cqi, 24px);
  }

  .slc-about-shell .slc-ct-author {
    grid-column: 1;
    grid-row: 3;
  }

  .slc-about-shell .slc-ct-controls {
    position: static;
    display: flex;
    width: 100%;
    grid-column: 1;
    grid-row: 4;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
  }

  .slc-about-shell .slc-ct-control,
  .slc-about-shell .slc-ct-control--pause {
    position: static;
    width: 44px;
    height: 44px;
    transform: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .slc-about-shell .slc-ct-control:hover,
    .slc-about-shell .slc-ct-control--pause:hover {
      transform: scale(1.06);
    }
  }
}

@container slc-about (max-width: 620px) {
  .slc-about-shell .slc-customer-testimonials {
    margin-top: 26px;
  }

  .slc-about-shell .slc-ct-card {
    padding: 70px 62px 30px 28px;
    row-gap: 24px;
  }

  .slc-about-shell .slc-ct-corner-label {
    top: 16px;
    min-width: 174px;
    min-height: 36px;
    padding: 8px 17px 9px;
    font-size: 12.5px;
  }

  .slc-about-shell .slc-ct-side-heading {
    right: 12px;
    gap: 5px;
  }

  .slc-about-shell .slc-ct-side-title {
    gap: 5px;
  }

  .slc-about-shell .slc-ct-side-title__strong,
  .slc-about-shell .slc-ct-side-title__light {
    font-size: clamp(9px, 2.35cqi, 11px);
    letter-spacing: 0.06em;
  }

  .slc-about-shell .slc-ct-side-quote {
    top: -18px;
    right: -2px;
    width: 18px;
  }

  .slc-about-shell .slc-ct-emblem {
    width: min(210px, 100%);
  }

  .slc-about-shell .slc-ct-copy {
    font-size: clamp(18.5px, 4.7cqi, 21px);
    line-height: 1.72;
  }

  .slc-about-shell .slc-ct-inline-quote {
    width: 28px;
  }

  .slc-about-shell .slc-ct-inline-quote--open {
    top: -11px;
    right: -20px;
  }

  .slc-about-shell .slc-ct-inline-quote--close {
    left: -18px;
  }

  .slc-about-shell .slc-ct-author {
    gap: 16px;
  }

  .slc-about-shell .slc-ct-author__avatar-wrap,
  .slc-about-shell .slc-ct-author__avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .slc-about-shell .slc-ct-author__avatar {
    padding: 9px;
  }

  .slc-about-shell .slc-ct-author__name {
    font-size: 18px;
  }

  .slc-about-shell .slc-ct-author__role {
    margin-top: 7px;
    font-size: 13px;
  }
}

@container slc-about (max-width: 390px) {
  .slc-about-shell .slc-ct-card {
    padding: 66px 52px 26px 20px;
    row-gap: 21px;
  }

  .slc-about-shell .slc-ct-corner-label {
    min-width: 156px;
    font-size: 12px;
  }

  .slc-about-shell .slc-ct-emblem {
    width: min(184px, 100%);
  }

  .slc-about-shell .slc-ct-copy {
    font-size: 17px;
    line-height: 1.7;
  }

  .slc-about-shell .slc-ct-author {
    gap: 13px;
  }

  .slc-about-shell .slc-ct-author__avatar-wrap,
  .slc-about-shell .slc-ct-author__avatar {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .slc-about-shell .slc-ct-author__name {
    font-size: 16px;
  }

  .slc-about-shell .slc-ct-author__role {
    font-size: 12px;
  }

  .slc-about-shell .slc-ct-control,
  .slc-about-shell .slc-ct-control--pause {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slc-about-shell .slc-ct-live,
  .slc-about-shell .slc-ct-author,
  .slc-about-shell .slc-ct-control {
    transition: none;
  }
}
