/* ✅ الشريط العلوي */
.top-bar-custom {
  background-color: #2c3459;
  color: #4a4a4a;
  font-size: 16px;
  font-weight: bold;
  font-family: Tahoma, sans-serif;
  padding: 6px 0;
  direction: rtl;
  width: 100%;
  box-sizing: border-box;
  z-index: 9999;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

.top-links,
.social-icons {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-links li a,
.social-icons li a {
  color: #aab7b8;
  text-decoration: none;
  font-size: 16px;
}

.social-icons li a i {
  font-size: 16px;
  color: #aab7b8;
}

.social-icons li a i:hover {
  color: #222222;
}

/* ✅ ارتفاع الهيدر وتوسيط العناصر */
#sp-header.full-header {
  height: 110px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  background-color: #252525 !important;
}

#sp-header,
#sp-header .container,
#sp-header .container-inner,
#sp-header .row {
  background-color: #252525 !important;
}

#sp-header .container-fluid,
#sp-header .container-inner,
#sp-header .row.align-items-center {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

/* ✅ الشعار والقائمة */
#sp-header #sp-logo,
#sp-header #sp-menu {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* ✅ محاذاة القائمة لليمين */
#sp-menu {
  justify-content: flex-end !important;
  text-align: right !important;
}

/* ✅ عناصر القائمة */
header#sp-header .sp-megamenu-parent > li > a,
header#sp-header .sp-megamenu-parent > li > span {
  font-size: 18px !important;
  font-weight: bold !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.9 !important;
  color: #d4af37 !important; /* اللون الذهبي */
}

/* ✅ القوائم الفرعية */
header#sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-items > li.sp-menu-item > a {
  font-size: 13px !important;
  color: #001f3f !important;
  font-weight: 800 !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
}

/* ✅ لون زر الهامبورغر */
#offcanvas-toggler .burger-icon span {
  background-color: #ffffff !important;
}

/* ✅ استجابة للموبايل */
@media (max-width: 576px) {
  #sp-header.full-header {
    height: auto !important;
    flex-direction: column !important;
  }

  #sp-header .container-inner {
    flex-direction: column !important;
    padding: 10px 0 !important;
  }

  #sp-logo,
  #sp-menu {
    width: 100% !important;
    justify-content: center !important;
  }

  .top-bar-content {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .top-links,
  .social-icons {
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap;
  }
}

/* ✅ إزالة الهامش من جهة اليسار فقط */
body,
.body-innerwrapper,
#sp-main-body,
#sp-component,
main#sp-component,
.container,
.container-fluid,
.row,
.sp-pagebuilder,
.sp-pagebuilder .page-content,
.sp-pagebuilder .container,
.smartslider,
.smartslider .n2-ss-slider,
.smartslider .n2-ss-slider-1,
#sp-header .container-fluid,
#sp-header .container-inner,
#sp-header .row,
#sp-header .sp-column,
#sp-header .menu-with-offcanvas {
  margin-left: 0 !important;
  padding-left: 0 !important;
  box-sizing: border-box;
}

/* ✅ الهيدر والصفحة بدون تمدد زائد */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  direction: rtl !important;
}