﻿/* General Menu Styles */
ul.mega-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {


/* Horizontal Top Menu Styles */
ul.top-menu {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* Prevent items from wrapping */
  width: 100%;
  background-color: #f29504; /* Adjust background color as needed */
}

ul.top-menu > li {
position: relative;
flex: 1; 
text-align: center;
padding: 8px;
white-space: nowrap; / Prevent text from wrapping */
cursor: pointer;
align-items: center;
box-shadow: 2px 3px 12px 5px rgba(0,0,0,0.15);
background-color: white;
}

ul.top-menu > li > a {
  text-decoration: none;
  color: #000; /* Adjust text color as needed */
  font-size: 17px;
  font-weight: bold;
  display: block;
  position: relative;
}

ul.top-menu > li > a > span:hover {
  text-decoration: none;
  color: #000; /* Adjust text color as needed */
  font-size: 17px;
  font-weight: bold;
}

ul.top-menu > li::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #8BC34A; /* Green color for underline */
  transition: width 0.3s;
  position: absolute;
  bottom: 0;
  left: 0;
}

ul.top-menu > li:hover::after {
  width: 100%;
}

ul.top-menu > li:hover .sublist-wrap {
  display: block;
}

ul.top-menu > li:hover .sublist-wrap .back-button {
  display: none;
}

/* Submenu Styles for Top Menu */
ul.top-menu .sublist-wrap {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; /* Ensure the submenu starts at the left of the parent */
  right: 0; /* Ensure the submenu spans the full width of the parent */
  background-color: #fff; /* Adjust submenu background color as needed */
  z-index: 1000;
}

ul.top-menu .sublist-wrap ul.sublist {
  list-style-type: none;
  padding: 0;
  margin: 0;
  -webkit-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.75);
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.75);
}

ul.top-menu .sublist-wrap ul.sublist li {
  padding: 10px 20px;
}

ul.top-menu .sublist-wrap ul.sublist li a {
  text-decoration: none;
  color: #333; /* Adjust submenu text color as needed */
  display: block;
}

/************************ Vertical Left Menu Styles */
ul.left-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  
  width: 100%;
}

ul.left-menu > li {
  position: relative;
  padding: 10px 20px;
  
}

ul.left-menu > li > a {
  color: #000;
  font-weight: 300;
  text-transform: uppercase;
  font-family: sans-serif;
  font-size: 18px;
  display: block;
  position: relative;
  padding-left: 10px; /* Space for the colored bar */
  transition: all 0.3s;
  font-family: 'Lato', sans-serif;
}

ul.left-menu > li:hover > a,
ul.left-menu > li:focus-within > a,
ul.left-menu > li.active > a {
  background-color: #fff;
}

ul.left-menu > li:hover::before,
ul.left-menu > li:focus-within::before,
ul.left-menu > li.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: #8BC34A; /* Adjust the bar color as needed */
}

/* Submenu Styles for Left Menu */
ul.left-menu .sublist-wrap {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #fff; /* Adjust submenu background color as needed */
  z-index: 1000;
}

ul.left-menu .sublist-wrap ul.sublist {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul.left-menu .sublist-wrap ul.sublist li {
  padding: 10px 20px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

ul.left-menu .sublist-wrap ul.sublist li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding-right: 20px; /* Space for the arrow */
}

ul.left-menu .sublist-wrap ul.sublist li.has-sublist > a::after {
  content: '\2192'; /* Right arrow unicode */
  position: absolute;
  right: 10px;
  font-size: 14px;
  color: #333;
}

ul.left-menu .sublist-wrap ul.sublist li a:hover {
  color: #000;
}

/* Back Button Styles */
.back-button {
  padding: 10px 20px;
  cursor: pointer;
}

.back-button span {
  color: #333; /* Adjust back button text color as needed */
}

/* Responsive Styles */
@media (max-width: 1024px) {

  ul.top-menu {
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
  }

  ul.left-menu {
    width: 100%;
  }
}

/* Fix Submenu Positioning */
ul.left-menu li .sublist-wrap {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  width: 200px;
  border: 1px solid #e0e0e0;
}

ul.left-menu li:hover > .sublist-wrap,
ul.left-menu li:focus-within > .sublist-wrap {
  display: block;
}

ul.left-menu li .sublist-wrap ul.sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.left-menu li .sublist-wrap ul.sublist li {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

ul.left-menu li .sublist-wrap ul.sublist li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding-right: 20px; /* Space for the arrow */
}

ul.left-menu li .sublist-wrap ul.sublist li.has-sublist > a::after {
  content: '\2192'; /* Right arrow unicode */
  position: absolute;
  right: 10px;
  font-size: 14px;
  color: #333;
}

ul.left-menu li .sublist-wrap ul.sublist li a:hover {
  color: #000;
  font-weight: bold;
}

/* Ensuring only relevant sublists are displayed */
ul.left-menu li ul.sublist-wrap ul.sublist-wrap {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
}

ul.left-menu li ul.sublist-wrap:hover > ul.sublist-wrap,
ul.left-menu li ul.sublist-wrap:focus-within > ul.sublist-wrap {
  display: block;
}

/* Ensure Submenu is centered below parent */
ul.top-menu > li .sublist-wrap {
  left: 0;
  right: 0;
  width: auto; /* Adjust width as needed */
}

ul.top-menu > li .sublist-wrap ul.sublist {
  width: 100%;
}

/* Ensure Top Menu Items are Visible */
ul.top-menu > li > a {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: 0.7px;
  text-align: center;
  color: #000; /* Ensuring the text color is black */
}

.mega-menu-responsive.mcd-menu.left-menu,
.mega-menu-responsive.top-menu {
  display: none;
}

.back-button {
  display: none;
}

}

@media (max-width: 1024px) {
  ul.mega-menu.mcd-menu.left-menu,
  span.labelfornextplusbutton {
    display: none;
  }
}



