/* NAVIGATION */
.nav-container {
  position: sticky;
  top: 0;
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--gray-light);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  align-items: center;
  padding-top: 7.5px;
  padding-bottom: 7.5px;
  margin-left: 8%;
  margin-right: 8%;
}

.brand-logo {
  height: 55px;
}

.brand-logo img {
  height: 100%;
}

.nav-items {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  margin-left: 2.5rem;
  gap: 2.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-list ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 3rem;
  text-align: justify;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-dark);
  padding: 0;
  font-size: var(--font-size-regular); /* Adjust font size */
  font-weight: var(--typo-regular);
  transition: background-color 0.3s ease; /* Smooth transitions */
}

.nav-link:hover {
  text-decoration: none;
  color: var(--primary-dark);
}

.nav-mobile-link {
  font-weight: 300;
}

.focus-button {
  text-decoration: none;
  background-color: var(--primary);
  color: var(--gray-light);
  font-size: var(--font-size-regular); /* Adjust font size */
  font-weight: var(--typo-regular);
  padding: 0.2rem 0.8rem 0.2rem 0.8rem;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.focus-button:hover {
  background-color: var(--primary);
}

/* LANGUAGE DROPDOWN */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-button {
  border: none;
  cursor: pointer;
  display: flex; /* Use Flexbox for alignment */
  align-items: center;
  gap: 7px; /* Space between text and image */
  background-color: var(--primary-light);
  font-family: "Kanit", serif;
  font-size: var(--font-size-regular); /* Adjust font size */
  font-weight: var(--typo-regular);
  font-style: normal;
  color: var(--primary-dark);
}

.arrow-icon {
  height: 12px;
  width: 12px;
  transition: transform 0.3s ease; /* Smooth transition for rotation */
}

.dropdown:hover .arrow-icon {
  transform: rotate(180deg); /* Flip the arrow */
}

.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%; /* Below the button */
  left: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0.8rem 0.5rem 0.8rem;
  margin: 0;
  z-index: 1000;
  background-color: var(--white);

  p {
    margin: 0;
  }

}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  font-size: var(--font-size-regular); /* Adjust font size */
  font-weight: var(--typo-regular);
  text-decoration: none;
  color: var(--primary-dark);
}

.dropdown-menu li a:hover {
  background-color: var(--gray-light);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 30px; /* Adjust font size */
  cursor: pointer;
}

/* Mobile View */
@media (max-width: 1200px) {
  .nav-items {
    display: none; /* Hide items by default */
    position: absolute;
    top: 4.35rem;
    width: 100%;
    padding: 10px;
    right: 0;
  }

  .mobile-menu.active {
    display: flex; /* Show items when menu is toggled */
    flex-direction: column;
  }

  .nav-items li {
    margin: 10px 0px;
  }

  .hamburger {
    display: flex; /* Show hamburger icon */
    align-items: center;
    justify-content: center;
  }

  .nav-right{
    margin-left: 15%;
    margin-right: 12%;
    margin-top: 0.5rem;
  }

  .nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-left: 12%;
    margin-right: 12%;
  }

  .nav-list ul {
    flex-direction: column;
    gap: 0;
  }

  nav {
    justify-content: space-between;
  }
}

/* Mobile Menu Styling */
.mobile-menu {
  background-color: var(--gray-light);
  padding: 10px;
  display: none; /* Hide items by default */
  position: absolute;
  top: 4.35rem;
  width: 100%;
  right: 0;
  height: 100vh;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: var(--gray-light);
  margin-left: 10%;
  margin-right: 7%;
}

.menu a {
  color: var(--primary);
  text-decoration: none;
  font-size: var(--font-size-regular);
}

.menu > li {
  margin: 10px 0;
}

.mm-dropdown-toggle {
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 1rem;
  text-align: left;
  width: 100%;
  cursor: pointer;
  padding: 0px;
  margin: 0;
  font-family: "Kanit", serif;
  font-weight: 300;
  font-style: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Dropdown Styling */
.mm-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none; /* Hidden by default */
  background-color: var(--gray-light);
  padding-left: 20px;
}

.mm-dropdown li {
  margin: 10px 0;
}

.mm-dropdown a {
  color: var(--primary);
  font-size: var(--font-size-small);
}

/* Active Dropdown */
.mm-dropdown.show {
  display: block; /* Show dropdown when active */
}

.mm-button {
  text-decoration: none;
  background-color: var(--primary-dark);
  font-weight: 500;
  border-radius: 5px;
  padding: 0.2rem 0.8rem 0.2rem 0.8rem;
  width: fit-content;
}

.mm-language {
  list-style: none;
  padding: 0;
  width: fit-content;
  display: flex;
  gap: 10px;
  position: absolute;
  right: 12%;
  bottom: 5%;
}

