/* Testimonials carousel (parts/testimonials.php). Mirrors the design's inline React styles. */

.ex-tm-viewport { overflow: hidden; padding: 10px 0 20px; }
.ex-tm-track { display: flex; gap: 20px; }

/* Without JS: a plain horizontally scrollable row. */
.ex-tm:not(.is-js) .ex-tm-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.ex-tm:not(.is-js) .ex-tm-card { scroll-snap-align: start; width: 100%; opacity: 1; }
@media (min-width: 640px) { .ex-tm:not(.is-js) .ex-tm-card { width: calc((100% - 20px) / 2); } }
@media (min-width: 1024px) { .ex-tm:not(.is-js) .ex-tm-card { width: calc((100% - 40px) / 3); } }
.ex-tm:not(.is-js) .ex-tm-controls { display: none; }

.ex-tm.is-js .ex-tm-track {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ex-tm-card {
  flex-shrink: 0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  cursor: default;
  opacity: 0.68;
  background-color: rgb(58, 64, 71);
  border: 2px solid transparent;
  box-shadow: none;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.ex-tm-card.is-adjacent { cursor: pointer; box-shadow: rgba(0, 0, 0, 0.14) 0 4px 16px; }
.ex-tm-card.is-adjacent:focus-visible { outline: 2px solid rgb(214, 173, 96); outline-offset: 2px; }
.ex-tm-card.is-center {
  padding: 28px;
  opacity: 1;
  border-color: rgb(214, 173, 96);
  box-shadow: rgba(0, 0, 0, 0.32) 0 16px 48px, rgba(214, 173, 96, 0.133) 0 0 0 1px;
  transform: scale(1.025);
}
.ex-tm-card.is-far { opacity: 0; pointer-events: none; }
.ex-tm.is-instant .ex-tm-track,
.ex-tm.is-instant .ex-tm-card { transition: none !important; }

.ex-tm-mark { color: rgb(214, 173, 96); font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 14px; font-family: Georgia, serif; opacity: 0.9; }
.ex-tm-quote { color: rgba(255, 255, 255, 0.88); font-size: 13px; line-height: 1.75; flex: 1 1 0%; margin-bottom: 20px; font-family: "DM Sans", sans-serif; }
.ex-tm-rule { height: 1px; background-color: rgba(255, 255, 255, 0.1); margin-bottom: 16px; }
.ex-tm-card.is-center .ex-tm-rule { background-color: rgba(214, 173, 96, 0.208); }
.ex-tm-person { display: flex; align-items: center; gap: 12px; }
.ex-tm-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(214, 173, 96, 0.333); }
.ex-tm-avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background-color: #444c58; color: #d6ad60;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
}
.ex-tm-name { font-family: Sora, sans-serif; font-weight: 700; font-size: 14px; color: #fff; line-height: 1.3; }
.ex-tm-role { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-top: 3px; }

.ex-tm-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; padding: 0 24px; }
.ex-tm-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(58, 64, 71, 0.22);
  background-color: rgb(232, 228, 220); color: rgb(58, 64, 71);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; padding: 0;
  transition: all 0.2s ease;
}
.ex-tm-arrow:hover { background-color: rgb(214, 173, 96); color: #fff; border-color: rgb(214, 173, 96); }
.ex-tm-arrow:active { transform: scale(0.92); }
.ex-tm-dots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ex-tm-dot {
  width: 8px; height: 8px; border-radius: 4px; padding: 0; cursor: pointer;
  background-color: rgba(58, 64, 71, 0.28);
  border: 1px solid rgba(58, 64, 71, 0.35);
  transition: all 0.3s ease;
}
.ex-tm-dot:hover { background-color: rgba(214, 173, 96, 0.533); }
.ex-tm-dot.is-active { width: 24px; background-color: rgb(214, 173, 96); border: none; }
.ex-tm-arrow:focus-visible, .ex-tm-dot:focus-visible { outline: 2px solid rgb(214, 173, 96); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ex-tm.is-js .ex-tm-track, .ex-tm-card { transition: none; }
}
