/* ============================================================
   MG PICTURES — testimoni.css (Clean Drag Scroll)
   ============================================================ */

.testimoni-section{
  background: var(--ink);
  color: var(--cream-bg);
  padding: 100px 0;
  position: relative;
}
.testimoni-head{
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.testimoni-head .eyebrow{ justify-content: center; color: #E9D9AF; }
.testimoni-head .eyebrow::before{ background: #E9D9AF; }
.testimoni-head h2{ color: var(--cream-bg); }
.testimoni-head p{ color: rgba(247,242,233,0.7); margin-top: 12px; }

/* ---- CONTAINER WRAPPER & SLIDER HORIZONTAL ---- */
.testimoni-wrapper {
  position: relative;
  margin-bottom: 40px;
}

.testimoni-grid{
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab; /* Menampilkan kursor tangan saat diarahkan */
  user-select: none; /* Mencegah teks terblok saat digeser pakai mouse */
  padding-bottom: 5px;
}

/* Saat mouse menekan dan menggeser card */
.testimoni-grid:active {
  cursor: grabbing;
}

/* 100% MENGHILANGKAN BAR/SCROLLBAR DI BAWAH CARD */
.testimoni-grid::-webkit-scrollbar {
  display: none; /* Untuk Chrome, Safari, Opera */
}
.testimoni-grid {
  -ms-overflow-style: none;  /* Untuk Internet Explorer dan Edge lama */
  scrollbar-width: none;  /* Untuk Firefox */
}

.testimoni-card{
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
  scroll-snap-align: start;
  background: rgba(247,242,233,0.06);
  border: 1px solid rgba(247,242,233,0.14);
  padding: 28px 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

/* ---- TOMBOL NAVIGASI GESER (KIRI / KANAN) ---- */
.testimoni-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.testimoni-nav-btn {
  background: rgba(247,242,233,0.08);
  border: 1px solid rgba(247,242,233,0.2);
  color: var(--cream-bg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.testimoni-nav-btn:hover {
  background: #E9D9AF;
  color: var(--ink);
  border-color: #E9D9AF;
}

.testimoni-stars{
  color: #E9D9AF;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimoni-text{
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(247,242,233,0.88);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testimoni-footer{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(247,242,233,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.testimoni-name{ font-weight: 600; font-size: 0.88rem; }
.testimoni-tag{
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E9D9AF;
}
.testimoni-empty{
  width: 100%;
  text-align: center;
  color: rgba(247,242,233,0.6);
  padding: 30px 0;
}

/* ---- Tombol pemicu form ---- */
.testimoni-cta{ text-align: center; margin-top: 30px; }
.testimoni-cta .btn-outline{
  border-color: rgba(247,242,233,0.5);
  color: var(--cream-bg);
}
.testimoni-cta .btn-outline:hover{ background: var(--cream-bg); color: var(--ink); }

/* ---- Modal form testimoni ---- */
.testimoni-modal{
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(20,16,12,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.testimoni-modal.open{ opacity: 1; visibility: visible; }
.testimoni-modal-inner{
  background: var(--cream-card);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  pointer-events: auto;
}
.testimoni-modal-close{
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.8rem;
  color: var(--taupe);
}
.testimoni-modal h3{ font-size: 1.4rem; margin-bottom: 6px; }
.testimoni-modal p.sub{ color: var(--taupe); font-size: 0.9rem; margin-bottom: 24px; }

.t-field{ margin-bottom: 16px; }
.t-field label{
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 8px;
}
.t-field input, .t-field select, .t-field textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
}
.t-field textarea{ min-height: 100px; resize: vertical; }

.t-field-hidden{
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

#testimoni-form-note{ font-size: 0.82rem; margin-top: 6px; min-height: 18px; }

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 900px){
  .testimoni-card{ flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 640px){
  .testimoni-card{ flex: 0 0 100%; }
  .testimoni-modal-inner{ padding: 28px 22px; }
}