/* ===== Header Mobile ===== */
.header-mobile {
  display: flex;
  align-items: center;      /* sejajarkan logo & icon di tengah vertikal */
  justify-content: space-between; /* logo kiri, ikon kanan */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 8px 14px;  /* kasih sedikit ruang biar lega */
  min-height: 64px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Container logo di header kiri */
.header-left .logo {
  display: flex;
  align-items: center; /* bikin logo selalu center vertikal */
  height: 37px;        /* samakan dengan tinggi logo */
}

/* Logo di header mobile */
.header-mobile .logo img {
  height: 37px;   /* bisa atur 30–40px sesuai kebutuhan */
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0;      /* hilangkan margin hack */
}

/* Container kanan */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon button */
.header-mobile .icon-btn {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Search Box ===== */
.search-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* ini yang bikin center */
  width: 90%;
  max-width: 400px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  z-index: 1200;
}

.search-box.active { 
  display: flex; 
  align-items: center; 
  justify-content: center;   /* ini biar isi tetap center */
  gap: 15px; 
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
}

.search-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.search-box button {
  padding: 10px 15px;
  margin-left: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0; /* biar tombol nggak ikut melar */
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  right: -260px;
  width: 250px;
  height: 100%;
  background: #0056b3;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1100;
  overflow-y: auto;
}
.sidebar.active { right: 0; }

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-bottom: 20px;
  color: #fff;
}

/* ===== Menu & Submenu ===== */
.menu { 
  list-style: none; 
  padding: 0;
  margin: 0;
}
.menu li { 
  margin: 12px 0; /* dikurangi biar compact */
}
.menu a { 
  text-decoration: none; 
  color: #fff; 
  font-weight: 500; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  transition: color 0.3s; 
  font-size: 13px; /* ukuran font menu lebih kecil */
}
.menu a:hover { 
  color: #ffcc00; 
}

.submenu-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 15px;
}
.submenu.open .submenu-list { 
  max-height: 500px; 
}
.submenu-list li a { 
  color: #fff; 
  font-size: 11px; /* ukuran font submenu lebih kecil */
  padding: 6px 0; 
  display: block; 
}
.submenu-list li a:hover { 
  color: #ffcc00; 
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1050;
}
.overlay.active { 
  display: block; 
}
