.headerbar-logo img {
  height: 100px;
  width: auto;
  transition: filter 0.3s ease;
}

.headerbar-logo img:hover {
  filter: brightness(1.5);
}

html[lang="ar"] .headerbar-logo img {
  transform: scaleX(-1);
  margin-right: 30px;
  /* مو left لأن الصورة منقلبة */
}

.headerbar-spacer {
  height: 100px;
  /* نفس ارتفاع الهيدر تقريبا */
}

.headerbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #181818;
  color: #fff;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.headerbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headerbar-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  width: 100%;
}

.headerbar-links div a {
  margin-left: 1rem;
}

.headerbar-left-links a,
.headerbar-right-links a {
  margin-right: 20px;
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.headerbar-left-links a:hover,
.headerbar-right-links a:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px #facc15);
}

html[dir="rtl"] .headerbar-right-links {
  margin-top: 50px;
}

.headerbar-left-links {
  transform: translateY(30px);
}

html[dir="rtl"] .headerbar-left-links {
  margin-top: -60px;
}

/* ---------  لغة (دروبداون) --------- */
.lang-dropdown, .lang-dropdown-left .lang-menu-left {
  position: relative;
  display: inline-block;
}

.lang-dropdown-toggle, .lang-dropdown-left .lang-dropdown-toggle {
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: #1e1e1e;
  border-radius: 6px;
  z-index: 1000;
}

.lang-menu-item {
  display: block;
  padding: 10px 16px;
}

.lang-dropdown:hover .lang-menu {
  display: block !important;
}
