/* =========================================
   NAVBAR COMPONENT STYLES
   ========================================= */

:root {
  --primary: #0091ff;
  --secondary: #ff006e;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --white: #ffffff;
  --border-radius: 20px;
  --primary-blue: #4361ee;
  --secondary-purple: #7209b7;
}

/* Header Container (Fixed) */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Add spacing to body to prevent overlap */
body {
  padding-top: 107px; /* Top Bar (~40px) + Nav (~67px) */
}

/* Top Bar Styling */
.top-bar {
  background: #00122e;
  color: white;
  padding: 8px 4rem;
  font-size: 0.85rem;
  height: 40px;
  display: flex;
  align-items: center;
}

.top-bar-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-left a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.top-bar-left a:hover {
  color: #0091ff;
}

.top-bar-left i {
  width: 14px;
  height: 14px;
}

.top-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* Navigation Base (Now relative to Header) */
nav {
  position: relative;
  width: 100%;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 145, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  z-index: 9999;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.logo a {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem; /* Reduced gap between links */
  list-style: none;
  margin-left: auto; /* Push links and right section towards right */
  margin-right: 3rem;
  margin-bottom: 0px; /* Spacing between links and right section */
}

.nav-item {
  position: relative;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0091ff;
}

.nav-item.has-dropdown > a {
  border-bottom: 2px solid transparent;
}

.nav-item.has-dropdown:hover > a,
.nav-item.has-dropdown.open > a {
  color: #0091ff;
}

/* Global Navbar Hover Fix - Minimal & Clean */
nav a,
nav a:hover,
.nav-links a,
.nav-links a:hover {
  text-decoration: none !important;
}

nav a::after,
nav a::before,
.nav-links a::after,
.nav-links a::before {
  display: none !important;
  content: none !important;
}

/* Navbar Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-contact-item .icon-circle {
  width: 28px; /* Slightly smaller circle */
  height: 28px;
  background: rgba(0, 145, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0091ff;
  transition: all 0.3s ease;
}

.nav-contact-item .icon-circle svg {
  width: 14px;
  height: 14px;
}
.nav-contact-item:hover .icon-circle {
  background: #0091ff;
  color: white;
  transform: scale(1.05);
}

.nav-contact-item i {
  width: 13px; /* Slightly smaller icon */
  height: 13px;
}

.nav-contact-item span {
  font-size: 0.85rem; /* Matching subtle reduction */
  font-weight: 600;
  color: #1a1a1a;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
}

/* Original CTA Button preserved but slightly smaller padding */
.cta-button {
  padding: 0.65rem 1.6rem;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 145, 255, 0.25);
  font-family: inherit;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 145, 255, 0.35);
}

/* Dropdown Icon */
.dropdown-icon {
  display: flex;
  align-items: center;
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.nav-item.open .dropdown-icon,
.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* .nav-item.has-dropdown.active .dropdown-icon {
  transform: rotate(180deg);
} */

/* NAVBAR DROPDOWN START */
.main-header .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  padding: 12px 0;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 9999;
  border-radius: 12px;
  border-top: none !important;
  margin-top: 6px;
  overflow: hidden;
  display: block !important;
}

/* Open/Hover States */
.main-header .nav-item.has-dropdown.open .dropdown-menu,
.main-header .nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

.dropdown-menu:hover {
  pointer-events: auto;
}

/* Base Dropdown Item Overrides */
.main-header .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a1a;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.main-header .dropdown-item:hover .loc-title {
  color: #0091ff;
}

/* Image specifically for location dropdowns */
.main-header .dropdown-item img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8fafc;
}

.loc-title {
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* Footer & View All */
.main-header .dropdown-footer {
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px;
}

.view-all-link {
  display: inline-block;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #0091ff;
}

/* Minimal Mobile Sidebar Adjustments */
.sidebar-dropdown .dropdown-list {
  padding-left: 0;
}

.sidebar-dropdown .dropdown-item {
  margin-bottom: 4px;
}

.sidebar-dropdown .dropdown-footer {
  text-align: left;
  border: none;
  padding-left: 14px;
}
/* NAVBAR DROPDOWN END */
