/* ==============================
   Main Menu Container
   ============================== */
.main-menu-simple {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 140px; /* adjust for logo + spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  box-sizing: border-box;
  z-index: 1000;
  background-color: #00295D00; /* transparent */
}

/* Logo */
.main-menu-simple .main-logo {
  position: absolute;
  left: 2rem;
  top: 2px;
}

.main-menu-simple .main-logo img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0;
}

/* Desktop menu list */
.main-menu-simple ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

/* Top-level menu items */
.main-menu-simple ul li {
  position: relative;
  padding-left: 0.5rem;
}

/* Menu links */
.main-menu-simple ul li a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

/* Top-level icons */
.main-menu-simple ul li a i {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Submenus desktop */
.main-menu-simple ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  padding: 0.5rem 1rem;
  list-style: none;
  box-shadow: none;
  min-width: max-content;
  white-space: nowrap;
  z-index: 9999;
}

/* Remove any forced alignment for last menu item */
.main-menu-simple > ul > li:last-of-type > ul {
  /* removed left/right overrides */
}

/* Show submenu on hover */
.main-menu-simple ul li:hover ul {
  display: block;
}

/* Drop-down links */
.main-menu-simple ul li ul li a {
  color: #fff;
  font-weight: 500;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}

.main-menu-simple ul li ul li a i {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  opacity: 0.8;
}

.main-menu-simple ul li ul li a:hover {
  color: #00B8A9;
}

/* Hamburger – hidden on desktop */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 10001;
}

.menu-toggle::after {
  content: "☰";
}

.menu-toggle.open::after {
  content: "✕";
}

/* Desktop submenu arrow */
.main-menu-simple li.menu-item-has-children > a::after {
  content: "\f0d7"; /* Font Awesome down arrow for desktop */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.8;
}



/* ==============================
   Mobile (≤768px)
   ============================== */
@media (max-width: 1350px) {

  /* Hamburger visible */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 2rem;
    top: 30%;
    z-index: 1000000 !important;
  }

  /* Logo stays above menu background */
  .main-menu-simple .main-logo {
    position: absolute;
    left: 1rem;
    top: 0;
    z-index: 1000000 !important;
  }

  /* Off-canvas mobile menu */
.main-menu-simple ul {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  bottom: 0;             /* stretch from top to bottom */
  flex-direction: column;
  padding: 9rem 0.75rem 2rem 0.75rem; /* pushes content below X */
  overflow-y: auto;      /* allows scrolling if content exceeds screen */
  list-style: none;
  z-index: 999999 !important;
  transition: right 0.3s ease-in-out;
  background-color: #00295D; /* solid dark background */
}


  .main-menu-simple ul::before {
  display: none; /* DISABLE THIS */
}

  .main-menu-simple.menu-open ul {
    right: 0;
  }

  /* Main menu items */
  .main-menu-simple ul li {
    width: 100%;
    margin: 0;
    padding: 0;
    position: static; /* submenu pushes next item down */
  }

  .main-menu-simple ul li a {
    display: flex;
    justify-content: space-between; /* text left, chevron right */
    align-items: center;
    padding: 0.5rem 1rem; /* reduced spacing */
    font-size: 1rem;
    text-align: left;
    color: #fff;
    gap: 0.5rem;
  }

  /* Submenu accordion */
  .main-menu-simple ul li ul {
    position: static;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
    padding-left: 0rem;
    background: none;
  }

  .main-menu-simple ul li.open > ul {
    max-height: 999px; /* fully expand */
  }

  /* Submenu links */
  .main-menu-simple ul li ul li a {
    padding: 0.5rem 1rem;
    text-align: left;
    justify-content: flex-start;
  }

/* Mobile chevron rotation */
  .main-menu-simple li.menu-item-has-children > a::after {
    content: "\f078"; /* Font Awesome down arrow for mobile */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .main-menu-simple ul li.open > a::after {
    transform: rotate(180deg);
  }
}

/* Remove any ghost line / border in mobile submenu */
@media (max-width: 768px) {
  .main-menu-simple ul li ul li {
    border: none !important;
    background: none !important;
  }
}

/* ==============================
   Mobile full-height row for menu
   ============================== */
@media (max-width: 1350px) {
  /* Make the row containing the menu full viewport height */
  .mobile-full-height {
    height: 100vh !important; /* full viewport height */
    position: relative;       /* control stacking context */
    z-index: 10010;           /* above other page content */
  }

  /* Ensure menu sits above everything */
  .mobile-full-height .main-menu-simple {
    position: fixed;          /* reinforces fixed position */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10101;           /* sits above all content, breadcrumbs, VC rows */
  }
}
