/* =========================================================
   Pengurus / team cards — seragam, portrait 3:4, profesional
   ========================================================= */

/* Hanya kolom yang langsung membungkus kartu — jangan kolom induk (bikin lebar kolaps) */
.row > [class*="col-"]:has(> .vl-team-parent) {
  display: flex;
  align-items: stretch;
}

.row > [class*="col-"]:has(> .vl-team-parent) {
  justify-content: center;
}

.row > [class*="col-"]:has(> .vl-team-parent) > .vl-team-parent {
  flex: 0 1 200px;
  width: 100%;
  min-width: 0;
  max-width: 200px;
}

#team1.owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

#team1 .owl-item {
  display: flex;
  height: auto !important;
}

#team1 .vl-team-parent {
  width: 100%;
  max-width: 200px;
}

.vl-team-parent {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 200px !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 1rem !important;
  box-shadow: 0 0.625rem 1.75rem rgba(0, 0, 0, 0.12) !important;
}

/* Area foto: selalu 3:4, penuh edge-to-edge */
.vl-team-parent .vl-team-thumb {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  background: linear-gradient(180deg, #e8f5ed 0%, #d5ebe0 100%) !important;
  border-radius: 0 !important;
}

.vl-team-parent .vl-team-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08) 0%, transparent 35%);
  z-index: 1;
}

.vl-team-parent .vl-team-thumb img,
.vl-team-parent .vl-team-thumb img.w-100 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 0 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  transform: none !important;
}

/* Placeholder: ikon utuh di dalam bingkai 3×4, jangan di-crop */
.vl-team-parent .vl-team-thumb img[src*="avatar-default"] {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 10% !important;
  box-sizing: border-box !important;
}

/* Teks di bawah foto — tinggi seragam, tanpa overlap negatif theme */
.vl-team-parent .vl-team-content,
.vl-team-content {
  margin: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  top: auto !important;
  transform: none !important;
  border-radius: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 7.25rem !important;
  padding: 1.1rem 1rem 1.25rem !important;
  background: #fff !important;
  position: relative !important;
  z-index: 2 !important;
  text-align: center !important;
  box-shadow: none !important;
}

.vl-team-parent .vl-team-content .title,
.vl-team-parent .vl-team-content a.title {
  font-size: 1rem !important;
  line-height: 1.35 !important;
  padding-bottom: 0.35rem !important;
  margin: 0 0 0.2rem !important;
  min-height: 2.7em !important; /* ~2 baris nama */
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  color: #2c3e50 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  width: 100%;
}

.vl-team-parent .vl-team-content p,
.vl-team-parent .vl-team-content span {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  color: #6c757d !important;
  font-weight: 500 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  min-height: 2.5em;
  width: 100%;
}

/* Hover halus di beranda */
#team1 .vl-team-parent {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#team1 .vl-team-parent:hover {
  transform: translateY(-0.4rem) !important;
  box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.18) !important;
}

#team1 .vl-team-parent:hover .vl-team-thumb img {
  transform: scale(1.04) !important;
  transition: transform 0.45s ease !important;
}

#team1 .vl-team-thumb img {
  transition: transform 0.45s ease !important;
}

/* Pas foto orang: selalu 3×4 seperti SIMNU (cover, wajah di atas) */
.staff-pasfoto,
.pasfoto-3x4,
img.pasfoto-3x4 {
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center top !important;
}
