/*==========| MAS CAROUSEL |===========*/

.mas-carousel-container {
  position: relative;
  width: 100%;
  margin: 40px auto;
  overflow: hidden;
}

.mas-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.mas-card {
  flex: 0 0 300px;
  margin: 10px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mas-card .mas-foto {
  width: 100px;
  height: 100px;
  margin-right: 15px;
  border-radius: 8px;
  /* ✅ biar foto tidak keluar kotak */
  overflow: hidden;
  flex-shrink: 0;
  /* fallback kalau foto kosong */
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mas-card .mas-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ isi penuh, tanpa merusak proporsi */
  border-radius: 8px; /* ikut bentuk parent */
}


.mas-card .mas-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.mas-card .mas-info p {
  font-size: 14px;
  color: #444;
}

/* Tombol navigasi */
.mas-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.1);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10; /* biar selalu di atas card */
  transition: all 0.3s ease;
}

.mas-carousel-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.mas-prev {
  left: 10px;
}

.mas-next {
  right: 10px;
}

/* Dot indikator */
.mas-dots {
  text-align: center;
  margin-top: 10px;
  display: none;
}

.mas-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #4caf50;
  border-radius: 50%;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.mas-dot.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .mas-carousel-btn {
    display: none; /* tombol hilang di mobile */
  }
  .mas-dots {
    display: block; /* dot muncul di mobile */
  }
}


/* Responsive rules */
@media (max-width: 768px) {
  .mas-carousel-btn {
    display: none; /* tombol disembunyikan di mobile */
  }

  .mas-dots {
    display: block; /* dot muncul di mobile */
  }
}
