/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    overflow-x: hidden;
  }
  
  body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    padding-top: 70px;
  }
  
  .navbar {
    background-color: #0b175f;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
    position: fixed; /* Add this */
    top: 0; /* Add this */
    left: 0; /* Add this */
    right: 0; /* Add this */
    z-index: 1000; /* Ensure navbar stays above other content */
}

@media (max-width: 768px) {
  .nav-links {
      top: 70px; /* This should match your navbar height */
  }
}
.logo {
    height: 70%;
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.logo img {
    height: 30px; /* Slightly larger for better visibility */
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Adjust logo position for larger screens */
@media (min-width: 768px) {
    .logo {
        padding-right: 40px; /* More padding on desktop */
    }
    .logo img {
        height: 35px; /* Slightly larger on desktop */
    }
}
  .hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    z-index: 2;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
  }
  
  .nav-links li {
    position: relative;
    margin-left: 20px;
  }
  
  .nav-links li:last-child {
    margin-left: 0;
  }
  
  .nav-links a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
  }
  
  .nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    height: 100%;
    width: 0;
    background-color: #1a2a80;
    z-index: -1;
    transition: all 0.4s ease;
    transform: translateX(50%);
    border-radius: 5px;
  }
  
  .nav-links a:hover::before {
    width: 100%;
    right: 0;
    transform: translateX(0);
  }
  
  .nav-links a:hover {
    color: #ccc;
  }
  
  /* Dropdown Link Style */
  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between; /* space between link and arrow */
    cursor: pointer;
  }
  .dropdown-toggle {
    direction: rtl;
  }

  .dropdown-toggle a {
    text-decoration: none;
    color: inherit;
  }

  .arrow {
    font-size: 0.8em;
    margin: 0 8px; /* adjust spacing */
    transition: transform 0.3s ease;
    cursor: pointer;
  }

  .dropdown.open .arrow {
    transform: rotate(180deg);
  }
  
  /* Dropdown Menu */
  .dropdown-menu {
    display: block;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0b175f;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
  }
  
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  .dropdown-menu li {
    width: 100%;
  }
  
  .dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-align: right;
    font-size: 0.85rem;
    transition: all 0.3s ease;
  }
  
  /* Dropdown item indentation */
  .dropdown-menu a {
    padding-right: 32px; /* Indentation */
  }
  
  .dropdown-menu a:hover {
    background-color: #1f2a8a;
    color: #ccc;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .navbar {
      justify-content: space-between; /* Align items properly */
    }
  
    .logo {
      flex: 1;
      text-align: center;
      padding: 0;
    }
    .nav-links {
      display: none;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      background-color: rgba(11, 23, 95, 0.95); /* solid background */
      position: absolute;
      top: 70px;
      right: 0;
      padding: 10px 0;
      z-index: 9999;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .nav-links li {
      margin: 10px 0; /* Equal distance between links */
      width: 100%;
      
    }
  
    .nav-links a {
      width: 100%;
      padding: 12px 20px;
    }
  
    .dropdown-menu {
      position: relative;
      top: 0;
      box-shadow: none;
      border-radius: 0;
      width: 100%;
      display: none;
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }
  
    .dropdown-menu li{
      list-style: none;
    }
  
    li::marker {
      display: none;
    }
  
    .dropdown.open .dropdown-menu {
      display: block;
    }
  
    .hamburger {
      display: block;
      z-index: 2; /* Ensure it’s clickable */
    }
    .arrow {
      font-size: 2em;
    }
  }

  /************************************************************************/
.site-footer {
    background-color: #0b175f;
    color: #fff;
    padding: 60px 20px 20px;
    font-family: 'Cairo', sans-serif;
    
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
  }
  
  .footer-column {
    flex: 1 1 220px;
    margin: 20px;
  }
  
  .footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  .footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .footer-links,
  .footer-contact {
    list-style: none;
    padding: 0;
  }
  
  .footer-links li,
  .footer-contact li {
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  
  .footer-links a,
  .footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-links a:hover,
  .footer-contact a:hover {
    color: #ffc107;
  }
  
  .social-icons {
    display: flex;
    gap: 10px;
  }
  
  .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #0b175f;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .social-icons a:hover {
    background-color: #ffc107;
    color: #fff;
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 0.9rem;
  }
  
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-column {
      margin: 10px 0;
    }
  
    .social-icons {
      justify-content: center;
    }
  }
  