/* Mobile Menu Fix */
/* Mobile Menu Base Styles */
#menu-main-mobile {
  position: fixed;
  background: #0078D7;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  text-align: center;
  padding: 2rem;
  display: none; /* Initially hidden */
}

/* Mobile menu items */
#menu-main-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu-main-mobile ul li {
  margin-bottom: 20px;
}

#menu-main-mobile ul li a {
  color: white;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 10px;
}

#menu-main-mobile ul li a:hover {
  opacity: 0.8;
}

#menu-main-mobile .menu {
  margin-top: 60px;
}

.menu-main-mobile ul {
  font-size: 2rem;
  font-family: var(--font-family-heading);
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-main-mobile ul li {
  display: block;
  position: relative;
  margin-bottom: 1rem;
}

.menu-main-mobile ul li a {
  display: block;
  position: relative;
  color: var(--base-color);
  text-decoration: none;
  padding: 0.5rem;
}

.menu-main-mobile ul li a:hover {
  opacity: 0.7;
}

/* Dark mode adjustments */
body.dark-mode .menu-main-mobile {
  background: #121212;
}

body.dark-mode .hamburger {
  color: var(--highlight-color);
}

body.dark-mode .hamburger.is-active {
  color: #e0e0e0;
}

/* Hamburger button */
.hamburger-trigger {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  cursor: pointer;
  position: fixed;
  top: 10px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .hamburger-trigger {
    display: flex !important;
    position: fixed;
    right: 15px;
    top: 10px;
    z-index: 1002;
  }
  
  .menu-main {
    display: none !important;
  }
  
  .header {
    position: relative;
    padding: 10px;
  }
}

@media (min-width: 768px) {
  .hamburger-trigger {
    display: none;
  }
}

.hamburger {
  border: none;
  cursor: pointer;
  outline: none;
  position: relative;
  display: block;
  width: 30px;
  height: 20px;
  background: transparent;
  border-top: 2px solid;
  border-bottom: 2px solid;
  font-size: 0;
  transition: all 0.25s ease-in-out;
  color: #0078D7;
  padding: 0;
}

.hamburger:before,
.hamburger:after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease-in-out;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger.is-active {
  border-color: transparent;
  z-index: 1002;
  color: var(--base-color);
}

.hamburger.is-active:hover {
  opacity: 1;
}

.hamburger.is-active:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger.is-active:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Lock body scroll when menu is open */
body.lock-scroll {
  overflow: hidden;
}
