/**
 * Laureate Learner Success Testimonials Section Styles
 *
 * @package Laureate
 * @version 1.0.0
 */

:root {
  --elite-blue: #0a2248;
  --elite-green: #1d960c;
  --elite-bg: #f8fafc;
  --elite-text: #475569;
  --elite-border: #e2e8f0;
  --star-gold: #f59e0b;
}

.evo-testimonial-elite,
.evo-testimonial-elite * {
  box-sizing: border-box;
}

.evo-testimonial-elite {
  background: #ffffff;
  padding: 30px 0;
  overflow: hidden;
  position: relative;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Header Styling --- */
.evo-test-head { 
  text-align: center; 
  margin-bottom: 60px; 
  padding: 0 20px; 
}

.evo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29, 150, 12, 0.08);
  color: var(--elite-green);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(29, 150, 12, 0.15);
}

.evo-test-head h2 { 
  font-size: 42px; 
  font-weight: 800;
  color: var(--elite-blue); 
  margin: 20px 0 16px; 
  letter-spacing: -0.5px;
}

.evo-test-head p {
  color: var(--elite-text);
  font-size: 18px;
  margin: 0;
}

/* --- Slider Wrapper & Track --- */
.evo-slider-wrap {
  width: 100%;
  overflow: hidden;
  /* Gradient masks for smooth fade-out on edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.evo-slider-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 20px 0 40px; /* Padding for hover shadows */
  animation: scrollLeft 45s linear infinite;
}

/* Pause animation when user hovers to read */
.evo-slider-wrap:hover .evo-slider-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Elite Card Styling --- */
.evo-t-card {
  width: 400px;
  background: #ffffff;
  border: 1px solid var(--elite-border);
  padding: 40px;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 15px rgba(10, 34, 72, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

/* Large Watermark Quote Icon */
.evo-t-card::before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24" fill="%23f1f5f9"><path d="M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"/></svg>');
  position: absolute;
  top: 30px;
  right: 30px;
  opacity: 0.5;
  z-index: -1;
}

.evo-t-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 34, 72, 0.08);
  border-color: rgba(29, 150, 12, 0.2);
}

/* Trust Stars */
.evo-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.evo-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--star-gold);
}

.evo-t-card p {
  color: var(--elite-text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 30px 0;
  font-weight: 500;
}

/* --- User Meta Styling --- */
.user-meta { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, 
              linear-gradient(135deg, var(--elite-green), var(--elite-blue)) border-box;
  padding: 2px;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-meta h3 { 
  font-size: 16px; 
  margin: 0 0 4px 0; 
  color: var(--elite-blue); 
  font-weight: 700;
}

.user-meta span { 
  font-size: 13.5px; 
  color: var(--elite-green); 
  font-weight: 600;
}

/* Responsive */
@media(max-width: 768px) {
  .evo-testimonial-elite { padding: 60px 0; }
  .evo-test-head h2 { font-size: 32px; }
  .evo-t-card { width: 320px; padding: 30px; }
}
