/* ========================================
   Testimonial Section Styles
   ======================================== */

.testimonial-template {
  padding: 60px 24px;
}

.testimonial-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 32px 0;
}

.testimonial-title.small {
  font-size: 18px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Banner Style (Style 5) */
.testimonial-template.style-5 {
  padding: 0;
}

.testimonial-banner {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  padding: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.testimonial-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 24px;
}

.testimonial-card.colored {
  padding: 24px;
  border-radius: 12px;
}

/* With Images (Style 4) */
.testimonial-cards-row.with-images {
  padding: 40px 24px;
}

.testimonial-card.with-image {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.testimonial-card.with-image .card-image {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.testimonial-card.with-image .card-image .testimonial-avatar {
  width: 80px;
  height: 80px;
}

/* Avatar */
.testimonial-avatar {
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-avatar span {
  color: white;
  font-weight: 600;
  font-size: 18px;
}

/* Stars */
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.testimonial-card.with-image .testimonial-stars {
  justify-content: center;
}

/* Text */
.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.testimonial-text.short {
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.testimonial-text.large {
  font-size: 18px;
  line-height: 1.7;
}

.testimonial-text.centered {
  text-align: center;
  font-size: 18px;
  font-style: italic;
}

/* Author */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author.small {
  gap: 8px;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
}

.author-role {
  font-size: 12px;
  color: #6b7280;
}

/* Image Grid (Animated) */
.testimonial-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-image-item {
  aspect-ratio: 1;
  min-height: 150px;
  border-radius: 12px;
  overflow: hidden;
}

.grid-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Large Card (Avatar style) */
.testimonial-large-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-large-card .card-content {
  flex: 1;
}

/* Slider */
.testimonial-template.slider {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-card {
  padding: 48px;
  border-radius: 16px;
  text-align: center;
  max-width: 700px;
  position: relative;
}

.quote-mark {
  font-size: 80px;
  color: #e5e7eb;
  line-height: 0.5;
  display: block;
  margin-bottom: 16px;
}

.slider-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-dot:hover {
  background: #9ca3af;
}

.slider-dot.active {
  background: #0891b2;
  width: 24px;
  border-radius: 5px;
}

/* Grid Style */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-grid-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* Minimal */
.testimonial-minimal-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-minimal-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* Video */
.testimonial-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.video-author {
  font-weight: 500;
  color: #374151;
  text-align: center;
}

/* ========================================
   Responsive - Media Queries (Storefront)
   ======================================== */
@media (max-width: 1024px) {
  .testimonial-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-grid,
  .testimonial-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonial-cards-row {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
  }
  
  .testimonial-cards-row .testimonial-card {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
  }
  
  .testimonial-cards-row.with-images .testimonial-card {
    flex: 0 0 220px;
    min-width: 220px;
  }
  
  .testimonial-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
  }
  
  .testimonial-grid-card {
    flex: 0 0 260px;
    min-width: 260px;
    scroll-snap-align: start;
  }
  
  .testimonial-minimal-row {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
  }
  
  .testimonial-minimal-card {
    flex: 0 0 300px;
    min-width: 300px;
  }
  
  .testimonial-video-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
  }
  
  .testimonial-video-grid .video-card {
    flex: 0 0 220px;
    min-width: 220px;
  }
  
  .testimonial-image-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
  }
  
  .testimonial-image-grid .grid-image-item {
    flex: 0 0 120px;
    min-width: 120px;
  }
  
  .testimonial-large-card {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-large-card .testimonial-avatar {
    margin: 0 auto;
  }
  
  .slider-card {
    padding: 24px;
  }
  
  .quote-mark {
    font-size: 48px;
  }
}

