  /* =========================================================
   Header + Footer V2 (Scoped)
   Target: .top-header-area + .footer-area + .copyright
   Dark theme (soft black)
========================================================= */

:root{
  --hf-bg: #151515;         /* أسود فاتح */
  --hf-bg-2: #1b1b1b;
  --hf-border: rgba(255,255,255,.08);
  --hf-text: rgba(255,255,255,.92);
  --hf-muted: rgba(255,255,255,.65);
  --hf-hover: rgba(255,255,255,.12);
  --hf-radius: 12px;
}

/* ================= HEADER ================= */

/* خلفية الهيدر */
.top-header-area{
  background: var(--hf-bg) !important;
  color: var(--hf-text);
}

/* لفّ الهيدر العام (بدون كسر الموبايل) */
.top-header-area .hf-header{
  display:flex;
  flex-direction:column;
  gap:0;
}

/* صف الديسكتوب الأول */
.top-header-area .hf-top{
  padding: 10px 0;
  gap: 14px;
}

/* اللوجو */
.top-header-area .hf-logo{
  flex:0 0 auto;
}
.top-header-area .hf-logo img{
  display:block;
  max-height: 44px;
  width:auto;
}

/* البحث وسط السطر */
.top-header-area .hf-search{
  flex:1 1 auto;
  display:flex;
  justify-content:center;
}
.top-header-area .hf-search-form{
  width:min(680px, 100%);
  display:flex;
  align-items:center;
  background: var(--hf-bg-2);
  border:1px solid var(--hf-border);
  border-radius: 999px;
  overflow:hidden;
}
.top-header-area .hf-search-form input{
  flex:1 1 auto;
  border:0;
  outline:0;
  background:transparent;
  color: var(--hf-text);
  padding: 10px 14px;
  font-size: 15px;
}
.top-header-area .hf-search-form input::placeholder{
  color: var(--hf-muted);
}
.top-header-area .hf-search-form button{
  border:0;
  outline:0;
  background:transparent;
  color: var(--hf-text);
  padding: 10px 14px;
  cursor:pointer;
}
.top-header-area .hf-search-form button:hover{
  background: var(--hf-hover);
}

/* أيقونات اليسار */
.top-header-area .hf-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap: 10px;
  margin-inline-start:auto;
}
.top-header-area .hf-actions .icon-btn,
.top-header-area .hf-actions a{
  color: var(--hf-text) !important;
}

/* فاصل HR بين السطرين */
.top-header-area .hf-sep{
  border:0;
  border-top:1px solid var(--hf-border);
  margin: 0;
}

/* صف الأقسام (السطر الثاني) */
.top-header-area .hf-nav-row{
  padding: 10px 0;
}
.top-header-area .hf-nav-row .main-menu > ul{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
}

/* روابط الأقسام */
.top-header-area .hf-nav-row .main-menu a{
  display:inline-block;
  color: var(--hf-text) !important;
  text-decoration:none;
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1.2;
}
.top-header-area .hf-nav-row .main-menu a:hover{
  background: var(--hf-hover);
  text-decoration:none;
}

/* ================= User dropdown (desktop) ================= */
.top-header-area .user-dropdown{
  right: 0;
  left: auto;
  border-radius: var(--hf-radius);
}

/* ================= Mobile: keep as-is ================= */
@media (max-width: 991.98px){
  /* لا نلمس شكل الموبايل — فقط نضمن الخلفية */
  .top-header-area{ background: var(--hf-bg) !important; }
}

/* ================= FOOTER ================= */

.footer-area{
  background: var(--hf-bg) !important;
  color: var(--hf-text);
  padding: 42px 0 28px;
}

/* صناديق الفوتر */
.footer-area .footer-box{
  background: transparent;
}
.footer-area .widget-title{
  color: var(--hf-text);
  margin-bottom: 14px;
  font-weight: 800;
  position: relative;
  padding-bottom: 10px;
}
/* خط تحت العنوان */
.footer-area .widget-title::after{
  content:"";
  position:absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 52px;
  height: 2px;
  background: red;
}

/* نصوص وروابط */
.footer-area p,
.footer-area li,
.footer-area a{
  color: var(--hf-muted) !important;
}
.footer-area a{
  text-decoration:none;
}
.footer-area a:hover{
  color: var(--hf-text) !important;
  text-decoration: underline;
}

/* قائمة تواصل معنا */
.footer-area .get-in-touch li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-bottom:10px;
}
.footer-area .get-in-touch i{
  margin-top: 4px;
  color: rgba(255,255,255,.75);
}

/* روابط سريعة */
.footer-area .pages ul li{
  padding-inline-start: 18px;
  position: relative;
  margin-bottom: 8px;
}
.footer-area .pages ul li::before{
  content: "›";
  position:absolute;
  inset-inline-start: 0;
  top: 0;
  color: rgba(255,255,255,.45);
}

/* النشرة البريدية */
.footer-area .subscribe form{
  display:flex;
  gap:10px;
  align-items:center;
}
.footer-area .subscribe input[type="email"]{
  flex:1 1 auto;
  border-radius: 10px;
  border:1px solid var(--hf-border);
  background: var(--hf-bg-2);
  color: var(--hf-text);
  padding: 10px 12px;
  outline: none;
}
.footer-area .subscribe button{
  flex:0 0 auto;
  border-radius: 10px;
  border:1px solid var(--hf-border);
  background: rgba(255,255,255,.08);
  color: var(--hf-text);
  padding: 10px 12px;
}
.footer-area .subscribe button:hover{
  background: rgba(255,255,255,.14);
}

/* ================= COPYRIGHT BAR ================= */
.copyright{
  background: #101010 !important;
  border-top: 1px solid var(--hf-border);
  padding: 14px 0;
  color: var(--hf-muted);
}
.copyright a,
.copyright i{
  color: var(--hf-muted) !important;
}
.copyright a:hover,
.copyright a:hover i{
  color: var(--hf-text) !important;
}

/* Social icons row */
.copyright .social-icons a{
  display:inline-flex;
  width: 38px;
  height: 38px;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--hf-border);
}
.copyright .social-icons a:hover{
  background: rgba(255,255,255,.12);
}

/* ================= Fix mobile header layout ================= */

/* منع الانزلاق يمين/يسار */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}

/* تأكيد أن الهيدر لا يسبب overflow */
.top-header-area, 
.top-header-area .container,
.top-header-area .row,
.top-header-area .col-12{
  max-width: 100%;
}

/* موبايل: ارفع ارتفاع الهيدر وخليه مريح */
@media (max-width: 991.98px){

  /* صف الموبايل */
  .top-header-area .hf-mobile{
    min-height: 64px;          /* ارتفاع مناسب */
    padding: 10px 0;           /* يرفع سماكة الهيدر */
    gap: 10px;
    width: 100%;
  }

  /* اللوجو */
  .top-header-area .hf-mobile .site-logo img{
    max-height: 40px;
    width: auto;
  }

  /* مجموعة الأيقونات: لازم تنذهب لأقصى اليسار في RTL */
  .top-header-area .hf-mobile .header-actions{
    display: flex;
    align-items: center;
    gap: 10px;

    /* هذا هو الأهم: ادفعها للطرف الآخر بشكل صحيح مع RTL/LTR */
    margin-inline-start: auto !important;
  }

  /* إذا بقيت ms-auto بالغلط، هذا يلغي تأثيرها */
  html[dir="rtl"] .top-header-area .hf-mobile .header-actions{
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* اجعل الأزرار “مربعات” بدون خطوط غريبة */
  .top-header-area .hf-mobile .header-actions .icon-btn,
  .top-header-area .hf-mobile .header-actions a.icon-btn{
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    text-decoration: none !important; /* <-- يزيل الشخط/الخط */
    -webkit-tap-highlight-color: transparent;
  }

  /* أحياناً يظهر خط بسبب focus في الموبايل */
  .top-header-area .hf-mobile .header-actions .icon-btn:focus,
  .top-header-area .hf-mobile .header-actions a.icon-btn:focus{
    box-shadow: none !important;
  }
}

/* ================= Desktop: center nav links ================= */
@media (min-width: 992px){
  .top-header-area .hf-nav-row .main-menu > ul{
    justify-content: center; /* <-- توسيط الأقسام والصفحات */
  }
}





.loader {
  bottom: 0;
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 1111;
  background: #fff;
  overflow-x: hidden;
}

.loader-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  height: 50px;
  width: 50px;
}

.circle {
  width: 8vmax;
  height: 8vmax;
  border-right: 4px solid #000;
  border-radius: 50%;
  -webkit-animation: spinRight 800ms linear infinite;
  animation: spinRight 800ms linear infinite;
}

.circle:before {
  content: '';
  width: 6vmax;
  height: 6vmax;
  display: block;
  position: absolute;
  top: calc(50% - 3vmax);
  left: calc(50% - 3vmax);
  border-left: 3px solid #F28123;
  border-radius: 100%;
  -webkit-animation: spinLeft 800ms linear infinite;
  animation: spinLeft 800ms linear infinite;
}

.circle:after {
  content: '';
  width: 6vmax;
  height: 6vmax;
  display: block;
  position: absolute;
  top: calc(50% - 3vmax);
  left: calc(50% - 3vmax);
  border-left: 3px solid #F28123;
  border-radius: 100%;
  -webkit-animation: spinLeft 800ms linear infinite;
  animation: spinLeft 800ms linear infinite;
  width: 4vmax;
  height: 4vmax;
  top: calc(50% - 2vmax);
  left: calc(50% - 2vmax);
  border: 0;
  border-right: 2px solid #000;
  -webkit-animation: none;
  animation: none;
}

@-webkit-keyframes spinLeft {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(720deg);
    transform: rotate(720deg);
  }
}

@keyframes spinLeft {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(720deg);
    transform: rotate(720deg);
  }
}

@-webkit-keyframes spinRight {
  from {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  to {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

@keyframes spinRight {
  from {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  to {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}


/* -----------------------------------------------------------------------------

# List Styles

----------------------------------------------------------------------------- */
.list-section {
  background-color: #f5f5f5;
  padding-bottom: 15px;
  padding-top: 15px;
}

.list-box {
  overflow: hidden;
  letter-spacing: 0.5px;
}

.list-box .content h3 {
  display: block;
  line-height: 22px;
  font-size: 18px;
  margin-bottom: 4px;
}

.list-box .content p {
  margin-bottom: 0px;
  opacity: 0.75;
}

.list-box .list-icon i {
  display: block;
  font-size: 24px;
  margin-right: 15px;
  color: #F28123;
  width: 65px;
  height: 65px;
  text-align: center;
  line-height: 60px;
  border: 2px #F28123 dotted;
  border-radius: 999px;
}

/* ================= Search Overlay: Mobile only (hide on desktop) ================= */

/* 1) على الديسكتوب: لا تظهر نهائياً */
.search-area{
  display: none !important;
}

/* 2) على الموبايل: تصبح Overlay وتعمل مع search-active */
@media (max-width: 991.98px){

  .search-area{
    display: block !important;         /* مهم: حتى لا تختفي دائماً */
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    background: var(--hf-bg) !important;
    text-align: center;

    /* مخفية افتراضياً */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .search-area.search-active{
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .search-area .close-btn{
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--hf-text);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }

  /* تمركز المحتوى */
  .search-area,
  .search-area > .container,
  .search-area > .container > .row,
  .search-area > .container > .row > div,
  .search-area .search-bar{
    height: 100%;
  }

  .search-area .search-bar{ display: table; width: 100%; }
  .search-area .search-bar .search-bar-tablecell{
    display: table-cell;
    vertical-align: middle;
    padding: 0 16px;
  }

  .search-area .search-bar-tablecell h3{
    color: var(--hf-text);
    margin-bottom: 16px;
    font-weight: 800;
    font-size: 18px;
  }

  .search-area .search-bar-tablecell input[type="text"]{
    width: 100%;
    max-width: 420px;
    margin: 0 auto 18px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid #F28123;
    outline: none;
    text-align: center;
    color: var(--hf-text);
    padding: 12px 10px;
    font-size: 20px;
    font-weight: 800;
  }

  .search-area .search-bar-tablecell input::placeholder{
    color: rgba(255,255,255,.85);
  }

  .search-area .search-bar-tablecell button[type="submit"]{
    border: 0;
    background: #F28123;
    color: #111;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}


/* Mobile: give logo a small breathing room without affecting icons */
@media (max-width: 991.98px){
  .top-header-area .hf-mobile .site-logo{
    padding-inline-start: 25px; /* RTL: يمين | LTR: يسار */
  }
}

