/* ==============================
   TESTIMONIALS
============================== */
#testimonials {
  background: var(--bg-primary);
  padding: 100px 0;
}

/* Grid — 4 columns = 4 cards visible */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  align-items: stretch; /* ← ADDED */
}

/* Testimonial Card */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;

  /* ← ADDED — para pantay ang height */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--lavender));
  opacity: 0;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--purple-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.testimonial-card:hover::before { opacity: 1; }

/* Hidden cards */
.testimonial-card.hidden {
  display: none;
}

/* Fade in when shown */
.testimonial-card.show-animate {
  animation: fadeUpCard 0.5s ease forwards;
}

@keyframes fadeUpCard {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  font-size: 32px;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.testimonial-msg {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  font-style: italic;
  flex: 1; /* ← ADDED — mag-expand para pantay */
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto; /* ← ADDED — always nasa baba */
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--lavender));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-pos {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* Show More Button */
.testimonials-actions {
  text-align: center;
  margin-bottom: 48px;
}

/* Feedback CTA */
.feedback-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: 12px;
  padding: 28px 32px;
  gap: 24px;
  margin-top: 48px;
}

.feedback-cta-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feedback-cta-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .feedback-cta {
    flex-direction: column;
    text-align: center;
  }
}