.ensaf-testimonials {
  --ensaf-t-accent: #8C001A;
  --ensaf-t-heading: #05365F;
  --ensaf-t-muted: #7C8591;
  --ensaf-t-text: #5B6472;
  --ensaf-t-star: #F2A93B;
  --ensaf-t-bg: #f7f7f5;
  --ensaf-t-font-heading: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --ensaf-t-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

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

.ensaf-testimonials__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.ensaf-testimonials__eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--ensaf-t-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--ensaf-t-accent);
  text-transform: capitalize;
  letter-spacing: normal;
  line-height: 1.2;
}

.ensaf-testimonials__heading {
  margin: 0;
  color: var(--ensaf-t-heading);
  font-family: var(--ensaf-t-font-heading);
  font-size: clamp(28px, 3vw, 45px);
  font-weight: 700;
  line-height: 120%;
  letter-spacing: normal;
}

.ensaf-testimonials__nav {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.ensaf-testimonials__nav button {
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ensaf-t-accent);
  color: #fff;
  font-size: 17px;
  line-height: 45px;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}

.ensaf-testimonials__nav button:hover { transform: translateY(-1px); background-color: var(--ensaf-t-heading); }
.ensaf-testimonials__nav button:disabled { opacity: .42; cursor: default; transform: none; }

.ensaf-testimonials__viewport { overflow: hidden; width: 100%; }
.ensaf-testimonials__track {
  display: flex;
  align-items: stretch;
  margin: 0 -12px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

.ensaf-testimonials__slide {
  flex: 0 0 calc((100% / var(--ensaf-t-cols-desktop, 2)) - 24px);
  width: calc((100% / var(--ensaf-t-cols-desktop, 2)) - 24px);
  min-width: 0;
  padding: 0 12px 10px;
}

.ensaf-testimonials__card {
  position: relative;
  height: 100%;
  border: 1px solid var(--ensaf-t-accent);
  border-radius: 16px;
  background: #fff;
  padding: 30px 20px;
  box-shadow: 0 6px 0 -2px var(--ensaf-t-accent);
}

.ensaf-testimonials__quote-icon {
  position: absolute;
  top: 24px;
  right: 26px;
  display: inline-flex;
  color: var(--ensaf-t-heading);
  opacity: .9;
}
.ensaf-testimonials__quote-icon svg { display: block; }

.ensaf-testimonials__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-right: 44px;
}

.ensaf-testimonials__avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: #e8e6e1;
}
.ensaf-testimonials__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ensaf-testimonials__person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ensaf-testimonials__name {
  font-family: var(--ensaf-t-font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ensaf-t-heading);
}

.ensaf-testimonials__role {
  font-family: var(--ensaf-t-font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ensaf-t-muted);
  line-height: 1.4;
}

.ensaf-testimonials__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  color: #d8dbe0;
}
.ensaf-testimonials__star { display: inline-flex; color: inherit; }
.ensaf-testimonials__star svg { display: block; }
.ensaf-testimonials__star--filled { color: var(--ensaf-t-star); }

.ensaf-testimonials__quote {
  margin: 0;
  font-family: var(--ensaf-t-font-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ensaf-t-text);
}

.ensaf-testimonials__empty {
  padding: 32px;
  border: 1px dashed var(--ensaf-t-accent);
  border-radius: 11px;
  background: var(--ensaf-t-bg);
  color: var(--ensaf-t-heading);
  font-family: var(--ensaf-t-font-body);
  text-align: center;
}

@media (max-width: 1024px) {
  .ensaf-testimonials__slide {
    flex-basis: calc((100% / var(--ensaf-t-cols-tablet, 1)) - 24px);
    width: calc((100% / var(--ensaf-t-cols-tablet, 1)) - 24px);
  }
  .ensaf-testimonials__heading { font-size: 32px; }
}

@media (max-width: 767px) {
  .ensaf-testimonials__top { align-items: center; margin-bottom: 20px; }
  .ensaf-testimonials__eyebrow { font-size: 15px; }
  .ensaf-testimonials__heading { font-size: 26px; }
  .ensaf-testimonials__card { padding: 24px 18px; }
  .ensaf-testimonials__quote-icon { top: 18px; right: 18px; }
  .ensaf-testimonials__nav button { width: 38px; height: 38px; line-height: 38px; font-size: 14px; }
  .ensaf-testimonials__slide { flex-basis: calc(100% - 24px); width: calc(100% - 24px); }
}
