
.whatsapp-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid #b3ab00; /* لون ذهبي خردلي */
  color: #b3ab00;
  font-size: 22px;
  bottom: 20px;
  z-index: 9999;
  transition: all 0.3s ease;
  bottom: 70px;
}
.whatsapp-button:hover {
  background-color: #b3ab00;
  color: white;
}


.tobar-shape {
  border-radius: 0 0 0 50px;
  background-color: #525252;
  height: 40px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

/* ✅ لما تصير شفافة */
.transparent .tobar-shape {
  background-color: transparent !important;
}


/* تخصيصات الزر العائم لنسخة الهاتف*/
.mobile-contact-menu {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

.contact-toggle-btn {
  background-color: #A5AA03;
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  
}

html[dir="rtl"] .contact-toggle-btn {
  left: auto;
  right: 20px;
}
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 9999;
}

html[dir="rtl"] .contact-options {
  left: auto;
  right: 20px;
}
.contact-options.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #333;
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-item i {
  font-size: 18px;
}

/* ألوان مخصصة */
.green { background-color: #28a745; }
.whatsapp { background-color: #25d366; }
.blue { background-color: #007bff; }
.yellow { background-color: #ffc107; }




.header-wrapper{
  position: sticky;
    top: 0;
    z-index: 1000;
  background-color: #F3F3F4;
  transition: background-color 0.3s ease, top 0.4s ease-in-out;
  
}

.header-wrapper.transparent {
  background-color: transparent !important;
  transition: background-color 0.4s ease;
}


  
  /* عند الإخفاء */
  .header-wrapper.hidden {
    top: -160px; /* أو حسب ارتفاع التوب+الناف مع بعض */
  }

.header-wrapper .top-bar{
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.4s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/********************************** ****************************/
.smart-topbar{
  position: sticky; /* ✅ خليها sticky بدل relative */
  top: 0;
  z-index: 1050;
  transition: top 0.4s ease;
 
  height: 40px;
}

.topbar-btn{
  margin: 5px;
  text-decoration: none;
  border-radius: 10px;
  color: #B5A925;
  padding: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.topbar-btn:hover{
  transform: scale(1.1)!important;
  border-radius: 10px;
  color: white;
  padding: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}


.topbar-soc{
    margin: 10px;
  color: white;
  border-radius: 10px;
  padding: 5px 10px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.topbar-soc:hover{
    margin: 10px;
  color: white;
  border-radius: 10px;
  padding: 5px 10px ;
  background-color: #A5AA03;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}


.left-side a{
    color: white;
  margin-left: 25px;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  
}

.left-side a:hover{
    color: #DC1B1B;
    background: white;
    border-radius: 20px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/**********************************الهيدر التاني***************************************/

.navbar {
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: top 0.4s ease-in-out;
    font-family: 'Poppins', sans-serif;
    padding: 0;
    height: 70px;
    
}
  
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
  padding: 0;
    font-family: 'Poppins', sans-serif;
}
.navbar .menu-item {
    position: relative;
    margin: 0 15px;
}
.navbar .menu-item a {
    font-size: 18px;
    font-weight: 500;
    color: #B7B7B6;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    text-transform: capitalize;
    transition: color 0.3s ease;
    white-space: nowrap; /* ✅ يمنع انقسام النص لسطرين */
}
.navbar .submenu {
  
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 10px 0;
    background-color: #525252;
    border-radius: 8px;
    z-index: 999;
  
    /* ✅ التأثيرات العصرية */
    opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: 
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.4s ease;
    display: block;
  }
  
  
  /* عند التفعيل */
.navbar li:hover > .submenu,
.navbar li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.navbar .submenu li {
    padding: 5px 10px;
    display: block;
}
.navbar .submenu li a {
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    color: #A5AA03;
  padding: 10px 15px;
  display: block;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
  
.navbar .submenu li a:hover {
  
  background-color: #A5AA03;
  color: white;
  transform: translateY(-10px) scale(0.95);
  font-weight: 500;
}

/* ✅ عكس الاتجاه لما اللغة RTL */
html[dir="rtl"] .navbar .submenu li a:hover {
  transform: translateY(-10px) scale(0.95); /* أو translateX لو بتحب يمين/يسار */
}

.navbar .menu-item:hover .submenu {
    opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.navbar ul a:hover {
    color: #A5AA03;
}
.navbar ul a {
    text-decoration: none;
    padding-left: 40px;
    font-size: 20px;
    text-transform: capitalize;
    font-family: 'Poppins', sans-serif;
}
.logo {
    color: black;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    max-height: 60px;
}



  
  .nav-links {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex: 1;
  }
  

/* 💡 تأثير خط أنيق تحت الرابط */
.navbar .nav-link {
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.navbar .nav-link.active1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: #A5AA03;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  animation: underline-grow 0.4s forwards;
}

@keyframes underline-grow {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}


/* زر الهامبرغر واللوغو */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(to right, #ffffff, #f0f4ff);

  }
  
  
  .mobile-logo {
    height: 45px;
  }
  
  /* زر الهامبرغر */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background-color:  #A5AA03;
    ;
    border-radius: 2px;
  }
  
  /* ✅ قائمة الجوال الكاملة */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px); /* 💎 البلور */
    background: rgba(0, 0, 0, 0.4); /* تغميق خلفي */
    z-index: 9999;
  }
  
  .mobile-menu-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .mobile-menu-content {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* توزيع علوي وسفلي */
    height: 90%;
    position: relative;
  }
  /* ✅ التوب بار داخل القائمة */
  .topbar-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
  }
  
  .topbar-mobile a {
    color: #264291;
    text-decoration: none;
  }
  
  .topbar-links {
    display: flex;
    gap: 20px;
  }
  
  .topbar-links a {
    color: #264291;
    font-weight: 500;
    text-decoration: none;
  }
  


  /* ✅ الروابط الرئيسية */
 
  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
  }
  
  .mobile-nav-links li {
    list-style: none;
  }
  
  /* الروابط الرئيسية */
  .mobile-nav-links > li > a,
  .accordion-toggle {
    font-size: 18px;
    font-weight: 700;
    color: #B7B7B6;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
  }
  
  .mobile-nav-links > li > a:hover,
  .accordion-toggle:hover {
    color: #A5AA03;
  }
  
  /* ✅ active */
  .mobile-nav-links > li > a.active1,
  .accordion-toggle.active1 {
    color: #A5AA03;
    position: relative;
  }
  
  .mobile-nav-links > li > a.active1::after,
  .accordion-toggle.active1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color:#A5AA03;
  }
  
  /* السهم */
  .accordion-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    margin-left: 8px;
  }
  
  .has-submenu.open .accordion-toggle .arrow {
    transform: rotate(90deg);
  }
  
  /* القوائم الفرعية */
  .mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    margin-top: 8px;
    list-style: none;
  }
  
  /* ✅ لما تكون الصفحة بالعربي */
html[dir="rtl"] .mobile-submenu {
  padding-left: 0;
  padding-right: 15px;
  text-align: right;
}

/* اختياري: السهم يشير لليسار بدل اليمين */
html[dir="rtl"] .accordion-toggle .arrow {
  transform: rotate(180deg); /* أو استخدم رمز ◀ بدل ▶ */
  margin-right: 8px;
  margin-left: 0;
}

  .has-submenu.open .mobile-submenu {
    display: flex;
  }
  
  .mobile-submenu li a {
    font-size: 16px;
    font-weight: 400;
    color: #B7B7B6;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .mobile-submenu li a:hover {
    color: #A5AA03;
  }
  

  /* ✅ السوشيال ميديا بأسفل النافذة */
  .mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 20px;
  }
  
  .mobile-social a {
    color: #A5AA03;
    transition: 0.3s;
  }
  
  .mobile-social a:hover {
    color: #626262;
  }
  
  .mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #A5AA03;
    cursor: pointer;
    margin-left: auto;
  }
  

  

  /* ✅ إخفاء عناصر الديسكتوب على الشاشات الصغيرة */
@media (max-width: 991px) {
    .navbar ,
    .smart-topbar {
      display: none !important;
    }
  
    .header-wrapper .top-bar {
      display: none !important;
    }
  }
  @media (min-width: 992px) {
    .mobile-header,
    .mobile-menu-overlay {
      display: none !important;
    }
  }
  @media (max-width: 991px) {
    
  }
  

  /* ✅ لضبط تموضع اللوغو بين التوب بار والنافبار */
.logo_brand {
  position: absolute;
  top: calc(10px / 2 ); /* 40px هو ارتفاع التوب بار */
  transform: translateY(-50%);
  left: 20px; /* أو حسب ما يناسب التنسيق */
  z-index: 1051;
}

/* تأكد أن الـ container فيه position: relative */
.smart-navbar .container-fluid {
  position: relative;
}
