:root{
  --header-bg:#ffffff;
  --header-text:#111827;
  --header-border:rgba(17,24,39,.12);
  --header-hover:rgba(17,24,39,.06);
}

.site-header{
  background:var(--header-bg);
  color:var(--header-text);
  border-bottom:1px solid var(--header-border);
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Sticky header */
  position: sticky;
  top: 0;
  z-index: 100;
}


.header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:8px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.header-left{
  display:flex;
  align-items:center;
}

.brand{
  display:inline-flex;
  align-items:center;
}

.brand-logo{
  width:108px;
  height:108px;
  object-fit:contain;
  display:block;
}

.header-nav{
  flex:1;
}

.menu{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:center;
}

.menu-item{
  position:relative;
}

.menu-link{
  display:inline-flex;
  align-items:center;
  padding:8px 6px;
  text-decoration:none;
  color:inherit;
  font-weight:600;
  font-size:15px;
  border-radius:8px;
}

.menu-link:hover{
  background:var(--header-hover);
}

.sub-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:190px;
  background:#fff;
  border:1px solid var(--header-border);
  border-radius:12px;
  padding:8px;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  display:none;
  z-index:50;
}

.menu-item.has-sub:hover > .sub-menu{
  display:block;
}

.sub-menu-item{
  list-style:none;
}

.sub-menu-link{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
  color:inherit;
  font-weight:600;
  font-size:14px;
}

.sub-menu-link:hover{
  background:var(--header-hover);
}

.header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

.lang-switch{
  position:relative;
  display:flex;
  align-items:center;
}

.lang-trigger{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--header-border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:0;
}

.lang-trigger:hover{
  background:var(--header-hover);
}

.lang-flag{
  width:28px;
  height:20px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}

.lang-submenu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:160px;
  background:#fff;
  border:1px solid var(--header-border);
  border-radius:12px;
  padding:8px;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  display:none;
  z-index:60;
  list-style:none;
  margin:0;
}

.lang-switch.is-open > .lang-submenu{
  display:block;
}

.lang-submenu{
  /* keyboard-friendly */
  user-select:none;
}


.lang-submenu-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
  color:inherit;
  font-weight:700;
  font-size:14px;
}

.lang-submenu-link:hover{
  background:var(--header-hover);
}

.lang-submenu-link.is-active{
  background:var(--header-hover);
}

.lang-flag-small{
  width:28px;
  height:20px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}


.search-btn{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--header-border);
  background:#fff;
  color:var(--header-text);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:0;
}


.search-btn:hover{
  background:var(--header-hover);
}

.search-icon{
  width:20px;
  height:20px;
  fill: currentColor;
  display:block;
}

/* Mobile hamburger / drawer */
.hamburger-btn{
  display:none;

  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--header-border);
  background:#fff;
  color:var(--header-text);
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
}

.hamburger-lines{
  width:18px;
  height:2px;
  background: currentColor;
  position:relative;
  display:block;
  border-radius:2px;
}

.hamburger-lines::before,
.hamburger-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: currentColor;
  border-radius:2px;
}

.hamburger-lines::before{ top:-6px; }
.hamburger-lines::after{ top:6px; }

.mobile-menu{
  display:none;
}

.mobile-menu.is-open{ display:block; }

.mobile-menu-backdrop{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.45);
  z-index:9998;
}

.mobile-menu-panel{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(360px, 92vw);
  background:#fff;
  border-left:1px solid var(--header-border);
  z-index:9999;
  padding:14px;
  overflow:auto;
}

.mobile-menu-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.mobile-menu-title{
  font-weight:900;
  color:var(--header-text);
  font-size:16px;
}

.mobile-menu-close{
  border:0;
  background:transparent;
  font-size:22px;
  cursor:pointer;
  color:var(--header-text);
}

.mobile-menu-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.mobile-nav .menu-link{
  width:100%;
  justify-content:flex-start;
  padding:12px 10px;
  border-radius:12px;
}

.sub-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:12px 10px;
  border-radius:12px;
  font-weight:700;
  color:inherit;
}

.sub-toggle:hover{
  background:var(--header-hover);
}

.mobile-nav .sub-menu{
  position:static;
  box-shadow:none;
  border:0;
  background:transparent;
  padding:0 0 0 12px;
  margin:0;
  display:none;
}

.mobile-nav .menu-item.is-sub-open > .sub-menu{
  display:block;
}

.mobile-nav .sub-menu-link{
  padding:10px 10px;
  border-radius:10px;
}

.mobile-nav .sub-menu-link:hover{
  background:var(--header-hover);
}

/* Responsive switch */
@media (min-width: 821px){
  .hamburger-btn{ display:none; }
  .mobile-menu{ display:none; }
}

@media (max-width: 820px){
  .header-right{ gap:10px; }
  .header-nav{ display:none; }
  .hamburger-btn{ display:flex; }
  /* mobile-menu hidden by default; JS toggles is-open */
  .mobile-menu{ display:none; }
  .mobile-menu.is-open{ display:block; }
}

@media (max-width: 420px){
  /* Header mobile: paksa lebih ringkas */
  .header-inner{ padding:0 10px; gap:6px; min-height:52px; }
  .brand-logo{ width:58px; height:58px; }
  .hamburger-btn{ width:32px; height:32px; border-radius:12px; }
  .search-btn{ width:32px; height:32px; border-radius:12px; }
  .search-icon{ width:14px; height:14px; }
  .lang-trigger{ width:32px; height:32px; border-radius:12px; }
}











