/* =========================================================
   2️⃣ GLOBAL HN BAR (FINAL CLEAN STABLE VERSION)
========================================================= */

/* ===============================
   BRAND HEADER
================================ */
.brand-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 20px 10px 35px;
  background-color: var(--primary);
  color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 100px;
}

.logo {
  height: 80px;
  width: auto;
}

.company-name {
  font-size: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  margin-top: -10px;
  margin-left: 13px;
}

.company-name span {
  align-self: flex-start;
  margin-top: 18px;
}

/* ===============================
   LANGUAGE LINKS
================================ */
.lang-links {
  position: absolute;
  display: flex;
  gap: 10px;
  top: 5px;
  right: 20px;
}

.lang-links a {
  padding: 4px 15px;
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  text-decoration: none;
}

.lang-links a:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

/* ===============================
   HN BAR
================================ */
.hn-wrapper {
  z-index: 10000;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  background-color: var(--nav-dark);
  padding: 0 12px 0 55px;
  overflow: visible !important;
}

/* ===============================
   NAV SCROLL
================================ */
.topnav-scrollable {
  display: flex;
  align-items: center;
  justify-content: center;
  /* ← MPYA: centering ya links */
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  scrollbar-width: none;
  /* ← MPYA: ficha scrollbar Firefox */
}

.topnav-scrollable::-webkit-scrollbar {
  display: none;
  /* ← MPYA: ficha scrollbar Chrome */
}

/* LINKS */
.topnav-scrollable a,
.topnav-scrollable .nav-link {
  display: inline-block;
  color: var(--white);
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
  font-size: 17px;
}

.topnav-scrollable a:hover,
.topnav-scrollable .nav-link:hover {
  background-color: var(--border-light);
  color: var(--secondary);
}

/* ===============================
   DROPDOWN
================================ */
.topnav-scrollable .dropdown-content {
  position: fixed;
  top: 150px;
  background: var(--white);
  min-width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  border-radius: 45px;
  border-top: 3px solid var(--dropdown-accent);
  box-shadow: var(--shadow-md);
  z-index: 11000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}

/* ===============================
   DROPDOWN CARET 
================================ */
.nav-link .nav-caret {
  margin-left: 6px;
  font-size: 0.7em;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

/* Pinduka juu wakati dropdown inafunguka */
.nav-item:hover .nav-link .nav-caret {
  transform: rotate(180deg);
}

/* SHOW */
.topnav-scrollable .nav-item:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* LINKS INSIDE DROPDOWN */
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 4.5px;
  color: var(--text-main);
  white-space: nowrap;
  transition: all 0.45s ease;
}

/* ===============================
   HOVER — UNDERLINE/ITALIC TEXT (DROPDOWN)
================================ */
.dropdown-content a:hover em {
  color: #000000;
}

/* HOVER EFFECT */
.dropdown-content a:hover {
  background: var(--dropdown-hover-bg);
  padding-left: 24px;
}

/* ===============================
   SCROLLBAR YA DROPDOWN
================================ */
.dropdown-content::-webkit-scrollbar {
  width: 20px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  border: 3px solid var(--dropdown-hover-bg);
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===============================
   ACTIVE LINK
================================ */
.topnav-scrollable .active {
  background-color: var(--border-light);
  color: var(--secondary);
}

/* ===============================
   SCROLL BUTTONS
================================ */
.scroll-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  padding: 0 8px;
  height: 50px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.scroll-btn:hover {
  color: var(--secondary);
}

/* ===============================
   RESPONSIVE — MOBILE
================================ */
@media (max-width: 768px) {

  .brand-header {
    padding: 8px 12px 4px;
    justify-content: flex-start;
  }

  .company-name {
    font-size: 16px;
    margin-top: 0;
  }

  .logo {
    height: 30px;
  }

  .lang-links {
    gap: 4px;
    right: 8px;
    top: 4px;
  }

  .lang-links a {
    padding: 3px 8px;
    font-size: 11px;
  }

  .hn-wrapper {
    top: 60px;
    padding: 0 4px 0 50px;
    /* ← left padding 50px = nafasi ya hamburger mobile */
  }

  .topnav-scrollable a,
  .topnav-scrollable .nav-link {
    padding: 10px 10px;
    font-size: 12px;
  }

  .topnav-scrollable {
    justify-content: flex-start;
  }
}