/* --- Bagian Utama sliders --- */
.sliders {
  position: relative;
  height: 100vh; /* Mengisi seluruh tinggi layar */
  width: 100%;
  overflow: hidden;
  color: white;
}

/* --- Lapisan Gambar --- */
.sliderr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Diubah agar gambar tidak pecah */
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1; /* Lapisan paling bawah */
}

.sliderr.active {
  opacity: 1;
}

/* --- (KODE BARU) Lapisan Konten Teks --- */
/* Ini adalah bagian penting yang ditambahkan */
.hero-content {
  position: relative; /* Bisa relative atau absolute */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%; /* Memenuhi tinggi header */
  text-align: center;
  padding: 0 20px;
  z-index: 5; /* Pastikan berada di atas lapisan gambar (.sliderr) */
  /* Efek bayangan pada teks agar lebih terbaca */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}


/* --- Tombol Navigasi --- */
.prevv, .nextt {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10; /* Lapisan paling atas */
  border-radius: 4px;
  transition: background 0.3s;
}

.prevv:hover, .nextt:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prevv { left: 20px; }
.nextt { right: 20px; }

/* --- Indikator Titik (Dots) --- */
.dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dots span {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dots span:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dots span.active {
  background: white;
}

  .perangkat-card {
    min-width: 150px; /* biar 4 card pas di layar */
    max-width: 150px;
    text-align: center;
    flex: 0 0 auto; /* mencegah card mengecil */
    scroll-snap-align: start; /* efek snap pas scroll */
  }

  .perangkat-card .image-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
  }

  .perangkat-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* jaga proporsi gambar */
  }

  .floating-card {
  background-color: #ffffffcc; /* putih transparan */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* bayangan lembut */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efek hover biar makin “floating” */
.floating-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.berita-card {
  border: none;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.berita-card:hover {
  transform: translateY(-5px);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 160px; /* setengah dari tinggi card sebelumnya */
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
}

.overlay h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: bold;
}

.overlay small {
  font-size: 0.75rem;
}

.video-card {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  overflow: hidden;
  border-radius: 15px 15px;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 200px; /* sama dengan berita-card */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Memastikan teks berada di atas slider */
    width: 100%;
    text-align: center;
}

.sliders {
    position: relative; /* Diperlukan agar z-index pada child element berfungsi */
    color: white;
}

.berita-img {
    height: 200px;           /* tinggi konsisten */
    object-fit: cover;       /* crop gambar biar rapi */
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}
.aparat-img {
    width: 120px;        /* ukuran konsisten */
    height: 120px;       /* ukuran konsisten */
    object-fit: cover;   /* biar gambar proporsional terpotong */
}