/* ==========================================================================
   MOBILE MENU STYLES
   ========================================================================== */

/* Force mobile nav to show - override Elementor's hide settings */
@media (max-width: 1024px) {
  .mobile-nav-target.elementor-hidden-tablet,
  .mobile-nav-target.elementor-hidden-mobile {
    display: block !important;
  }
  .mobile-only {
    display: block !important;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  header #nav-main .mobile-only .hamburger-icon {
    display: block !important;
  }
  
  header .mobile-nav-menu {
    position: fixed;
    top: 110px;
    width: 100%;
    z-index: 1000; /* Ensure it appears above other content */
    border-bottom: 2px solid #186396;
  }
  
  /* Ensure the mobile nav container is properly positioned */
  #nav-mobile {
    position: fixed;
    top: 110px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: none !important; /* Start hidden and force it */
  }

  #nav-mobile.slide-down {
    max-height: 500px; /* Adjust based on your menu height */
    display: block !important;
  }
}

/* Desktop - hide mobile elements */
@media (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
  
  .desktop-only {
    display: block !important;
  }
  
  /* Ensure mobile menu is hidden on desktop */
  header #nav-mobile {
    display: none !important;
  }
  
  #nav-mobile {
    display: none !important;
  }
}

/* Mobile menu toggle styles */
.nav-mobile-toggle {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: right;
}

.nav-mobile-toggle img {
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease;
}

/* Initial state: hamburger visible, close hidden */
.nav-mobile-toggle .hamburger-icon,
.nav-mobile-toggle img.hamburger-icon {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-mobile-toggle .close-icon,
.nav-mobile-toggle img.close-icon {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Menu open state: hamburger hidden, close visible */
.nav-mobile-toggle.menu-open .hamburger-icon,
.nav-mobile-toggle.menu-open img.hamburger-icon {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.nav-mobile-toggle.menu-open .close-icon,
.nav-mobile-toggle.menu-open img.close-icon {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}



/* Fallback for elementor element if needed */
.elementor-element-7dec6f36 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.elementor-element-7dec6f36.slide-down {
  max-height: 500px; /* Adjust based on your menu height */
}

/* Mobile navigation menu styles */
.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0px 20px 0px 20px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.mobile-nav-menu li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li:last-child {
  border-bottom: none;
}

.mobile-nav-menu a {
  display: block;
  padding: 14px 0;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
  color: #186396;
}

/* Add external link icon to links that open in new tab */
.mobile-nav-menu a[target="_blank"]::after {
  content: "\f35d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 8px;
  font-size: 0.75em;
  color: #000;
}

#nav-main .elementor-container {
    height: 50px;
}

        
    /* Fix mobile navigation transform issue - ensure it slides from left */
    .mobile-nav.open {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
        -moz-transform: translateX(0) !important;
        -o-transform: translateX(0) !important;
    }
    /* Ensure mobile nav is always at top of viewport */
    .mobile-nav {
        top: 0 !important;
        left: 0 !important;
    }
    


