/* =========================================
   GloFusion Testimonial Slider — Styles
   Base styles only. All responsive values
   (sizes, spacing, colors) are injected by
   Elementor's responsive control system via
   @media rules using {{WRAPPER}} selectors.
   ========================================= */

/* ---- Fonts ---- */
.card-headline { font-family: 'DM Serif Display', serif; }
.testi-section,
.testi-card,
.card-body,
.author-info,
.author-avatar { font-family: 'DM Sans', sans-serif; }

/* ---- Section wrapper ---- */
.testi-section {
  width: 100%;
  max-width: 1000px;
  padding: 0 24px;
  position: relative;
  box-sizing: border-box;
}

/* ---- Viewport: clips horizontal overflow, shows vertical for image ---- */
.testi-viewport {
  overflow: hidden;
  padding: 36px 0 24px;
  box-sizing: border-box;
}

/* ---- Track ---- */
.testi-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* ---- Each slide item ---- */
.testi-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  transition: opacity 0.4s ease;
  box-sizing: border-box;
}

.testi-item.dimmed {
  opacity: 0.42;
  pointer-events: none;
}

/* ---- Image wrapper ---- */
.testi-img-wrap {
  width: 220px;
  height: 310px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
}

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

/* ---- Card ---- */
.testi-card {
  background: #dff0ec;
  border-radius: 16px;
  padding: 32px 32px 32px 44px;
  margin-left: -18px;
  z-index: 1;
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
}

/* ---- Stars ---- */
.stars {
  display: flex;
  gap: 5px;
}

.stars span {
  color: #f5a623;
  font-size: 17px;
  line-height: 1;
}

/* ---- Headline ---- */
.card-headline {
  font-size: 22px;
  line-height: 1.3;
  color: #1a1a2e;
  margin: 0;
  padding: 0;
}

/* ---- Body ---- */
.card-body {
  font-size: 13.5px;
  line-height: 1.75;
  color: #444455;
  max-width: 300px;
  margin: 0;
  padding: 0;
}

/* ---- Author row ---- */
.card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8d5c9, #7fb3b3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 13px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  flex-shrink: 0;
  overflow: hidden;
}

.author-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
}

.author-info span {
  font-size: 11.5px;
  color: #8a8a9a;
}

/* ---- Controls row ---- */
.testi-controls {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 0 4px;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: #d0d4d9;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 24px;
}

.progress-fill {
  height: 100%;
  background: #68C0C9;
  border-radius: 10px;
  transition: width 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-group {
  display: flex;
  gap: 10px;
}

.nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.18s, opacity 0.2s;
  padding: 0;
}

.nav-btn.prev {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-btn.prev:hover:not(:disabled) {
  background: #68C0C9;
  color: #fff;
  transform: scale(1.06);
}

.nav-btn.next {
  background: #68C0C9;
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,26,46,0.3);
}

.nav-btn.next:hover:not(:disabled) {
  background: #2e2e4a;
  transform: scale(1.06);
}

.nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

/* =========================================
   MOBILE BASE OVERRIDES
   Applied when JS switches to vertical mode.
   Elementor also injects its own responsive
   CSS via @media for any add_responsive_control.
   ========================================= */
@media (max-width: 767px) {

  .testi-viewport {
    padding: 0;
  }

  .testi-track {
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch;
  }

  .testi-item {
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    min-height: unset;
  }

  /* On mobile, items are hidden by overflow clip — no opacity fade needed */
  .testi-item.dimmed {
    opacity: 1;
  }

  .testi-img-wrap {
    width: 100% !important;
    height: 220px;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
  }

  .testi-card {
    margin-left: 0;
    border-radius: 0 0 16px 16px;
    padding: 24px 20px 28px;
    min-height: unset;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }

  .testi-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .progress-bar {
    margin-right: 0;
    width: 100%;
  }

  .btn-group {
    justify-content: center;
  }
}

/* =========================================
   TABLET BASE OVERRIDES (768–1024px)
   Fine-tune the side-by-side layout.
   ========================================= */
@media (min-width: 768px) and (max-width: 1024px) {

  .testi-card {
    padding: 28px 28px 28px 36px;
  }

  .testi-img-wrap {
    width: 180px;
    height: 260px;
  }
}
