input:-webkit-autofill {
  background-color: white !important;
  color: black !important;
  box-shadow: 0 0 0px 1000px white inset !important;
}

.header-search-menu {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 5px 10px;
  border: 1px solid #ddd;
}

.search-input {
  border: none;
  outline: none;
  padding: 5px 10px;
  width: 180px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ff385c;
  font-size: 16px;
}

.custom-search {
  /* border-radius: 8px !important; */
  border: 1px solid #ccc !important;
  padding: 15px 15px !important;
  font-size: 16px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease-in-out !important;
}

.custom-search:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  outline: none;
}

/* .slideDown {
  text-align: center;

  animation-name: slideDown;
  -webkit-animation-name: slideDown;
  animation-duration: 2s;
  -webkit-animation-duration: 2s;

  animation-timing-function: ease;
  -webkit-animation-timing-function: ease;

  visibility: visible !important;
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
  }

  50% {
    transform: translateY(8%);
  }

  65% {
    transform: translateY(-4%);
  }

  80% {
    transform: translateY(4%);
  }

  95% {
    transform: translateY(-2%);
  }

  100% {
    transform: translateY(0%);
  }
}

@-webkit-keyframes slideDown {
  0% {
    -webkit-transform: translateY(-100%);
  }

  50% {
    -webkit-transform: translateY(8%);
  }

  65% {
    -webkit-transform: translateY(-4%);
  }

  80% {
    -webkit-transform: translateY(4%);
  }

  95% {
    -webkit-transform: translateY(-2%);
  }

  100% {
    -webkit-transform: translateY(0%);
  }
} */
/* popup  */
/* Nền mờ khi popup xuất hiện */
.popup-overlay {
  display: flex; /* Giữ popup sẵn trong DOM */
  visibility: hidden; /* Ẩn đi nhưng vẫn có thể được hiển thị ngay lập tức */
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Khi popup mở */
.popup-overlay.show {
  visibility: visible;
  opacity: 1;
}

/* Hộp nội dung popup */
.popup-content {
  background: #0076b6;
  width: 450px;
  max-width: 90%;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  color: #fff;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out;
}

/* Khi popup mở, hiệu ứng scale */
.popup-overlay.show .popup-content {
  transform: scale(1);
}

/* Nút đóng popup */
.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
  color: white;
}

/* Form input */
.popup-form input,
.popup-form select,
.popup-form button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
}

/* Nút submit */
.popup-form button {
  background: #004b7c;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.popup-form button:hover {
  background: #00305e;
}

/* Responsive cho thiết bị nhỏ */
@media (max-width: 480px) {
  .popup-content {
    width: 90%;
  }
}
/* popup  end*/

.fab,
.far {
  font-weight: bold !important;
}

.wave-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 3rem;
  font-weight: bold;
  color: #7000fe;
  gap: 5px;
}

.wave-wrapper span {
  display: inline-block;
  animation: bounce 1.5s infinite ease-in-out;
}

.navbar-nav .nav-link.active,
.navbar-nav .dropdown-item.active {
  color: red !important;
  font-weight: bold;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
  color: red !important;
}

@media only screen and (min-width: 1024px) {
  .navbar-brand {
    display: none !important;
  }
}

.navbar-dark .navbar-nav a.nav-link {
  color: #333333;
  font-size: 1.1em;
  font-weight: bold;
  padding: 0 56px;
}

.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  pointer-events: auto;
}
.dropdown-menu {
  margin-top: 18px !important;
  opacity: 0;
  transform: translateY(10px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.7em !important;
  pointer-events: none;
}
/* .dropdown-menu {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    display: block;
    visibility: hidden;
    pointer-events: none;
} */

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media only screen and (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }

  .dropdown-menu.show {
    display: flex;
  }
}

.dropdown-menu ul {
  list-style: none;
  padding: 0 10px;
  margin: 0;
}

.dropdown-menu li {
  margin-bottom: 10px;
}

.dropdown-menu li .dropdown-item {
  display: block;
  color: #000;
  font-weight: 500;
  font-size: 1.1em;
  padding: 0px 18px;
  background-color: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
}

.dropdown-menu li .dropdown-item:hover {
  background-color: #516beb;
  color: #fff;
  transform: translateX(4px);
}

.dropdown-menu li:first-child a {
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
  color: #516beb;
}
.dropdown-menu li .dropdown-highlight {
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
  color: #516beb;
}

.dropdown-menu li:first-child a:hover {
  background-color: #516beb;
  color: #fff;
}

@media only screen and (max-width: 992px) {
  .dropdown-menu.show {
    flex-wrap: wrap;
    max-height: 350px;
    overflow-y: scroll;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1140px) {
  .dropdown:hover .dropdown-menu {
    width: 40vw;
    flex-wrap: wrap;
  }
}

.dropdown-menu {
  border-radius: 0;
  border: none;
  padding: 0.5em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
}

.dropdown-menu ul {
  list-style: none;
  padding: 0;
}

.dropdown-menu li a {
  color: gray;
  padding: 0.5em 1em;
}

.dropdown-menu li:first-child a {
  font-weight: bold;
  font-size: 1.1em;
  color: #516beb;
}

@media screen and (min-width: 993px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }

  .dropdown-menu.show {
    display: flex;
  }
}

@media screen and (max-width: 992px) {
  .dropdown-menu.show {
    max-height: 60vh;
    overflow-y: scroll;
  }
}
