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-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 #e9ecef}
.eg-post-card:hover{box-shadow:0 16px 32px -14px rgba(0,0,0,.22)}
.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 #e9ecef}
/*
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: #197a35;
    --eg-red: #d81f26;
    --eg-black: #0b0b0b;
}

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: #288151 !important;
    /*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-langbar .eg-quick-links a{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:4px 10px;
    font-size:13px;
    text-decoration:none;
  }
  .eg-langbar .eg-quick-links a i{ margin-inline-start:0; margin-inline-end:8px; font-size:1rem; line-height:1; display:inline-block; }
  body.rtl .eg-langbar .eg-quick-links a i{ margin-inline-end:0; margin-inline-start:8px; }
  .eg-langbar .eg-quick-links a:hover{ background:rgba(0,0,0,.06); border-radius:6px; }
  .eg-langbar .eg-quick-links a .rtl-phone{ transform:scaleX(-1); }

.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 {
    font-size: 1.1rem
}

/* Slider */
.eg-slider .carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover
}

.eg-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  background: rgba(255, 255, 255, .92);
  padding: 2rem;
  border-top: 4px solid #0062a2;
    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: .75rem;
  background: #0062a2;
  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;
}
.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: #0062a2;
  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:#0062a2; border-radius:2px; }
.eg-latest-news .eg-view-all {
  display:inline-flex; align-items:center; gap:.4rem;
  color:#0062a2; 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:#0062a2; color:#fff; border-color:#0062a2; 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:#0062a2; }
.eg-news-card .card-footer a { color:#0062a2 !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:#0062a2; 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:#0062a2; color:#fff; border-color:#0062a2; }

/* ================= 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; }
.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:#0062a2; border-radius:2px; }
.eg-sidebar ul { list-style:none; padding:0; margin:0; }
.eg-sidebar li { margin-bottom:.45rem; }
.eg-sidebar a { color:#0062a2; 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:#0062a2; 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:#0062a2;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:.25rem;}
.eg-invest-footer .eg-fhead:after{content:'';position:absolute;right:0;bottom:0;width:42px;height:3px;background:var(--eg-red);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-red);border-color:var(--eg-red);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-red);border-color:var(--eg-red);color:#fff;text-decoration:none;}
.eg-invest-footer-top{border-bottom:1px solid rgba(255,255,255,.08);}
.eg-invest-footer .eg-footline{background:#005388;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:#0062a2;
  color:#fff;
}
.eg-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  background:#e8bd00; /* gold hover */
  border-color:#d1a800;
  color:#111;
}
.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:#111; }
/* 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; }

/* ===== بطاقات قصص النجاح (نفس نمط الخدمات) ===== */
.eg-success-stories{ background:#f5f7fb; }
.eg-success-card{
  transition: all .3s ease;
  border: 1px solid #005388;
  background:#0062a2;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height: 200px;
}
.eg-success-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  background:#e8bd00; /* gold hover */
  border-color:#d1a800;
  color:#111;
}
.eg-success-card h3{ color: inherit; }
.eg-success-card a{ color: inherit; text-decoration: none; }
.eg-success-card a:hover{ text-decoration: underline; }
.eg-success-card i.bi{ color: inherit !important; }

/* ===== تاريخ الخبر (أعلى الصورة) ===== */
.eg-news-thumb{ position:relative; overflow:hidden; }
.eg-news-date{
  position:absolute; top:0; left:0; z-index:2;
  background:rgba(0,98,162,.78); color:#fff;
  width:110px; padding:10px 8px; text-align:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  border-bottom-right-radius:12px;
  font-size:14px; line-height:1.2;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
  -webkit-backdrop-filter:saturate(120%) blur(1.5px);
  backdrop-filter:saturate(120%) blur(1.5px);
  border:1px solid rgba(255,255,255,.25);
}
.eg-news-date i{ font-size:20px; line-height:1; }
.eg-news-date .day{ font-size:22px; font-weight:700; line-height:1; text-shadow:0 1px 2px rgba(0,0,0,.25); }
.eg-news-date .month{ font-size:15px; font-weight:600; line-height:1; text-shadow:0 1px 2px rgba(0,0,0,.25); }
@media (max-width:575.98px){
  .eg-news-date{ width:95px; padding:8px 6px; }
  .eg-news-date .day{ font-size:20px; }
}

/* 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: #0062a2 ;
  border-color: #0062a2 ;
  transition: background .3s ease, transform .2s ease;
}

/* Program cards: homepage "خدمات المستثمرين" بنفس نمط eg-service-card */
.eg-programs .program-card {
  background:#0062a2;
  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:#e8bd00;
  color:#111111;
  border-color:#d1a800;
  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:#0062a2 !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:#e8bd00 !important;
  color:#111 !important;
  border-color:#d1a800;
  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:#0062a2 !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:#e8bd00 !important; color:#111 !important; border-color:#d1a800; 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:#0062a2 !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: #0062a2 ;
  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: #0062a2;
}

.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; }
.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:#0062a2; 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;
}
[dir="rtl"] .eg-ticker.breaking.marquee:hover .eg-items,
.eg-ticker.breaking.marquee:hover .eg-items {
  animation-play-state: paused !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%); }
}
/* Affiliates section background override */
.eg-affiliates { background:#0062a2 !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); }



