/* الشريط العلوي */
.top-bar-custom {
  background-color: #1a1a1a;
  color: white;
  font-size: 18px;
  font-weight: bold;
  font-family: Tahoma, sans-serif;
  padding: 12px 0;
  direction: rtl;
  width: 100%;
  box-sizing: border-box;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-custom .top-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-bar-custom .top-links li {
  position: relative;
}

.top-bar-custom .top-links li:not(:last-child)::after {
  content: "|";
  color: #999;
  margin: 0 10px;
}

.top-bar-custom .top-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.orange-box {
  background-color: #d18100;
  color: white;
  padding: 4px 12px;
  border-radius: 2px;
  font-weight: bold;
}

/* الشريط الأبيض */
.main-header-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
  max-width: 1200px;
  margin: auto;
  flex-wrap: nowrap;
  position: relative;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 60px;
}

.header-title {
  font-size: 22px;
  font-weight: bold;
  color: #003366;
  font-family: 'Cairo', Tahoma, sans-serif;
  margin: 0 8px;
  white-space: nowrap;
}

/* القوائم الرئيسية */
.header-left {
  display: flex;
  justify-content: flex-start;
}

.header-left ul {
  display: flex !important;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-left ul li {
  list-style: none;
}

.header-left ul li a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 12px;
  border-left: 1px solid #ccc;
  transition: none !important;
  background: none !important;
  white-space: nowrap !important;
}

.header-left ul li:last-child a {
  border-left: none;
}

.header-left ul li a:hover,
.header-left ul li a:focus,
.header-left ul li a:active {
  background: none !important;
  color: #004080 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* التبويبات */
ul.sppb-nav-tabs.sppb-tab-nav-left {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  direction: rtl !important;
  border-bottom: none !important;
  padding: 10px 0;
}

ul.sppb-nav-tabs.sppb-tab-nav-left > li {
  position: relative;
  background-color: #e0e0e0 !important;
  border-radius: 5px;
  margin-bottom: 10px;
  list-style: none;
}

ul.sppb-nav-tabs.sppb-tab-nav-left > li > a {
  display: block;
  padding: 12px 35px 12px 25px;
  font-weight: bold;
  color: #333;
  font-size: 16px;
  text-decoration: none;
}

ul.sppb-nav-tabs.sppb-tab-nav-left > li > a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #333;
}

ul.sppb-nav-tabs.sppb-tab-nav-left > li.active,
ul.sppb-nav-tabs.sppb-tab-nav-left > li:hover {
  background-color: #ccc !important;
}

/* القوائم الفرعية المنسدلة */
li.menu-parent {
  position: relative !important;
}

li.menu-parent > ul.menu-child {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background-color: white !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  z-index: 999 !important;
  min-width: 200px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

li.menu-parent:hover > ul.menu-child {
  display: block !important;
}

ul.menu-child li {
  border-bottom: 1px solid #eee;
}

ul.menu-child li a {
  display: block !important;
  padding: 10px 15px !important;
  color: #004080 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-size: 16px !important;
}

ul.menu-child li a:hover {
  background-color: #f2f2f2 !important;
  color: #bf6b00 !important;
}

/* الصور في المقالات والأخبار */
.small-intro-image {
  max-width: 300px;
  height: auto;
}

/* صور موديل الأخبار (موحدة الحجم) */
.jmm-image img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* التحكم في حجم ولون عناوين الأخبار فقط داخل الموديول */
#jm-category-module-134 .jmm-title.mod-articles-category-title {
  font-size: 20px !important;
  color: #ffffff !important;
  font-weight: bold !important;
  font-family: "Tahoma", "Arial", sans-serif !important;
  line-height: 1.6 !important;
}

/* 📱 موبايل */
@media (max-width: 991px) {
  /* إخفاء القوائم العلوية */
  .header-left {
    display: none !important;
  }

  /* زر الهامبرغر */
  .hamburger-icon {
    display: block !important;
    font-size: 28px !important;
    color: #004080 !important;
    cursor: pointer;
    position: absolute;
    left: 15px;
    top: 20px;
    z-index: 10000;
  }

  /* القائمة الجانبية */
  .offcanvas-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 6px rgba(0,0,0,0.2);
    z-index: 9999;
    padding: 20px;
  }

  .offcanvas-menu.active {
    display: block;
  }

  .offcanvas-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .offcanvas-menu ul li {
    margin-bottom: 10px;
  }

  .offcanvas-menu ul li a {
    color: #004080;
    font-weight: bold;
    text-decoration: none;
  }
}