* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.navbar {
  background-color: #0a0f43;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
justify-content: flex-end; /* This aligns the menu to the right */
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  color: white;
  padding: 16px 20px;
  display: block;
  text-decoration: none;
  white-space: nowrap;
}

/*
.navbar ul li:hover {
  background-color: #444;
}
*/

/* Mega Menu */
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background-color: #f9f9f9;
 /* padding: 20px;*/
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
}

.navbar ul li:hover .mega-menu {
  display: flex;
}

.mega-column {
  flex: 1 1 100%;
  margin-bottom: 15px;
}

.mega-column h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #333;
}

.mega-column ul {
  display: flex;
  gap: 20px; /* spacing between items */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.mega-column ul li a {
  text-decoration: none;
  color: #333;
  padding: 5px 0;
}

.mega-column ul li a:hover {
  text-decoration: underline;
}

/*------------------------*/
.navbar ul {
  display: flex;
  flex-wrap: wrap;   /* 👈 allows li items to go to next line */
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar ul li {
  margin: 0;
}
.navbar ul li a {
  display: block;
  padding: 10px 14px;
  /*color: #fff;*/
  text-decoration: none;
}
