/* ==========================================================================
   Elementor Testimonial Slider — Frontend Styles
   ========================================================================== */

.ets-testimonial-slider {
  --ets-radius: 24px;
  --ets-gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.ets-testimonial-slider *,
.ets-testimonial-slider *::before,
.ets-testimonial-slider *::after {
  box-sizing: border-box;
}

/* ---------- Main card ---------- */
.ets-main-swiper {
  width: 100%;
  overflow: hidden;
  border-radius: var(--ets-radius);
}
.ets-testimonial-slider .swiper-wrapper {
  gap: 12px;
}

.ets-main-card {
  border-radius: 24px;
  background:
    radial-gradient(
      ellipse 60% 50% at 0% 0%,
      rgba(32, 81, 249, 0.1),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 60% at 100% 100%,
      rgba(104, 163, 247, 0.08),
      transparent 60%
    ),
    #fff;
  border: 1px solid #e6e7e1;
  box-shadow: 0px 7px 25px -12px rgba(20, 20, 43, 0.12);
  overflow: hidden;
  isolation: isolate;
  animation: tm2FadeIn 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
}

.ets-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.ets-card-top-left svg{ 
width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(32, 81, 249, 0.10), rgba(32, 81, 249, 0.04));
    border: 1px solid rgba(32, 81, 249, 0.18);
    fill: #2051f9;
    display: inline-grid;
    place-items: center;
}

.ets-card-top-left {
    display: flex;
    align-items: center;
    gap: 18px; 
}
.ets-stars {
  display: inline-flex;
  gap: 4px;
  line-height: 1;
}

.ets-stars i {
  font-style: normal;
  font-size: 16px;
  color: #f5a623;
}

.ets-stars .ets-star-empty {
  opacity: 0.35;
}

.ets-category-badge {
  font-family:
    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ets-testimonial-text {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.32;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
  text-wrap: pretty;
  max-width: 64ch;
  color: #07080a;
  text-align: left;
  max-width: 100%;
}

.ets-divider {
  border: none;
  border-top: 1px dashed #eceef1;
  margin: 0 0 24px 0 !important;
}

.ets-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ets-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ets-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(15, 30, 80, 0.18);
  background: linear-gradient(135deg, #b24fa8, #6c4fd4);
  overflow: hidden;
  text-transform: uppercase;
}

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

.ets-person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ets-person-name {
  font-family: "General Sans", "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: #07080a;
}

.ets-person-role {
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 13.5px;
  line-height: 1.4;
  color: #6b7184;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ets-counter-current {
  font-weight: 700;
}
.ets-counter-total {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: #6b7184 !important;
}

.ets-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: #FAFAF7;
  border: 1px solid #e6e7e1;
  border-radius: 999px;
}

.ets-counter {
  font-family:
    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: #6b7184;
  padding: 0 6px;
}

.ets-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #16181d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.ets-nav-btn:hover {
  background: #f5f6f8;
  box-shadow: 0 2px 8px rgba(20, 20, 43, 0.1);
}

.ets-nav-btn:active {
  transform: scale(0.92);
}

.ets-main-swiper .swiper-pagination {
  position: static;
  margin-top: 16px;
  text-align: center;
}

.ets-main-swiper .swiper-pagination-bullet {
  background: #c9cdd6;
  opacity: 1;
}

.ets-main-swiper .swiper-pagination-bullet-active {
  background: #3a6df0;
}

/* ---------- Thumbnail navigation ---------- */
.ets-thumbs-swiper {
  width: 100%;
  overflow: hidden;
  padding: 25px 2px;
}

.ets-thumbs-swiper .swiper-slide {
  width: auto;
  height: auto;
}
.ets-thumbs-swiper .swiper-slide {
  margin-right: 0px !important;
}
.ets-thumbs-swiper .swiper-wrapper {
  margin-left: 5px !important;
}

.ets-thumb-card {
  width: -webkit-fill-available;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e9eaee;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
}
.ets-thumb-card:hover {
    transform: translateY(-2px);
    border-color: rgba(32, 81, 249, 0.30) !important;
    box-shadow: 0 10px 22px -10px rgba(32, 81, 249, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


.ets-thumb-card.is-active {
  border-color: #3a6df0;
  transform: scale(1.03);
  box-shadow:
    0 0 0 1px #2051f9,
    0 14px 28px -16px rgba(32, 81, 249, 0.25),
    0 0 10px rgba(255, 255, 255, 0.06);
}

.ets-thumb-card .ets-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.ets-thumb-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.ets-thumb-name {
  font-family: "General Sans", "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #07080a;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ets-thumb-company {
  font-family:
    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7184;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Fade transition polish ----------
 * Swiper's own effect-fade module manages slide opacity via inline
 * styles once JS initializes. We intentionally do NOT set
 * `opacity: 0` on `.swiper-slide` by default here: doing so hides
 * every slide until JavaScript runs and adds `.swiper-slide-active`,
 * which means the whole card disappears if Swiper is ever delayed,
 * blocked, or fails to load (e.g. a blocked CDN, a JS error from
 * another plugin, slow connections). Content should always be
 * visible first; JS only needs to *enhance* it. */
.ets-main-swiper .swiper-slide {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .ets-main-card {
    padding: 36px 40px 32px;
  }

  .ets-testimonial-text {
    font-size: 22px;
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ets-main-card {
    padding: 28px 22px 24px;
    border-radius: 18px;
  }

  .ets-card-top {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  .ets-testimonial-text {
    font-size: 18px;
    margin-bottom: 22px;
  }

  .ets-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .ets-nav-group {
    width: 100%;
    justify-content: space-between;
  }

  .ets-thumbs-swiper {
    margin-top: 14px;
  }

  .ets-thumb-card {
    padding: 10px 12px;
  }

  .ets-thumb-company {
    display: none;
  }
}
