
/* ===== Top Navigation (Polri Modern - Dark Glass) ===== */
.topnav-wrap{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 16px;
  backdrop-filter: blur(12px);
}
.topnav{
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(17,26,46,.72);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.topnav-brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  color: #eef3ff;
  min-width: 220px;
}
.topnav-logo{
  width: 38px; height: 38px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 4px;
}
.topnav-title{
  display:flex;
  flex-direction: column;
  line-height: 1.05;
}
.topnav-title b{
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 13px;
}
.topnav-title span{
  opacity: .78;
  font-size: 11px;
  margin-top: 2px;
}

.topnav-burger{
  display:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color:#eef3ff;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
}
.topnav-burger:hover{ background: rgba(255,255,255,.08); }

.topnav-links{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.topnav-link{
  color:#eef3ff;
  text-decoration:none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
}
.topnav-link:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.10);
}
.topnav-link.active{
  background: rgba(212,175,55,.16);  /* gold tint */
  border-color: rgba(212,175,55,.35);
  box-shadow: 0 10px 24px rgba(212,175,55,.12);
}
.caret{ font-size: 12px; opacity:.8; }

.topnav-dd{ position: relative; }
.dd-menu{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: rgba(17,26,46,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(0,0,0,.5);
  padding: 8px;
  display:none;
}
.dd-menu a{
  display:flex;
  padding: 10px 12px;
  border-radius: 12px;
  color:#eef3ff;
  text-decoration:none;
  font-weight: 700;
}
.dd-menu a:hover{
  background: rgba(255,255,255,.08);
}
.topnav-dd:hover .dd-menu{ display:block; }
.topnav-dd.open .dd-menu{ display:block; }

/* Mobile */
@media (max-width: 920px){
  .topnav-wrap{ padding: 10px 10px; }
  .topnav{
    padding: 10px 10px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topnav-brand{
    min-width: 0;
    flex: 1 1 auto;
  }
  .topnav-logo{ width: 34px; height:34px; border-radius: 12px; }
  .topnav-title b{ font-size: 12.5px; }
  .topnav-title span{ font-size: 10.5px; }

  .topnav-burger{ display:inline-flex; }

  .topnav-links{
    display:none;
    width: 100%;
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }
  .topnav-links.open{
    display:flex;
  }

  .topnav-link{
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.10);
  }
  .topnav-link:hover{ background: rgba(255,255,255,.06); }

  .topnav-dd{ width: 100%; }
  .dd-menu{
    position: static;
    box-shadow:none;
    min-width: 0;
    width: 100%;
    padding: 6px;
    border-radius: 14px;
    background: rgba(10,15,27,.75);
    border-color: rgba(255,255,255,.10);
  }
  .dd-menu a{ width:100%; }
  .topnav-dd:hover .dd-menu{ display:none; }
  .topnav-dd.open .dd-menu{ display:block; }
}
.topnav-burger{ display:inline-flex; }
  .topnav-links{ display:none; width: 100%; padding-top: 6px; }
  .topnav-links.open{ display:flex; }
  .dd-menu{ position: static; box-shadow:none; }
  .topnav-dd:hover .dd-menu{ display:none; }
  .topnav-dd.open .dd-menu{ display:block; }
}
