/* ==== HEADER UTAMA ==== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  position: relative;
}

/* ==== BRAND ==== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 55px;
  height: auto;
}
.brand-text h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.2px;
}
.brand-text p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* ==== NAVBAR (DESKTOP) ==== */
.navbar {
  display: flex;
  align-items: center;
}
.navbar ul {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.navbar a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.25s;
}
.navbar a:hover,
.navbar a.active {
  color: #b30000;
}

/* ==== BURGER ==== */
.burger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1600; 
  position: relative; 
}


.burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #b30000;
  transition: all 0.25s ease;
}
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ==== SIDEBAR MENU ==== */
.sidebar-menu {
  display: none !important;
  position: fixed;
  top: 70px; 
  left: 0;
  height: calc(100vh - 70px); 
  width: 260px;
  background: #b30000;
  color: #fff;
  padding-top: 30px; 
  transform: translateX(-100%);
  transition: transform 0.32s ease;
  z-index: 1500;
}

.sidebar-menu.open {
  transform: translateX(0);
}
.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.sidebar-menu a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  transition: background 0.25s;
}
.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==== OVERLAY ==== */
.overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  z-index: 1400;
}
.overlay.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .navbar ul {
    display: none !important;
  }

  .burger {
    display: flex !important;
  }

  .sidebar-menu {
    display: block !important;
    transform: translateX(-100%);
  }

  .sidebar-menu.open {
    transform: translateX(0);
  }

  .overlay {
    display: block !important;
    opacity: 0;
    visibility: hidden;
  }

  .overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* ==== TAMPILAN MOBILE HEADER ==== */
  .site-header {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .header-container {
    justify-content: space-between;
    padding: 12px 16px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand img {
    width: 42px;
    height: auto;
  }

  .brand-text h1 {
    font-size: 16px;
    color: #111;
  }

  .brand-text p {
    display: none;
  }

  .burger span {
    background-color: #b30000;
  }
}

/* ==== LAPISAN Z-INDEX ==== */
.burger {
  position: relative;
  z-index: 2000;
  cursor: pointer;
  pointer-events: auto;
}
.overlay {
  z-index: 1400;
}
.sidebar-menu {
  z-index: 1500;
}

.burger.open {
  position: fixed; 
  top: 20px;
  right: 20px;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

.navbar a.active {
  color: #003399;
}

.navbar a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #003399;
  border-radius: 2px;
}

