/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* Sticky Navbar */
.navbar {
  background-color: #7e7c7c;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; /* This makes the navbar sticky */
  top: 0; /* It will stick to the top */
  width: 100%;
  z-index: 1000; /* Ensures the navbar stays on top of other content */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: adds a shadow for better visibility */
}

/* Logo Styling */
.logo {
  color: white;
  font-size: 24px;
  text-align: center;
  flex: 1;
}

.logo img {
  margin: 0 auto;
}

/* Navigation List */
.nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  flex: 1;
  margin-left: 20px;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

/* Dropdown Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 200px;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding: 10px;
  background-color: #444;
  color: white;
  text-decoration: none;
  display: block;
}

.dropdown-menu a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger menu */
.hamburger {
  font-size: 30px;
  color: white;
  cursor: pointer;
  display: none;
}

/* Media Queries for Mobile and Tablet */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    margin-bottom: 10px;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list a {
    padding: 10px 20px;
    width: 100%;
    text-align: left;
  }

  .dropdown-menu {
    position: relative;
    display: block;
    width: 100%;
  }

  .dropdown-menu a {
    padding: 10px;
    background-color: #444;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .hamburger {
    display: block;
  }
}

/* Smaller Screens - Mobile */
@media (max-width: 480px) {
  .nav-list a {
    padding: 10px;
  }
}
