* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  /* Mencegah seluruh halaman web bisa digeser ke kanan-kiri secara tidak sengaja */
  overflow-x: hidden; 
}

.nav {
  height: 95px;
  background: #151515;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 5%;
  overflow: visible; 
}

.logo {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #555;
}

.menu {
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
  height: 95px;
}

.menu-item {
  position: relative;
  height: 95px;
  display: flex;
  align-items: center;
}

.menu-item > span {
  min-width: 82px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 9px 7px;
  color: #eee;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border-radius: 9px;
  cursor: pointer;
  transition: .2s ease;
}

.menu-item > span b {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 7px;
}

.menu-item:hover > span {
  color: #fff;
  background: linear-gradient(180deg, #74141b 0%, #3a0a0e 100%);
  box-shadow: inset 0 -3px 0 #d7a72b, 0 4px 12px rgba(0,0,0,.35);
}

/* DROPDOWN TEKS MURNI DESKTOP */
.dropdown.text-mode {
  position: absolute;
  top: 88px; 
  left: 0;
  width: 700px;
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(180deg, rgba(50,12,12,0.98), rgba(20,5,5,0.99));
  border: 1px solid #b88b24;
  border-top: 3px solid #d4a52d;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.85);
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  z-index: 99999;
  display: none; 
}

.menu-item:hover .dropdown.text-mode {
  display: block !important;
}

.dropdown.text-mode h3 {
  margin-top: 0;
  color: #f0c84d;
  font-size: 18px;
  border-bottom: 1px solid rgba(240, 200, 77, 0.3);
  padding-bottom: 8px;
}

.dropdown.text-mode p {
  margin-bottom: 12px;
  text-shadow: 1px 1px 2px #000;
}

.dropdown.text-mode::-webkit-scrollbar {
  width: 6px;
}
.dropdown.text-mode::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}
.dropdown.text-mode::-webkit-scrollbar-thumb {
  background: #d4a52d;
  border-radius: 10px;
}

/* BANNER SLIDER */
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
  z-index: 10;
}

.track {
  display: flex;
  width: max-content;
  animation: slide 18s linear infinite;
}

.slide {
  flex: 0 0 100vw;
  height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #210000;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes slide {
  0%, 27% { transform: translateX(0); }
  33%, 60% { transform: translateX(-100vw); }
  66%, 93% { transform: translateX(-200vw); }
  100% { transform: translateX(-300vw); }
}

.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
  opacity: .8;
}

.note {
  max-width: 1000px;
  margin: 25px auto;
  padding: 0 20px;
  color: #bbb;
  line-height: 1.6;
}

/* ========================================================
   BAGIAN DIBAWAH INI MEMBUAT HALAMAN 100% RESPONSIF HP
   ======================================================== */
@media (max-width: 1100px) {
  .nav { gap: 12px; padding: 0 18px; }
  .menu { gap: 5px; }
  .logo { font-size: 27px; }
}

@media (max-width: 800px) {
  .nav {
    height: auto;
    min-height: 95px;
    flex-direction: column; /* Logo dan Menu tersusun atas-bawah di HP agar rapi */
    justify-content: center;
    padding: 10px 0;
  }
  .logo {
    margin-bottom: 5px;
  }
  .menu {
    height: auto;
    width: 100%;
    justify-content: center; /* Menu berada di tengah layar HP */
  }
  .menu-item {
    height: 80px;
  }
  .menu-item > span {
    min-width: 75px;
    height: 70px;
    font-size: 10px;
  }
  .menu-item > span b { font-size: 20px; margin-bottom: 4px; }
  
  .slide {
    height: 250px; /* Mengecilkan tinggi banner di HP agar tidak terlalu memakan layar */
  }
  
  /* Perbaikan Posisi Dropdown Teks agar Presisi di Tengah Layar HP */
  .dropdown.text-mode {
    position: fixed; /* Mengunci posisi relatif terhadap kaca layar HP */
    top: 105px;
    left: 4vw;
    width: 92vw;
    max-height: 300px;
    padding: 15px;
    font-size: 13px;
    border-radius: 12px;
  }
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  /* Mencegah seluruh halaman web bisa digeser ke kanan-kiri secara tidak sengaja */
  overflow-x: hidden; 
}

.nav {
  height: 95px;
  background: #151515;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 5%;
  overflow: visible; 
}

.logo {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #555;
}

.menu {
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
  height: 95px;
}

.menu-item {
  position: relative;
  height: 95px;
  display: flex;
  align-items: center;
}

.menu-item > span {
  min-width: 82px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 9px 7px;
  color: #eee;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border-radius: 9px;
  cursor: pointer;
  transition: .2s ease;
}

.menu-item > span b {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 7px;
}

.menu-item:hover > span {
  color: #fff;
  background: linear-gradient(180deg, #74141b 0%, #3a0a0e 100%);
  box-shadow: inset 0 -3px 0 #d7a72b, 0 4px 12px rgba(0,0,0,.35);
}

/* DROPDOWN TEKS MURNI DESKTOP */
.dropdown.text-mode {
  position: absolute;
  top: 88px; 
  left: 0;
  width: 700px;
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(180deg, rgba(50,12,12,0.98), rgba(20,5,5,0.99));
  border: 1px solid #b88b24;
  border-top: 3px solid #d4a52d;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.85);
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  z-index: 99999;
  display: none; 

  /* ========================================================
     TAMBAHKAN 2 BARIS KODE DI BAWAH INI UNTUK MERAPIKAN TEKS
     ======================================================== */
  white-space: normal !important; 
  word-break: break-word;        
}

/* Tambahkan juga selector ini di bawahnya untuk memastikan semua paragraf ikut rapi */
.dropdown.text-mode p, 
.dropdown.text-mode li {
  white-space: normal !important;
}
@media (max-width: 800px) {
  /* ... kode yang sudah ada ... */
  .dropdown.text-mode {
    position: fixed; 
    top: 105px;
    left: 4vw;
    width: 92vw;
    max-height: 300px;
    padding: 15px;
    font-size: 13px;
    border-radius: 12px;

    /* Tambahkan ini juga di bagian HP */
    white-space: normal !important;
  }
}
/* Khusus untuk item menu yang berada di posisi kanan agar kotak dropdown-nya tidak keluar layar */
.menu-item:nth-last-child(1) .dropdown.text-mode,
.menu-item:nth-last-child(2) .dropdown.text-mode {
  left: auto !important;   /* Mematikan patokan kiri */
  right: 0 !important;    /* Memaksa kotak dropdown rata dengan sisi kanan menu */
}


.menu-item:hover .dropdown.text-mode {
  display: block !important;
}

.dropdown.text-mode h3 {
  margin-top: 0;
  color: #f0c84d;
  font-size: 18px;
  border-bottom: 1px solid rgba(240, 200, 77, 0.3);
  padding-bottom: 8px;
}

.dropdown.text-mode p {
  margin-bottom: 12px;
  text-shadow: 1px 1px 2px #000;
}

.dropdown.text-mode::-webkit-scrollbar {
  width: 6px;
}
.dropdown.text-mode::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}
.dropdown.text-mode::-webkit-scrollbar-thumb {
  background: #d4a52d;
  border-radius: 10px;
}

/* BANNER SLIDER */
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
  z-index: 10;
}

.track {
  display: flex;
  width: max-content;
  animation: slide 18s linear infinite;
}

.slide {
  flex: 0 0 100vw;
  height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #210000;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes slide {
  0%, 27% { transform: translateX(0); }
  33%, 60% { transform: translateX(-100vw); }
  66%, 93% { transform: translateX(-200vw); }
  100% { transform: translateX(-300vw); }
}

.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
  opacity: .8;
}

.note {
  max-width: 1000px;
  margin: 25px auto;
  padding: 0 20px;
  color: #bbb;
  line-height: 1.6;
}

/* ========================================================
   BAGIAN DIBAWAH INI MEMBUAT HALAMAN 100% RESPONSIF HP
   ======================================================== */
@media (max-width: 1100px) {
  .nav { gap: 12px; padding: 0 18px; }
  .menu { gap: 5px; }
  .logo { font-size: 27px; }
}

@media (max-width: 800px) {
  .nav {
    height: auto;
    min-height: 95px;
    flex-direction: column; /* Logo dan Menu tersusun atas-bawah di HP agar rapi */
    justify-content: center;
    padding: 10px 0;
  }
  .logo {
    margin-bottom: 5px;
  }
  .menu {
    height: auto;
    width: 100%;
    justify-content: center; /* Menu berada di tengah layar HP */
  }
  .menu-item {
    height: 80px;
  }
  .menu-item > span {
    min-width: 75px;
    height: 70px;
    font-size: 10px;
  }
  .menu-item > span b { font-size: 20px; margin-bottom: 4px; }
  
  .slide {
    height: 250px; /* Mengecilkan tinggi banner di HP agar tidak terlalu memakan layar */
  }
  
  /* Perbaikan Posisi Dropdown Teks agar Presisi di Tengah Layar HP */
  .dropdown.text-mode {
    position: fixed; /* Mengunci posisi relatif terhadap kaca layar HP */
    top: 105px;
    left: 4vw;
    width: 92vw;
    max-height: 300px;
    padding: 15px;
    font-size: 13px;
    border-radius: 12px;
    
  }
}
/* ========================================================
   KOTAK PEMBERITAHUAN BERJALAN (RUNNING TEXT)
   ======================================================== */
.announcement-bar {
  max-width: 90%;
  margin: 15px auto;
  background: #222; /* Warna latar kotak abu-abu gelap */
  border-radius: 6px;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
  font-family: Arial, sans-serif;
}

/* Bagian Judul Pemberitahuan (Kiri) */
.announcement-title {
  color: #f0c84d; /* Warna emas */
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;

}
.announcement-title span {
  font-size: 14px;
}

/* Wadah Pengunci Teks Berjalan (Tengah) */
.announcement-marquee {
  flex: 1;
  overflow: hidden; /* Menyembunyikan teks yang keluar dari jalur */
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Isi Teks Berjalan */
.marquee-content {
  position: absolute;
  white-space: nowrap;
  color: #fff;
  font-size: 12px;
  padding-left: 100%; /* Mulai berjalan dari ujung kanan luar wadah */
  animation: runningText 25s linear infinite; /* Kecepatan jalan teks */
}

/* Animasi Menggeser Teks dari Kanan ke Kiri */
@keyframes runningText {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Bagian Waktu/Jam (Kanan) */
.announcement-time {
  color: #f0c84d; /* Warna emas */
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  margin-left: 20px;
}

/* Responsif untuk Layar HP */
@media (max-width: 768px) {
  .announcement-bar {
    height: auto;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
  }
  .announcement-title, .announcement-time {
    margin: 0;
  }
  .announcement-marquee {
    width: 100%;
    height: 25px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 0 5px;
  }
}
/* Pastikan class slider Anda memiliki position: relative */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Mengatur posisi teks melayang tepat di tengah slider */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* Menaruh teks di atas gambar dan dots navigasi */
  text-align: center;
  width: 90%;
  max-width: 800px;
  pointer-events: none; /* Biar klik mouse tembus ke slider jika dibutuhkan */
}

/* Mengaktifkan klik hanya pada tombol CTA */
.hero-content a.btn-cta {
  pointer-events: auto;
}
/* Gaya Tampilan Tombol Utama (CTA) */
.btn-cta {
  display: inline-block;
  padding: 14px 32px;            /* Mengatur ukuran kotak tombol */
  font-size: 1.1rem;             /* Ukuran teks tombol */
  font-weight: 700;              /* Membuat teks tebal */
  color: #000000 !important;     /* Memaksa warna teks menjadi hitam pekat */
  background-color: #ffcc00;     /* Warna latar belakang kuning neon/retro */
  text-decoration: none !important; /* Menghilangkan garis bawah biru */
  text-transform: uppercase;     /* Mengubah teks menjadi huruf kapital semua */
  border-radius: 6px;            /* Membuat sudut kotak sedikit melengkung */
  font-family: 'Arial', sans-serif; /* Menggunakan font yang bersih dan rapi */
  
  /* Efek bayangan tegas khas grafis retro 80-an */
  box-shadow: 4px 4px 0px #ffffff; 
  transition: all 0.3s ease;     /* Efek transisi halus saat disentuh kursor */
}

/* Efek Interaktif Saat Tombol Disentuh Kursor (Hover) */
.btn-cta:hover {
  background-color: #ffffff;     /* Warna latar berubah jadi putih */
  color: #000000 !important;
  box-shadow: 4px 4px 0px #ffcc00; /* Warna bayangan berubah jadi kuning */
  transform: translateY(-2px);    /* Tombol sedikit terangkat ke atas */
}
