/* ================= Slider ================= */
.oti-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  cursor: grab; /* kursor untuk drag */
}

/* Hide default scrollbar */
.oti-slider::-webkit-scrollbar { display: none; }
.oti-slider { -ms-overflow-style: none; scrollbar-width: none; }

/* Dragging state cursor */
.oti-slider.dragging {
  cursor: grabbing;
}

/* ================= Team Card ================= */
.oti-team-card {
  position: relative;
  flex: 0 0 240px; /* desktop 4,5 kartu */
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.oti-team-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.oti-team-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* ================= Card Info ================= */
.oti-card-info {
  text-align: center;
  padding: 10px;
}

.oti-card-info h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  background: linear-gradient(90deg, #C9A645 17.14%, #EDC9C6 114.29%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.oti-card-info p {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
}

/* Overlay tombol i default tersembunyi */
.oti-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* default hidden */
    transition: opacity 0.2s;
    border-radius: 10px;
}

/* Hanya muncul saat hover pada card */
.oti-team-card:hover .oti-overlay {
    opacity: 1;
}

/* Circle info */
.oti-info-circle {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.oti-info-circle:hover {
    transform: scale(1.2);
}

/* ================= Modal ================= */
.oti-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1000;
}

.oti-modal-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 600px;
  width: 100%;
  border-radius: 10px;
  background: rgba(236, 217, 198, 0.95);
  animation: fadeIn 0.3s ease;
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.oti-modal-left, .oti-modal-right {
  flex: 1 1 200px;
  padding: 15px;
}

.oti-modal-left h3 {
  margin-top: 0;
  font-size: 18px;
  background: linear-gradient(314.73deg, #075453 2.52%, #3A1F3F 60.61%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.oti-modal-left p {
  color: #3A1F3F;
  font-size: 14px;
  line-height: 1.5;
}

.oti-modal-right img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* Close button */
.oti-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .oti-team-card {
    flex: 0 0 180px; /* tablet → sekitar 3 kartu */
  }
  .oti-team-card img { height: 160px; }
}

@media (max-width: 600px) {
  .oti-modal-content { flex-direction: column; }
  .oti-team-card { flex: 0 0 140px; }
  .oti-team-card img { height: 140px; }
}

@media (max-width: 400px) {
  .oti-team-card { 
    flex: 0 0 100%; /* 1 kartu full lebar */
  }
  .oti-team-card img { height: 200px; } /* bisa lebih tinggi supaya proporsional */
  .oti-card-info h3 { font-size: 14px; }
  .oti-card-info p { font-size: 11px; }
  .oti-modal-left h3 { font-size: 16px; }
  .oti-modal-left p { font-size: 13px; }
}
