/* =========================================================================
   MLT Testimonials — portable testimonial card grid
   -------------------------------------------------------------------------
   Light defaults that work on most sites out of the box.
   To match a brand, override the CSS variables in the block below from the
   client's own theme stylesheet. A ready-made DARK override is at the bottom.
   ========================================================================= */

.view-mlt-testimonials {
  --mltt-card-bg: #ffffff;
  --mltt-card-border: rgba(0, 0, 0, 0.08);
  --mltt-text: #2b2b2b;
  --mltt-muted: #6c757d;
  --mltt-quote: rgba(0, 0, 0, 0.06);
  --mltt-star: #fbbc05;
  --mltt-star-empty: rgba(0, 0, 0, 0.15);
  --mltt-accent: #34a853;            /* brand accent — hover + verified badge */
  --mltt-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --mltt-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
  --mltt-radius: 12px;
}

/* ---- Grid -------------------------------------------------------------- */
.view-mlt-testimonials .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.view-mlt-testimonials .views-row {
  display: flex;
}

/* ---- Card -------------------------------------------------------------- */
.mltt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 30px 26px 24px;
  background: var(--mltt-card-bg);
  border: 1px solid var(--mltt-card-border);
  border-radius: var(--mltt-radius);
  box-shadow: var(--mltt-shadow);
  color: var(--mltt-text);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mltt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mltt-shadow-hover);
  border-color: color-mix(in srgb, var(--mltt-accent) 35%, transparent);
}

.mltt-card__quote {
  position: absolute;
  top: -10px;
  right: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 110px;
  line-height: 1;
  font-weight: 700;
  color: var(--mltt-quote);
  pointer-events: none;
  z-index: 0;
}

.mltt-card > * {
  position: relative;
  z-index: 1;
}

/* ---- Avatar ------------------------------------------------------------ */
.mltt-card__avatar {
  margin-bottom: 14px;
}

.mltt-card__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ---- Stars ------------------------------------------------------------- */
.mltt-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 1.15rem;
  line-height: 1;
}

.mltt-star.is-filled { color: var(--mltt-star); }
.mltt-star.is-empty  { color: var(--mltt-star-empty); }

/* ---- Body -------------------------------------------------------------- */
.mltt-card__body {
  flex: 1 1 auto;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.mltt-card__body p:last-child { margin-bottom: 0; }

/* ---- Footer ------------------------------------------------------------ */
.mltt-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.mltt-card__meta {
  display: flex;
  flex-direction: column;
}

.mltt-card__name {
  font-weight: 700;
  font-size: 1rem;
}

.mltt-card__subtitle {
  font-size: 0.82rem;
  color: var(--mltt-muted);
  margin-top: 2px;
}

.mltt-card__date {
  font-size: 0.8rem;
  color: var(--mltt-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ---- Verified badge ---------------------------------------------------- */
.mltt-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 16px;
  padding: 5px 12px;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--mltt-muted);
  background: color-mix(in srgb, var(--mltt-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--mltt-accent) 25%, transparent);
  border-radius: 20px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mltt-card__verified:hover {
  color: var(--mltt-accent);
  background: color-mix(in srgb, var(--mltt-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--mltt-accent) 45%, transparent);
  text-decoration: none;
}

.mltt-card__verified-icon {
  font-weight: 700;
  color: var(--mltt-accent);
}

/* ---- Small screens ----------------------------------------------------- */
@media (max-width: 575px) {
  .mltt-card { padding: 26px 20px 20px; }
  .mltt-card__footer { flex-direction: column; align-items: flex-start; }
  .mltt-card__date { margin-top: 4px; }
}

/* =========================================================================
   OPTIONAL DARK THEME
   Copy these variables into the client's theme (or uncomment here) for sites
   with a dark background — e.g. the original Pes Elec build (#1F2532 page).
   -------------------------------------------------------------------------
.view-mlt-testimonials {
  --mltt-card-bg: #2A3142;
  --mltt-card-border: rgba(255, 255, 255, 0.08);
  --mltt-text: rgba(255, 255, 255, 0.92);
  --mltt-muted: rgba(255, 255, 255, 0.55);
  --mltt-quote: rgba(255, 255, 255, 0.06);
  --mltt-star-empty: rgba(255, 255, 255, 0.18);
  --mltt-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
  --mltt-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.45);
}
   ========================================================================= */
