/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  color: white;
  position:fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

.foundation-name {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
list-style: none;
display: flex;
gap: 20px;
margin: 0;
padding: 0;
align-items: center; /* Ensures vertical alignment */
justify-content: flex-end; /* Aligns all items to the right */
flex: 1; /* Fills the remaining space in the navbar */
}
.nav-links li {
  display: inline-block;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  padding: 10px 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color:  #f2e41b;
}
.dropdown {
  padding: 0;
  margin:0;
  display: none;
  position: absolute;
  background:linear-gradient(45deg, #6a11cb, #2575fc);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  list-style: none;
  width:200px
}
.nav-links .dropdown li {
  padding: 10px 5px; /* Space inside the item */
  border-bottom: 1px solid #ccc; /* Line between items */
  height: 50px; /* Set a consistent height for each item */
  display: flex; /* Align items horizontally */
  align-items: center; /* Vertically center content */
  box-sizing: border-box; /* Include padding and border in height calculation */
}
.nav-links .dropdown li:last-child{
  border-bottom: none;
}
.dropdown a {
  padding: 8px 15px;
  white-space: nowrap;
}  
.nav-links li:hover .dropdown {
  display: block;
}
/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: white;
}

.nav-links.active {
  position: absolute;
  top: 60px;
  right: 20px;
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  padding: 0; /* Remove extra padding from the container */
  margin: 0;
  border-radius: 5px;
  width: max-content; /* Adjust width to fit content */
  box-sizing: border-box;
}

/* Line between elements */
.nav-links.active li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Subtle line between elements */
  padding: 0; /* Remove padding from list items */
  margin: 0; /* Remove extra margins */
}

.nav-links.active li:last-child {
  border-bottom: none; /* Remove the line from the last item */
}

/* Adjust link styles */
.nav-links.active a {
  color: white;
  text-decoration: none;
  display: block; /* Make links take full width */
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links.active a:hover {
  color: #f2e41b; /* Hover color effect */
}
.notification-container {
  position: relative;
  cursor: pointer;
  margin-left: auto; /* Pushes the bell icon to the left of the nav-links */
  margin-right: 20px; /* Adds space between the bell icon and the nav-links */
}

.bell-icon {
  font-size: 1.5rem;
  color: white;
  transition: color 0.3s;
}


.bell-icon:hover {
  color: #f2e41b;
}

.notification-popup {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background:white;
  color: black;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  width: 250px;
  z-index: 100;
}

.notification-popup p {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}
@media screen and (max-width: 1024px) {
  .nav-links {
    flex-direction: column; /* Stack items vertically */
    display: none; /* Hide by default */
    width: 100%; /* Full width of container */
  }
  .nav-links.active {
    display: flex; /* Show when active */
  }
  .nav-links li {
    display: block; /* Ensure items take full width */
    width: 100%; /* Full width of container */
  }
  .nav-links a {
    display: block; /* Make links span the full width */
    text-align: left; /* Align text to the left */
    padding: 15px 20px; /* Add padding for touch targets */
  }
  .menu-toggle {
    display: block; /* Show menu toggle */
  }
}
@media screen and (max-width: 820px) {
  .nav-links {
    flex-direction: column; /* Stack items vertically */
    display: none; /* Hide by default */
    width: 100%; /* Full width of container */
  }
  .nav-links.active {
    display: flex; /* Show when active */
  }
  .nav-links li {
    display: block; /* Ensure items take full width */
    width: 100%; /* Full width of container */
  }
  .nav-links a {
    display: block; /* Make links span the full width */
    text-align: left; /* Align text to the left */
    padding: 15px 20px; /* Add padding for touch targets */
  }
  .menu-toggle {
    display: block; /* Show menu toggle */
  }
}
@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column; /* Stack items vertically */
    display: none; /* Hide by default */
    width: 100%; /* Full width of container */
  }
  .nav-links.active {
    display: flex; /* Show when active */
  }
  .nav-links li {
    display: block; /* Ensure items take full width */
    width: 100%; /* Full width of container */
  }
  .nav-links a {
    display: block; /* Make links span the full width */
    text-align: left; /* Align text to the left */
    padding: 15px 20px; /* Add padding for touch targets */
  }
  .menu-toggle {
    display: block; /* Show menu toggle */
  }
}
@media screen and (max-width: 480px) {
.foundation-name {
  font-size: 1.1rem;
}
}   


