:root {
  --primary-color: #06105E;
  /*--primary-color: #222463;*/
  --secondary-color: #3498db;
  --link-color: #0c7fb0;
  --sublink-color: #0fa1e0;
  --hover-color:#0a6d98;
}

.navMenu ul,
.navMenu li,
.navMenu span,
.navMenu a {
  margin: 0;
  padding: 0;
  position: relative;
  white-space: nowrap;
}

.navMenu {
/*  line-height: 1;*/
/*  border-radius: 5px 5px 0 0;*/
/*  -moz-border-radius: 5px 5px 0 0;*/
/*  -webkit-border-radius: 5px 5px 0 0;*/
  background: var(--primary-color);
  width: auto;
  display: flex;
  align-items: center;
  padding: 0 5px;
  margin-right: auto; /* Pushes menu left after logo */
  margin-left: 5px; /* Space between logo and menu */

  flex-grow: 1; /* Take remaining space */
  min-width: 0; /* Allow shrinking */  
}
.navMenu > ul {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap if needed */
  gap: 0; /* Remove gaps between items */
}
.navMenu:after,
.navMenu ul:after {
  content: '';
  display: block;
  clear: both;
}
.navMenu a {
  /*background: #141414;
  background: -moz-linear-gradient(top, #333333 0%, #141414 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #141414));
  background: -webkit-linear-gradient(top, #333333 0%, #141414 100%);
  background: -o-linear-gradient(top, #333333 0%, #141414 100%);
  background: -ms-linear-gradient(top, #333333 0%, #141414 100%);
  background: linear-gradient(to bottom, #333333 0%, #141414 100%);
  */
  background: #06105E;
  color: #ffffff;
  display: block;
  font-family: Helvetica, Arial, Verdana, sans-serif;
  padding: 10px 14px;
  text-decoration: none;
}
.navMenu ul {
  list-style: none;
  display: flex;
}

.navMenu > ul > li {
  display: inline-block;
  float: left;
  margin: 0;
}
.navMenu.align-center {
  text-align: center;
}
.navMenu.align-center > ul > li {
  float: none;
}
.navMenu.align-center ul ul {
  text-align: left;
}
.navMenu.align-right > ul {
  float: right;
}
.navMenu.align-right ul ul {
  text-align: right;
}
.navMenu > ul > li > a {
  color: #ffffff;
  font-size: 14px;
}
.navMenu > ul > li:hover:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  bottom: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #0fa1e0;
  margin-left: -10px;
}
.navMenu > ul > li:first-child > a {
  border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
}
.navMenu.align-right > ul > li:first-child > a,
.navMenu.align-center > ul > li:first-child > a {
  border-radius: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
}
.navMenu.align-right > ul > li:last-child > a {
  border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
}
.navMenu > ul > li.active > a,
.navMenu > ul > li:hover > a {
  color: #ffffff;
  box-shadow: inset 0 0 3px #000000;
  -moz-box-shadow: inset 0 0 3px #000000;
  -webkit-box-shadow: inset 0 0 3px #000000;
  /*background:  #090782;*/
  color: #fff;
  background: #0c7fb0;
}
.navMenu .has-sub {
  z-index: 1;
}
.navMenu .has-sub:hover > ul {
  display: block;
}
.navMenu .has-sub ul {
  display: none;
  position: absolute;
  width: 180px;
  top: 100%;
  left: 0;
}
.navMenu.align-right .has-sub ul {
  left: auto;
  right: 0;
}
.navMenu .has-sub ul li {
  *margin-bottom: -1px;
}
.navMenu .has-sub ul li a {
  background: #0fa1e0;
  border-bottom: 1px dotted #31b7f1;
  font-size: 13px;
  filter: none;
  display: block;
/*  line-height: 120%;*/
  padding: 10px;
  color: #ffffff;
}
.navMenu .has-sub ul li:hover a {
  background: #0c7fb0;
}
.navMenu ul ul li:hover > a {
  color: #ffffff;
}
.navMenu .has-sub .has-sub:hover > ul {
  display: block;
}
.navMenu .has-sub .has-sub ul {
  /*display: none;
  position: absolute; */
  left: 100%;
  top: 0;
}

/* Flip submenu when it would go off-screen */
.navMenu .has-sub .has-sub ul.check-right {
  left: auto;
  right: 100%;
}

.navMenu.align-right .has-sub .has-sub ul,
.navMenu.align-right ul ul ul {
  left: auto;
  right: 100%;
}
.navMenu .has-sub .has-sub ul li a {
  background: #0c7fb0;
  border-bottom: 1px dotted #31b7f1;
}
.navMenu .has-sub .has-sub ul li a:hover {
  background: #0a6d98;
}
.navMenu ul ul li.last > a,
.navMenu ul ul li:last-child > a,
.navMenu ul ul ul li.last > a,
.navMenu ul ul ul li:last-child > a,
.navMenu .has-sub ul li:last-child > a,
.navMenu .has-sub ul li.last > a {
  border-bottom: 0;
}

/* Logo styles */
.logo {
    margin-right: 0px;
}

.logo img {
    height: 70px;
    width: auto;
    vertical-align: middle;
}

.navMenu-wrapper {
    display: flex;
    justify-content: flex-start; /* Change from space-between */
    align-items: center;
    padding: 10px;
    background: var(--primary-color);
 }
 
 /* Add these lines to your existing CSS */
.navMenu-wrapper > .navMenu {
  margin-left: 20px; /* Space between logo and menu */
}

  
/* Mobile styles */
@media (max-width: 768px) {
	  .navMenu {
	    position: fixed;
	    top: 0;
	    right: -100%;
	    height: 100vh;
	    width: 80%;
	    max-width: 300px;
	    padding: 20px;
	    flex-direction: column;
	    align-items: flex-start;
	    transition: right 0.3s ease;
	    z-index: 1000;
	    flex-grow: 0; /* Reset for mobile */
	  }
	  
	  .navMenu.open {
	    right: 0;
	    transform: translateX(0);
	  }
	  
	  .navMenu ul {
	    flex-direction: column;
	    width: 100%;
	  }
	  
	  .navMenu > ul > li {
	    width: 100%;
	    float: none;
	  }
	  
	  .navMenu .has-sub ul {
	    position: static;
	    width: 100%;
	    display: none;
	    padding-left: 15px;
	  }
	  
	  .navMenu .has-sub.open > ul {
	    display: block;
	  }
	  
	  .navMenu-toggle {
	    display: flex;
	    flex-direction: column;
	    justify-content: space-between;
	    width: 30px;
	    height: 21px;
	    cursor: pointer;
	    z-index: 1001;
	  }
	  
	  .navMenu-toggle span {
	    display: block;
	    height: 3px;
	    width: 100%;
	    background: white;
	    transition: all 0.3s ease;
	  }
	  
	  .logo img {
	    height: 50px;
	  }
	}
	
	/* Overlay for mobile menu */
	.menu-overlay {
	  position: fixed;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background: rgba(0,0,0,0.5);
	  z-index: 999;
	  display: none;
	}
	
	.menu-overlay.active {
	  display: block;
	}
	
	.navMenu-toggle {
	    margin-right: 5px; /* Small adjustment from right edge */
	    transform: scale(0.9); /* Optional: Slightly reduce size if needed */
	  }	
	  
	.navMenu-wrapper {
	    display: flex;
	    justify-content: space-between;
	    align-items: center;
	    padding: 10px 30px 10px 15px; /* More left padding than right */
	    background: var(--primary-color);
	 }	
}
