/**
 * Testimonial Card Element - UX Builder
 * Category: A Elements
 */

.a-testimonial-card {
  position: relative;
  box-sizing: border-box;
  background: var(--a-card-bg, #ffffff);
  border-radius: var(--a-card-radius, 18px);
  padding: 26px 24px 30px 24px;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 267px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.a-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Card Body (Quote icon + text) */
.a-testimonial-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  flex: 1;
}

/* Quote Icon */
.a-testimonial-quote-icon {
  flex-shrink: 0;
  width: var(--a-quote-icon-size, 32px);
  height: var(--a-quote-icon-size, 32px);
  color: var(--a-quote-color, #2563eb);
  line-height: 1;
  margin-top: 2px;
}

.a-testimonial-quote-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Quote Text */
.a-testimonial-text {
  flex: 1;
  font-size: var(--a-quote-size, 13.5px);
  font-style: italic;
  color: var(--a-quote-text-color, #374151);
  line-height: 1.6;
}

.a-testimonial-text.not-italic {
  font-style: normal;
}

/* Two-color Dashes */
.a-testimonial-dashes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: calc(var(--a-quote-icon-size, 32px) + 14px);
  margin-bottom: 16px;
}

.a-dash {
  display: inline-block;
  height: 3px;
  width: 24px;
  border-radius: 2px;
}

.a-dash-1 {
  background: var(--a-dash-1-color, #3b82f6);
}

.a-dash-2 {
  background: var(--a-dash-2-color, #84cc16);
}

/* Footer (Avatar + Author details) */
.a-testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  position: relative;
}

/* Avatar (Canh giua theo chieu doc voi ten tac gia) */
.a-testimonial-avatar {
  position: relative;
  width: var(--a-avatar-size, 68px);
  height: var(--a-avatar-size, 68px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  background: #dbeafe;
}

.a-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.a-testimonial-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Author Details */
.a-testimonial-author {
  flex: 1;
  min-width: 0;
}

.a-testimonial-name {
  font-size: var(--a-name-size, 15px);
  font-weight: 700;
  color: var(--a-name-color, #111827);
  margin: 0 0 2px 0;
  padding: 0;
  line-height: 1.3;
}

.a-testimonial-company {
  font-size: var(--a-company-size, 12.5px);
  color: var(--a-company-color, #6b7280);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .a-testimonial-card {
    padding: 22px 18px 26px 18px;
    margin-bottom: 24px;
  }

  .a-testimonial-avatar {
    width: min(var(--a-avatar-size, 68px), 58px);
    height: min(var(--a-avatar-size, 68px), 58px);
  }
}