body {
    font-family: "Cairo", sans-serif !important;
    font-weight: 700;

}
/* ===== Single Post Modern Card ===== */
.single-post-wrapper{background:#f8f9fa}
.eg-ticker .eg-items.eg-tk-viewport{overflow:hidden}
.eg-ticker.eg-vertical .eg-track{mask-image:none}
.eg-ticker.eg-vertical .eg-items{animation:none!important;display:block;white-space:normal}
.eg-ticker.eg-vertical .eg-items.eg-tk-viewport{overflow:hidden;animation:none!important}
.eg-ticker .eg-tk-item{padding:.25rem 1.25rem .25rem .75rem;/* زيادة مسافة من الجهة اليمنى لعدم تغطية بداية النص */}
.eg-ticker .eg-tk-item a{text-decoration:none;display:inline-block;font-size:.95rem;color:inherit}
.eg-ticker .eg-tk-item.active a{font-weight:600}
/* منع التفاف النص داخل العناصر العمودية حتى لا يزيد الارتفاع فجأة */
.eg-ticker.eg-vertical .eg-tk-item a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* ضمان ظهور النص داخل شريط العاجلة دائماً باللون الأبيض */
.eg-ticker.breaking .eg-items,
.eg-ticker.breaking .eg-items a{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
}
/* تأكيد التموضع والطبقات لتفادي أي طبقة تغطي النص */

/* Site tagline styling */
.eg-site-tagline{font-size:.75rem;color:#666;margin-top:2px;line-height:1.1;font-weight:400;}
.eg-site-subtitle{font-size:1.6rem;color:var(--eg-primary-new,#005f73);font-weight:800;line-height:1;margin-top:.1rem;display:block}
.eg-ticker .eg-track{position:relative;}
.eg-ticker.eg-vertical .eg-items{position:relative;}
.eg-ticker.eg-vertical .eg-tk-item.active{z-index:2;}
.eg-post-card{box-shadow:0 10px 24px -14px rgba(0,0,0,.18);border:1px solid var(--eg-primary-new-dark);background:var(--eg-primary-new);color:#fff;transition:background .3s ease,box-shadow .3s ease,color .25s ease,border-color .3s ease}
.eg-post-card:hover{box-shadow:0 16px 32px -14px rgba(0,0,0,.22);background:#455a64;border-color:#37474f;color:#fff}
.eg-post-card a{color:inherit !important;text-decoration:none}
.eg-post-card a:hover{text-decoration:underline}
.eg-post-card h2,.eg-post-card h3,.eg-post-card h4,.eg-post-card h5,.eg-post-card h6{color:inherit}
.eg-post-card .text-muted{color:rgba(255,255,255,.85)}
.eg-post-card:hover .text-muted{color:#333}
.eg-post-content p{text-align:justify}
.eg-post-featured img{display:block}
.eg-post-title{word-break:break-word}
.eg-justify{text-align:justify}
.eg-justify p{margin-bottom:1rem;line-height:1.9}
.eg-post-footer .btn{--bs-btn-padding-y:.2rem;--bs-btn-padding-x:.45rem}
.eg-sidebar-card{border:1px solid var(--eg-primary-new-dark);background:var(--eg-primary-new);color:#fff;transition:background .3s ease,box-shadow .3s ease,color .25s ease,border-color .3s ease}
.eg-sidebar-card:hover{background:#455a64;border-color:#37474f;color:#fff;box-shadow:0 8px 20px -6px rgba(0,0,0,.18)}
.eg-sidebar-card a{color:inherit !important;text-decoration:none}
.eg-sidebar-card a:hover{text-decoration:underline}
/*
Theme Name: eg-cabinet
Theme URI: https://gov.sd
Author: Digital Transformation Unit
Author URI: https://gov.sd
Description: قالب حكومي لبوابة حكومة الأمل – السودان. سلايد شو + 3 أشرطة أخبار + RTL + لغات + Bootstrap 5 + مربع بحث داخل القائمة + ويدجت الأخبار العاجلة.
Version: 10.1.5
Text Domain: eg-cabinet
*/

:root {
    --eg-green: #2a3c30;
    --eg-red: #d81f26;
    --eg-black: #0b0b0b;
}

/* Topbar icon spacing and RTL adjustments */
/* Add small gap between icon and text using logical properties so RTL/LTR both work */
.eg-quick-links a i,
.eg-lang-links a i {
  margin-inline-end: .45rem;
  vertical-align: middle;
  font-size: 1.05rem;
}
.eg-quick-links a span,
.eg-lang-links a span { vertical-align: middle; }

/* Flip phone icon horizontally on RTL so it visually points inward/left for Arabic */
[dir="rtl"] .eg-quick-links a .bi-telephone,
[dir="rtl"] .eg-lang-links a .bi-telephone {
  display: inline-block !important;
  transform: scaleX(-1) !important;
  -webkit-transform: scaleX(-1) !important;
  transform-origin: center !important;
}

body {
    font-family: "Cairo", sans-serif !important;
    /* font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, "Noto Kufi Arabic", sans-serif; */
    color: #111;
    background: #fff;
    margin: 0
}

/* Lang bar */
.eg-langbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  
  /* تدرج الألوان بنفس تصميم الصورة:
     - الأسود من اليسار
     - الأحمر من اليمين
     - الأخضر في الأعلى
     - الأبيض في الأسفل / المنتصف */
  background: 
    linear-gradient(
      180deg,
      #197a35 0%,   /* الأخضر في الأعلى */
      #cae0d0 60%,   /* الأبيض في الأسفل */
      #e8e8e8 100%
    ),
    linear-gradient(
      90deg,
      #000000 0%,   /* الأسود يسار */
      #ffffff 50%,  /* الأبيض في الوسط */
      #d81f26 100%  /* الأحمر يمين */
    );

  background-blend-mode: multiply; /* دمج ناعم بين التدرجين */
  border-bottom: 2px solid #a79701ee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}



.eg-langbar .eg-langbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px
}

.eg-quick-links a,
.eg-lang-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent
}

.eg-lang-links a.active {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .35)
}

.eg-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
/* Tickers */
.eg-ticker {
    background: #0b0b0b;
    color: #fff;
    border-bottom: 1px solid #111
}

.eg-ticker.secondary {
    background: #eee;
    color: #111;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb
}

.eg-ticker.footer {
    background: #f7fafc;
    color: #111;
    border-top: 2px solid #e5e7eb
}

.eg-ticker .container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px
}

.eg-tlabel {
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    gap: 6px
}

.eg-track {
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent)
}

.eg-items {
  display: inline-block;
  animation: eg-scroll var(--eg-speed, 22s) linear infinite;
  visibility: hidden; /* hide by default to prevent FOUC until JS initializes */
}

/* When JS runs it will add .is-ready to reveal items */
.eg-items.is-ready { visibility: visible; }

/* Vertical ticker: show only one item at a time (stacked absolute items) - slide-up effect */
.eg-ticker.eg-vertical .eg-items {
  display: block; /* disable inline marquee */
  position: relative;
}
.eg-ticker.eg-vertical .eg-items .eg-tk-item {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .55s ease, opacity .55s ease;
  display: block;
}
.eg-ticker.eg-vertical .eg-items .eg-tk-item.active {
  opacity: 1;
  transform: translateY(0);
}


.eg-items a {
    color: inherit;
    text-decoration: none;
    margin-inline-end: 24px
}

.eg-items a:hover {
    text-decoration: underline
}

@keyframes eg-scroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* Slide + Fade ticker: when JS enables the effect it will add .eg-slide on .eg-items
   We keep this scoped so the default marquee behavior remains unless the script runs. */
.eg-track .eg-items.eg-slide {
    animation: none !important; /* disable marquee when using slide+fade */
    display: block;
}

/* holder is relative; items are stacked absolute so only one is visible at a time */
.eg-track .eg-items.eg-slide .eg-slideholder {
    position: relative;
    min-height: 1.6em;
}

.eg-track .eg-items.eg-slide .eg-slide-item {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    /* start slightly lower than center, then slide to perfectly centered */
    transform: translateY(calc(-50% + 8px));
    opacity: 0;
    display: block;
    transition: opacity .5s ease, transform .5s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-inline-end: 6px; /* spacing from the label */
}

.eg-track .eg-items.eg-slide .eg-slide-item.show {
    opacity: 1;
    transform: translateY(-50%);
}

/* تحسين ترتيب الهيدر والفوتر على الشاشات الصغيرة */
@media (max-width: 767.98px) {

  /* شريط اللغة العلوي */
  .eg-langbar .eg-langbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    text-align: right;
  }

  /* الشعار في الأعلى مع محاذاة وسط */
  .eg-langbar .eg-brand {
    order: -1;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  /* روابط القائمة السريعة واللغات كسطرين منظمين */
  .eg-quick-links,
  .eg-lang-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
  }

  .eg-quick-links a,
  .eg-lang-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .eg-invest-footer .eg-invest-footer-top .row > [class*="col-"] {
    text-align: center;
  }

  .eg-invest-footer .eg-fhead,
  .eg-invest-footer .eg-fbrand {
    margin-top: 0.75rem;
  }
}

/* make label and track align nicely */
.eg-ticker .eg-track { 
    align-items: center;
    display: flex; 
    padding-right: 40px !important;
  }

@media (prefers-reduced-motion: reduce) {
    .eg-track .eg-items.eg-slide .eg-slide-item,
    .eg-track .eg-items.eg-slide .eg-slide-item.show { transition: none; transform: none; }
}

/* Navbar + search */
.site-header .navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb
}

.site-header .navbar .container {
    padding-inline: 2rem;
    max-width: 96%
}

@media (min-width:1200px) {
    .site-header .navbar .container {
        max-width: 1376px
    }
}

.site-header .navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800
}

.site-header .navbar .navbar-brand img.eg-logo {
	height: 90px !important;
	width: auto;
}

.site-header .navbar .navbar-nav .menu-item a {
    padding: 10px 14px;
    display: block;
    font-weight: 600
}

.site-header .navbar .navbar-nav .current-menu-item>a,
.site-header .navbar .navbar-nav .current_page_item>a {
    border-bottom: 3px solid var(--eg-green)
}

.eg-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 1rem
}

.eg-search-form .eg-search-input {
    width: 150px;
    max-width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: .25rem .5rem;
    outline: none;
    color: #666;
    transition: width .4s ease, border-color .2s ease
}

.eg-search-form .eg-search-input:focus {
    width: 250px;
    border-bottom-color: var(--eg-green);
    color: #111
}

.eg-search-form .eg-search-btn {
    border: none;
    background: transparent;
    padding: .25rem .25rem;
    line-height: 1
}

.eg-search-form .eg-search-btn i {
  display: block;
  font-size: var(--eg-subtitle-size, 1.6rem);
  color: var(--eg-subtitle-color, var(--eg-primary-new, #005f73));
  font-weight: var(--eg-subtitle-weight, 800);
  font-family: var(--eg-subtitle-family, 'Cairo, sans-serif');
  line-height: 1;
}

/* Slider / hero image sizing: full-width, fixed height with cover */
.eg-slider .carousel-item img {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
}

@media (max-width: 991px) {
  .eg-slider .carousel-item img { height: 420px; }
}
@media (max-width: 575px) {
  .eg-slider .carousel-item img { height: 260px; }
  .eg-slide-caption { padding: 1rem; }
}

.eg-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  background: rgba(255, 255, 255, .92);
  padding: 2rem;
  border-top: 4px solid #003b2f;
    text-align: right;
    direction: rtl;
    pointer-events: none
}

.eg-slide-caption * {
    pointer-events: auto
}

.eg-slide-caption h3 {
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0 0 .5rem
}


.eg-date-box {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0; /* flush to the left edge */
  background: #003b2f;
  color: #fff;
  text-align: center;
  width: 140px;
  padding: .7rem .7rem;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.eg-date-box .eg-cal-icon { display:block; font-size:1.35rem; line-height:1; margin-bottom:6px; color:#fff; }
.eg-date-box .day { font-size: 2rem; line-height: 1; margin: 0; }
.eg-date-box .month { font-size: .9rem; margin-top: -.2rem; }

.eg-slide-caption .readmore {
  color: #003b2f;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  z-index: 10
}

.eg-slide-caption .readmore:hover {
    text-decoration: underline
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 5
}

/* Footer */
.site-footer .eg-footline {
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #555;
    font-weight: 600
}

/* ===================== Latest News (modern) ===================== */
.eg-latest-news { background:#fff; }
.eg-latest-news .eg-section-head h2 { position:relative; padding-bottom:.3rem; }
.eg-latest-news .eg-section-head h2:after { content:""; position:absolute; bottom:0; right:0; width:56px; height:3px; background:#003b2f; border-radius:2px; }
.eg-latest-news .eg-view-all {
  display:inline-flex; align-items:center; gap:.4rem;
  color:#003b2f; background:#f5fbff; border:1px solid #cde1f1;
  padding:.45rem .85rem; border-radius:999px; font-weight:700; text-decoration:none;
  transition: background .25s ease, color .2s ease, box-shadow .3s ease, transform .2s ease, border-color .2s ease;
}
.eg-latest-news .eg-view-all:hover { background:#003b2f; color:#fff; border-color:#003b2f; box-shadow:0 6px 14px rgba(0,98,162,.25); transform:translateY(-2px); }
[dir="rtl"] .eg-latest-news .eg-view-all::after { content:'\2190'; /* ← */ margin-inline-start:.35rem; font-size:1.1rem; line-height:1; }
[dir="ltr"] .eg-latest-news .eg-view-all::after { content:'\2192'; /* → */ margin-inline-start:.35rem; font-size:1.1rem; line-height:1; }

.eg-news-card { border-radius:16px; overflow:hidden; border:1px solid #e5e7eb; transition:transform .25s ease, box-shadow .3s ease; }
.eg-news-card:hover { transform:translateY(-6px); box-shadow:0 12px 32px rgba(0,0,0,.12); }
.eg-news-card .card-title a { color:#0b0b0b; text-decoration:none; }
.eg-news-card:hover .card-title a { color:#003b2f; }
.eg-news-card .card-footer a { color:#003b2f !important; text-decoration:none; }
.eg-news-card .card-footer a:hover { text-decoration:underline; }

/* Archive/blog pages */
.eg-archive .eg-section-head h1 { position:relative; padding-bottom:.3rem; }
.eg-archive .eg-section-head h1:after { content:""; position:absolute; bottom:0; right:0; width:56px; height:3px; background:#003b2f; border-radius:2px; }
.eg-pagination .page-numbers { display:inline-block; padding:.4rem .7rem; margin:.15rem; border:1px solid #e5e7eb; border-radius:8px; color:#111; text-decoration:none; }
.eg-pagination .page-numbers.current, .eg-pagination .page-numbers:hover { background:#003b2f; color:#fff; border-color:#003b2f; }

/* ================= Sidebar widgets ================= */
.eg-sidebar .widget { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:1rem 1.1rem; box-shadow:0 2px 10px rgba(0,0,0,.05); margin-bottom:1rem; }

/* Mobile adjustments: hide breaking ticker, shrink hero title/date, prefer text header */
@media (max-width: 767.98px) {
  /* hide breaking news ticker on phones to reduce clutter */
  .eg-ticker.breaking { display: none !important; }

  /* make hero caption smaller and less tall */
  .eg-slide-caption { padding: 0.9rem !important; }
  .eg-slide-caption h3 { font-size: 1.15rem !important; line-height: 1.2 !important; }

  /* shrink date box so it doesn't dominate small screens */
  .eg-date-box { width: 92px !important; padding: .45rem .45rem !important; }
  .eg-date-box .eg-cal-icon { font-size: 1rem !important; margin-bottom:4px !important; }
  .eg-date-box .day { font-size: 1.25rem !important; }
  .eg-date-box .month { font-size: .7rem !important; }

  /* prefer text branding on small screens: hide large image logo and center the text */
  .site-header .navbar .navbar-brand img.eg-logo { display: none !important; }
  .site-header .navbar .navbar-brand .eg-brand-text { text-align: center; align-items: center; }
  .eg-brand-text .eg-site-title-text { font-size: 1.15rem !important; font-weight: 800 !important; }
  .eg-brand-text .eg-site-subtitle { font-size: .95rem !important; font-weight: 700 !important; display:block; }

  /* slightly smaller carousel height on small devices (override earlier sizes) */
  .eg-slider .carousel-item img { height: 200px !important; }
}

/* Footer: stack each column as a full-width row on mobile for better readability */
@media (max-width: 767.98px) {
  /* Generic rule for any bootstrap columns inside footer rows */
  .site-footer .row > [class*="col-"],
  .eg-invest-footer .row > [class*="col-"],
  .site-footer .eg-invest-footer-top .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  /* Make footer headings and brand centered and spaced nicely */
  .site-footer .eg-fhead,
  .site-footer .eg-fbrand,
  .eg-invest-footer .eg-fhead,
  .eg-invest-footer .eg-fbrand {
    margin: 0 auto 0.5rem auto !important;
    text-align: center !important;
  }

  /* Give lists in footer some breathing room on mobile */
  .site-footer .widget ul,
  .eg-invest-footer .widget ul {
    display: inline-block !important;
    text-align: center !important;
  }
}

/* Center footer headings on all viewports for visual consistency */
.site-footer .eg-fhead,
.site-footer .eg-fbrand { text-align: center; }
.eg-sidebar .widget-title { position:relative; padding-bottom:.3rem; margin:0 0 .75rem; font-weight:800; }
.eg-sidebar .widget-title:after { content:""; position:absolute; bottom:0; right:0; width:46px; height:3px; background:#003b2f; border-radius:2px; }
.eg-sidebar ul { list-style:none; padding:0; margin:0; }
.eg-sidebar li { margin-bottom:.45rem; }
.eg-sidebar a { color:#003b2f; text-decoration:none; }
.eg-sidebar a:hover { text-decoration:underline; }

/* ================= Sidebar positioning by language ================= */
@media (min-width: 992px){
  body.rtl .eg-has-sidebar { display:flex; flex-wrap:wrap; }
  /* Keep DOM order (content then sidebar) so sidebar appears left in RTL */
  body.rtl .eg-has-sidebar > .eg-sidebar { order:2; }
  body.rtl .eg-has-sidebar > .col-lg-8 { order:1; }
  body.ltr .eg-has-sidebar { display:flex; flex-wrap:wrap; }
}

/* ================= Submenu (dropdown) hover: blue background + light text ================= */
.site-header .navbar .dropdown-menu { border:1px solid #e5e7eb; box-shadow:0 6px 18px rgba(0,0,0,.08); }
.site-header .navbar .dropdown-item { font-weight:600; color:#111; }
.site-header .navbar .dropdown-item i { color: inherit; }
.site-header .navbar .dropdown-item:focus,
.site-header .navbar .dropdown-item:hover,
.site-header .navbar .dropdown-item.active,
.site-header .navbar .dropdown-item:active { background:#003b2f; color:#fff !important; }
/* force all nested elements (icons/spans) to turn light */
.site-header .navbar .dropdown-item:focus *,
.site-header .navbar .dropdown-item:hover *,
.site-header .navbar .dropdown-item.active *,
.site-header .navbar .dropdown-item:active * { color:#fff !important; }

/* ===== Investment Footer (الجهاز القومي للاستثمار) ===== */
.eg-invest-footer{background:#00251f;color:#fff;line-height:1.7;font-size:.95rem;}
.eg-invest-footer a{color:#e2e8f0;text-decoration:none;}
.eg-invest-footer a:hover{text-decoration:underline;color:#fff;}
.eg-invest-footer .eg-fhead{color:#fff;position:relative;padding-bottom:.6rem;text-align:center;}
.eg-invest-footer .eg-fhead:after{content:'';position:absolute;left:50%;transform:translateX(-50%);bottom:-6px;width:42px;height:3px;background:var(--eg-green);border-radius:3px;}
.eg-invest-footer .eg-fbrand{color:#fff;}
.eg-invest-footer .eg-fdesc{color:#cbd5e1;}
.eg-invest-footer .eg-flinks li{margin-bottom:.45rem;}
.eg-invest-footer .eg-fsocial .eg-fsoc{width:38px;height:38px;border:1px solid rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:1.1rem;color:#fff;transition:.3s background,color,border;}
.eg-invest-footer .eg-fsocial .eg-fsoc:hover{background:var(--eg-green);border-color:var(--eg-green);color:#fff;text-decoration:none;}
.eg-invest-footer .eg-fsocial .menu-item a:hover{background:var(--eg-green);border-color:var(--eg-green);color:#fff;text-decoration:none;}
.eg-invest-footer .eg-fsocial .menu-item a{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid rgba(255,255,255,.25);font-size:1.1rem;color:#fff;}
.eg-invest-footer .eg-fsocial .menu-item a:hover{background:var(--eg-green);border-color:var(--eg-green);color:#fff;text-decoration:none;}
.eg-invest-footer-top{border-bottom:1px solid rgba(255,255,255,.08);}
.eg-invest-footer .eg-footline{background:#001f19;color:#e2e8f0;font-size:.8rem;border:0;}
@media (max-width: 767.98px){
  .eg-invest-footer .eg-invest-footer-top .row > [class*="col-"] {
    text-align: center;
  }

  .eg-invest-footer .eg-fhead,
  .eg-invest-footer .eg-fbrand {
    margin-top: 0.75rem;
  }
}

/* ===============================
   ✅ الأشرطة الإعلانية الثلاثة (Ticker 1,2,3)
   بحركة Fade Up Modern
   =============================== */
/* .eg-ticker .eg-items {
  position: relative;
  overflow: hidden;
  height: 1.8em; 
} */

/* .eg-ticker .ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  opacity: 0;
  transform: translateY(10px) translateX(15px);
  will-change: transform, opacity;
} */

.eg-ticker .ticker-item a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* Animation for showing ticker items */
.eg-ticker {
  background: #0b0b0b;
  color: #fff;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid #a79701;
}

.eg-ticker .eg-tlabel {
  font-weight: 700;
  white-space: nowrap;
}

.eg-ticker-inner {
  position: relative;
  height: 1.8em;
  overflow: hidden;
}

.ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  display: none;
  transition: transform .8s ease, opacity .8s ease;
}

.ticker-item.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ticker-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.ticker-item a:hover {
  text-decoration: underline;
}

/* ثىي كود CSS لتحريك العناصر في شريط الأخبار */

.eg-services {
  background-color: #f8fafc;
}
.eg-service-card {
  transition: all .3s ease;
  border: 1px solid #005388;
  background:#003b2f;
  color:#fff;
}
.eg-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  background:#455a64; /* slate hover */
  border-color:#37474f;
  color:#fff;
}
.eg-service-card .service-icon img {
  border: 2px solid #e6e6e6;
  background: #fff;
  padding: 6px;
}
.eg-service-card h3 { color: #fff; }
.eg-service-card p { color: rgba(255,255,255,.9); }
.eg-service-card a { color: inherit; font-weight:700; text-decoration:none; }
.eg-service-card a:hover {
  text-decoration: underline;
}
/* On hover (light background), switch text to dark */
.eg-service-card:hover h3,
.eg-service-card:hover p,
.eg-service-card:hover a { color:#fff; }
/* Icons inside service cards should follow text color (ignore .text-primary) */
.eg-service-card .text-primary,
.eg-service-card .display-5,
.eg-service-card .display-5 i,
.eg-service-card i.bi { color: inherit !important; }
/* Disabled placeholder service link */
.eg-service-card a.disabled { cursor: default; opacity: .75; text-decoration: none; pointer-events: none; }

/* governmetn programm */
.eg-program-single .program-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222;
}

.eg-program-single .program-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.eg-program-single .btn-primary {
  background-color: #003b2f ;
  border-color: #003b2f ;
  transition: background .3s ease, transform .2s ease;
}

/* Program cards: homepage "خدمات المستثمرين" بنفس نمط eg-service-card */
.eg-programs .program-card {
  background:#003b2f;
  color:#f9fafb;
  border:1px solid #005388;
  transition: background .3s ease, transform .25s ease, box-shadow .3s ease, color .2s ease;
}

.eg-programs .program-card:hover {
  background:#455a64;
  color:#fff;
  border-color:#37474f;
  transform: translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.eg-programs .program-card h3,
.eg-programs .program-card p,
.eg-programs .program-card a,
.eg-programs .program-card .program-icon .text-primary,
.eg-programs .program-card .program-icon i {
  color: inherit !important;
}

/* ======================================
   🎧 مكتبة الصوتيات (أرشيف وتصنيف)
   بطاقات بنفس نمط الخدمات: أزرق → ذهبي عند المرور
====================================== */
/* Audio taxonomy cards */
.eg-audio-term-archive .eg-audio-card,
.eg-audio-card {
  background:#003b2f !important;
  color:#fff !important;
  border:1px solid #005388;
  transition: background .3s ease, transform .25s ease, box-shadow .3s ease, color .2s ease;
}
.eg-audio-term-archive .eg-audio-card:hover,
.eg-audio-card:hover {
  background:#455a64 !important;
  color:#fff !important;
  border-color:#37474f;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}
.eg-audio-card .text-muted,
.eg-audio-card .text-secondary { color: rgba(255,255,255,.85) !important; }
.eg-audio-card:hover .text-muted,
.eg-audio-card:hover .text-secondary { color:#333 !important; }
.eg-audio-card i.bi { color: inherit !important; }

/* Audio main archive list items */
.eg-audio-archive .eg-audio-item,
.eg-audio-item {
  background:#003b2f !important;
  color:#fff !important;
  border:1px solid #005388;
  border-radius: .75rem;
  padding: 1rem;
  display:flex;
  align-items:flex-start;
  gap: .75rem;
  transition: background .3s ease, transform .25s ease, box-shadow .3s ease, color .2s ease;
}
.eg-audio-archive .eg-audio-item:hover,
.eg-audio-item:hover { background:#455a64 !important; color:#fff !important; border-color:#37474f; transform: translateY(-4px); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.eg-audio-item i.bi { color: inherit !important; }
.eg-audio-item .eg-audio-title { margin: 0 0 .25rem; }
.eg-audio-item .eg-audio-desc { opacity:.95; }

/* Make audio play buttons readable on both backgrounds */
.eg-audio-card .btn-outline-primary,
.eg-audio-item .eg-audio-play-btn,
.eg-audio-item .btn-outline-primary {
  color: inherit !important;
  border-color: currentColor !important;
  background: transparent !important;
}
.eg-audio-card .btn-outline-primary:hover,
.eg-audio-item .eg-audio-play-btn:hover,
.eg-audio-item .btn-outline-primary:hover {
  filter: brightness(0.9);
}

/* ===== قسم خدمات المستثمرين في الصفحة الرئيسية ===== */
.eg-programs {
  background-color:#f5f7fb; /* أفتح من قسم الأخبار */
}

.eg-programs-title {
  font-weight: 800;
  display: inline-block;
  color:#111; /* نص داكن بدون خلفية */
}

/* ======================================
   📼 مكتبة الفيديو (تصنيف الفيديوهات)
   بطاقات بنفس نمط الخدمات: أزرق → ذهبي عند المرور
====================================== */
.eg-video-term-archive .eg-video-card,
.eg-video-card {
  background:#003b2f !important;
  color:#fff !important;
  border:1px solid #005388;
  transition: background .3s ease, transform .25s ease, box-shadow .3s ease, color .2s ease;
}
.eg-video-term-archive .eg-video-card:hover,
.eg-video-card:hover {
  background:#e8bd00 !important;
  color:#111 !important;
  border-color:#d1a800;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}
/* Make bottom meta band transparent and follow text color */
.eg-video-card > .p-3 { background: transparent !important; border-top: 1px solid rgba(255,255,255,.25); }
.eg-video-card:hover > .p-3 { border-top-color: rgba(17,17,17,.25); }
.eg-video-card .eg-video-title a { color: inherit !important; }
.eg-video-card .text-muted { color: rgba(255,255,255,.85) !important; }
.eg-video-card:hover .text-muted { color:#333 !important; }
.eg-video-card i.bi { color: inherit !important; }

/* Outline button inside video cards should follow current text color */
.eg-video-card .btn-outline-primary {
  color: inherit !important;
  border-color: currentColor !important;
  background: transparent !important;
}
.eg-video-card .btn-outline-primary:hover { filter: brightness(0.9); }

.eg-program-single .btn-primary:hover {
  background-color: #003b2f ;
  transform: translateY(-2px);
}

.related-programs .program-card {
  transition: all .3s ease;
}
.related-programs .program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}
.related-programs .program-card img {
  border-radius: 50%;
  border: 2px solid #e6e6e6;
  background: #fff;
  padding: 6px;
}

/* ======================================
   📺 مكتبة الفيديو
====================================== */
.eg-video-library {
  background-color: #003b2f;
}

.eg-video-library h2 {
  font-size: 2.3rem;
  color: #fff;
  border-bottom: 3px solid #a79701;
  display: inline-block;
  padding-bottom: .5rem;
}

.eg-video-list {
  max-height: 550px;
  overflow-y: auto;
  padding-inline-end: 5px;
}

.eg-video-item {
  cursor: pointer;
  transition: all .3s ease;
}
.eg-video-item:hover {
  background-color: rgba(255,255,255,0.08);
  transform: scale(1.02);
}
.eg-video-item img {
  border: 2px solid #444;
  border-radius: 6px;
}
.eg-video-item h6 {
  font-size: .95rem;
  line-height: 1.3;
}

.eg-video-library iframe {
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.eg-video-library .eg-video-player-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.eg-video-library .eg-video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.eg-video-library {
  color: #fff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.eg-affiliate-card {
  background:#0d1b2a; /* الأزرق الداكن */
  color:#fff;
  border-radius:18px;
  padding:2.2rem 1.4rem 1.8rem;
  text-align:center;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  min-height:320px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  transition:background .35s ease, transform .25s ease, box-shadow .35s ease;
}

.eg-affiliate-card:hover {
  background: var(--eg-red); /* يستخدم #d81f26 من :root */
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transform: translateY(-6px);
}

.eg-affiliate-card .stretched-link {
  /* لضمان عدم تغطية المحتوى بصرياً */
  color:inherit;
}

.eg-affiliate-logo {
  width:190px;
  max-width:75%;
  margin:0 auto 1.5rem;
  background:#fff;
  border-radius:14px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  position:relative;
}

.eg-affiliate-logo img {
  width:100%;
  height:100%;
  object-fit:contain;
}

.eg-affiliate-placeholder {
  width:100%;
  height:100%;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#666;
}

.eg-affiliate-title {
  color:#fff;
  line-height:1.5;
}

.eg-affiliate-desc {
  color:rgba(255,255,255,.85);
  margin-top:.4rem;
}

.eg-affiliates .row {
  --bs-gutter-x:1.75rem;
  --bs-gutter-y:1.75rem;
}

/* تحسين لمس الشاشات الصغيرة */
@media (max-width: 575.98px) {
  .eg-affiliate-card {
    min-height:280px;
    padding:1.8rem 1rem 1.4rem;
  }
  .eg-affiliate-logo {
    width:160px;
    padding:14px;
    margin-bottom:1.2rem;
  }
}

/* تركيز لوحة المفاتيح (إمكانية الوصول) */
.eg-affiliate-card:focus-within {
  outline:2px solid #fff;
  outline-offset:3px;
}




/* ==========================================================
   🔗 Related Links Slider Styles
   ========================================================== */
.eg-related-links { 
  isolation: isolate;
  position: relative;
  /* نفس التدرج المستخدم في الهيدر العلوي (lang bar) */
  background: #2a3c30
    /* linear-gradient(180deg, #197a35 0%, #cae0d0 60%, #e8e8e8 100%),
    linear-gradient(90deg, #000000 0%, #ffffff 50%, #d81f26 100%);
  background-blend-mode: multiply;
  color: #fff;
  border-bottom: 2px solid #a79701ee;
  overflow: hidden; */
}

/* Soft overlay to reduce background intensity (adjust alpha as desired) */
.eg-related-links::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.15); /* تعتيم خفيف لزيادة التباين */
  z-index: 1; /* فوق الخلفية، تحت المحتوى */
  pointer-events: none;
}

/* Ensure content (title etc.) sits above the background and overlay */
.eg-related-links > *,
.eg-related-links h2,
.eg-related-links .section-title {
  position: relative;
  z-index: 2;
  color: #fff; /* keep heading readable */
}

.eg-related-slider-wrapper {
  overflow:hidden;
  position:relative;
}
.eg-related-slider {
  display:flex;
  align-items:center;
  gap:60px;
  will-change:transform;
  /* JS controls movement; fallback animation (LTR) */
  animation: eg-scroll-ltr 60s linear infinite;
}
[dir="rtl"] .eg-related-slider {
  animation-name: eg-scroll-rtl;
}
.eg-related-item {
  flex:0 0 auto;
  width:130px; /* تقليل الحجم العام */
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
}
.eg-related-logo {
  background:#fff;
  border-radius:12px;
  padding:10px; /* تقليل التباعد الداخلي */
  width:130px; /* حجم أصغر للشعار */
  max-width:100%;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  transition:transform .3s ease, box-shadow .3s ease;
}
.eg-related-link:hover .eg-related-logo {
  transform:translateY(-6px) scale(1.04);
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.eg-related-item img { object-fit:contain; }
.eg-related-links h2 { color:#fff; }

/* Pause when hovering the whole wrapper */
.eg-related-slider-wrapper:hover .eg-related-slider { animation-play-state:paused; }

@keyframes eg-scroll-ltr {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}
@keyframes eg-scroll-rtl {
  0% { transform:translateX(0); }
  100% { transform:translateX(50%); }
}

@media (max-width: 767.98px){
  .eg-related-slider { gap:30px; }
  .eg-related-item { width:110px; }
  .eg-related-logo { width:110px; padding:8px; }
}




/* ===== Simplified Breaking Ticker Height (40px) ===== */
/* احتفظنا بالمنطق الأصلي للسلايد العمودي، فقط نضبط الارتفاع */
.eg-ticker.breaking { height:40px; min-height:40px; background:#003b2f; border-bottom:2px solid #005388; }
.eg-ticker.breaking .container { height:40px; min-height:40px; padding-top:0; padding-bottom:0; align-items:center; }
.eg-ticker.breaking .eg-track { height:40px; }
.eg-ticker.breaking .eg-items a { line-height:40px; display:inline-flex; align-items:center; gap:8px; }
/* لا نجبر العناصر على inline-block أو position حتى لا نكسر التحريك */
/* يمكن تغيير القيمة لاحقاً بسهولة */

/* When animation is disabled intentionally */
.eg-ticker.breaking.no-animate .eg-items{visibility:visible;animation:none!important;display:block;}
.eg-ticker.breaking.no-animate .eg-tk-item{position:static;display:inline;opacity:1;transform:none;}

/* Horizontal marquee mode for breaking ticker */
.eg-ticker.breaking.marquee .eg-items{visibility:visible;display:inline-flex;gap:1.25rem;}
.eg-ticker.breaking.marquee.cycle .eg-items{animation:none;}
.eg-ticker.breaking.marquee.cycle .eg-items{opacity:0;}
.eg-ticker.breaking.marquee.cycle .eg-items.eg-cycle-active{opacity:1;transition:opacity .6s ease;}
@keyframes eg-cycle-rtl {from{transform:translateX(100%);} to{transform:translateX(calc(-1 * var(--eg-distance)));}}
@keyframes eg-cycle-ltr {from{transform:translateX(-100%);} to{transform:translateX(var(--eg-distance));}}
.eg-ticker.breaking .eg-tk-icon{height:18px;width:auto;vertical-align:-2px;margin-inline-start:6px;opacity:.9}

/* Continuous breaking marquee (no pause) */
.eg-ticker.breaking.marquee:not(.cycle) .eg-items {
  animation: eg-bmarquee-ltr var(--eg-speed, 22s) linear infinite !important;
  animation-play-state: running;
}
[dir="rtl"] .eg-ticker.breaking.marquee:not(.cycle) .eg-items {
  animation-name: eg-bmarquee-rtl !important;
}
/* Slow-down multiplier for marquee (makes movement ~1.75x slower) */
.eg-ticker.breaking.marquee:not(.cycle) .eg-items {
  /* جعل الحركة أبطأ بشكل واضح (عامل 3 بدل 1.75) */
  animation-duration: calc(var(--eg-speed, 22s) * 3) !important;
}
[dir="rtl"] .eg-ticker.breaking.marquee:not(.cycle) .eg-items {
  animation-name: eg-bmarquee-rtl !important;
}
@keyframes eg-bmarquee-ltr { /* English: right-to-left visual (content moves left) */
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes eg-bmarquee-rtl { /* Arabic: left-to-right visual (content moves right) */
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
/* إيقاف الحركة عند المرور بالماوس على الشريط أو أي عنوان داخله */
.eg-ticker.breaking.marquee:hover .eg-items { animation-play-state: paused !important; }
.eg-ticker.breaking.marquee .eg-items.eg-paused { animation-play-state: paused !important; }
/* Affiliates section background override */
.eg-affiliates { background:#003b2f !important; color:#fff; }
.eg-affiliates h2, .eg-affiliate-title, .eg-affiliate-desc { color:#fff; }
.eg-affiliate-card { background:rgba(255,255,255,.08); }
.eg-affiliate-card:hover { background:rgba(255,255,255,.15); }

/* bg-danger */
.bg-danger{
  background-color: #003b2f !important;
}
/* bg-danger */

/* ================= Mega Menu (scoped by body.has-mega-menu) ================= */
body.has-mega-menu .navbar-nav > li.mega,
body.has-mega-menu .navbar-nav > li.mega-root { position:static; }
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu {
  position:absolute; top:100%;
  /* سيتم حساب right/left ديناميكياً في JS - نتركهما auto */
  right:auto; left:auto;
  width:auto; max-width:100%; min-width:320px;
  display:none; /* مخفي افتراضياً حتى الفتح */
  padding:1.75rem 2.25rem; margin:0; border:0; border-radius:0 0 12px 12px;
  background:#003b2f; /* لون أساسي */
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  z-index:1000; flex-wrap:wrap; gap:1.75rem;
  transition:opacity .25s ease, transform .25s ease;
  opacity:0; transform:translateY(8px);
  flex-direction:row; /* تأكيد الترتيب الأفقي للأعمدة */
}
body.has-mega-menu .navbar-nav > li.mega:hover > .dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root:hover > .dropdown-menu { display:flex; opacity:1; transform:translateY(0); }
/* تأكيد إظهار اللوحة مع إلغاء إخفاء visibility القادم من custom-nav.css */
body.has-mega-menu .navbar-nav > li.mega:hover > .dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root:hover > .dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega.mega-open > .dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root.mega-open > .dropdown-menu {
  visibility:visible !important;
  pointer-events:auto;
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li { flex:1 1 200px; min-width:180px; }
/* اجعل الأعمدة (li المستوى الأول داخل اللوحة) تصطف رأسياً بمحتواها */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li { display:flex; flex-direction:column; align-items:stretch; }
/* عرض افتراضي للعمود في حالة فشل الحساب الديناميكي */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li { max-width:260px; }
/* فاصل خفيف بين الأعمدة (يُستخدم border-inline-end بحيث يعمل RTL/LTR) */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li:not(:last-child),
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li:not(:last-child) {
  border-inline-end:1px solid rgba(255,255,255,.16);
  padding-inline-end:1.1rem; /* تعويض عن رسم الحد */
  margin-inline-end:.35rem;
}
/* إخفاء اللوحة فوراً عند مغادرة العنصر (يُستكمل بواسطة JS لضمان الإغلاق السريع) */
body.has-mega-menu .navbar-nav > li.mega:not(:hover) > .dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root:not(:hover) > .dropdown-menu { opacity:0; transform:translateY(8px); }
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li > a.dropdown-item,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li > a.dropdown-item { font-weight:600; color:#fff; padding:.35rem .5rem; }
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li > a.dropdown-item:hover,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li > a.dropdown-item:hover { background:rgba(255,255,255,.12); }
/* عناوين الأقسام داخل الميغا: العناصر التي لديها أبناء تظهر كهيدر مميز */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > a.dropdown-item,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > a.dropdown-item {
  background:rgba(255,255,255,.08); /* إزالة اللون الأحمر لتصبح مثل الهيدر الآخر */
  color:#fff;
  font-weight:700;
  padding:.55rem .7rem;
  margin:0 0 .5rem;
  border-radius:6px;
  position:relative;
}
/* العناصر داخل الأعمدة بدون أبناء تحصل على نفس تنسيق الروابط الفرعية مع خط عريض أقل */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li:not(.menu-item-has-children) > a.dropdown-item,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li:not(.menu-item-has-children) > a.dropdown-item {
  background:rgba(255,255,255,.08);
  color:#fff; font-weight:600; border-radius:6px; margin:0 0 .45rem; padding:.55rem .65rem;
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li:not(.menu-item-has-children) > a.dropdown-item:hover,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li:not(.menu-item-has-children) > a.dropdown-item:hover { background:rgba(255,255,255,.18); }
/* قائمة الأبناء تحت الهيدر داخل نفس العمود */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item {
  display:block;
  background:transparent;
  border-radius:4px;
  padding:.4rem .55rem;
  margin:0 0 .4rem; /* إزالة الحدود ليصبح أكثر بساطة */
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:hover,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:hover {
  background:rgba(255,255,255,.12);
}
/* عكس لون النص تلقائياً إذا كان الخلفية فاتحة (تقدير سريع بناءً على درجة اللون) */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item[data-bg-light="1"],
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item[data-bg-light="1"] {
  color:#111;
  border-color:rgba(0,0,0,.25);
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item[data-bg-light="1"]:hover,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item[data-bg-light="1"]:hover { background:rgba(0,0,0,.08); }
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > a.dropdown-item:hover,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > a.dropdown-item:hover {
  background:rgba(255,255,255,.15);
}
/* تمييز العنصر الجذر عند المرور أو الفتح */
body.has-mega-menu .navbar-nav > li.mega.mega-open > a.nav-link.eg-mega-toggle,
body.has-mega-menu .navbar-nav > li.mega-root.mega-open > a.nav-link.eg-mega-toggle,
body.has-mega-menu .navbar-nav > li.mega > a.nav-link.eg-mega-toggle:hover,
body.has-mega-menu .navbar-nav > li.mega-root > a.nav-link.eg-mega-toggle:hover {
  background:rgba(0,95,115,.18); /* درجة أفتح من #003b2f */
  color:#fff;
  border-radius:6px;
  transition:background .25s ease, color .25s ease;
}
/* هوفر عام لكل عناصر المستوى الأول (سواء ميغا أو عادي) */
.site-header .navbar .navbar-nav > li > a.nav-link:hover,
.site-header .navbar .navbar-nav > li > a.nav-link:focus {
  background:#003b2f;
  color:#fff !important;
  border-radius:6px;
  transition:background .25s ease, color .25s ease;
}
/* تجنب تعارض حدود نشطة موجودة من current-menu-item (نحافظ على الخط السفلي لكن نظهر الخلفية) */
.site-header .navbar .navbar-nav > li.current-menu-item > a.nav-link:hover,
.site-header .navbar .navbar-nav > li.current_page_item > a.nav-link:hover {
  background:#2a3c30;
  color:#fff !important;
}
/* الميغا متعددة الأعمدة بعرض كامل لضمان أفقية جميلة */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu.mega-multi,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu.mega-multi {
  width:100% !important;
  max-width:100% !important;
  right:0 !important; left:0 !important;
  padding-left:2.75rem; padding-right:2.75rem; /* مساحة تنفس جانبية إضافية */
}
/* تمييز روابط الأبناء أسفل الهيدر مع مسافة خفيفة */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu { margin-top:.4rem; padding-top:.35rem; border-top:0; }
/* تنسيق خاص للهيدر بإضافة سهم توضيحي (اختياري) */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > a.dropdown-item.mega-heading:after,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > a.dropdown-item.mega-heading:after {
  content:''; /* إزالة الرمز السابق لإبقاء العنوان نظيفاً */
}
/* تمركز العنوان داخل العمود وتكبيره قليلاً */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > a.dropdown-item.mega-heading,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > a.dropdown-item.mega-heading {
  font-size:1.08rem;
  font-weight:700;
  text-align:center;
  padding:.55rem .75rem .6rem;
  margin-bottom:.35rem;
  position:relative;
  letter-spacing:.5px;
  background:transparent;
}
/* أسهم صغيرة قبل عناصر الأبناء (RTL) */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:before,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:before {
  content:'\25C0';
  font-size:.6rem; color:#fff; opacity:.85;
  margin-inline-end:.45rem; display:inline-block; transform:translateY(-1px);
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:hover:before,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:hover:before {
  color:#ffe; opacity:1;
}
/* مساحة عمودية أكبر بين عناصر الأبناء */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item {
  padding:.42rem .55rem .46rem; font-weight:500; letter-spacing:.25px;
}
/* ضمان حد أدنى لارتفاع الأعمدة لتوازن الخلفية */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li { min-height:160px; }
/* ===== تخطيط ثنائي الأعمدة مبسط عند وجود عمودين فقط ===== */
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu.eg-two-cols { flex-wrap:wrap; width:100% !important; }
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu.eg-two-cols > li { flex:0 0 50% !important; max-width:50% !important; width:50% !important; margin:0; }
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu.eg-two-cols > li .mega-heading { margin-bottom:.55rem; }
/* إظهار أي قوائم فرعية أعمق داخل الميغا (مستويات 2+) */
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu li ul.dropdown-menu {
  display:block !important; position:static !important; visibility:visible !important; opacity:1 !important;
  background:transparent; border:0; box-shadow:none; margin:.4rem 0 0; padding:0; min-width:0; width:100%;
}
/* إزالة أي إخفاء محتمل من قواعد أقدم تستهدف عناصر داخل الميغا */
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu li ul.dropdown-menu[style*="display:none"] { display:block !important; }
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu li.menu-item-has-children > ul.dropdown-menu { display:block !important; }
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu li ul.dropdown-menu > li > a.dropdown-item {
  padding:.35rem .75rem .38rem; font-size:.9rem; font-weight:400; line-height:1.3; white-space:normal; display:block;
}
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu li ul.dropdown-menu > li > a.dropdown-item:hover {
  background:rgba(255,255,255,.12);
}
/* سهم أصغر لمستوى أعمق لتمييزه بصرياً */
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu li ul.dropdown-menu > li > a.dropdown-item:before {
  content:'\25BA'; /* مثلث صغير */
  font-size:.55rem; margin-inline-end:.45rem; opacity:.8;
}
@media (max-width: 992px) {
  /* على الشاشات المتوسطة والصغيرة نرجعهم إلى عرض كامل متتابع */
  body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li:nth-child(1),
  body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li:nth-child(2) {
    flex:1 1 100%; max-width:100%; min-width:100%;
  }
  body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li:nth-child(1) > a.dropdown-item { margin-bottom:.6rem; }
}
/* عند تمرير الماوس على البانل ككل يبقى مفتوح (يُكمل بمنطق JS المؤخر للإغلاق) */
body.has-mega-menu .navbar-nav > li.mega.mega-open > .dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root.mega-open > .dropdown-menu { display:flex; opacity:1; transform:translateY(0); }
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li > ul.dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li > ul.dropdown-menu {
  position:static; transform:none; display:block; opacity:1; visibility:visible; margin:.5rem 0 0; background:transparent; padding:0; box-shadow:none; min-width:0;
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li > ul.dropdown-menu > li > a.dropdown-item,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li > ul.dropdown-menu > li > a.dropdown-item {
  color:#e5f6ff; font-weight:400; padding:.25rem .5rem; white-space:normal;
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li > ul.dropdown-menu > li > a.dropdown-item:hover,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li > ul.dropdown-menu > li > a.dropdown-item:hover { background:rgba(255,255,255,.1); }
body.has-mega-menu .navbar-nav > li.mega i.bi-caret-down-fill, body.has-mega-menu .navbar-nav > li.mega i.bi-caret-left-fill,
body.has-mega-menu .navbar-nav > li.mega-root i.bi-caret-down-fill, body.has-mega-menu .navbar-nav > li.mega-root i.bi-caret-left-fill { display:none; }
body.has-mega-menu header .navbar { position:relative; }
body.has-mega-menu [dir="rtl"] .navbar-nav > li.mega > .dropdown-menu,
body.has-mega-menu [dir="rtl"] .navbar-nav > li.mega-root > .dropdown-menu { direction:rtl; }
@media (max-width: 991.98px){
  body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu,
  body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu { position:static; width:100%; display:block; padding:0 0 1rem; box-shadow:none; background:transparent; flex-direction:column; }
  body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li,
  body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li { min-width:0; }
  body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li > a.dropdown-item,
  body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li > a.dropdown-item { color:#003b2f; }
  body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li > ul.dropdown-menu > li > a.dropdown-item,
  body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li > ul.dropdown-menu > li > a.dropdown-item { color:#003b2f; }
}

/* ==========================================================
   🎨 Global color migration: #003b2f → #003b2f
   Overrides to unify the primary color without editing each rule.
   Footer uses a darker shade for the second band.
   ========================================================== */
:root { --eg-primary-new:#003b2f; --eg-primary-new-dark:#2a3c30; --eg-card-hover-light:#d9eef2; --eg-card-hover-border:#b6d7dd; }

/* Dropdown items hover/active */
.site-header .navbar .dropdown-item:focus,
.site-header .navbar .dropdown-item:hover,
.site-header .navbar .dropdown-item.active,
.site-header .navbar .dropdown-item:active { background:var(--eg-primary-new) !important; color:#fff !important; }

/* Readmore link on slider */
.eg-slide-caption .readmore { color:var(--eg-primary-new) !important; }

/* Latest news CTA */
.eg-latest-news .eg-view-all { color:var(--eg-primary-new) !important; }
.eg-latest-news .eg-view-all:hover { background:var(--eg-primary-new) !important; border-color:var(--eg-primary-new) !important; color:#fff !important; }

/* News cards and pagination */
.eg-news-card:hover .card-title a { color:var(--eg-primary-new) !important; }
.eg-news-card .card-footer a { color:var(--eg-primary-new) !important; }
.eg-pagination .page-numbers.current,
.eg-pagination .page-numbers:hover { background:var(--eg-primary-new) !important; border-color:var(--eg-primary-new) !important; }

/* Service/program/video cards */
.eg-service-card { background:var(--eg-primary-new) !important; border-color:var(--eg-primary-new) !important; }
.eg-programs .program-card { background:var(--eg-primary-new) !important; border-color:var(--eg-primary-new) !important; }
.eg-video-term-archive .eg-video-card,
.eg-video-card { background:var(--eg-primary-new) !important; border-color:var(--eg-primary-new) !important; }
/* Force hover slate (#455a64) despite base !important */
.eg-service-card:hover { background:#455a64 !important; border-color:#37474f !important; color:#fff !important; }
.eg-programs .program-card:hover { background:#455a64 !important; border-color:#37474f !important; color:#fff !important; }
.eg-video-term-archive .eg-video-card:hover,
.eg-video-card:hover { background:#455a64 !important; border-color:#37474f !important; color:#fff !important; }

/* Video library section */
.eg-video-library { background-color:var(--eg-primary-new) !important; }
/* Audio cards global override (add hover to align) */
.eg-audio-card { background:var(--eg-primary-new) !important; border-color:var(--eg-primary-new) !important; }
.eg-audio-card:hover { background:#455a64 !important; border-color:#37474f !important; color:#fff !important; }

/* Date box on slider */
.eg-date-box { background:var(--eg-primary-new) !important; }

/* Affiliates strip */
/* Affiliates section: lighter neutral background to distinguish from audio/video dark sections */
.eg-affiliates { background:#f1f5f9 !important; }
.eg-affiliates h1,
.eg-affiliates h2,
.eg-affiliates h3,
.eg-affiliates .section-title,
.eg-affiliates .eg-section-title { color:var(--eg-primary-new) !important; }

/* ================= New: Generic horizontal card slider (الجريدة) ================= */
.eg-card-slider-wrapper{position:relative;overflow:visible;z-index:2;margin-top:-1.25rem;margin-bottom:-2.5rem}

/* Ensure the section title stays visible above the slider */
.eg-section.eg-newspaper h2.h3, .eg-section.eg-newspaper .section-title {
  position:relative;
  z-index:4;
  display:inline-block;
  background:#fff;
  padding:0 .75rem;
}
.eg-card-slider{display:flex;gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:.5rem 3rem;scrollbar-width:none;-ms-overflow-style:none;align-items:flex-end}
.eg-card-slider::-webkit-scrollbar{display:none}
.eg-card-slide{flex:0 0 clamp(180px,18vw,220px);scroll-snap-align:center;transition:transform .3s ease,opacity .3s ease;transform-origin:bottom center;position:relative;margin-inline:0;padding:0 .5rem}
/* Remove Slick-specific transform classes; custom JS controls transforms */
.eg-card-slide:first-child{margin-inline-start:0}
.eg-card-slide:last-child{margin-inline-end:0}
.eg-card-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;display:flex;align-items:center;justify-content:center}
.eg-card-nav.prev{inset-inline-start:.25rem}
.eg-card-nav.next{inset-inline-end:.25rem}
/* RTL support: make track RTL when wrapper is RTL */
.eg-card-slider-wrapper[dir="rtl"] .eg-card-slider{direction:rtl}
/* Removed edge-fade mask to avoid boxed look and let shadows breathe */

/* Clamp excerpt inside newspaper cards */
.eg-card-excerpt{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6;max-height:3.2em}

/* Newspaper: issue badge and icons */
.eg-issue-row{display:flex;align-items:center;gap:.75rem;justify-content:center}
.eg-issue-badge{display:inline-flex;align-items:center;justify-content:center;background:#e2e8f0;color:#1f2937;border:1px solid #cbd5e1;border-radius:9999px;padding:.35rem .9rem;font-weight:700;font-size:1.05rem}
.eg-issue-badge span{font-weight:800;margin-inline-start:.35rem}
.eg-pdf-icon{font-size:28px;color:#dc2626}
.eg-newspaper .eg-date-icon{margin-inline-end:.5rem}
/* Hero area: logo + issue */
.eg-newspaper-hero{background:transparent;position:relative;overflow:hidden}
.eg-newspaper-hero::before{content:"";position:absolute;inset:0;background:none;opacity:0;pointer-events:none}
.eg-hero-logo{width:110px;height:110px;object-fit:contain;margin-bottom:.85rem;position:relative;z-index:1}
.eg-hero-fallback{font-size:64px;color:#e8bd00;position:relative;z-index:1;margin-bottom:.5rem}
.eg-issue-title{font-size:1.5rem;font-weight:800;color:#fff;position:relative;z-index:1}

/* Dark button style for newspaper cards */
.eg-btn-dark{background:var(--eg-primary-new,#003b2f);color:#fff;border:1px solid rgba(255,255,255,.65)}
.eg-btn-dark:hover,.eg-btn-dark:focus{background:#455a64;color:#fff;border-color:#fff}
.eg-btn-dark:active{background:#37474f;color:#fff}
.eg-btn-icon{margin-inline-end:.5rem}

/* Ghost button (white pill) for newspaper */
.eg-newspaper .eg-btn-ghost{background:#fff;color:#0b3b32 !important;border:1px solid #e2e8f0;box-shadow:0 2px 6px rgba(0,0,0,.15);border-radius:12px;padding:.55rem 1rem}
.eg-newspaper .eg-btn-ghost:hover,.eg-newspaper .eg-btn-ghost:focus{background:#f8fafc;color:#0b3b32 !important;border-color:#cbd5e1;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.eg-newspaper .eg-btn-ghost:active{background:#eef2f7;color:#0b3b32 !important}
.eg-newspaper .eg-btn-ghost .eg-btn-icon{margin-inline-end:.5rem;color:inherit}

/* Newspaper card look (deep green + dotted overlay) */
.eg-newspaper .eg-post-card{background:#003b2f;color:#fff;position:relative;box-shadow:0 8px 20px rgba(0,0,0,.25);border-radius:24px;transition:box-shadow .3s ease}
.eg-newspaper .eg-post-card::before{content:"";position:absolute;inset:0;background:none;opacity:0;border-radius:inherit;pointer-events:none}
.eg-newspaper .eg-post-card>*{position:relative;z-index:1}
.eg-newspaper .eg-post-card h3,.eg-newspaper .eg-post-card .eg-card-excerpt,.eg-newspaper .eg-post-card .small{color:#fff}
.eg-newspaper .eg-post-card:hover{box-shadow:0 12px 28px rgba(0,0,0,.35)}

/* Emphasize center slide's card slightly to match reference */
.eg-card-slide.is-center .eg-post-card{box-shadow:0 16px 40px rgba(0,0,0,.45)}

/* Nav buttons refinement */
.eg-card-nav.btn{background:rgba(255,255,255,.9);border:1px solid #e5e7eb}
.eg-card-nav.btn:hover{background:#fff}

/* Buttons primary in program single */
.eg-program-single .btn-primary { background-color:var(--eg-primary-new) !important; border-color:var(--eg-primary-new) !important; }
.eg-program-single .btn-primary:hover { background-color:var(--eg-primary-new) !important; }

/* Footer primary + secondary bands */
.eg-invest-footer { background:var(--eg-primary-new) !important; }
.eg-invest-footer .eg-footline { background:var(--eg-primary-new-dark) !important; }

/* ==========================================================
   Card Contrast Normalization
   إذا كانت الخلفية داكنة (اللون الأساسي الجديد) نجبر النص والأيقونات على اللون الفاتح
   وعند الهوفر (خلفية ذهبية أو فاتحة) نعيدها للون الداكن.
   ========================================================== */
/* الحالة الافتراضية (خلفية داكنة) */
.eg-service-card,
.eg-programs .program-card,
.eg-video-card,
.eg-audio-card,
.eg-audio-item,
.eg-video-term-archive .eg-video-card,
.eg-audio-term-archive .eg-audio-card {
  color:#fff !important;
}
.eg-service-card h3,
.eg-service-card p,
.eg-service-card a,
.eg-service-card i,
.eg-service-card .bi,
.eg-programs .program-card h3,
.eg-programs .program-card p,
.eg-programs .program-card a,
.eg-programs .program-card i,
.eg-programs .program-card .bi,
.eg-video-card h3,
.eg-video-card p,
.eg-video-card a,
.eg-video-card i,
.eg-video-card .bi,
.eg-audio-card h3,
.eg-audio-card p,
.eg-audio-card a,
.eg-audio-card i,
.eg-audio-card .bi,
.eg-audio-item h3,
.eg-audio-item p,
.eg-audio-item a,
.eg-audio-item i,
.eg-audio-item .bi { color:#fff !important; }

/* عند الهوفر بخلفية ذهبية أو أفتح */
/* لا نفرض تغيير لون النص على الهوفر هنا حتى لا نفقد التباين في الحالات التي تبقى الخلفية داكنة.
  قواعد الهوفر التفصيلية لكل نوع (service / program / video / audio) أعلى الملف ستتكفل بالتبديل عند تغير الخلفية فعلاً إلى ذهبية أو فاتحة. */

/* ================= Hover on LI (remove top/bottom white gaps) ================= */
.site-header .navbar .navbar-nav > li:hover,
.site-header .navbar .navbar-nav > li:focus-within {
  background:#003b2f !important;
  border-radius:8px;
  transition:background .25s ease, color .25s ease;
}
.site-header .navbar .navbar-nav > li:hover > a.nav-link,
.site-header .navbar .navbar-nav > li:focus-within > a.nav-link { color:#fff !important; }

/* Open state styling on LI for mega */
body.has-mega-menu .navbar-nav > li.mega.mega-open,
body.has-mega-menu .navbar-nav > li.mega-root.mega-open { background:#003b2f !important; border-radius:8px; }
body.has-mega-menu .navbar-nav > li.mega.mega-open > a.nav-link.eg-mega-toggle,
body.has-mega-menu .navbar-nav > li.mega-root.mega-open > a.nav-link.eg-mega-toggle { color:#fff !important; }

/* ==========================================================
   🔄 إعادة مظهر الميغا إلى النسخة الأبسط (عمود واحد + ترويسة داخلية)
   يمكن إزالة هذا القسم لاحقاً إذا رغبت بالعودة للتصميم المتعدد الأعمدة.
   ========================================================== */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu {
  width:420px !important; max-width:420px !important; min-width:320px;
  flex-direction:column !important; flex-wrap:nowrap !important; gap:0 !important;
  padding:1.6rem 1.4rem 1.8rem !important;
}
/* إلغاء الحدود والفواصل بين "الأعمدة" (ليست مطلوبة الآن) */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li {
  flex:1 1 auto !important; width:100% !important; max-width:100% !important;
  border:0 !important; padding:0 !important; margin:0 0 .85rem !important;
  display:block !important; min-height:0 !important;
}
/* ترويسة القسم (العنصر ذو الأبناء) بشكل كبسولة وسط اللوحة */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > a.dropdown-item.mega-heading,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > a.dropdown-item.mega-heading {
  background:rgba(255,255,255,.08) !important;
  border-radius:12px !important;
  font-size:1.05rem !important;
  font-weight:700 !important;
  padding:.9rem 1rem !important;
  margin:0 0 1rem !important;
  text-align:center !important;
  letter-spacing:.25px;
}
/* روابط الأبناء داخل نفس القسم – عرض مركزي بسيط */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item {
  background:rgba(255,255,255,.06) !important;
  border-radius:8px !important;
  padding:.55rem .85rem !important;
  margin:0 0 .6rem !important;
  font-weight:600 !important;
  text-align:center !important;
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:hover,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:hover {
  background:rgba(255,255,255,.15) !important;
}
/* إخفاء الأسهم قبل الروابط الفرعية في الوضع البسيط */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:before,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li.menu-item-has-children > ul.dropdown-menu > li > a.dropdown-item:before {
  display:none !important;
}
/* الروابط التي ليست عناوين (عناصر مباشرة بدون أبناء) بنفس شكل روابط الأبناء */
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li:not(.menu-item-has-children) > a.dropdown-item,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li:not(.menu-item-has-children) > a.dropdown-item {
  background:rgba(255,255,255,.06) !important;
  border-radius:8px !important;
  padding:.6rem .9rem !important;
  margin:0 0 .75rem !important; font-weight:600 !important; text-align:center !important;
}
body.has-mega-menu .navbar-nav > li.mega > .dropdown-menu > li:not(.menu-item-has-children) > a.dropdown-item:hover,
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu > li:not(.menu-item-has-children) > a.dropdown-item:hover { background:rgba(255,255,255,.15) !important; }
/* إزالة توزيع ثنائي الأعمدة إن وُجد */
body.has-mega-menu .navbar-nav > li.mega-root > .dropdown-menu.eg-two-cols > li { flex:1 1 100% !important; max-width:100% !important; }

/* توحيد هوفر/حالة الفتح للروابط الجذرية للميغا مع بقية الروابط (خلفية داكنة ونص فاتح) */
body.has-mega-menu .navbar-nav > li.mega > a.nav-link.eg-mega-toggle:hover,
body.has-mega-menu .navbar-nav > li.mega-root > a.nav-link.eg-mega-toggle:hover,
body.has-mega-menu .navbar-nav > li.mega.mega-open > a.nav-link.eg-mega-toggle,
body.has-mega-menu .navbar-nav > li.mega-root.mega-open > a.nav-link.eg-mega-toggle {
  background:#003b2f !important;
  color:#fff !important;
  border-radius:6px;
  transition:background .25s ease, color .25s ease;
}


/* ==== Accessibility: force readable text on single post pages ==== */
/* Some post cards are styled with dark backgrounds + white text by default.
   When the post detail page background is white this can make text invisible.
   The following rules scope a dark text color to single post pages only. */
.single .eg-post-card,
.single .eg-post-card .eg-post-content,
.single .eg-post-content {
  color: #222222 !important;
}
.single .eg-post-card .eg-post-content p,
.single .eg-post-card .eg-post-content li,
.single .eg-post-card .eg-post-content span {
  color: #222222 !important;
}
/* Keep links readable and on-brand inside posts */
.single .eg-post-card .eg-post-content a {
  color: #005f73 !important;
}

/* Additional single-page overrides to cover headings, meta, lists, captions and inline elements */
.single .eg-post-card h1,
.single .eg-post-card h2,
.single .eg-post-card h3,
.single .eg-post-card h4,
.single .eg-post-card h5,
.single .eg-post-card h6,
.single .eg-post-card .eg-post-title,
.single .eg-post-card .eg-post-header,
.single .eg-post-card .eg-post-meta,
.single .eg-post-card .eg-post-footer,
.single .eg-post-card p,
.single .eg-post-card li,
.single .eg-post-card dd,
.single .eg-post-card dt,
.single .eg-post-card blockquote,
.single .eg-post-card figcaption,
.single .eg-post-card strong,
.single .eg-post-card em,
.single .eg-post-card small {
  color: #222222 !important;
}

.single .eg-post-card .text-muted,
.single .eg-post-card .small,
.single .eg-post-card .eg-post-meta .small {
  color: #6b6b6b !important;
}

.single .eg-post-card .wp-block-image figcaption,
.single .eg-post-card .wp-caption-text,
.single .eg-post-card ul,
.single .eg-post-card ol {
  color: #222222 !important;
}

.single .eg-post-card a { color: #005f73 !important; }

/* Also ensure the same readable colors for static pages (e.g., Contact page) */
.page .eg-post-card,
.page .eg-post-card h1,
.page .eg-post-card h2,
.page .eg-post-card h3,
.page .eg-post-card h4,
.page .eg-post-card h5,
.page .eg-post-card h6,
.page .eg-post-card .eg-post-title,
.page .eg-post-card .eg-post-header,
.page .eg-post-card .eg-post-meta,
.page .eg-post-card .eg-post-footer,
.page .eg-post-card p,
.page .eg-post-card li,
.page .eg-post-card dd,
.page .eg-post-card dt,
.page .eg-post-card blockquote,
.page .eg-post-card figcaption,
.page .eg-post-card strong,
.page .eg-post-card em,
.page .eg-post-card small {
  color: #222222 !important;
}
.page .eg-post-card .text-muted,
.page .eg-post-card .small,
.page .eg-post-card .eg-post-meta .small {
  color: #6b6b6b !important;
}
.page .eg-post-card .wp-block-image figcaption,
.page .eg-post-card .wp-caption-text,
.page .eg-post-card ul,
.page .eg-post-card ol {
  color: #222222 !important;
}
.page .eg-post-card a { color: #005f73 !important; }
