/* RESET */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: "Segoe UI", sans-serif;
}

/* ==== Mobile Nav Wrapper (button + sidebar) ==== */
.mobile-nav-wrapper {
  display: none;
  background-color: #002c5f;
  position: relative;
  width: 100vw;
  box-sizing: border-box;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(192, 22, 22, 0.1);
}

/* Removes underline from all navigation links */
.nav-links a,
.dropdown-item {
  text-decoration: none;
  color: white;
}

/* ==== Menu Toggle Button ==== */
.menu-toggle {
  width: 100%;
  background-color: #002c5f;
  color: white;
  font-size: 22px;
  padding: 14px 40px;
  border: none;
  text-align: left;
  cursor: pointer;
}

/* ==== Sidebar (Mobile) – default hidden, show on .open ==== */
.side-menu{
  position:absolute;
  top:100%;               /* ← your original values kept */
  left:0;
  width:70%;
  background:#00203F;
  border-top:1px solid #004080;
  box-shadow:0 2px 10px #004080c0;
  z-index:1000;

  /* NEW — keep menu hidden until JS adds .open */
  display:none;           /* ➊ hide by default */
}
.side-menu.open{           /* ➋ JS toggles this class */
  display:block;          /* show when open */
}

.nav-links.mobile {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav-links.mobile li {
  padding: 5px;
  border-bottom: 1px solid #003660;
  color: white;
}

/* ✅ Dropdown button (mobile) */
.nav-links.mobile > li > button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  width: 100%;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links.mobile > li > button:hover {
  background-color: #003d70;
}

/* ✅ Mobile dropdown list */
.nav-links.mobile .dropdown {
  display: none;
  flex-direction: column;
  background-color: #003660;
}
.nav-links.mobile .dropdown.open {
  display: flex;
}
.nav-links.mobile .dropdown li {
  padding: 5px 10px;
  border-bottom: 1px solid #003660;
  cursor: pointer;
}
.nav-links.mobile .dropdown li:hover {
  background-color: #003660;
  color: #ffcc00;
}

/* ==== Desktop Nav ==== */
.nav-links.desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #003660;
  padding: 3px;
  margin: 0;
  list-style: none;
  width: 100vw;
  gap: 0;
}



.nav-links.desktop li {
  padding: 10px 20px;
  color: white;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links.desktop li:hover {
  color: #ffcc00;
}

/* Dropdown parent */
.dropdown-parent {
  position: relative;
  padding: 5px 8px;
  white-space: nowrap;
}
.dropdown-parent:hover .desktop-dropdown {
  display: block;
}

/* Desktop dropdown */
.desktop-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #003660;
  list-style: none;
  padding: 2px 0;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}
.desktop-dropdown li {
  padding: 1px 10px;
  color: white;
}
.desktop-dropdown li:hover {
  background-color: #003660;
  color: #ffcc00;
}

/* Dropdown link item styling */
.dropdown-item {
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 6px 12px;
  width: 60%;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  margin: 0;
}
.dropdown-item:hover {
  background-color: #003660;
  color: #ffcc00;
}

/* 🔒 Remove underline from all link states */
a,
a:visited,
a:focus,
a:active,
.dropdown-item,
.dropdown-item:visited,
.dropdown-item:focus,
.dropdown-item:active {
  text-decoration: none !important;
  outline: none;
  color: white;
}

/* ✨ Hover highlight */
a:hover,
.dropdown-item:hover {
  text-decoration: none !important;
  color: #ffcc00;
}

/* ===== Responsive Rules ===== */
@media screen and (max-width: 1024px) {
  .mobile-nav-wrapper {
    display: block;
  }
  .nav-links.desktop {
    display: none;
  }
}
@media screen and (min-width: 1025px) {
  .side-menu,
  .nav-links.mobile,
  .menu-toggle {
    display: none;
  }
}

