/* header.css - Fixed Version */
:root {
  --blue: #003366;
  --gold: #FFB800;
  --text: #0e1b2a;
  --muted: #6b7a90;
  --bg: #ffffff;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Enhanced Header Styles - Isolated */
.site-header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  backdrop-filter: blur(15px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.header-brand:hover {
  transform: translateY(-1px);
}

.site-logo img {
  height: 40px;
  display: inline-block;
  transition: var(--transition);
}

.site-logo:hover img {
  transform: scale(1.05);
}

.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

/* Navigation Styles */
.nav {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  background: rgba(255, 184, 0, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link.submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.has-submenu:hover .dropdown-arrow,
.has-submenu button[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Submenu Styles */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
  border: 1px solid rgba(0,0,0,0.05);
}

.has-submenu:hover .submenu,
.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-link {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.submenu-link:hover,
.submenu-link.active {
  background: rgba(255, 184, 0, 0.1);
  color: var(--gold);
  border-left-color: var(--gold);
}

/* Language & Admin Styles */
.lang-group .submenu {
  min-width: 150px;
}

.lang .submenu-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-current {
  font-weight: 600;
}

.admin-btn, .login-btn {
  background: var(--gold);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.3);
}

.admin-btn:hover, .login-btn:hover {
  background: #e6a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-overlay.open {
    display: block;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    justify-content: space-between;
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .has-submenu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border: none;
  }

  .has-submenu.open .submenu {
    max-height: 200px;
  }

  .submenu-link {
    padding: 0.75rem 1rem 0.75rem 2rem;
    border-left: none;
    border-bottom: 1px solid #e8e8e8;
  }

  .submenu-link:last-child {
    border-bottom: none;
  }

  .lang-group .submenu {
    max-height: 120px;
  }

  .admin-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
  }

  .admin-btn, .login-btn {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.75rem 0;
  }

  .site-name {
    font-size: 1.25rem;
  }

  .nav-links {
    width: 280px;
  }
}

/* Main content padding to account for fixed header */
.site-header + main {
  padding-top: 80px;
}