/* ============================================================
   LIFE AT SAMATOR — TESTIMONIAL SLIDER
   Spec Figma (anchor @1440px): image 597×712 r20, eyebrow 14/700/0.4em #C9100B,
   quote 28 italic/400/115%/-0.02em #222149, role 16/500/140% #848484,
   arrows 40×40 border .8px #222149. Semua di-clamp() → fluid di bawah 1440.
   ============================================================ */
.sam-tm {
  /* Tanpa background & tanpa padding — atur dari Section/Container Bricks. */
  text-align: left;                        /* override style tema (align kiri semua) */
}

.sam-tm * {
  box-sizing: border-box;
}

.sam-tm-inner {
  max-width: none;                          /* full width (ikut lebar container Bricks) */
  margin: 0;
  /* Tanpa padding — edge-to-edge; padding diatur dari Section/Container Bricks. */
  display: grid;
  /* Gambar nempel kiri (≤597px = ukuran Figma), teks ngisi sisanya → no gap tengah */
  grid-template-columns: minmax(280px, 597px) 1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: stretch;
}

/* --- Media (gambar, stacked + crossfade) --- */
.sam-tm-media {
  position: relative;
  width: 100%;
  aspect-ratio: 597 / 712;               /* ratio gambar dijaga */
  border-radius: 20px;
  overflow: hidden;
}

.sam-tm-media-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;  /* delay hide → fade-out kelihatan */
}

.sam-tm-media-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.sam-tm-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;                      /* cover = tak ada distorsi (ratio asli gambar terjaga) */
  border-radius: 20px;
  /* Potongan badan ada di file PNG-nya sendiri (subjek menyentuh tepi bawah), jadi
     tak bisa diperbaiki dengan crop. Di-fade supaya membaur ke background, bukan
     terpotong mendadak. */
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, rgba(0, 0, 0, 0) 98%);
  mask-image: linear-gradient(to bottom, #000 68%, rgba(0, 0, 0, 0) 98%);
}

.sam-tm-img--empty {
  background: linear-gradient(135deg, #e8eef3 0%, #d6e3ec 100%);
}

/* --- Body (kanan: eyebrow atas, quote/arrows bawah) --- */
.sam-tm-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  min-width: 0;
}

/* Quote sits in its own card, matching the rounded cards used elsewhere on the page. */
.sam-tm-card {
  background: #ffffff;
  border: 1px solid rgba(34, 33, 73, 0.08);
  border-radius: 20px;
  padding: clamp(24px, 3.2vw, 48px);
  box-shadow: 0 18px 50px rgba(34, 33, 73, 0.08);
}

.sam-tm-eyebrow {
  margin: 0;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xs-2, clamp(12px, 0.97vw, 14px));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary-40, #c9100b);
}

.sam-tm-group {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5.56vw, 80px);         /* Figma 80px antara quote dan arrows */
}

/* --- Stage: slide aktif (relative) menentukan tinggi, sisanya absolute (crossfade) --- */
.sam-tm-stage {
  position: relative;
}

.sam-tm-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.sam-tm-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}

.sam-tm-quote {
  margin: 0;
  padding: 0;                             /* reset blockquote bawaan tema */
  border: 0;                              /* hapus garis kiri blockquote tema */
  max-width: 720px;                       /* batasi panjang baris biar enak dibaca (Figma 659) */
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 1.45vw, 21px);   /* dikecilkan dari 28px — kutipan panjang jadi tak mendominasi kartu */
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;                      /* naik dari 1.15: teks kecil butuh napas antar baris */
  letter-spacing: -0.02em;                /* -0.56px @28 */
  color: var(--primary-10, #222149);
}

.sam-tm-cite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: clamp(16px, 2.22vw, 32px);  /* Figma 32px quote→name */
  text-align: left;
}

/* Nama karyawan disembunyikan atas permintaan klien (31 Jul 2026) — hanya jabatan
   yang tampil. Data namanya tetap ada di CPT; hapus baris display:none ini untuk
   memunculkannya lagi. */
.sam-tm-name {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.11vw, 16px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-10, #222149);
}

.sam-tm-role {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.11vw, 16px);   /* Figma 16px */
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--neutral-50, #848484);
}

/* --- Nav arrows --- */
.sam-tm-nav {
  display: flex;
  gap: 8px;
}

.sam-tm-arrow {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0.8px solid var(--primary-10, #222149);
  border-radius: 50%;
  background: transparent;
  color: var(--primary-10, #222149);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.sam-tm-arrow svg {
  width: 20px;
  height: 20px;
}

.sam-tm-arrow:hover {
  background: var(--primary-10, #222149);
  color: #ffffff;
}

.sam-tm-arrow:active {
  transform: scale(0.94);
}

.sam-tm-arrow:focus-visible {
  outline: 2px solid var(--primary-40, #c9100b);
  outline-offset: 2px;
}

/* ============================================================
   MOBILE / TABLET (max-width: 991px) — stacked, gambar di atas
   ============================================================ */
@media (max-width: 991px) {
  .sam-tm-inner {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 36px);
  }

  .sam-tm-media {
    aspect-ratio: 4 / 5;                  /* mobile: crop lebih lebar (cover, tetap tak distorsi) */
  }
	
  .sam-tm-quote {
    line-height: 1.4;                     /* mobile: line-height quote — ubah angka ini sesuai selera (mis. 1.25 / 1.4) */
  }
	
  .sam-tm-body {
    justify-content: flex-start;
    gap: clamp(20px, 5vw, 28px);
  }

  .sam-tm-group {
    gap: clamp(24px, 7vw, 40px);
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sam-tm-media-slide,
  .sam-tm-slide,
  .sam-tm-arrow {
    transition: none !important;
  }
}
