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

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(24, 45, 72, 0.1);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(24, 45, 72, 0.15);
}

.navbar_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ---- Logo ---- */
.navbar_logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.navbar_logo img {
  height: 46px;
  width: auto;
  display: block;
}

/* ---- Nav List ---- */
.navbar_nav {
  display: flex;
  align-items: center;
}

.nav_list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav_item {
  position: relative;
}

.nav_link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}

.nav_link:hover {
  color: var(--blue);
  background: rgba(24, 45, 72, 0.06);
}

.nav_link i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.nav_dropdown:hover .nav_link i {
  transform: rotate(180deg);
}

/* ---- Dropdown Menu ---- */
.dropdown_menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(24, 45, 72, 0.14);
  border: 1px solid rgba(24, 45, 72, 0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
  z-index: 200;
}

.nav_dropdown:hover .dropdown_menu,
.nav_dropdown:focus-within .dropdown_menu {
  opacity: 1;
  visibility: visible;
}

.dropdown_menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.dropdown_menu li a:hover {
  background: rgba(24, 45, 72, 0.05);
  color: var(--blue);
}

.dropdown_menu li a i {
  width: 16px;
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
}

.dropdown_menu .dropdown_footer {
  border-top: 1px solid rgba(24, 45, 72, 0.08);
  margin-top: 6px;
  padding-top: 6px;
}

.dropdown_menu .dropdown_footer a {
  font-weight: 600;
  color: var(--blue);
  font-size: 13px;
}

.dropdown_menu .dropdown_footer a i {
  color: var(--blue);
}

/* ---- Right Side ---- */
.navbar_right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav_cta_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  padding: 9px 20px;
  font-size: 14px;
  border-radius: 6px;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.nav_cta_btn:hover {
  background: #0f1f33;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(24, 45, 72, 0.06);
}

.hamburger_line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Hamburger active (X) state */
.hamburger.active .hamburger_line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger_line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger_line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .navbar_nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 40px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 1px solid rgba(24, 45, 72, 0.08);
  }

  .navbar_nav.open {
    transform: translateX(0);
  }

  .nav_list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav_item {
    width: 100%;
  }

  .nav_link {
    padding: 15px 24px;
    font-size: 16px;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid rgba(24, 45, 72, 0.06);
  }

  .nav_link i {
    margin-left: auto;
  }

  /* Mobile Dropdown */
  .dropdown_menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(24, 45, 72, 0.03);
    transition:
      max-height 0.3s ease,
      visibility 0.3s;
    padding: 0;
  }

  .nav_dropdown.open .dropdown_menu {
    visibility: visible;
    max-height: 500px;
  }

  .nav_dropdown.open .nav_link i {
    transform: rotate(180deg);
  }

  .dropdown_menu li a {
    padding: 13px 24px 13px 44px;
    font-size: 15px;
    border-bottom: 1px solid rgba(24, 45, 72, 0.05);
  }

  .dropdown_menu .dropdown_footer {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid rgba(24, 45, 72, 0.06);
  }

  .nav_cta_btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar_inner {
    height: 64px;
    padding: 0px 15px;
  }

  .navbar_logo img {
    height: 38px;
  }

  .navbar_nav {
    top: 64px;
    height: calc(100vh - 64px);
  }
}
