html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: linear-gradient(to bottom, rgb(18, 140, 222), rgb(0, 30, 60));
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #001e3c;
}

.logo a {
  color: #00c3ff;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ================= BANNER ATAS ================= */
.banner-ads {
  text-align: center;
  margin: 10px auto;
  max-width: 100%;
}

.banner-ads img {
  display: inline-block; /* ganti dari block ke inline-block */
  height: 60px;
  max-width: 90%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.banner-ads img:hover {
  transform: scale(1.03);
}

/* ================= BANNER BAWAH ================= */
.banner-bawah,
footer {
  box-shadow: none;
  margin: 0;
  color: white;
  text-align: center;
  padding: 10px 0;
}

.banner-bawah img {
  display: inline-block;
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.banner-bawah img:hover {
  transform: scale(1.03);
}

/* ================= BUTTON ================= */
.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons a {
  background: #014c7d;
  padding: 8px 15px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.button-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 24px; /* lebih longgar antar kolom dan baris */
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px 50px; /* tambahkan ruang bawah */
  justify-items: center;
}
.button-container a {
  text-decoration: none;
}
.btn-glow {
  background: rgb(31, 55, 229);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 14px;
  width: 100%;
  max-width: 200px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  margin-bottom: 8px; /* tambahkan jarak antar baris */
}
.btn-glow a {
  text-decoration: none;
  color: inherit; /* agar tetap putih, atau ikuti warna induk */
}

.btn-glow:hover {
  background: #00aaff;
}

/* ================= LAYOUT ================= */
header, footer, .info-bar {
  background: #022b4e;
  padding: 10px;
  text-align: center;
}

.sidebar {
  width: 20%;
  background: #013a63;
  padding: 10px;
  box-sizing: border-box;
}

.content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

/* ================= MOBILE SIDEBAR ================= */
.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  background: #012b4c;
  z-index: 1000;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.mobile-sidebar.active {
  display: block;
}

.mobile-sidebar .close-btn {
  text-align: right;
  cursor: pointer;
  font-size: 20px;
}

.mobile-sidebar a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  margin: 5px 0;
  background: #014c7d;
  border-radius: 5px;
}

.dropdown-pasaran {
  display: none;
  padding-left: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-pasaran.active {
  display: block;
}
/* ================= H1,H2,H3 ================= */
h1, h2, h3 {
    color: yellow;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}
.white-heading {
    color: white;
}


/* ================= DESKTOP STYLES ================= */

/* Tampilkan semua pasaran-extra di desktop */
.pasaran-extra {
  display: inline-block;
}

/* Sembunyikan tombol toggle di desktop */
#togglePasaranBtn {
  display: none;
}

/* Jika ada class .show, tetap tampil (umumnya dipakai di mobile) */
.pasaran-extra.show {
  display: inline-block;
}


/* ================= MOBILE STYLES ================= */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-buttons {
    display: none;
  }

  .top-right {
    flex-direction: row-reverse;
  }

  .button-container {
    display: grid;
    grid-template-columns: 1fr;
    padding: 20px;
}


  .btn-glow a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


  .banner-ads img,
  .banner-bawah img {
    height: auto;
    max-width: 95%;
    margin-bottom: 15px;
  }

  /* SEMBUNYIKAN semua pasaran-extra di mobile */
  .pasaran-extra {
    display: none;
  }

  /* Tampilkan jika toggle aktif (dikasih class .show via JS) */
  .pasaran-extra.show {
    display: inline-block;
  }

  /* Tampilkan tombol toggle hanya di mobile */
  #togglePasaranBtn {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0194ff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
}