/* GENERAL RESET */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}
/* HAMBURGER ICON */
.hamburger {
    font-size: 26px !important;
    padding: 1px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 11000; /* Make sure it's above everything */
    background-color: white;
    color: #4a7bbe;
    border-radius: 5px;
    line-height: 10px;
}

/* SLIDE MENU (light background now) */
.slide-menu {
  position: fixed;
  top: 0;
  right: -100%; /* hide off screen initially */
  width: 100%;
  height: 100%;
  z-index: 2147483647; /* max valid value */
  color: #333;
  background-color: #ffffff;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  text-align:right;
  direction:rtl;
}

/* When menu is open, slide it in */
.slide-menu.open {
  right: 0;
}
/* HEADER IN MENU (light theme) */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
  text-align:right;
  direction:rtl;
}

.menu-title {
    font-size: 1.4rem !important;
    font-weight: bold;
    color: #222;
    text-align: right;
    direction: rtl;
}

.close-btn {
    font-size: 2rem !important;
    cursor: pointer;
    color: #666;
}

/* MENU ITEMS */
.menu-list li {
  border-bottom: 1px solid #eee;
  list-style: none;
  padding: 0;
}

    .menu-list li a {
        display: block;
        padding: 0.7em 0;
        font-size: 1.2rem !important;
        color: #333;
        transition: background 0.3s;
    }

.menu-list li a:hover {
  background-color: #f0f0f0;
}

.menu-list .horizontal-links {
  display: flex;
  justify-content: space-between;
  gap: 0;
  list-style: none;
  padding: 0.5rem 1rem;
  background-color: white;
  direction: rtl; /* optional, for Hebrew layout */
}

.menu-list .horizontal-links a {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  text-decoration: none;
  color: #333;
  border-left: 1px solid #ccc;
}

/* Remove left border from the first item */
.menu-list .horizontal-links a:last-child {
  border-left: none;
}

.horizontal-links {
  padding: 0.5rem 0;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 2147483646; /* just under the menu */
  display: none;
}


.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
}

.submenu {
  display: none;
  padding-right: 1.5em;
  margin-top: 0.5em;
  list-style: none;
}

.has-submenu.open .submenu {
  display: block;
}

.submenu li a {
    font-size: 20px !important;
    padding: 0.5em 0;
    display: block;
}


.menu-list li.highlight a {
    color: #4E7BBF !important;
    font-weight: 900 !important
}


/* Arrow default style */
.arrow {
  display: inline-block;
  margin-right: 5px;
  transition: transform 0.3s ease;
  border: solid black;
  border-width: 0 2px 2px 0;
  padding: 4px;
  transform: rotate(45deg); /* pointing down */
}

/* Rotate when open */
.has-submenu.open > a .arrow {
  transform: rotate(-135deg); /* pointing up */
}