
/* ============= 🅲️ القائمة الأفقية - سطح المكتب ============= */
.main-nav {
  background-color: #675443;
  padding: 10px 0;
  z-index: 9999;
  width: 100%;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  padding: 6px 12px;
  display: block;
}

.nav-menu > li > a:hover {
  background-color: #f0deca;
  color: #000;
  border-radius: 6px;
}

/* ✅ القائمة الفرعية - سطح المكتب */
.submenu {
  display: none;
  position: absolute;
  background-color: #735f4c;
  list-style: none;
  padding: 10px;
  margin: 0;
  top: 100%;
  right: 0;
  border-radius: 6px;
  z-index: 999;
  min-width:235px;
  
}

.submenu li a {
  display: block;
  color: white;
  font-size: 15px;
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 0.5px #fff dashed;
  text-align: center
}

.submenu li a:hover {
  background-color: #faecdf;
  color: #000;
  border-radius: 4px;
}

/* ✅ فتح القائمة الفرعية عند التحويم في سطح المكتب */
@media (min-width: 769px) {
  .nav-menu li:hover .submenu {
    display: block;
  }
}
.main-home-button {
  color: #fff;
  font-size: 25px;
  margin-inline-start: 15px;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
}

.main-home-button i {

  padding: 8px 10px;
  border-radius: 6px;
}

/* ============= 🅴️ عناصر الجوال ============= */
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-right: 10px;
}

.mobile-home {
  display: none;
  color: white;
  font-size: 22px;
  text-decoration: none;
  margin-left: 10px;
}

/* ============= 🅵️ ميديا كويري للجوال ============= */
@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
    padding: 0 10px;
  }

  .menu-toggle,
  .mobile-home {
    display: inline-block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #675443;
    position: absolute;
    top: 51px;
    right: 0;
    width: 60%;
    max-width: 300px;
    z-index: 9999;
    padding: 20px 10px;
    border-radius: 0 0 8px 8px;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.2);

    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    flex-wrap: nowrap;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    text-align: right;
    margin-bottom: 5px;
    border-bottom: 1px #fff dashed;
    flex-shrink: 0;
  }

  /* ✅ القائمة الفرعية في الجوال */
  .submenu {
    position: static;
    display: none;
    background-color: #313131;
    padding: 5px 0;
    margin-top: 5px;
    border-radius: 6px;
  }

  .nav-menu li.show-submenu .submenu {
    display: block;
  }

  .submenu li {
    border-bottom: 1px dashed #fff;
  }

  .submenu li:last-child {
    border-bottom: none;
  }
}

.sticky-enabled {
  position: sticky;
  top: 0;
  z-index: 9999;
}