/* =========================================================================
   Al Duffa — Testimonials (widgets/aidh/class-aidh-testimonials-widget.php)
   -------------------------------------------------------------------------
   Matches the Manus design source (alduffa-permanent-site: .voices /
   .quote-card / .avatar / .dots) — same two-column layout, same gold
   left-border quote card with an oversized opening quote mark, same dot
   + arrow navigation. Colours/fonts come from the theme's
   alduffa-tokens.css, same token names as the Campus/Student-life CSS.
========================================================================= */

.ald-voices {
  --ald-navy:  var(--c-ink, #092434);
  --ald-gold:  var(--c-teal, #D4A73A);
  --ald-bg-2:  var(--c-white, #FFFFFF);
  --ald-ink:   var(--c-ink, #092434);
  --ald-muted: var(--c-body, #5C6B80);
  --ald-line:  #dce5e5;
  font-family: var(--f-body, "DM Sans", sans-serif);
}
.ald-voices *,
.ald-voices *::before { box-sizing: border-box; }

.ald-voices__wrap {
  width: 100%;
  max-width: var(--wrap-max, 1280px);
  margin-inline: auto;
  padding-inline: var(--wrap-pad, 20px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .ald-voices__wrap { grid-template-columns: 1fr; } }

.ald-voices .ald-voices__title {
  margin: 8px 0 0;
  font-family: var(--f-heading, "DM Serif Display", serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--ald-ink);
}
.ald-voices__lead { margin-top: 14px; color: var(--ald-muted); line-height: 1.7; }

/* ------------------------------------------------------------- Quote card */
.ald-quotes { position: relative; }
.ald-quote-card {
  background: var(--ald-bg-2);
  border: 1px solid var(--ald-line);
  border-radius: 2px;
  padding: 34px 34px 34px 44px;
  position: relative;
  min-height: 250px;
  border-inline-start: 4px solid var(--ald-gold);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s cubic-bezier(.16,1,.3,1), border-color .4s ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .ald-quote-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px -22px rgba(9, 36, 52, .28);
    border-inline-start-color: var(--ald-gold-deep, var(--ald-gold));
  }
}
.ald-quote-card::before {
  content: "\201C";
  position: absolute;
  top: -22px;
  inset-inline-start: 26px;
  font-family: var(--f-heading, "DM Serif Display", serif);
  font-size: 6rem;
  color: var(--ald-gold);
  line-height: 1;
}
.ald-quote {
  display: none;
}
.ald-quote.is-active { display: block; }
.ald-quote blockquote {
  margin: 0;
  font-family: var(--f-heading, "DM Serif Display", serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ald-ink);
}
.ald-quote figcaption { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.ald-quote__avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ald-bg-2), 0 0 0 5px var(--ald-gold);
  background: var(--ald-navy);
  color: var(--ald-gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--f-heading, "DM Serif Display", serif);
  overflow: hidden;
}
.ald-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ald-quote__avatar {
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .ald-quote-card:hover .ald-quote__avatar {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px var(--ald-bg-2), 0 0 0 6px var(--ald-gold);
  }
}
.ald-quote figcaption b { display: block; color: var(--ald-ink); }
.ald-quote figcaption small { color: var(--ald-muted); }

/* --------------------------------------------------------------- Dots nav */
.ald-dots { display: flex; gap: 8px; margin-top: 18px; align-items: center; }
.ald-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--ald-line);
  padding: 0;
  cursor: pointer;
}
.ald-dots button[aria-current="true"] { background: var(--ald-gold); width: 26px; border-radius: 5px; }
.ald-dots__arrows { margin-inline-start: auto; display: flex; gap: 8px; }
.ald-dots__arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ald-line);
  background: var(--ald-bg-2);
  color: var(--ald-ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.ald-dots__arrows button:hover { border-color: var(--ald-navy); }
