* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BANNER ===== */
.banner-slider .slider {
  text-align: center;
  padding: 40px 0;
  background-color: transparent;
}

.slider img.logo {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 0;
}

.panel {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certified-text {
  font-weight: bold;
  padding-bottom: 8px;
  border-bottom: 2px solid #ccc;
}

/* ===== SLIDER SERTIFIKAT ===== */
.image-box {
  position: relative; /* Ditambahkan agar tombol bisa diposisikan secara absolut */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.cert-slider-single {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-slider-single img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.cert-slider-single img:hover {
  transform: scale(1.03);
}

.slider-btn {
  position: absolute;  /* Agar tombol ditempatkan secara absolut dalam .image-box */
  top: 50%;            /* Letakkan di tengah secara vertikal */
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}

.slider-btn.left {
  left: 10px;
}

.slider-btn.right {
  right: 10px;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* ===== IMAGE PANEL ===== */
.panel-imgs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.image-item {
  background-color: white;
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.image-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===== VIDEO SLIDERS ===== */
.video-sliders {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
  background-color: transparent; /* ✅ ganti dari abu ke transparan */
}

.video-slide {
  background-color: transparent; /* ✅ hilangkan putih */
  flex: 1 1 200px;
  min-width: 200px;
  padding: 20px;
  text-align: center;
  border: none; /* ✅ hilangkan border */
}

.video-slide video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* opsional untuk elegan */
}

/* ===== POPUP ===== */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: background-color 0.3s ease;
}

.wa-float:hover {
  background-color: #20b858;
}

.wa-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.wa-text {
  font-size: 16px;
  font-weight: bold;
  color: white;
}

/* Responsive: sembunyikan teks di layar kecil */
@media (max-width: 480px) {
  .wa-text {
    display: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .panel {
    width: 100%;
  }

  .panel-imgs {
    grid-template-columns: 1fr;
  }

  /* Override flex-direction untuk .image-box di certificate slider:
     Hapus pengaturan column agar tombol slider tetap berada di samping gambar */
  .image-box {
    flex-direction: row;
  }

  .slider-btn {
    font-size: 20px;
    padding: 6px 10px;
  }

  .cert-slider-single img {
    width: 100%;
    /* max-height bisa disesuaikan jika diperlukan (misal 400px) atau dibiarkan auto */
    max-height: 600px;
  }
}
