/* ========================================
   Reviews Slider - Enhanced Design
   ======================================== */

/* Review Card Styling */
.review-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1rem;
  height: 100%;
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.1),
              0 10px 10px -5px rgba(124, 58, 237, 0.04),
              0 0 0 1px rgba(124, 58, 237, 0.05) !important;
}

.review-card:hover::before {
  opacity: 1;
}

/* Review Text Styling */
.review-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;       
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
  color: #475569;
  font-size: 0.9375rem;
  position: relative;
  min-height: 120px;
}

.review-text.text-muted {
  color: #64748b !important;
}

.review-text p,
.review-text div {
  display: inline;
  margin: 0;
}

.review-card:hover .review-text {
  color: #334155;
}

/* Stars Styling */
.review-card .text-warning {
  color: #fbbf24 !important;
}

.review-card .text-warning i {
  filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

/* Author Section */
.review-card .rounded-circle {
  border: 2px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  object-fit: cover;
}

.review-card:hover .rounded-circle {
  border-color: #e9d5ff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
  transform: scale(1.05);
}

.review-card h6.fw-semibold {
  color: #1e293b;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.review-card:hover h6.fw-semibold {
  color: #7c3aed;
}

.review-card small.text-muted {
  font-size: 0.8125rem;
  color: #64748b;
}

/* Placeholder Avatar */
.review-placeholder-avatar {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%) !important;
  transition: all 0.3s ease;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.review-card:hover .review-placeholder-avatar {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  border-color: #e9d5ff;
}

/* Slider Container */
.tiny-three-item {
  padding: 1rem 0;
}

.tiny-slide {
  padding: 0.5rem;
}

/* Navigation Dots - Enhanced Design */
.tns-nav {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tns-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid transparent;
  margin: 0;
  background: #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  position: relative;
  outline: none;
}

.tns-nav button::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tns-nav button:hover {
  background: #c4b5fd;
  transform: scale(1.2);
}

.tns-nav button:hover::before {
  opacity: 1;
}

.tns-nav button.tns-nav-active {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
  border-color: transparent;
}

.tns-nav button.tns-nav-active::before {
  opacity: 0;
}

/* RTL Support */
.tns-outer {
  direction: ltr;
}

[dir="rtl"] .tns-item {
  direction: rtl;
}

/* Testimonials Section Container */
.testimonials-section {
  position: relative;
  padding: 2rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .review-card {
    margin: 0 0.5rem;
  }
  
  .tiny-slide {
    padding: 0.25rem;
  }
  
  .tns-nav {
    margin-top: 2rem;
    gap: 0.5rem;
  }
  
  .tns-nav button {
    width: 10px;
    height: 10px;
  }
  
  .tns-nav button.tns-nav-active {
    width: 24px;
  }
}

/* Dark Mode Support (if applicable) */
html.dark .review-card {
  background: var(--bs-card-bg, #0f172a);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .review-text {
  color: rgba(226, 232, 240, 0.8);
}

html.dark .tns-nav button {
  background: #334155;
}

html.dark .tns-nav button:hover {
  background: #7c3aed;
}
