/* ==========================================
   [MODULE] TESTIMONIALS — Trang Cảm nhận học viên
   DNA: .course-archive-card (footer.css)
   Chỉ hiển thị: Avatar + Tên + Quote
   ========================================== */

/* Grid — Masonry Pinterest style dùng CSS columns */
.testimonials-grid {
  columns: 2;
  column-gap: 24px;
}

/* Card — border + hover giống .course-archive-card */
.testimonial-card {
  break-inside: avoid;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, border-color 0.25s ease,
              background-color 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18), 0 1px 6px rgba(255, 255, 255, 0.03);
}

body.light-theme .testimonial-card:hover {
  background: var(--surface-hover);
}

/* Card header — mirror của .card-section-header */
.testimonial-card-head {
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

/* Avatar ảnh */
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

/* Avatar fallback (chữ cái đầu) */
.testimonial-avatar--fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-elevated);
  text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Tên học viên */
.testimonial-name {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.3s ease;
}

/* Quote body — mirror của .card-section-sessions padding */
.testimonial-content {
  padding: 24px 28px 28px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  position: relative;
  transition: color 0.3s ease;
}

/* Quote mark nhỏ — atmosphere, không làm ồn visual */
.testimonial-content::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
  color: var(--border-strong);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

.testimonial-content p {
  padding-left: 20px;
  margin-bottom: 10px;
}

.testimonial-content p:last-child {
  margin-bottom: 0;
}

.testimonial-content ul,
.testimonial-content ol {
  padding-left: 36px;
  margin: 10px 0;
}

.testimonial-content li {
  margin-bottom: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .testimonials-grid {
    columns: 1;
  }
}