.bg-light {
  --bs-bg-opacity: 1;
}

.navbar {
  --bs-navbar-padding-y: 0;
}

.navbar-brand {
  --bs-navbar-brand-padding-y: 0;
}

.navbar-brand img {
  display: block;
  width: 150px;
  padding: 5px 0px;
}

.nav-link {
  --bs-nav-link-color: black;
  background: transparent !important;
  white-space: normal;
  word-break: break-word !important;
  word-wrap: break-word !important;
  --bs-nav-link-font-size: 16px;
  font-family: var(--default-font);
  font-weight: normal;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.dropdown-menu {
  --bs-dropdown-padding-y: 0 !important;
}

.dropdown-menu .dropdown-submenu {
  margin-bottom: 10px !important;
}

/* Arrow styling */
.dropdown-toggle::after {
  display: inline-block;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.2s ease-in-out;
}

.dropdown-toggle.show::after {
  transform: rotate(180deg);
}

/* Desktop menu logic */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .dropdown-menu {
    --bs-dropdown-padding-y: 0 !important;
  }

  .dropdown-menu .dropdown-submenu {
    position: relative;
  }

  .dropdown-menu .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    display: none;
    position: absolute;
  }

  .dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }

  .navbar-nav > .nav-item.dropdown .dropdown-toggle {
    display: none !important;
  }

  .dropdown-menu .dropdown-toggle::after {
    display: none !important;
  }
}

.dropdown-menu-style {
  text-transform: uppercase;
  list-style-type: none;
  overflow: unset !important;
  z-index: 999;
  min-width: 182px;
  max-width: 250px;
  font-size: 1em;
  margin-top: 0px;
  padding: 0;
  max-height: 9999px;
  border: none;
  text-align: justify;
  background-color: #ffffff;
  color: #000000;
}

.navbar-nav li a:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active {
  font-weight: bold;
  position: relative;
  color: black;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .navbar-nav .nav-link.active {
    padding-left: 16px; /* tạo khoảng cho gạch trái */
  }
  .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 14%;
    transform: translateX(-50%);
    width: 20%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
  }
}

.dropdown-menu-style li a:hover {
  transform: scale(1.05);
}

.dropdown-menu-style:first-child li {
  border-top: 1px solid #e1e1e1;
}

.dropdown-menu-style li {
  border-bottom: 1px solid #e1e1e1;
}

.btn-outline-vietinfo {
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  background-color: white;
  transition: all 0.3s ease;
  font-weight: bold;
  font-family: var(--default-font);
}

.btn-outline-vietinfo:hover {
  background-color: var(--secondary-color);
  color: white;
}

.top-bar {
  background-color: var(--secondary-color);
  font-size: 14px;
}

.header-fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
  background: white;
}

/* Mobile marquee animation */
@media (max-width: 991.98px) {
  .top-bar-marquee {
    white-space: nowrap;
    animation: marquee 15s linear infinite;
  }

  @keyframes marquee {
    0% {
      right: -100%;
    }
    100% {
      right: 100%;
    }
  }
}

/* Dropdown items */
.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
  clear: both;
  text-align: inherit;
  text-decoration: none;
  border: 0;
  --bs-dropdown-item-border-radius: 0;
  border-radius: var(--bs-dropdown-item-border-radius, 0);
  background-color: transparent;
  background: transparent !important;
  --bs-dropdown-link-color: black !important;
  color: #000000;
  /* font-weight: 100 !important; */
  font-size: 14px;
  font-family: var(--default-font);
  word-break: break-word !important;
  white-space: normal !important;
  text-transform: initial;
  transition: all 0.3s ease-in-out;
}

.search-form {
  height: 40px;
  width: 200px; /* hoặc 100% */
}

.input-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.search-input {
  width: 100%;
  height: 100%;
  padding-right: 40px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #555;
  font-size: 18px;
  cursor: pointer;
}

.btn-lien-he {
  color: var(--primary-color);
  background-color: #fff;
  border: 1px solid var(--primary-color);
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-lien-he:hover {
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
}
