/* ==========================================================================
   FIXILA - NAVIGATION STYLESHEET
   Save as: /css/navigation.css
   Used on: ALL PAGES (has navigation)
   ========================================================================== */

/* ==========================================================================
   MAIN NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #001833, #1e3a8a);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  max-height: 80px;
  width: auto;
}

/* Remove underline from logo link */
.nav-logo a::after {
  display: none !important;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #74C0FC;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   REGULAR DROPDOWN
   ========================================================================== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.75rem;
  line-height: 1;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #001833;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  font-size: 0.9rem;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: rgba(116, 192, 252, 0.2);
}

.dropdown-menu li a::after {
  display: none;
}

/* ==========================================================================
   MEGA MENU
   ========================================================================== */
.mega-dropdown {
  position: relative;
}

.mega-dropdown .dropdown-toggle {
  padding: 0.5rem 0;
}

/* Remove the ::after for mega dropdown - using SVG instead */
.mega-dropdown .dropdown-toggle::after {
  display: none;
}

/* Style the SVG arrow */
.mega-dropdown .dropdown-toggle svg {
  transition: transform 0.2s;
}

.mega-dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

/* Create invisible bridge between toggle and menu */
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  z-index: 1099;
}

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 2rem;
  min-width: 700px;
  z-index: 1100;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mega-dropdown:hover .mega-menu {
  display: grid;
  animation: fadeInDown 0.3s ease;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-menu-column h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e3a8a;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #74C0FC;
}

.mega-menu-column a {
  color: #334155 !important;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  background: transparent !important;
}

.mega-menu-column a::after {
  display: none !important;
}

.mega-menu-column a:hover {
  background: #eff6ff !important;
  color: #1e3a8a !important;
  transform: translateX(4px);
}

/* ==========================================================================
   TWO-COLUMN MEGA MENU VARIANT (Personal IT)
   ========================================================================== */
.mega-menu-two-col {
  grid-template-columns: repeat(2, 1fr) !important;
  min-width: 500px !important;
}

/* ==========================================================================
   COMPANY MEGA MENU - SINGLE COLUMN NARROW
   ========================================================================== */

/* Override the global 700px min-width */
.company-mega .mega-menu {
  min-width: auto !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  grid-template-columns: none !important;
  left: 0 !important;
  transform: none !important;
  padding: 2rem !important;
}

/* Force single column display */
.company-mega .mega-menu-single-col {
  display: block !important;
}

.company-mega .mega-menu-column {
  width: 100% !important;
  padding: 0 !important;
  min-width: auto !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Match the h4 styling from other mega menus */
.company-mega .mega-menu-column h4 {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px !important;
  color: #1e3a8a !important;
  margin: 0 0 0.75rem 0 !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid #74C0FC !important;
}

/* Match the link styling from other mega menus */
.company-mega .mega-menu-column a {
  color: #334155 !important;
  text-decoration: none;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease;
  font-size: 0.875rem !important;
  font-weight: normal !important;
  background: transparent !important;
  white-space: nowrap;
  line-height: 1.4;
}

.company-mega .mega-menu-column a:hover {
  background: #eff6ff !important;
  color: #1e3a8a !important;
  transform: translateX(4px);
}

/* Ensure mega menu hides on mouse leave */
.company-mega:not(:hover) .mega-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.company-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   PORTAL BUTTON
   ========================================================================== */
.portal-btn {
  background: #ffffff;
  color: #001833 !important;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s;
}

.portal-btn:hover {
  background: #74C0FC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(116, 192, 252, 0.4);
}

.portal-btn::after {
  display: none;
}

/* ==========================================================================
   GOOGLE TRANSLATE WIDGET
   ========================================================================== */
#google_translate_element {
  display: inline-block;
}

#google_translate_element select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

#google_translate_element select:hover {
  background: rgba(255, 255, 255, 0.2);
}

#google_translate_element select option {
  background: #001833;
  color: #ffffff;
}

/* Hide Google Translate branding */
.goog-te-gadget {
  font-family: inherit !important;
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  margin: 0 !important;
}

.goog-logo-link {
  display: none !important;
}

.goog-te-gadget > span {
  display: none !important;
}

#goog-gt-tt, .goog-te-balloon-frame {
  display: none !important;
}

/* ==========================================================================
   END OF DESKTOP NAVIGATION
   Mobile styles are in mobile-navigation.css
   ========================================================================== */

/* ADD THIS TO THE VERY END OF /css/navigation.css */

/* ==========================================================================
   MOBILE OVERRIDE - Fix dark text in dropdowns
   ========================================================================== */
@media (max-width: 968px) {
  /* Override desktop mega-menu link colors for mobile */
  .mega-menu-column a {
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
  }
  
  .mega-menu-column a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Dropdown menu links */
  .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
  }
  
  .dropdown-menu li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }
}
