/* ==================================
   GOVERNMENT STYLE NAVBAR - EGYPT
================================== */

.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 12px 0;
  transition: 0.3s ease;
}

/* .custom-navbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
} */

.custom-navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

/* ==================================
   LOGO
================================== */

.logo {
  height: 46px;
  width: auto;
  transition: 0.3s;
}

.custom-navbar.scrolled .logo {
  height: 42px;
}

/* ==================================
   NAVBAR LAYOUT
================================== */

.navbar-brand {
  margin-right: 30px;
}

.navbar-collapse {
  display: flex;
  align-items: center;
}

.navbar-nav {
  margin: auto;
  align-items: center;
  gap: 6px;
}

/* ==================================
   NAVIGATION
================================== */

.nav-link {
  position: relative;
  color: #333 !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px !important;
  border-radius: 6px;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-red) !important;
  background: #fff5f5;
}

.nav-link.active {
  color: var(--primary-red) !important;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 24px);
}

/* ==================================
   LANGUAGE DROPDOWN
================================== */

.language-dropdown .btn,
.dropdown-toggle {
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  box-shadow: none;
}

/* ==================================
   APPLY BUTTON
================================== */

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  margin-left: 12px;
  background: var(--primary-red);
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
}

.apply-btn:hover {
  background: var(--red-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.apply-btn.active-btn {
  background: var(--red-dark);
}

/* ==================================
   TOGGLER
================================== */

.navbar-toggler {
  border: none;
  box-shadow: none !important;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler i {
  font-size: 24px;
  color: var(--primary-red);
}

/* ==================================
   MOBILE
================================== */

@media (max-width: 991px) {
  .custom-navbar {
    padding: 8px 0;
  }

  .logo {
    height: 42px;
  }

  .navbar-collapse {
    display: block;
    margin-top: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav {
    margin: 0;
    gap: 0;
    align-items: flex-start;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    border-bottom: 1px solid #f3f3f3;
    padding: 12px !important;
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .apply-btn {
    width: 100%;
    margin: 15px 0 0;
  }

  .language-dropdown,
  .dropdown {
    width: 100%;
    margin-top: 12px;
  }

  .language-dropdown .btn,
  .dropdown-toggle {
    width: 100%;
  }
}
