/* Base Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold; 
}

body {
  background-color: #ffffff;
}

/* Navbar Wrapper */
.navbar2 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 0 2rem;
  height: 40px;
  position: relative;
  z-index: 1000;
}

.logo {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

/* Navigation Links Setup */
.nav-links {
  display: flex;
  list-style: none;
  height: 100%;
}

.nav-links li {
  position: relative; /* Context anchor for absolute dropdown positioning */
  height: 100%;
}

.nav-links a {
  display: flex;
  align-items: center;
  color: #000000;
  text-decoration: none;
  padding: 0 1.5rem;
  height: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links .dropdown-parent:hover > .dropdown-trigger {
  background-color: #000000;
  color: #ffffff;
}

.arrow {
  margin-left: 5px;
  font-size: 0.8rem;
}

/* Hidden Dropdown Configuration */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  list-style: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 0 0 4px 4px;
  
  /* Hidden states using opacity + visibility for robust animation support */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-menu li {
  width: 100%;
  height: auto;
}

.dropdown-menu a {
  color: #334155;
  padding: 0.75rem 1.5rem;
  display: block;
  width: 100%;
}

.dropdown-menu a:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

/* Hover Engine to trigger Display */
.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Toggle Mechanism (Pure CSS) */
.menu-toggle {
  display: none;
}

.hamburger-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger-label span {
  background-color: #ffffff;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Media Queries for Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .hamburger-label {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #1a1a24;
    flex-direction: column;
    align-items: stretch;
    transition: left 0.4s ease;
    overflow-y: auto;
  }

  .nav-links li {
    height: auto;
  }

  .nav-links a {
    padding: 1.25rem 2rem;
    width: 100%;
  }

  /* Expand menu drawer when checkbox is checked */
  .menu-toggle:checked ~ .nav-links {
    left: 0;
  }

  /* Adjust mobile dropdown behavior */
  .dropdown-menu {
    position: static;
    background-color: #2b2b3c;
    box-shadow: none;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 0.3s ease;
    overflow: hidden;
  }

  .dropdown-menu a {
    color: #cbd5e1;
    padding-left: 3rem;
  }

  /* Trigger expansion under mobile styling rules */
  .dropdown-parent:hover .dropdown-menu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
  }
}