/* ============================================
   MODERN NAVIGATION - Google-Inspired Design
   ============================================ */

/* Header Container */
.header-modern {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.header-modern .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-content {
  height: 64px;
}

/* Logo */
.logo-modern {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-modern:hover {
  opacity: 0.8;
}

.logo-img {
  height: 40px;
  width: auto;
}

/* Desktop Navigation */
.nav-modern {
  flex: 1;
  justify-content: center;
  margin: 0 40px;
}

.nav-list {
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #5f6368;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: #202124;
  background-color: #f8f9fa;
}

.nav-link.active {
  color: #1a73e8;
  background-color: #e8f0fe;
}

/* Dropdown */
.dropdown-modern {
  position: relative;
}

.dropdown-modern .nav-link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.dropdown-modern:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-menu-modern {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  list-style: none;
  z-index: 1001;
}

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

.dropdown-item-modern {
  color: #5f6368;
  font-size: 14px;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.dropdown-item-modern:hover {
  color: #202124;
  background-color: #f8f9fa;
}

/* Header Actions */
.header-actions {
  gap: 12px;
}

.btn-icon {
  background: transparent;
  border: none;
  color: #5f6368;
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.btn-icon:hover {
  background-color: #f8f9fa;
  color: #202124;
}

.btn-cta-modern {
  background: #1a73e8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-cta-modern:hover {
  background: #1557b0;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  color: #5f6368;
  font-size: 24px;
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-menu-toggle:hover {
  color: #202124;
}

/* Mobile Navigation */
.mobile-nav-modern {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 999;
}

.mobile-nav-modern.active {
  transform: translateX(0);
}

.mobile-nav-content {
  padding: 24px;
}

.mobile-nav-list {
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f1f3f4;
}

.mobile-nav-link {
  color: #5f6368;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #1a73e8;
}

.mobile-dropdown-toggle {
  justify-content: space-between;
}

.mobile-dropdown-toggle i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 20px;
  margin: 0;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 300px;
}

.mobile-dropdown-menu .mobile-nav-link {
  padding: 12px 0;
  font-size: 15px;
}

/* Scrolled State */
.header-modern.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .header-content {
    height: 56px;
  }

  .logo-img {
    height: 32px;
  }
}

@media (max-width: 575px) {
  .header-modern .container-fluid {
    padding: 0 16px;
  }
}