/* Translate button */
/* --- */
.translate-btn {
  top: 120px;
  background-color: #ffffff;
  color: #003272;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.language-en .translate-btn {
  right: 30px;
  margin-left: 50px;
}

/* Button on left for Arabic */
body:not(.language-en) .translate-btn {
  left: 30px;
  margin-right: 50px;
}

.translate-btn:hover {
  background-color: #cecece;
}

.translate-btn.scrolled {
  top: 10px;
}

@media (max-width: 768px) {
  /* Translate Button */
  .translate-btn {
    top: 100px;
    padding: 6px 10px;
    margin: 0 !important;
    font-size: 16px;
  }
}

/* Header and navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5%;
  position: relative;
}
.logo img {
  height: 80px;
}
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin: 0 15px;
  padding: 5px 15px;
}

.nav-links a {
  font-size: 18px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 8px 12px;
  border-radius: 12px;
  display: inline-block;
}

/* Nav hover effect */
.nav-links li > a:hover {
  background: rgba(0, 50, 114, 0.08);
  color: #003272;
}

/* Keep CTA (inline-styled li) unchanged on hover */
.nav-links li[style] > a:hover {
  background: transparent;
}

.right-images img {
  height: 50px;
  margin-left: 10px;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 2px 0;
}

/* Products dropdown (desktop + mobile) */
.nav-dropdown {
  position: relative;
}

.nav-chevron {
  font-size: 12px;
  margin-left: 6px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  padding: 10px 0;
  list-style: none;
  display: none;
  z-index: 999;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-weight: 700;
  color: #003272;
  font-size: 16px;
}

.dropdown-menu a:hover {
  background: rgba(0, 50, 114, 0.08);
}

@media screen and (min-width: 769px) {
  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .logo img {
    width: 80px;
    height: 80px;
  }
  .navbar {
    padding: 10px 15px;
  }
  .nav-links {
    z-index: 99;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background-color: #f8f8f8;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
  }
  .right-images {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* dropdown behavior on mobile menu */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    display: none;
  }
  .dropdown-menu a {
    color: #333;
    padding: 10px 0;
  }
  .dropdown-menu.open {
    display: block;
  }
}

/* Footer */
.footer {
  background-color: #003272;
  color: #fff;
  padding: 40px 0;
  font-family: 'Cairo', sans-serif;
}

.footer img {
  width: 150px;
}

.footer-content {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.footer-section {
  margin: 10px;
  min-width: 200px;
}

.footer-section .contact-text {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ddd;
  text-decoration: none;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  margin-left: 3rem;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  margin-top: 80px;
  border-top: 1px solid #ffffff33;
  font-size: 0.8rem;
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin: 10px 20px;
  }
  .footer img {
    width: 150px;
  }
  .footer-section h3 {
    font-size: 1rem;
  }
  .footer-section p,
  .footer-section a {
    font-size: 0.8rem;
  }
  .social-icons a {
    margin-left: 0;
    font-size: 1rem;
    margin-right: 2rem;
  }
  .copyright {
    font-size: 0.8rem;
  }
  .social-icons {
    justify-content: start;
  }
}


/* Keep footer full width */
.footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}


/* Products dropdown content left-aligned */
/* Products dropdown content left-aligned */
.nav-dropdown .dropdown-menu,
.nav-dropdown .dropdown-menu li,
.nav-dropdown .dropdown-menu a {
  text-align: left;
}

@media screen and (max-width: 768px) {
  .nav-dropdown .dropdown-menu a {
    text-align: left;
    padding-left: 14px;
  }
}
