/* Clients wrap — testimonials + reviews chung 1 nền Figma */
.sdn-clients-wrap {
  background: linear-gradient(270deg, #005ae1 0%, #10096c 100%);
  color: #fff;
}

/* Figma clients block — logo marquee */
.sdn-testimonials {
  padding: 96px 0 24px;
  background: transparent;
  color: #fff;
}

.sdn-testimonials--logos {
  padding-bottom: 96px;
  overflow: hidden;
}

.sdn-testimonials__heading {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.sdn-testimonials__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid #fff;
  background: transparent;
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.sdn-testimonials__title {
  margin: 0;
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.sdn-testimonials__title span {
  background: linear-gradient(90deg, #00c896 0%, #18ffc5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sdn-testimonials__desc {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.sdn-testimonials__card {
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.sdn-testimonials__quote {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.sdn-testimonials__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sdn-testimonials__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  background: #3b69b2;
}

.sdn-testimonials__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sdn-testimonials__author cite {
  font-style: normal;
  font-weight: 700;
  display: block;
}

.sdn-testimonials__author span {
  color: #dbe6ff;
  font-size: 13px;
}

.sdn-testimonials__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.sdn-testimonials__nav button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Logo marquee — nằm trong .sdn-testimonials (1 section với heading) */
.sdn-testimonials__logos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  width: 100%;
}

.sdn-testimonials__marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  user-select: none;
}

.sdn-testimonials__marquee .splide__slide {
  width: auto;
  padding: 0 10px;
  flex-shrink: 0;
}

.sdn-testimonials__logo {
  width: 200px;
  height: 104px;
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 9, 108, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sdn-testimonials__logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 9, 108, 0.14);
}

.sdn-testimonials__logo img {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

/* Không render partner riêng trên TKW khi đã gộp vào testimonials */
.p-tkw-update .sdn-testimonials + .partner {
  display: none;
}

/* =========================================================
   Reviews — Figma 2944:54460 (dưới logo clients)
   ========================================================= */

.sdn-reviews {
  padding: 96px 0 120px;
  background: transparent;
  color: #fff;
}

.sdn-reviews__layout {
  display: grid;
  grid-template-columns: minmax(280px, 384px) minmax(0, 800px);
  gap: 32px;
  align-items: stretch;
  max-width: 1216px;
  margin: 0 auto;
}

.sdn-reviews__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.sdn-reviews__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #fff;
}

.sdn-reviews__title {
  margin: 0;
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.sdn-reviews__title span {
  background: linear-gradient(90deg, #fe6625 0%, #ff8a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sdn-reviews__selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.sdn-reviews__tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sdn-reviews__tab.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.sdn-reviews__tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.06);
}

.sdn-reviews__tab-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.sdn-reviews__tab-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sdn-reviews__tab-name {
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: #fff;
}

.sdn-reviews__tab-role {
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.sdn-reviews__tab.is-active .sdn-reviews__tab-role {
  color: rgba(255, 255, 255, 0.8);
}

.sdn-reviews__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 464px;
  padding: 48px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 60px -10px rgba(5, 8, 64, 0.35);
  color: #131313;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sdn-reviews__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.sdn-reviews__stars {
  display: block;
  width: 120px;
  height: 20px;
  flex-shrink: 0;
  /* Keep stars visually pinned — no opacity/transform with quote swap. */
  transform: none !important;
  opacity: 1 !important;
}

.sdn-reviews__quote-wrap {
  min-width: 0;
  transition: opacity 0.18s ease;
  /* Fallback before JS measures tallest quote */
  min-height: 7.5em;
}

.sdn-reviews__quote-wrap.is-switching {
  opacity: 0.5;
}

.sdn-reviews__panel {
  /* Avoid subpixel jitter from transform on ancestors */
  transform: none;
}

.sdn-reviews__quote {
  margin: 0;
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  color: #131313;
}

.sdn-reviews__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sdn-reviews__author {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sdn-reviews__author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.sdn-reviews__author-name {
  margin: 0;
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #131313;
}

.sdn-reviews__author-role {
  margin: 0;
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #656565;
}

.sdn-reviews__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sdn-reviews__pager {
  font-family: "SVN-Biennale", var(--font-sec, sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: #656565;
  white-space: nowrap;
}

.sdn-reviews__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 100px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #1b2933;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sdn-reviews__nav svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.sdn-reviews__nav--next {
  border: none;
  background: linear-gradient(90deg, #fe6625 0%, #ff8a3d 100%);
  color: #fff;
}

.sdn-reviews__nav:hover {
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .sdn-reviews__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sdn-reviews__panel {
    min-height: 0;
    padding: 32px 24px;
  }

  .sdn-reviews__selector {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .sdn-testimonials {
    padding: 56px 0 16px;
  }

  .sdn-testimonials--logos {
    padding-bottom: 48px;
  }

  .sdn-testimonials__title {
    font-size: clamp(22px, 5.8vw, 26px);
  }

  .sdn-testimonials__badge {
    font-size: 13px;
    padding: 8px 14px;
  }

  .sdn-testimonials__card {
    padding: 20px;
    min-height: 0;
    border-radius: 20px;
  }

  .sdn-reviews {
    padding: 48px 0 56px;
  }

  .sdn-reviews__badge {
    font-size: 13px;
    padding: 8px 14px;
  }

  .sdn-reviews__title,
  .sdn-reviews h2,
  .sdn-reviews__selector {
    display: none;
  }

  .sdn-reviews__panel {
    padding: 24px 18px;
  }

  .sdn-reviews__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

