/* Default: Desktop view */
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background-color: white;
  padding: 0 20px;
}

.mobile-header {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 40px;
}

.logo img {
  height: 70px;
  display: block;
  margin-top: 10px;
}

.main-nav ul {
  display: flex;           /* ⬅️ Forces horizontal layout */
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  color: #006400;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  text-decoration: none;
}
.main-nav ul li a:hover {
  background-color: #e6f2e6; /* light green highlight */
  border-radius: 6px;
  color: #009933;            /* brighter green */
  transition: all 0.3s ease;

}

.icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 0 0 auto;
  padding-right: 20px;
}


/* Right-aligned icons */
.icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  margin-right: 40px;
}

.icons a {
  color: #006400;
  font-size: 18px;
  text-decoration: none;
}



.nav-links {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #006400;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #009933;
}

.header-icons a {
  margin-left: 15px;
  color: #006400;
  font-size: 18px;
  transition: color 0.3s ease;
}

.header-icons a:hover {
  color: #009933;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: #006400;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .container {
    justify-content: space-between;
  }
}

/* Mobile view */

@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: block;
    background-color: #fff;
    padding: 10px 20px;
  }

 .mobile-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

/* Fixed width left & right to reserve space */
.header-left,
.header-right {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center takes remaining space */
.header-center {
  flex-grow: 1;
  text-align: center;
}

/* Logo size */
.header-center img {
  height: 40px;
  max-width: 100%;
}

/* Icon spacing */
.header-right a {
  margin-left: 12px;
  font-size: 20px;
  color: #333;
}

.header-left a i,
.header-right a i {
  font-size: 24px;
  color: #333;
}

/* Desktop Language Switch - aligned with icons */
.language-switch {
    display: inline-block;      /* inline with icons */
    margin-right: 12px;         /* spacing from other icons */
    font-size: 14px;
    vertical-align: middle;     /* aligns with icons vertically */
}

.language-switch a {
    text-decoration: none;
    color: #333;
    margin: 0 6px;              /* space between EN / VI */
}

.language-switch a:hover {
    text-decoration: underline;
}

/* Mobile Language Switch - centered under logo */
.mobile-lang-switch {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0;
    font-size: 14px;
}

.mobile-lang-switch a {
    text-decoration: none;
    color: #333;
    margin: 0 6px;
}

.mobile-lang-switch a:hover {
    text-decoration: underline;
}

/* Optional: adjust header icon alignment */
.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

