/* Testimonials slider — [bh_testimonials_slider]; palette matches .bh-cta-btn / :root --bh-navy */
.bh-testimonials-slider {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 4% 56px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}
.bh-testimonials-slider *,
.bh-testimonials-slider *::before,
.bh-testimonials-slider *::after {
  box-sizing: border-box;
}

.bh-testimonials-slider .bh-ts-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.bh-testimonials-slider .bh-ts-label-line {
  width: 120px;
  flex: 0 0 120px;
  height: 2px;
  background: rgba(31, 58, 95, 0.35);
  display: block;
}
.bh-testimonials-slider .bh-ts-label-text {
  color: var(--bh-navy, #1f3a5f);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bh-testimonials-slider .bh-ts-title {
  margin: 0 0 2.5rem;
  color: #1a1a1a;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.bh-testimonials-slider .bh-ts-viewport {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.bh-testimonials-slider .bh-ts-track {
  display: flex;
  width: 200%;
  transition: transform 0.45s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .bh-testimonials-slider .bh-ts-track { transition: none; }
}

.bh-testimonials-slider .bh-ts-page {
  flex: 0 0 50%;
  width: 50%;
  padding: 0 0.25rem;
}

.bh-testimonials-slider .bh-ts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

/* بطاقة */
.bh-testimonials-slider .bh-ts-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  /* مسافة علوية حتى نصف الدائرة فوق البطاقة لا يغطي الصف السابق */
  padding-top: 28px;
}

.bh-testimonials-slider .bh-ts-card-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 2px;
  overflow: visible;
}

.bh-testimonials-slider .bh-ts-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  /* مسافة علوية للنص تحت أيقونة التنصيص التي تتداخل من الأعلى */
  padding: 2.35rem 1.35rem 1.6rem;
  text-align: center;
  overflow: visible;
}

/* علامة التنصيص: في المنتصف، نصفها فوق حافة البطاقة ونصفها داخلها */
.bh-testimonials-slider .bh-ts-quote-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  z-index: 2;
}

.bh-testimonials-slider .bh-ts-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 700;
  color: var(--bh-navy, #1f3a5f);
  margin: 0;
  padding: 0;
  display: block;
  margin-top: 2px;
}

.bh-testimonials-slider .bh-ts-text {
  margin: 0;
  color: #333;
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* مثلث يشير لأسفل */
.bh-testimonials-slider .bh-ts-pointer {
  position: absolute;
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
  z-index: 1;
}

/* المؤلف: المجموعة (صورة + اسم) في منتصف عرض الشهادة */
.bh-testimonials-slider .bh-ts-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

[dir="rtl"] .bh-testimonials-slider .bh-ts-author {
  flex-direction: row;
}

[dir="ltr"] .bh-testimonials-slider .bh-ts-author {
  flex-direction: row-reverse;
}

.bh-testimonials-slider .bh-ts-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bh-navy, #1f3a5f) 0%, #253d5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(31, 58, 95, 0.28), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bh-testimonials-slider .bh-ts-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bh-testimonials-slider .bh-ts-avatar svg {
  width: 32px;
  height: 32px;
  color: #fff;
  opacity: 0.95;
}

.bh-testimonials-slider .bh-ts-meta {
  text-align: right;
  min-width: 0;
}

[dir="ltr"] .bh-testimonials-slider .bh-ts-meta {
  text-align: left;
}

.bh-testimonials-slider .bh-ts-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.bh-testimonials-slider .bh-ts-role {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  line-height: 1.4;
}

/* النقاط */
.bh-testimonials-slider .bh-ts-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
}

.bh-testimonials-slider .bh-ts-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d8d8d8;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bh-testimonials-slider .bh-ts-dot:hover {
  background: rgba(31, 58, 95, 0.35);
}

.bh-testimonials-slider .bh-ts-dot.is-active {
  background: var(--bh-navy, #1f3a5f);
  transform: scale(1.05);
}

.bh-testimonials-slider .bh-ts-dot:focus-visible {
  outline: 2px solid var(--bh-navy, #1f3a5f);
  outline-offset: 2px;
}

@media (max-width: 992px) {
  .bh-testimonials-slider .bh-ts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bh-testimonials-slider .bh-ts-page {
    padding: 0;
  }
}

@media (max-width: 576px) {
  .bh-testimonials-slider {
    padding: 36px 4% 44px;
  }
  .bh-testimonials-slider .bh-ts-title {
    margin-bottom: 1.75rem;
  }
  .bh-testimonials-slider .bh-ts-label-line {
    width: 56px;
    flex-basis: 56px;
  }
}
