.hanis-testimonials {
  position: relative;
  width: 100%;
  padding: 90px 28px 100px;
  overflow: hidden;
  isolation: isolate;
  background: #f8f7fc;
}

.hanis-testimonials,
.hanis-testimonials *,
.hanis-testimonials *::before,
.hanis-testimonials *::after {
  box-sizing: border-box;
}

.hanis-testimonials__decoration {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hanis-testimonials__decoration--one {
  top: -160px;
  left: -130px;
  background: radial-gradient(circle, rgba(123, 97, 209, .18), rgba(123, 97, 209, 0) 70%);
}

.hanis-testimonials__decoration--two {
  right: -150px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(239, 108, 157, .16), rgba(239, 108, 157, 0) 70%);
}

.hanis-testimonials__container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

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

.hanis-testimonials__eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ece7ff;
  color: #7b61d1;
  border-radius: 999px;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hanis-testimonials__eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(123, 97, 209, .12);
}

.hanis-testimonials__heading {
  margin: 0 !important;
  padding: 0 !important;
  color: #17141f;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 54px !important;
  line-height: 1.08 !important;
  font-weight: 500 !important;
  letter-spacing: -.035em !important;
  text-align: center !important;
  text-transform: none !important;
}

.hanis-testimonials__description {
  max-width: 620px;
  margin: 20px auto 0;
  color: #656171;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  text-align: center;
}

/*
 * Fixed card width + wrapping:
 * cards never get squeezed to remain in the same row.
 */
.hanis-testimonials__cards {
  --hanis-testimonial-card-width: 370px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
}

.hanis-testimonial {
  width: var(--hanis-testimonial-card-width);
  min-width: var(--hanis-testimonial-card-width);
  max-width: var(--hanis-testimonial-card-width);
  flex: 0 0 var(--hanis-testimonial-card-width);
  display: flex;
}

.hanis-testimonial:nth-child(3n + 1) {
  --hanis-card-accent: #7b61d1;
  --hanis-card-accent-soft: #f1edff;
  --hanis-card-glow: rgba(123, 97, 209, .18);
}

.hanis-testimonial:nth-child(3n + 2) {
  --hanis-card-accent: #ef6c9d;
  --hanis-card-accent-soft: #ffedf4;
  --hanis-card-glow: rgba(239, 108, 157, .17);
}

.hanis-testimonial:nth-child(3n) {
  --hanis-card-accent: #2cb9b3;
  --hanis-card-accent-soft: #e5f9f7;
  --hanis-card-glow: rgba(44, 185, 179, .17);
}

.hanis-testimonial__card {
  position: relative;
  width: 100%;
  min-height: 420px;
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9e5f1;
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(43, 35, 68, .09);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

.hanis-testimonial__card::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--hanis-card-glow), rgba(255, 255, 255, 0) 68%);
  border-radius: 50%;
  pointer-events: none;
}

.hanis-testimonial__card:hover {
  border-color: #cfc4f1;
  transform: translateY(-6px);
}

.hanis-testimonial__accent {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background:
    linear-gradient(
      90deg,
      var(--hanis-card-accent),
      color-mix(in srgb, var(--hanis-card-accent) 45%, #ffffff)
    );
}

.hanis-testimonial__top {
  position: relative;
  z-index: 1;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hanis-testimonial__quote {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  background: var(--hanis-card-accent-soft, #f1edff);
  color: var(--hanis-card-accent, #7b61d1);
  border-radius: 18px;
  font-family: Georgia, serif;
  font-size: 53px;
  line-height: 1;
  font-weight: 700;
}

.hanis-testimonial__stars {
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  background: #fff7e9;
  color: #f2a83a;
  border: 1px solid rgba(242, 168, 58, .15);
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.hanis-testimonial__text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #403b4c;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

.hanis-testimonial__author {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hanis-testimonial__avatar-wrap {
  position: relative;
  width: max-content;
  flex: 0 0 auto;
  padding: 3px;
  background:
    linear-gradient(
      135deg,
      var(--hanis-card-accent, #7b61d1),
      var(--hanis-card-accent-soft, #f1edff)
    );
  border-radius: 50%;
  box-shadow: 0 8px 22px var(--hanis-card-glow);
}

.hanis-testimonial__avatar {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: cover;
  background: #f1f1f4;
  border: 3px solid #fff;
  border-radius: 50%;
}

.hanis-testimonial__author-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hanis-testimonial__name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hanis-testimonial__name {
  color: #17141f;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.hanis-testimonial__verified {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2cb9b3;
  color: #fff;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.hanis-testimonial__label {
  color: #7b7685;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

@media (max-width: 1024px) {
  .hanis-testimonials {
    padding: 72px 22px 80px;
  }

  .hanis-testimonials__header {
    margin-bottom: 44px;
  }

  .hanis-testimonials__heading {
    font-size: 44px !important;
  }

  .hanis-testimonials__description {
    font-size: 16px !important;
  }

  .hanis-testimonials__cards {
    --hanis-testimonial-card-width: 340px;
    gap: 22px;
  }

  .hanis-testimonial__card {
    min-height: 410px;
    padding: 30px 26px 25px;
  }
}

@media (max-width: 767px) {
  .hanis-testimonials {
    padding: 56px 16px 64px;
  }

  .hanis-testimonials__header {
    margin-bottom: 36px;
  }

  .hanis-testimonials__eyebrow {
    font-size: 10px;
    letter-spacing: .1em;
  }

  .hanis-testimonials__heading {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  .hanis-testimonials__description {
    margin-top: 16px;
    font-size: 15px !important;
  }

  .hanis-testimonials__cards {
    --hanis-testimonial-card-width: 340px;
    gap: 18px;
  }

  .hanis-testimonial {
    width: min(var(--hanis-testimonial-card-width), 100%);
    min-width: min(var(--hanis-testimonial-card-width), 100%);
    max-width: min(var(--hanis-testimonial-card-width), 100%);
    flex-basis: min(var(--hanis-testimonial-card-width), 100%);
  }

  .hanis-testimonial__card {
    min-height: 400px;
    padding: 28px 22px 22px;
    border-radius: 24px;
  }

  .hanis-testimonial__top {
    margin-bottom: 22px;
  }

  .hanis-testimonial__quote {
    width: 52px;
    height: 52px;
    padding-top: 12px;
    border-radius: 16px;
    font-size: 48px;
  }

  .hanis-testimonial__stars {
    font-size: 12px;
  }

  .hanis-testimonial__text {
    font-size: 15px !important;
  }

  .hanis-testimonial__author {
    padding-top: 26px;
  }
}


/* =========================================================
   V1.2 — full-width branded layout with fixed wrapping cards
   ========================================================= */

/*
 * Break out of narrow Astra/Elementor containers. The section spans the
 * viewport, while its content remains centered inside a controlled width.
 */
.elementor-widget-hanis_testimonials {
  width: 100% !important;
  max-width: none !important;
}

.elementor-widget-hanis_testimonials .elementor-widget-container {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonials {
  position: relative !important;
  left: 50% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 88px clamp(20px, 4vw, 72px) 96px !important;
  background:
    radial-gradient(circle at 10% 12%, rgba(139, 103, 216, .10), transparent 28%),
    linear-gradient(180deg, #fbfaff 0%, #f7f5fc 100%) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonials__container {
  width: 100% !important;
  max-width: 1260px !important;
  margin-inline: auto !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonials__header {
  max-width: 780px !important;
  margin: 0 auto 56px !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonials__eyebrow {
  background: #eee8ff !important;
  color: #7657c9 !important;
  border: 1px solid rgba(118, 87, 201, .12) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonials__eyebrow-dot {
  background: #7657c9 !important;
  box-shadow: 0 0 0 4px rgba(118, 87, 201, .12) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonials__heading {
  color: #171821 !important;
  font-size: clamp(44px, 4.1vw, 62px) !important;
  line-height: 1.06 !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonials__description {
  max-width: 650px !important;
  color: #666270 !important;
  font-size: 17px !important;
}

/*
 * Fixed-width wrapping system. Cards never compress. The complete card moves
 * to the next row as soon as its full width cannot fit.
 */
.elementor-widget-hanis_testimonials .hanis-testimonials__cards {
  --hanis-testimonial-card-width: 380px !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 28px !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial {
  width: var(--hanis-testimonial-card-width) !important;
  min-width: var(--hanis-testimonial-card-width) !important;
  max-width: var(--hanis-testimonial-card-width) !important;
  flex: 0 0 var(--hanis-testimonial-card-width) !important;

  /*
   * One consistent brand accent for every card.
   */
  --hanis-card-accent: #8b67d8 !important;
  --hanis-card-accent-soft: #f0ebff !important;
  --hanis-card-glow: rgba(139, 103, 216, .15) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial:nth-child(n) {
  --hanis-card-accent: #8b67d8 !important;
  --hanis-card-accent-soft: #f0ebff !important;
  --hanis-card-glow: rgba(139, 103, 216, .15) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__card {
  min-height: 440px !important;
  padding: 36px 32px 30px !important;
  background: #ffffff !important;
  border: 1px solid #e4def0 !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 46px rgba(32, 36, 55, .09) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__card:hover {
  border-color: #cfc1ed !important;
  box-shadow: 0 24px 56px rgba(32, 36, 55, .13) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__accent {
  height: 5px !important;
  background: linear-gradient(90deg, #7657c9, #a98ce8) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__card::after {
  right: -95px !important;
  bottom: -110px !important;
  width: 240px !important;
  height: 240px !important;
  background:
    radial-gradient(circle, rgba(139, 103, 216, .14), rgba(255,255,255,0) 68%) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__quote {
  background: #f0ebff !important;
  color: #7657c9 !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__stars {
  background: #fff8e9 !important;
  color: #f2a83a !important;
  border-color: rgba(242, 168, 58, .18) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__text {
  color: #3f3c48 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__avatar-wrap {
  background: linear-gradient(135deg, #7657c9, #aa91e5) !important;
  box-shadow: 0 8px 22px rgba(118, 87, 201, .18) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__name {
  color: #202437 !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__label {
  color: #74707c !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__verified {
  background: #8b67d8 !important;
}

/* Remove the old pink and mint decorative blobs. */
.elementor-widget-hanis_testimonials .hanis-testimonials__decoration--one {
  background:
    radial-gradient(circle, rgba(139, 103, 216, .14), rgba(139, 103, 216, 0) 70%) !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonials__decoration--two {
  background:
    radial-gradient(circle, rgba(139, 103, 216, .09), rgba(139, 103, 216, 0) 70%) !important;
}

/* Tablet: two full cards; no squeezing. */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-widget-hanis_testimonials .hanis-testimonials {
    padding: 72px 22px 80px !important;
  }

  .elementor-widget-hanis_testimonials .hanis-testimonials__cards {
    --hanis-testimonial-card-width: 340px !important;
    gap: 22px !important;
  }

  .elementor-widget-hanis_testimonials .hanis-testimonial__card {
    min-height: 420px !important;
    padding: 32px 27px 26px !important;
  }
}

/* Mobile: one complete fixed-proportion card per row. */
@media (max-width: 767px) {
  .elementor-widget-hanis_testimonials .hanis-testimonials {
    padding: 56px 16px 64px !important;
  }

  .elementor-widget-hanis_testimonials .hanis-testimonials__header {
    margin-bottom: 38px !important;
  }

  .elementor-widget-hanis_testimonials .hanis-testimonials__heading {
    font-size: clamp(34px, 10vw, 44px) !important;
  }

  .elementor-widget-hanis_testimonials .hanis-testimonials__description {
    font-size: 15px !important;
  }

  .elementor-widget-hanis_testimonials .hanis-testimonials__cards {
    --hanis-testimonial-card-width: 360px !important;
    gap: 20px !important;
  }

  .elementor-widget-hanis_testimonials .hanis-testimonial {
    width: min(var(--hanis-testimonial-card-width), 100%) !important;
    min-width: min(var(--hanis-testimonial-card-width), 100%) !important;
    max-width: min(var(--hanis-testimonial-card-width), 100%) !important;
    flex-basis: min(var(--hanis-testimonial-card-width), 100%) !important;
  }

  .elementor-widget-hanis_testimonials .hanis-testimonial__card {
    min-height: 405px !important;
    padding: 29px 23px 23px !important;
    border-radius: 23px !important;
  }
}


/* =========================================================
   V1.3 — centered customer images with direct purple border
   ========================================================= */

.elementor-widget-hanis_testimonials .hanis-testimonial__avatar-wrap {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__avatar {
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #ffffff !important;
  border-style: solid !important;
  border-width: 3px;
  border-color: #8b67d8;
  border-radius: 50%;
  box-shadow: none !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__author {
  align-items: center !important;
}

.elementor-widget-hanis_testimonials .hanis-testimonial__author-copy {
  justify-content: center !important;
}
