/* ==================================================== */
/* ===========  Global & Font Settings  =========== */
/* ==================================================== */

/* This sets the main font for the entire page to match the design */
body, .Header__nav, .Header__welcomeTitle, .Header__welcomeDescription, .zgh-category-list .zgh-category .zgh-category-name, .zgh-category-list .zgh-category .zgh-category-description {
    font-family: 'Cairo', sans-serif !important; /* Using Cairo font as it's common in modern Arabic designs */
}
.Header__bgColor, .Header__homeNavbarFixed .Header__searchSubCont, .Header__homeNavbarFixed .Header__searchLink{
    background-color: #feffff;
}
.Header__menuList, .Header__menuList a, #portal_tabHome, #portal_tabCases, #portal_tabCommunity, #portal_tabHome a, #portal_tabCases a, #portal_tabCommunity a{

}

@media (max-width: 48rem) {
    .Header__navOpen .Header__nav {
        background-color: white;
    }
    
  
      .Header__menuClick {
        display: none  !important;
    }
      .Header__navbtn {
        flex-direction: row;
    }
}

@media only screen and (max-width: 768px) {
    .LoginDetail__signin, .LoginDetail__signup {
        padding-top: 0px  !important;
        font-size: 1.125rem;
        text-align: center;
    }
   .Header__nav {
         opacity: 1 !important;
         flex-direction: column  !important;
         justify-content: start  !important;
         gap: 0px !important;
         display: contents !important ;
    }
}
.Header__logoPart {
    min-width: 0px !important ;
}

.Header__menuWrapper {
    box-shadow: 0 2px 73px rgb(140 140 140 / 38%) !important;
}

.Header__menu{
  background-color: black !important
}
.Header__menu:before{
  background-color: black !important
}
.Header__menu:after{
  background-color: black !important
}
.Header__welcomeTitle{
 color: #08308B !important;
}
.Header__nav{
  flex-direction: row-reverse;
}

.Header__link {
    font-weight: 400 !important;
}
[lang="ar"] .Header__nav{
	direction: ltr;
}

[lang="en"] .Header__nav{
	direction: rtl;
}
.Header__logo{
max-height: 37px;
 margin-top:1px !important;
}
.Header__navbtn{
  justify-content: center;
}
.signinLink{
color: #08308B;
}
.signinLink:hover{
color: #FF5100;
}
.Header__searchLink::before{
display:none !important;
}
.Header__searchLink::after{
display:none !important;
}
[lang="ar"] .SearchBox__searchpart input {
    padding-inline-start: 11px !important;
    padding-inline-end: 138px !important;
    direction: rtl;
    min-width: 800px;
    width: 490px;
}

[lang="en"].SearchBox__searchpart input {
    padding-inline-start: 11px !important;
    padding-inline-end: 138px !important;
    direction: ltr;
    min-width: 800px;
    width: 490px;
}

.Header__panelbtns { position: relative; z-index: 50; }

.SearchAutosuggest__searchSuggest {
  position: relative !important; 
}


.LocalePopup__localeLabel{
color: #08308B;
}
.LocalePopup__localeLabel:hover{
color: #FF5100;
}
 .Icon__icon{
color: #08308B;
}
.Icon__icon:hover{
color: #FF5100;
}
 
 
/* ==================================================== */
/* ============  Header & Navigation Bar  =========== */
/* ==================================================== */

/* Main header background color */
.Header__headerBg {
    background-color: #ffffff; /* White background for the top bar */
    border-bottom: 1px solid #e0e0e0; /* Light grey bottom border */
}

/* Blue background for the search area */
.Header__titleSearchWrapper {
    background-color: #1A3469; /* Dark Blue Color from the image */
}

/* Remove the default background color from this element */
.Header__bgColor {
    background-color: transparent !important;
}

/* Navigation menu link styles */
.Header__nav .Header__menuList {
    color: #1A3469 !important; /* Dark blue text color for nav links */
    font-weight: 600 !important; /* Bolder font */
    font-size: 16px !important;
    margin: 0 15px !important;
 
}

/* Style for the active/hovered navigation link */
.Header__nav .Header__menuList:hover, .Header__nav .Header__menuList.Header__active {
    color: #F36C21 !important; /* Orange color on hover */
    border-bottom: 2px solid #F36C21;
}

/* Company name text style */
.Header__logotxt {
    display: none; /* Hiding the company name text as it's not in the design */
}


/* ==================================================== */
/* ============  Welcome & Search Section  =========== */
/* ==================================================== */

/* "قاعدة المعرفة" title style */
.Header__welcomeTitle {
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    text-align: center;
}

/* Welcome description text style */
.Header__welcomeDescription {
    color: #f1f1f1 !important;
    font-size: 18px !important;
    text-align: center;
}

/* Search input box container */
.Header__searchBox .zgh-search-input {
    border-radius: 8px !important;
    border: 1px solid #ccc;
    height: 50px !important;
    font-size: 16px;
}

/* Search icon style */
.Header__searchBox .zgh-search-icon::before {
    font-size: 24px !important;
    color: #F36C21 !important; /* Orange search icon */
}


/* ==================================================== */
/* ============  Knowledge Base Categories  =========== */
/* ==================================================== */

/* Container for all category boxes */
.zgh-category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 25px;
    padding: 40px 0;
}

/* Individual category box style */
.zgh-category-list .zgh-category {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zgh-category-list .zgh-category:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); /* Soft shadow on hover */
}

/* Category icon style */
.zgh-category-list .zgh-category .zgh-category-icon {
    font-size: 48px !important;
    color: #F36C21 !important; /* Orange color for all icons */
    height: 60px;
    width: 60px;
    margin: 0 auto 15px auto;
    display: block;
    /* To use custom images instead of font icons, use this: */
    /* content: url('رابط_الأيقونة_هنا'); */
}

/* Category title style */
.zgh-category-list .zgh-category .zgh-category-name {
    color: #1A3469 !important; /* Dark blue title */
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* Category description style */
.zgh-category-list .zgh-category .zgh-category-description {
    color: #555 !important;
    font-size: 15px !important;
    min-height: 60px; /* Ensures consistent height */
}

/* "اقرأ المزيد" link style */
.zgh-category-list .zgh-category .zgh-category-articles-count {
    background-color: #F36C21 !important; /* Orange background */
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

/* Hiding the default article count text (e.g., "5 Articles") */
.zgh-category-list .zgh-category .zgh-category-articles-count .zgh-article-count {
    display: none;
}

/* Adding "اقرأ المزيد" text */
.zgh-category-list .zgh-category .zgh-category-articles-count::after {
    content: 'اقرأ المزيد';
    display: inline;
}
/* ===== Center the logo and nav exactly in the header ===== */
:root{ --mm-blue:#0d3b7e; --mm-orange:#ff5a00; }

.Header__menuWrapper{
  background:#fff !important;
  box-shadow:0 2px 73px rgba(0,0,0,.38);
}

/* خلي محتوى الهيدر عمودي ومتمركز */
.Header__menuBox{
  max-width:1220px;          /* ← اتصلحت من 120px */
  margin:0 auto;
  padding:18px 16px 10px;
  display:flex;
  flex-direction:column;   
  align-items:center;      
  gap:12px;
}

/* اللوجو في النص */
.Header__logoimg{ display:block; }
.Header__logo{ height:64px; display:block; margin:0 auto; }

/* غلاف المنيو */
.Header__navbtn{ width:100%; }

/* القايمة متوسّطة تحت اللوجو */
.Header__nav{
  list-style:none; margin:0; padding:0;
  display:flex; justify-content:center; align-items:center;
  gap:40px; flex-wrap:wrap;
}

/* ألوان الروابط */
 .Header__menuList a{
  color:var(--mm-blue) !important;
  font-weight:800;
  text-decoration:none !important;
  position:relative;
  padding-bottom:8px;
  cursor:pointer;
}

/* التاب النشط: قاعدة المعارف */
#portal_tabSolutions, #portal_tabSolutions a{ color:var(--mm-orange) !important; }
#portal_tabSolutions::after{
  content:""; position:absolute; left:50%; transform:translateX(-50%);
  bottom:0; width:78px; height:4px; background:var(--mm-orange); border-radius:2px;
}

/* Hover */
.Header__menuList:hover, .Header__menuList:hover a{ color:var(--mm-orange) !important; }

/* Responsive */
@media (max-width:720px){
  .Header__logo{ height:52px; }
  .Header__nav{ gap:22px; }
  #portal_tabSolutions::after{ width:56px; }
}

/************** شريط البحث **************/
.Header__searchLink{
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 21px rgba(0,0,0,.27);
  min-height:74px;
  display:flex;
  align-items:center;
  padding:0 !important;
}

/* البرتقالي + أيقونة البحث */
.Header__searchLink::before{
  content:""; position:absolute; inset-inline-start:0; top:0;
  width:232px; height:100%;
  background:#ff5a00; z-index:1;
}
.Header__searchLink::after{
  content:""; position:absolute; inset-inline-start:0; top:0;
  width:232px; height:100%;
  background-repeat:no-repeat; background-position:center; background-size:36px 36px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M10 2a8 8 0 105.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/></svg>");
  z-index:2;
}

.Header__searchBox{
  background: transparent !important;
  box-shadow:none !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  width:100%;
  min-height:inherit;
  display:flex;
  align-items:center;
  position:relative;
  z-index:3;
}

.Header__searchLink input[type="search"],
.Header__searchLink input[type="text"],
.Header__searchBox input[type="search"],
.Header__searchBox input[type="text"]{
  width:100%; border:0 !important; outline:0 !important; background:transparent !important;
  font-size:22px; color:#333;
  padding:0 28px;
  padding-inline-start:calc(232px + 16px);
  min-height:166px;
  z-index:4;
  box-shadow:none !important;
}
.Header__searchLink input::placeholder{ color:#c4c4c4; }

/* زر submit */
.Header__searchLink input[type="submit"],
.Header__searchLink button[type="submit"]{
  height:44px; padding:0 16px; margin-inline-end:16px;
  border-radius:10px; border:1px solid #ff5a00; background:#fff; color:#ff5a00;
  font-weight:800; cursor:pointer; transition:background .2s,color .2s,transform .1s;
  z-index:4;
}
.Header__searchLink input[type="submit"]:hover,
.Header__searchLink button[type="submit"]:hover{
  background:#ff5a00; color:#fff; transform:translateY(-1px);
}

/* شيل الخلفية الرمادي تحت السيرش */
.Header__titleSearchWrapper,
.Header__banneralt,
.Header__titleSearchBox {
  background:transparent !important;
  box-shadow:none !important;
}
/****************  NAV COLORS (base blue / hover+active orange)  ****************/
/* ازرق افتراضي لكل الروابط */
.Header__menuList,
.Header__menuList a {
  color:#08308B !important;                /* الأزرق */
  text-decoration:none !important;
  position:relative;
  padding-bottom:8px;
  font-weight:800;
  transition:color .2s ease, opacity .2s ease;
  border-bottom:none !important;           /* نلغي أي بوردر قديم */
}

/* شريط Underline واحد فقط نتحكم فيه بالـ opacity */
.Header__menuList::after {
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:78px;                               /* عدّلها لو عايز أقصر */
  height:3px;
  background:#FF5100;
  border-radius:2px;
  opacity:0;                                /* مخفي افتراضيًا */
  transition:opacity .2s ease;
}

/* Hover → برتقالي + يظهر underline */
.Header__menuList:hover,
.Header__menuList:hover a {
  color:#FF5100 !important;
}
.Header__menuList:hover::after { opacity:1; }

/* Active (Zoho أحيانًا يستخدم .Header__active أو آي دي التاب) */
.Header__menuList.Header__active,
.Header__menuList.Header__active a,
#portal_tabSolutions,
#portal_tabSolutions a {
  color:#FF5100 !important;
}
.Header__menuList.Header__active::after,
#portal_tabSolutions::after { opacity:1; }

/* لو فيه قواعد سابقة كانت بتحط بوردر سفلي في الهوفر */
.Header__nav .Header__menuList:hover { border-bottom:none !important; }

/****************  SEARCH HEIGHT FIX + ICON CENTER  ****************/
/* خليه أصغر وموحّد */
.Header__searchLink { 
  min-height: 90px;                           /* ارتفاع الصندوق الأبيض */
  border-radius: 22px;
}

/* خلي البرتقالي أرفع وعرضه 120px */
.Header__searchLink::before,
.Header__searchLink::after { width:120px; }

.Header__searchLink::after {
  background-size:24px 24px;                  /* حجم أيقونة العدسة */
}

/* خلّي الـ input ياخد نفس الارتفاع بالضبط */
.Header__searchLink input[type="search"],
.Header__searchLink input[type="text"],
.Header__searchBox input[type="search"],
.Header__searchBox input[type="text"]{
  min-height: inherit !important;             /* بدل 166px */
  font-size:18px;
  padding:0 20px;
  padding-inline-start: calc(120px + 14px);   /* مساحة الجزء البرتقالي */
}
/* Links: تسجيل الدخول + العربية + أي عنصر في الهيدر */
.Header__menuList,
.Header__menuList a,
#portal_tabHome,
#portal_tabCases,
#portal_tabCommunity,
#portal_tabHome a,
#portal_tabCases a,
#portal_tabCommunity a {
  color: #08308B !important;      /* افتراضي أزرق */
  text-decoration: none !important;
  transition: color .2s ease;
}

/* Hover / Focus */
.Header__menuList:hover,
.Header__menuList:hover a,
#portal_tabHome:hover,
#portal_tabCases:hover,
#portal_tabCommunity:hover,
#portal_tabHome:hover a,
#portal_tabCases:hover a,
#portal_tabCommunity:hover a {
  color: #FF5100 !important;      /* برتقالي عند الوقوف */
}

/* لو Zoho بيغير اللون وقت focus أو active */
.Header__menuList:focus,
.Header__menuList:focus a,
.Header__menuList:active,
.Header__menuList:active a {
  color: #FF5100 !important;
}
/* ==================================================== */
/* ====== Login & Language Link Color Override ====== */
/* ==================================================== */

/*
  This specifically targets the Login/Logout and Language Preference links.
  These elements often have default Zoho styles that need to be overridden.
*/

/* Default State: Blue */
.Header__nav .zgh-login a,
.Header__nav .zgh-logout a,
.Header__nav .zgh-user-preference a {
    color: #08308B !important; /* Your desired BLUE color */
}

/* Hover State: Orange */
.Header__nav .zgh-login:hover a,
.Header__nav .zgh-logout:hover a,
.Header__nav .zgh-user-preference:hover a {
    color: #FF5100 !important; /* Your desired ORANGE color */
}

/* Also apply the orange color to the globe icon on hover */
.Header__nav .zgh-user-preference:hover .zgh-globe-icon::before {
    color: #FF5100 !important;
}
/* ===== Fix: make welcome title/desc visible on transparent bg ===== */
.Header__welcomeTitle {
  color: #08308B !important;   /* أزرق واضح */
}

.Header__welcomeDescription {
  color: #44515c !important;   /* رمادي غامق مريح للقراءة */
}

