#sby-priest .sby-priest-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 30px 0;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State saat layar di-scroll (Sticky) */
#sby-priest .sby-priest-header.is-sticky {
  padding: 14px 0;
  background: rgba(20, 20, 20, 0.85); /* Navy mewah */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

#sby-priest .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* --- LOGO OPTIMIZATION --- */
#sby-priest .logo-img {
  width: 180px;
  display: flex;
  align-items: center;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#sby-priest .logo-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, filter;
}

#sby-priest .logo-img:hover img {
  transform: scale(1.02) translateY(-2px); 
  filter: drop-shadow(0 8px 20px rgba(224, 196, 159, 0.25)); 
}

#sby-priest .sby-priest-header.is-sticky .logo-img {
  width: 170px; /* Mengecil halus saat scroll */
}

/* --- NAVIGATION LINKS --- */
#sby-priest .header-nav {
  display: flex;
  gap: 32px;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

#sby-priest .nav-item {
  position: relative;
  padding: 15px 0; /* Area aman agar kursor tidak lepas saat menuju dropdown */
}

#sby-priest .nav-item > a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px; 
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

/* Animasi Ikon Panah */
#sby-priest .dropdown-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#sby-priest .nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
  stroke: var(--color-secondary, #e0c49f);
}

/* Animasi Garis Bawah saat Hover */
#sby-priest .nav-item > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-secondary, #e0c49f);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sby-priest .nav-item:hover > a::after {
  width: 100%;
}

#sby-priest .nav-item:hover > a {
  color: var(--color-secondary, #e0c49f);
}

/* =========================================
   NEW: DROPDOWN MENU ENGINE
========================================= */
#sby-priest .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: #ffffff;
  min-width: 220px;
  border-radius: 2px;
  padding: 10px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; /* Mencegah trigger tidak sengaja saat sembunyi */
}

/* Munculkan Dropdown saat Hover */
#sby-priest .nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#sby-priest .dropdown-menu a {
  display: block;
  padding: 11px 24px;
  color: #191a53; /* Warna navy dasar teks */
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-align: left;
}

#sby-priest .dropdown-menu a:hover {
  background: rgba(25, 26, 83, 0.04);
  color: var(--color-secondary, #cda76e); /* Emas saat hover sub-menu */
  padding-left: 28px; /* Efek geser kanan estetik */
}

/* =========================================
   RESPONSIVE MOBILE MENU (MAX-WIDTH: 991px)
========================================= */

/* Sembunyikan tombol hamburger di layar Desktop */
#sby-priest .mobile-menu-toggle {
  display: none;
}

@media screen and (max-width: 991px) {
#sby-priest .container{
  padding:0 16px;
}
  
  /* --- PENYESUAIAN LOGO --- */
  #sby-priest .logo-img {
    width: 150px; /* Ukuran logo lebih kecil di HP */
  }
  #sby-priest .sby-priest-header.is-sticky .logo-img {
    width: 130px;
  }

/* --- TOMBOL HAMBURGER (SOLUSI ABSOLUTE - BEBAS BUG) --- */
#sby-priest .mobile-menu-toggle {
  display: block; /* Diubah ke block untuk mematikan keanehan flexbox pada button */
  width: 24px;
  height: 16px;   /* Menentukan tinggi total area tombol */
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;     /* Menghilangkan padding bawaan tag button */
}

#sby-priest .mobile-menu-toggle .bar {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;    /* Diubah ke 2px agar terlihat lebih modern, clean, dan presisi */
  background-color: var(--color-secondary, #e0c49f); /* Ditambahkan fallback warna emas */
  border-radius: 0; /* Sesuai request: tegas tanpa rounded */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mengatur posisi statis awal setiap garis */
#sby-priest .mobile-menu-toggle .bar:nth-child(1) {
  top: 0;
}
#sby-priest .mobile-menu-toggle .bar:nth-child(2) {
  top: 7px; /* Berada tepat di tengah-tengah */
}
#sby-priest .mobile-menu-toggle .bar:nth-child(3) {
  top: 14px;
}

/* --- ANIMASI SAKLAR BERUBAH MENJADI SILANG (X) --- */
/* Garis 1: Turun ke tengah, lalu berputar 45 derajat */
#sby-priest .mobile-menu-toggle.is-active .bar:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

/* Garis 2: Menghilang total dengan efek menyusut halus */
#sby-priest .mobile-menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

/* Garis 3: Naik ke tengah, lalu berputar -45 derajat */
#sby-priest .mobile-menu-toggle.is-active .bar:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

  /* --- PANEL MENU MUNCUL DARI KANAN --- */
#sby-priest .header-nav {
  position: fixed;
  top: 0;
  right: 0;

  transform: translateX(100%);

  width: 80%;
  max-width: 320px;
  height: 100vh;

  box-sizing: border-box;

  background-color: var(--color-primary);

  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  padding: 100px 30px 30px;

  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  overflow-y: auto;

  z-index: 999;
}

  /* Class pemicu menu muncul */
  #sby-priest .header-nav.is-active {
  transform: translateX(0);
  }

  /* --- GAYA ITEM MENU DI DALAM PANEL --- */
  #sby-priest .nav-item {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(224, 196, 159, 0.1); /* Garis batas samar */
  }
  
  #sby-priest .nav-item > a {
    font-size: 14px;
    justify-content: space-between; /* Pisahkan teks dan ikon panah ke ujung */
    width: 100%;
  }

  /* Hilangkan efek garis bawah hover di versi mobile */
  #sby-priest .nav-item > a::after {
    display: none; 
  }

  /* --- PENYESUAIAN DROPDOWN UNTUK MOBILE --- */
  /* Di mobile, dropdown tidak melayang (absolute), tapi menumpuk ke bawah (accordion) */
  #sby-priest .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 0;
    max-height: 0; /* Default tertutup */
    overflow: hidden; /* Sembunyikan isinya */
    transition: max-height 0.4s ease;
  }

  /* Mematikan hover bawaan desktop */
  #sby-priest .nav-item.has-dropdown:hover .dropdown-menu {
    transform: none;
  }

  /* Tampilan list di dalam dropdown mobile */
  #sby-priest .dropdown-menu a {
    color: #ffffff;
    padding: 12px 15px 12px 20px;
    font-size: 14px;
    border-left: 2px solid var(--color-secondary);
    margin-top: 10px;
    opacity: 0.8;
  }
  
  #sby-priest .dropdown-menu a:hover {
    background: rgba(224, 196, 159, 0.15);
    opacity: 1;
	color:#ffffff !important;
  }
}
