/* ======= MOBILE MENU CSS ======= */
/* Mũi tên chỉ xuống */
.mobile-menu .arrow {
  margin-left: 5px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* Ẩn submenu mặc định */
.mobile-menu .submenu {
  display: none;
  list-style: none;
  padding-left: 20px;
}

.mobile-menu .menu-item-has-children.open .submenu {
  display: block;
}

/* Khi menu mở, xoay mũi tên */
.mobile-menu .menu-item-has-children.open .arrow {
  transform: rotate(180deg);
}
/* ======= MOBILE MENU CSS ======= */

.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #fbc105;
  padding-top: 60px;
  transition: left 0.4s ease-in-out;
  z-index: 99999;
  overflow-y: auto;
}

.mobile-menu.open {
  left: 0;
}

/* Header menu */
.mobile-menu-container {
  background-color: #fbc105;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 55px;
  z-index: 11000;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Nút menu */
.mobile-menu-btn {
  font-size: 28px;
  color: #c00;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s ease-in-out;
  outline: none;
}

.mobile-menu-btn:focus {
  outline: none;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

/* Nút đóng menu */
.mobile-menu .close-menu {
  position: absolute;
  top: 40px;
  right: -15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #c00;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  outline: none;
}

.mobile-menu .close-menu:focus {
  outline: none;
}

.mobile-menu .close-menu:hover {
  transform: rotate(90deg);
}

/* Danh sách menu */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li {
  padding: 10px;
  /* text-align: center; */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu ul li:last-child {
  border-bottom: none;
}

.mobile-menu ul li a {
  color: #c00;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: #9f5050;
}

/* Khi màn hình lớn hơn 576px, ẩn menu */
@media (min-width: 576px) {
  .mobile-menu-container,
  .mobile-menu {
    display: none !important;
  }
}

/* Khi header cố định */
@media (max-width: 575px) {
  #header.cloned.sticky {
    top: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
  }

  .mobile-menu {
    top: 15px;
    transition: left 0.4s ease-in-out;
  }

  .mobile-menu.open {
    left: 0;
  }
}

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;
}

/* .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*/
