/* Mobile Menu Styles */
.mobile-menu-container {
  display: none; /* Hidden on desktop */
}

/* Hamburger Button */
.hamburger-btn {
  background: none !important;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #1C3237; /* Your specified color */
  transition: all 0.3s ease;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -280px; /* Start off-screen */
  width: 280px;
  height: 100%;
  background-color: white;
  overflow-y: auto;
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.open {
  right: 0;
}

/* Menu Header */
.menu-header {
  padding: 20px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: #1C3237;
}

/* Navigation Menu */
.mobile-nav {
  padding: 20px 0;
}

/* Styling WordPress Menu */
.menu-items,
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-items li,
.mobile-nav ul li {
  position: relative;
}

.menu-items li a,
.mobile-nav ul li a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
  font-family: assistant;
  font-size: 16px;
}



/* Active menu item */
.menu-items li.current-menu-item > a,
.mobile-nav ul li.current-menu-item > a,
.menu-items li.current-menu-ancestor > a,
.mobile-nav ul li.current-menu-ancestor > a {
  background-color: #D9DFE3; /* Your specified active background color */
  font-weight: bold;
}

/* Parent <li> Styling */
.menu-items .menu-item-has-children,
.mobile-nav .menu-item-has-children {
  position: relative; /* Ensures ::after is positioned relative to this element */
}

/* Default Arrow Styles */
.menu-items .menu-item-has-children > a::after,
.mobile-nav .menu-item-has-children > a::after {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"></path></svg>');
  position: absolute;
  right: 80px;
  top: 14px;
  width: 12px;
}

/* Open State - Up Arrow */
.menu-items .menu-item-has-children:has(> .sub-menu.open) > a::after,
.mobile-nav .menu-item-has-children:has(> .sub-menu.open) > a::after {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" style="transform: rotate(180deg);"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"></path></svg>');
  position: absolute;
  right: 80px;
  top: 12px;
  width: 12px
}

.menu-items .sub-menu,
.mobile-nav .sub-menu {
  display: none;
  list-style: none;
  padding-left: 15px;
  background-color: #f9f9f9;
}

.menu-items .sub-menu.open,
.mobile-nav .sub-menu.open {
  display: block;
}

/* Target the menu item - לנסיעת מבחן */
#menu-item-1750 {
    background-color: #FCCF0D !important;
    border-radius: 25px !important;
    color: #1C3237 !important;
    margin: 10px 10px 0 110px;
}
/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
  .mobile-menu-container {
    display: block;
  }
}