/* ===================================================================
   MEET OUR TEAM SECTION (Compact 5-Column Grid / Slider)
   =================================================================== */
:root {
  --theme-blue: #5b7c99;
  --theme-sky: #f4f8fb;
  --primary-navy: #132438;
  --text-muted: #64748b;
  --font-inter: 'Inter', system-ui, -apple-system, sans-serif;
}

.section-team {
  background: var(--theme-sky);
  padding: 80px 0;
}

.section-header {
  margin-bottom: 45px;
  text-align: center;
}

.section-subtitle-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title-large {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Container Slider */
.team-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0 45px;
}

.team-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 8px 4px 18px 4px;
}

.team-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* 5 Cards per view di Desktop */
.team-slider .team-card {
  flex: 0 0 calc((100% - (4 * 16px)) / 5);
  min-width: 0;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team-slider .team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(22, 101, 150, 0.14);
  border-color: var(--theme-blue);
}

/* Foto Profil Anggota Tim */
.team-img-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.06);
}

/* Informasi Teks Anggota Tim */
.team-info {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-family: var(--font-inter);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-role {
  font-family: var(--font-inter);
  font-size: 0.68rem;
  color: var(--theme-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  line-height: 1.25;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.team-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* Social Media Icons */
.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.team-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.team-social a:hover {
  background: var(--theme-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Tombol Navigasi Panah (Prev & Next) */
.team-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-navy);
  font-size: 0.95rem;
  z-index: 5;
  transition: all 0.25s ease;
}

.team-nav-btn:hover {
  background: var(--theme-blue);
  color: #ffffff;
  border-color: var(--theme-blue);
}

.team-nav-prev { left: 0; }
.team-nav-next { right: 0; }

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  /* 4 Kartu per view */
  .team-slider .team-card {
    flex: 0 0 calc((100% - (3 * 16px)) / 4);
  }
}

@media (max-width: 992px) {
  /* 3 Kartu per view di Tablet */
  .team-slider .team-card {
    flex: 0 0 calc((100% - (2 * 16px)) / 3);
  }
  .team-slider-wrapper {
    padding: 0 35px;
  }
}

@media (max-width: 768px) {
  /* 2 Kartu per view di Layar Sedang */
  .team-slider .team-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
  .team-img-wrap {
    height: 180px;
  }
}

@media (max-width: 480px) {
  /* 1.2 Kartu per view di HP (Peak Preview) */
  .team-slider .team-card {
    flex: 0 0 82%;
  }
  .team-slider-wrapper {
    padding: 0;
  }
  .team-nav-btn {
    display: none; /* Di HP cukup swipe jari */
  }
}
