#testimonials {
  background: linear-gradient(135deg, #e8f0fe 0%, #f1f3f4 100%);
}

#testimonials::before, #testimonials::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
#testimonials::before {
  width: 400px;
  height: 400px;
  background: rgba(13, 110, 253, 0.15);
  top: -100px;
  left: -100px;
}
#testimonials::after {
  width: 500px;
  height: 500px;
  background: rgba(25, 135, 84, 0.1);
  bottom: -150px;
  right: -150px;
}
#testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials-slider-container {
  position: relative;
  width: 100%;
  padding: 10px 52px;
}
@media (max-width: 767.98px) {
  .testimonials-slider-container {
    padding: 10px 0;
  }
}

.testimonials-viewport {
  overflow: hidden;
  width: 100%;
  padding: 20px 4px 30px;
  margin: -20px -4px -30px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.testimonials-viewport.is-dragging {
  cursor: grabbing;
}
.testimonials-viewport.is-dragging .testimonials-track {
  transition: none !important;
}
.testimonials-viewport.is-dragging .glass-card {
  pointer-events: none;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.testimonial-item {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  box-sizing: border-box;
}
@media (max-width: 991.98px) {
  .testimonial-item {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
}
@media (max-width: 575.98px) {
  .testimonial-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px 0 rgba(31, 38, 135, 0.06);
  border-radius: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  height: 100%;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px 0 rgba(31, 38, 135, 0.12);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 82, 204, 0.25);
}

.quote-icon-glass {
  position: absolute;
  top: -12px;
  right: 18px;
  font-size: 6.5rem;
  color: var(--bs-primary, #0052cc);
  opacity: 0.07;
  z-index: 0;
  transform: rotate(10deg);
  pointer-events: none;
  user-select: none;
}

.glass-content {
  position: relative;
  z-index: 1;
}

.glass-text-dark {
  color: #1e293b;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0052cc 0%, #2684ff 100%);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
  flex-shrink: 0;
}

.star-rating {
  color: #ffc107;
  font-size: 0.95rem;
  display: flex;
  gap: 3px;
}
.star-rating i {
  filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
}

.testimonial-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 82, 204, 0.18);
  color: var(--bs-primary, #0052cc);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.25, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  outline: none;
}
.testimonial-nav-btn:hover:not(:disabled) {
  background: var(--bs-primary, #0052cc);
  color: #ffffff;
  border-color: var(--bs-primary, #0052cc);
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.38);
  transform: translateY(-50%) scale(1.08);
}
.testimonial-nav-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}
.testimonial-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}
.testimonial-nav-btn.btn-prev {
  left: 0;
}
.testimonial-nav-btn.btn-next {
  right: 0;
}
@media (max-width: 767.98px) {
  .testimonial-nav-btn {
    position: static;
    transform: none;
  }
  .testimonial-nav-btn:hover:not(:disabled) {
    transform: scale(1.08);
  }
  .testimonial-nav-btn:active:not(:disabled) {
    transform: scale(0.96);
  }
}

.testimonials-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
  z-index: 2;
}
.testimonials-indicators .indicator-pill {
  width: 10px;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(0, 82, 204, 0.25);
  border: 0;
  padding: 0;
  margin: 0;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.25, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.testimonials-indicators .indicator-pill.active {
  width: 32px;
  background-color: var(--bs-primary, #0052cc);
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.4);
}
.testimonials-indicators .indicator-pill:hover:not(.active) {
  background-color: rgba(0, 82, 204, 0.45);
}

.mobile-controls-row {
  display: none;
}
@media (max-width: 767.98px) {
  .mobile-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 1.25rem;
  }
}

[data-bs-theme=dark] #testimonials {
  background: linear-gradient(135deg, #121212 0%, #1a1d20 100%);
}
[data-bs-theme=dark] #testimonials::before {
  background: rgba(13, 110, 253, 0.1);
}
[data-bs-theme=dark] #testimonials::after {
  background: rgba(25, 135, 84, 0.08);
}
[data-bs-theme=dark] #testimonials .glass-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 32px 0 rgba(0, 0, 0, 0.35);
}
[data-bs-theme=dark] #testimonials .glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.5);
}
[data-bs-theme=dark] #testimonials .glass-text-dark {
  color: #e9ecef !important;
}
[data-bs-theme=dark] #testimonials .quote-icon-glass {
  color: #60a5fa;
  opacity: 0.06;
}
[data-bs-theme=dark] #testimonials .testimonial-nav-btn {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
[data-bs-theme=dark] #testimonials .testimonial-nav-btn:hover:not(:disabled) {
  background: var(--bs-primary, #0052cc);
  color: #ffffff;
  border-color: var(--bs-primary, #0052cc);
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.55);
}
[data-bs-theme=dark] #testimonials .testimonials-indicators .indicator-pill {
  background-color: rgba(255, 255, 255, 0.2);
}
[data-bs-theme=dark] #testimonials .testimonials-indicators .indicator-pill.active {
  background-color: var(--bs-primary, #0052cc);
  box-shadow: 0 2px 10px rgba(0, 82, 204, 0.6);
}
[data-bs-theme=dark] #testimonials .testimonials-indicators .indicator-pill:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.4);
}

