/* Header Styles */
:root {
  --header-bg: #0a0a2a;
  /* Dark Blue */
  --header-text: #ffffff;
  --header-accent: #00B4E5;
  /* Light Blue for accents */
  --header-height: 80px;
}

.header {
  color: var(--header-text);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 97;
  padding: 30px 0 10px;
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

/* Left Navigation */
.desktop-nav {
  display: block;
}

.menu-ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.menu-ul li a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  text-transform: capitalize;
  transition: color 0.3s ease;
  /* Assuming font is available */
}

.menu-ul li.current-menu-item a{
  color: var(--header-accent);
}

.menu-ul li a:hover {
  color: var(--header-accent);
}

/* Logo */
.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--header-text);
}

.logo img {
  height: 71px;
  /* Adjust based on actual logo */
  width: auto;
  margin-bottom: 5px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Poppins", sans-serif;
}

/* Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}



.header-actions .icon-btn:hover img {
  filter: brightness(0) saturate(100%) invert(49%) sepia(100%) saturate(2238%) hue-rotate(158deg) brightness(101%) contrast(101%);
}

.lang-switch {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
  margin-right: 10px;
}

.icon-btn {
  color: var(--header-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover {
  color: var(--header-accent);
}

.search-trigger {
  cursor: pointer;
  pointer-events: auto;
}

.search-trigger img {
  pointer-events: none;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--header-text);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 95px;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #1b1747;
  padding: 20px;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;

}

.mobile-menu.menu_active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 15px;
  text-align: center;
}

.mobile-nav li a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: block;
  padding: 10px;
}


.home.logout-page  .header {
  position: static;
  background-color: #1c1847;
}
/* Responsive */
@media (max-width: 991px) {

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .logo-container {
    position: static;
    transform: none;
    margin-right: auto;
    /* Push to left if needed, or keep centered */
    flex-grow: 1;
    display: flex;
    justify-content: center;
    /* Keep centered */
  }

  /* If we want logo left aligned on mobile:
    .logo-container {
        margin-right: auto;
        justify-content: flex-start;
    }
    .logo { align-items: flex-start; }
    */
}

/* Toggle Animation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.home .header{
    position: fixed;
  top: 0;
  left: 0;
}

