.meliteh-testimonials {
  padding: clamp(24px, 3.5vw, 44px) 0;
}

.meliteh-testimonials__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.meliteh-testimonials__header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.meliteh-testimonials__title {
  margin: 0;
  color: #141414;
}

.meliteh-testimonials__intro {
  margin: 14px 0 0;
  color: #585858;
  font-size: 16px;
  line-height: 1.7;
}

.meliteh-testimonials__intro p,
.meliteh-testimonials__quote p {
  margin: 0;
}

.meliteh-testimonials__carousel-wrap {
  position: relative;
}

.meliteh-testimonials__carousel-wrap::before,
.meliteh-testimonials__carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 46px;
  pointer-events: none;
}

.meliteh-testimonials__carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.meliteh-testimonials__carousel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

.meliteh-testimonials__scroll-cue {
  position: absolute;
  top: -46px;
  right: 0;
  margin: 0;
  color: #141414;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.meliteh-testimonials__scroll-cue::after {
  content: " ->";
  color: #d20027;
}

.meliteh-testimonials__carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) * 0.4);
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 18px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.meliteh-testimonials__carousel::-webkit-scrollbar {
  display: none;
}

.meliteh-testimonials__carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.meliteh-testimonials__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 300px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.09);
  border-radius: 8px;
  scroll-snap-align: start;
}

.meliteh-testimonials__card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.meliteh-testimonials__image,
.meliteh-testimonials__avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e8ebef;
}

.meliteh-testimonials__image {
  object-fit: cover;
}

.meliteh-testimonials__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8ebef;
  color: #d20027;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.meliteh-testimonials__person {
  min-width: 0;
}

.meliteh-testimonials__name {
  margin: 0;
  color: #141414;
  font-size: 18px;
  line-height: 1.3;
}

.meliteh-testimonials__tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(210, 0, 39, 0.08);
  color: #d20027;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.meliteh-testimonials__quote {
  margin-top: 22px;
  color: #585858;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .meliteh-testimonials__carousel {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

@media (max-width: 700px) {
  .meliteh-testimonials {
    padding: 21px 0;
  }

  .meliteh-testimonials__header {
    margin-bottom: 28px;
  }

  .meliteh-testimonials__scroll-cue {
    position: static;
    margin: 0 0 12px;
    text-align: center;
  }

  .meliteh-testimonials__carousel {
    grid-auto-columns: 100%;
    gap: 16px;
  }

  .meliteh-testimonials__carousel-wrap::before,
  .meliteh-testimonials__carousel-wrap::after {
    width: 28px;
  }
}
