* {
    
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  
  
}

nav {
    background-color: #1c1c2cb7; /* كحلي غامق */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}


nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s, color 0.3s;
    border-radius: 6px;
}

nav a:hover {
    background-color: #d10f1f; /* أحمر اللوغو */
    color: #ffffff;
}

.logo:hover{
    background-color: #d10f1f00; /* أحمر اللوغو */
}
/* القوائم المنسدلة */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #343646; /* رمادي متوسط */
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li a {
    padding: 10px 15px;
    color: #f1f1f1;
}

nav ul li ul li a:hover {
    background-color: #d10f1f;
    color: #fff;
}

/* القوائم الفرعية داخل القوائم الفرعية (مستويات أعمق) */
nav ul li ul li {
position: relative;
}

nav ul li ul li ul {
top: 0;
left: 100%;
margin-left: 2px;
}



.language-switch {
    display: flex;
    gap: 10px;
}

.language-switch a {
    color: #ccc;
    font-size: 14px;
    padding: 6px 10px;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.3s;
}

.language-switch a:hover {
    background-color: #d10f1f;
    color: white;
    border-color: #d10f1f;
}

.nav-links a.active {
    background-color: #d9534f;
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
}

.nav-links.active {
  background-color: #d9534f;
  color: #fff;
  border-radius: 5px;
  padding: 5px 10px;
}


.custom-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr; /* إذا كانت واجهتك عربية */
  }
  
  .custom-navbar .box {
    flex-shrink: 0;
  }
  
  .custom-navbar .box-1 {
    flex: 1;
    text-align: right;
  }
  
  .custom-navbar .box-2 {
    flex: 3;
    text-align: center;
  }
  
  .custom-navbar .box-3 {
    flex: 1;
    justify-content: flex-start;
    text-align: left;
  }
  
  .navbar-nav {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  
  .navbar-nav .nav-item .nav-link {
    color: white;
  }
  
  .top-bar {
    background-color: #1c1c2cf7;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1051;
    display: flex;
    align-items: center;
    justify-content: space-between; 
  }

  .dropdown-menu-custom{
    color: black !important ;
  }

  .top-bar a {
    color: #ffffff ;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s, color 0.3s;
    border-radius: 6px;
  }
  
  .top-bar a:hover {
    background-color: #d10f1f;
    color: #ffffff;
  }
  .top-bar-left a i {
    color: #ffffff !important;
    font-size: 18px;
  }

  .btn-danger {
    background-color: #E0130A;
    border: none;
    font-weight: bold;
  }
  
  .btn-danger:hover {
    background-color: #B00F08;
  }
  

  .top-bar .btn-danger {
    padding: 8px 20px;
    font-weight: bold;
  }
  
  .nav-hidden {
    top: -100px; /* يخفي النافبار لفوق */
  }
  

  .contact-toggle {
    position: fixed;
    bottom: 100px;
    right: 15px;
    z-index: 1050;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
  }
  
  .contact-toggle button {
    background-color: #d10f1f;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .contact-toggle button.close::before {
    content: "✖";
    font-size: 22px;
  }
  
  .contact-options {
    display: none;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    transition: all 0.3s ease-in-out;
  }
  
  .contact-options a {
    background-color: #2c2c3c;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
  }
  
  .contact-options a:hover {
    background-color: #d10f1f;
    transform: scale(1.1);
  }
  
  .contact-toggle.active .contact-options {
    display: flex;
  }


  /* sticky-contact.css */
/* ✅ تنسيق أزرار التواصل على الشاشات الكبيرة */
@media (min-width: 769px) {
  .sticky-contact {
    position: fixed;
    top: 40%;
    left: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sticky-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #2B2D42;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .sticky-contact a:hover {
    background-color: #E0130A;
    color: #fff;
  }
}


/*اخفاء النافبار */

.smart-navbar {
  position: sticky;
  top: 64px !important;
  z-index: 1030;
  transition: top 0.4s ease;
  direction: ltr;
}



.smart-topbar {
  position: sticky; /* ✅ خليها sticky بدل relative */
  top: 0;
  z-index: 1050;
  transition: top 0.4s ease;
}

.navbar-hidden {
  top: -150px !important;
}



/* إخفاء Top Bar الأصلي على الموبايل */
@media (max-width: 768px) {

  body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    position: relative;
  }
  .navbar{
    padding: 0 !important;
  }

  .top-bar {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .smart-navbar {
    top: 0 !important;
  }

  .navbar-toggler {
    width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
    border-color: #d10f1f !important;
    background-color: #e9535b;
    position: fixed;
    top: 10px;
    right: 10px; /* صار الزر على اليمين */
    z-index: 1055;
  }

  .navbar-brand {
    position: fixed;
    top: 10px;
    left: 10px; /* اللوجو على اليسار */
    z-index: 1054;
  }

  .navbar-brand img {
    width: 100px !important;
    height: auto !important;
  }

  .btn-danger {
    background-color: #d10f1f !important; /* أحمر اللوغو */
    border: none;
    font-weight: bold;
  }

  .btn-danger:hover {
    background-color: #b00d16 !important;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    background-color: #050d3f94; /* نفس لون النافبار */
    padding: 20px 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(17, 20, 56, 0.3);
  }

  .navbar-collapse .nav-link {
    color: #ffffff !important;
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link:focus {
    color: #d10f1f !important; /* لون أحمر اللوغو عند الهوفر */
    background-color: transparent;
  }

  .sticky-contact {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sticky-contact a {
    background-color: #2c2c3c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
  }

  .sticky-contact a:hover {
    background-color: #d10f1f;
    transform: scale(1.1);
  }

  
}
