/* ================= NAVBAR FIX ================= */
.navbar {
  position: fixed;
  top: 40px;
  width: 100%;
  z-index: 999;
  background: white;
  padding: 12px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* container */
.navbar-container {
  max-width: 1444px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= LOGO ================= */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 56px;
  object-fit: contain;
}

.brand-text {
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
}

.brand-blue {
  color: #2563eb;
}

/* ================= DESKTOP MENU ================= */
.desktop-menu {
  display: none;
  align-items: center;
  gap: 24px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
  }
}

/* ================= LINKS ================= */
.nav-link {
  text-decoration: none;
  color: #475569;
  font-size: 15px;
  transition: 0.2s;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link.active {
  color: #2563eb;
  font-weight: 700;
}

/* ================= DROPDOWN ================= */
.dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #475569;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border: 1px solid #eee;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
}

/* ================= PORTAL BUTTON ================= */
.portal-btn {
  background: #2563eb;
  color: white;
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-btn:hover {
  background: #1d4ed8;
}

/* ================= MOBILE BUTTON ================= */
.mobile-btn {
  display: block;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-btn {
    display: none;
  }
}

/* ================= MOBILE MENU (FIXED) ================= */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* IMPORTANT: JS uses "hidden", so support both */
.mobile-menu.hidden {
  display: none;
}

.mobile-menu:not(.hidden) {
  display: flex;
}

/* links */
.mobile-link {
  padding: 12px;
  text-decoration: none;
  color: #475569;
  border-radius: 6px;
}

.mobile-link:hover {
  background: #f1f5f9;
}

.mobile-link.active {
  color: #2563eb;
  font-weight: 700;
  background: #eff6ff;
}

/* section */
.mobile-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.mobile-section p {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  padding: 8px 12px;
}

/* portal */
.mobile-portal {
  margin-top: 10px;
  background: #2563eb;
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}