/* Meta testimonials — profile rail + quote card (no stars) */

.meta-testimonials {
  background: var(--meta-bg-offwhite, #f8f7f4);
}

.meta-testimonials.section-padding {
  padding-top: 56px;
  padding-bottom: 96px;
}

.meta-testimonials .sec-head {
  margin-bottom: 0;
}

.meta-testimonials .sec-head p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.meta-test-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1140px;
  margin: 20px auto 0;
  padding: 0 16px;
}

/* —— Avatar rail —— */
.meta-test-nav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.meta-test-avatar {
  display: block;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 22px;
  overflow: hidden;
  width: 96px;
  height: 118px;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  filter: grayscale(1);
  opacity: 0.72;
}

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

.meta-test-avatar.is-active {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: 0 0 0 2px #c24bda;
}

.meta-test-avatar:focus-visible {
  outline: 2px solid #c24bda;
  outline-offset: 4px;
}

/* —— Quote card —— */
.meta-test-card {
  flex: 1;
  min-width: 0;
  min-height: 280px;
  height: auto;
  max-height: none;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px;
  padding: 40px 48px 32px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: visible;
  box-sizing: border-box;
}

.meta-test-quote-icon {
  position: absolute;
  top: 28px;
  right: 40px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(120px, 14vw, 180px);
  line-height: 1;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  user-select: none;
}

.meta-test-quote {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.65 !important;
  color: #1a1a1a;
  letter-spacing: 0;
  max-width: 100%;
  display: block !important;
  overflow: visible !important;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  max-height: none !important;
  height: auto !important;
}

.meta-test__bilingual {
  display: block;
}

[dir="ltr"] .meta-test__bilingual--ar,
html[lang="en"] .meta-test__bilingual--ar {
  display: none !important;
}

[dir="rtl"] .meta-test__bilingual--en,
html[lang="ar"] .meta-test__bilingual--en {
  display: none !important;
}

.meta-test-name .meta-test__bilingual,
.meta-test-role .meta-test__bilingual {
  display: inline;
}

.meta-test-name,
.meta-test-role {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.meta-test-detail {
  display: none !important;
}

.meta-test-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  flex-shrink: 0;
}

.meta-test-name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  font-family: Georgia, 'Times New Roman', serif;
  max-width: 100%;
}

.meta-test-role {
  margin: 0;
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  max-width: 100%;
}

.meta-test-divider {
  margin: 20px 0 0;
  flex-shrink: 0;
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.14);
}

.meta-test-card.is-changing .meta-test-quote,
.meta-test-card.is-changing .meta-test-name,
.meta-test-card.is-changing .meta-test-role {
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

/* RTL */
[dir="rtl"] .meta-test-wrap {
  flex-direction: row-reverse;
}

[dir="rtl"] .meta-test-quote-icon {
  right: auto;
  left: 40px;
}

[dir="rtl"] .meta-test-quote,
[dir="rtl"] .meta-test-detail,
[dir="rtl"] .meta-test-footer {
  text-align: right;
}

[dir="ltr"] .meta-test-quote,
[dir="ltr"] .meta-test-detail,
[dir="ltr"] .meta-test-footer {
  text-align: left;
}

/* Hide legacy slick */
.meta-testimonials .slic-item,
.meta-testimonials .arrows {
  display: none !important;
}

@media (max-width: 991px) {
  .meta-testimonials.section-padding {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .meta-test-wrap {
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
    align-items: stretch;
  }

  [dir="rtl"] .meta-test-wrap {
    flex-direction: column;
  }

  .meta-test-nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .meta-test-avatar {
    width: 80px;
    height: 98px;
  }

  .meta-test-card {
    min-height: 260px;
    padding: 32px 24px 28px;
  }

  .meta-test-quote-icon {
    top: 16px;
    right: 20px;
    font-size: 100px;
  }

  [dir="rtl"] .meta-test-quote-icon {
    left: 20px;
  }

  .meta-test-detail {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .meta-test-card {
    min-height: 260px;
  }

  .meta-test-quote {
    font-size: 17px;
    line-height: 1.7;
  }

  .meta-test-name {
    font-size: 18px;
  }
}
