/* =========================================================
   Digital Solution – Testimonials Marquee
   GSAP-powered 3-column vertical testimonial display
   Header intentionally omitted so Elementor controls section title.
   ====================================================== */

.ds-tm-section {
  --ds-tm-bg: var(--page-bg, #eef4fb);
  --ds-tm-blue: var(--brand-blue, #0a2540);
  --ds-tm-muted: rgba(10, 37, 64, 0.58);
  --ds-tm-border: rgba(10, 37, 64, 0.10);
  --ds-tm-card-bg: rgba(255, 255, 255, 0.42);
  --ds-tm-card-bg-hover: rgba(255, 255, 255, 0.58);

  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.ds-tm-section * {
  box-sizing: border-box;
}

.ds-tm-inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

/* Columns */
.ds-tm-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.45rem);
  max-height: var(--ds-tm-max-height, 740px);
  overflow: hidden;
  padding-block: 0.25rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.ds-tm-column {
  min-width: 0;
  overflow: hidden;
}

.ds-tm-track {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.45rem);
  margin: 0;
  padding: 0 0 clamp(1rem, 2vw, 1.45rem);
  list-style: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Cards */
.ds-tm-card {
  position: relative;
  width: 100%;
  padding: clamp(1.05rem, 1.8vw, 1.45rem);
  background: var(--ds-tm-card-bg);
  border: 1px solid var(--ds-tm-border);
  border-radius: 1.15rem;
  box-shadow: 0 18px 45px rgba(10, 37, 64, 0.055);
  color: var(--ds-tm-blue);
  transition:
    transform 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.ds-tm-card:hover,
.ds-tm-card:focus-within {
  transform: translateY(-4px);
  background: var(--ds-tm-card-bg-hover);
  border-color: rgba(10, 37, 64, 0.16);
  box-shadow: 0 24px 65px rgba(10, 37, 64, 0.085);
}

.ds-tm-card::before {
  content: "”";
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  color: rgba(10, 37, 64, 0.14);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}

.ds-tm-card-blockquote {
  margin: 0;
  padding: 0;
}

.ds-tm-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  background: var(--ds-tm-blue);
  border: 1px solid rgba(10, 37, 64, 0.18);
}

.ds-tm-card-logo img {
  display: block;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.ds-tm-card-quote {
  margin: 0 0 clamp(1.2rem, 2vw, 1.65rem);
  color: rgba(10, 37, 64, 0.86);
  font-size: clamp(0.92rem, 0.86rem + 0.18vw, 1.05rem);
  line-height: 1.55;
  font-weight: 550;
  letter-spacing: -0.012em;
}

.ds-tm-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

.ds-tm-card-avatar {
  display: block;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(10, 37, 64, 0.12);
}

.ds-tm-card-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  min-width: 0;
}

.ds-tm-card-name {
  display: block;
  color: var(--ds-tm-blue);
  font-size: 0.86rem;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-style: normal;
}

.ds-tm-card-role {
  display: block;
  color: var(--ds-tm-muted);
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.ds-tm-empty {
  padding: 1rem;
  border: 1px solid rgba(10, 37, 64, 0.12);
  color: var(--ds-tm-blue, #0a2540);
}

@media (max-width: 1024px) {
  .ds-tm-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-tm-column-3 {
    display: none;
  }
}

@media (max-width: 767px) {
  .ds-tm-columns {
    grid-template-columns: 1fr;
    max-height: 620px;
  }

  .ds-tm-column-2,
  .ds-tm-column-3 {
    display: none;
  }

  .ds-tm-card {
    padding: 1.1rem;
    border-radius: 0.95rem;
  }

  .ds-tm-card-quote {
    font-size: 0.95rem;
    line-height: 1.52;
  }
}
