/* =====================
   Navigation Bar Styles
===================== */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
  position: absolute; /* لتطفو فوق الخلفية */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999; /* لتكون فوق كل شيء */
  /* background-color: rgba(255, 255, 255, 0.4); */
  
}

/* =====================
   Logo
===================== */
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  order: 1;
  margin-left: 75px;
}

/* =====================
   Menu
===================== */
.menu {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  order: 2;
}

.menu > li {
  position: relative;
}

.menu a {
  color:white;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  transition: background 0.3s;
  font-size: x-large;
  font-weight: 700;
  line-height: 1.5em;
}

.menu a:hover {
 
  /* background-color: #6e6bff; */
  border-bottom: 6px solid #ed7105;
  border-radius: 20px;
}

/* =====================
   Dropdown
===================== */
.dropdown {
  display: none;
  position: absolute;
  list-style: none;
  top: 100%;
  left: 0;
  background-color: rgb(222, 222, 248);
  border-radius: 20px;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 100;
  margin: 0;
  padding: 0;
  
}

.dropdown li a {
  padding: 10px 15px;
  color: rgb(10, 0, 100);
}

.menu li:hover .dropdown {
  display: block;
 
}

/* =====================
   Hamburger Button
===================== */
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  background-color:  #002539;
  width: 50px;
  border-radius: 10px;
}

/* =====================
   Responsive Styles
===================== */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color:  #002539;
    color: white;
    margin-top: 10px;
    border-top: 1px solid #ed7105;
    border-radius: 20px;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    padding: 12px;
    color: white;
  }

  .menu-toggle {
    display: block;
  }
}
