/* ==========================================================================
   EasyUni Edu — Testimonials Page Styles
   Premium student story showcase with glass cards, smooth animations.
   ========================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.testim-hero {
  background: linear-gradient(170deg, #F8FAFC 0%, #EEF2FF 40%, #F0F9FF 100%);
  padding: var(--space-20) var(--space-6) var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testim-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
}

.testim-hero h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.testim-hero p {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  max-width: 650px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.testim-hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.testim-hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testim-hero-stat-num {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testim-hero-stat span:last-child {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  font-weight: 500;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Featured Story ────────────────────────────────────────────────────── */
.testim-featured { max-width: 800px; margin: 0 auto; }

.testim-featured-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 32px rgba(124,58,237,0.06);
  animation: testimCardIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.testim-featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.5px;
}

.testim-featured-card blockquote {
  font-size: var(--text-lg);
  color: var(--color-ink);
  line-height: 1.8;
  margin: 0 0 var(--space-6) 0;
  font-style: italic;
  quotes: none;
}

.testim-featured-card .testim-stars {
  margin-bottom: var(--space-4);
}

.testim-featured-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.testim-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: var(--text-lg);
}

/* ── Testimonial Grid ──────────────────────────────────────────────────── */
.testim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

.testim-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 24px rgba(124,58,237,0.04);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
              border-color 0.4s;
  animation: testimCardIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
  opacity: 0;
}

.testim-card:nth-child(1) { animation-delay: 0s; }
.testim-card:nth-child(2) { animation-delay: 0.08s; }
.testim-card:nth-child(3) { animation-delay: 0.16s; }
.testim-card:nth-child(4) { animation-delay: 0.24s; }
.testim-card:nth-child(5) { animation-delay: 0.32s; }
.testim-card:nth-child(6) { animation-delay: 0.40s; }

@keyframes testimCardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testim-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 16px 40px rgba(124,58,237,0.1);
}

.testim-card p {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: 1.7;
  flex: 1;
  margin: 0 0 var(--space-5) 0;
}

.testim-stars {
  font-size: 14px;
  color: #F59E0B;
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.testim-card .testimonial-author { margin-top: auto; }

/* ── Stats Row ─────────────────────────────────────────────────────────── */
.testim-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

.testim-stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
  animation: testimCardIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.testim-stat-card:nth-child(1) { animation-delay: 0s; }
.testim-stat-card:nth-child(2) { animation-delay: 0.1s; }
.testim-stat-card:nth-child(3) { animation-delay: 0.2s; }
.testim-stat-card:nth-child(4) { animation-delay: 0.3s; }

.testim-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(124,58,237,0.08);
}

.testim-stat-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.testim-stat-num {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testim-stat-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .testim-grid { grid-template-columns: repeat(2, 1fr); }
  .testim-stats-row { grid-template-columns: repeat(2, 1fr); }
  .testim-hero h1 { font-size: var(--text-4xl); }
}

@media (max-width: 640px) {
  .testim-grid { grid-template-columns: 1fr; max-width: 440px; }
  .testim-stats-row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .testim-hero { padding: var(--space-16) var(--space-4) var(--space-12); }
  .testim-hero h1 { font-size: var(--text-3xl); }
  .testim-hero-stats { gap: var(--space-6); }
  .testim-hero-stat-num { font-size: var(--text-2xl); }
  .testim-featured-card { padding: var(--space-8) var(--space-6); }
  .testim-featured-card blockquote { font-size: var(--text-base); }
}
