/* =====================================================================
   PHẦN CŨ GIỮ NGUYÊN (dùng chung toàn site): reset, banner, thanh tìm kiếm,
   modal, topbar, mega menu...
===================================================================== */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HEADER MENU TRÊN */
.banertop {
  width: 100%;
  height: auto;
  display: block;
}
.header-barmenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: #fff;
  margin: 0 auto;
  width: 100%;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
  color: #fff;
  max-width: 1450px;
  margin: 0 auto;
  width: 100%;
}

/* HOTLINE */
.hotline strong {
  font-size: 20px;
}

/* SEARCH */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-box input {
  width: 350px;
  padding: 10px;
  border: none;
  outline: none;
}
.search-box button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.consult-btn {
  background: #00c2ff;
  color: #fff;
}

/* BUTTON */
.schedule-btn {
  background: #00d084;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
}
.titledv {
  font-size: 22px;
  font-weight: 600;
  padding-bottom: 12px;
}

/* MODAL */
.modal {
  display: none;
  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: 999999;
}
.modal-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  color: #000;
}
.modal-box h3 {
  margin-top: 0;
}
.modal-box input {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.modal-box button {
  width: 100%;
  padding: 10px;
  background: #00c853;
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}
.close {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: red;
  cursor: pointer;
}

@media (max-width: 768px) {
  .banertop {
    width: 100%;
    height: auto;
    display: none;
  }
  .header-barmenu {
    padding: 8px 12px;
  }
  .header-bar {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hotline {
    display: none;
  }
  .search-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }
  .search-box input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
  }
  .search-box button {
    width: 46px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
  }
  .consult-btn {
    display: none;
  }
  .schedule-btn {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
  }
}

/* TOP BAR */
#topbar-atv {
  width: 100%;
  background: linear-gradient(90deg, #123321 0%, #1f5c2e 55%, #17492283 100%);
  color: #fff;
  font-size: 14px;
  position: relative;
  border-bottom: 1px solid rgba(201, 162, 77, 0.45);
}
#topbar-atv::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #c9a24d 20%,
    #c9a24d 80%,
    transparent
  );
}
.topbar-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 0px;
}
.topbar-left li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eef3ee;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.topbar-left li .icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 77, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-left i {
  color: #d9b463;
  font-size: 13px;
}
.topbar-left strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin-bottom: 0px;
}
.topbar-right > li:not(.topbar-social) {
  padding-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.topbar-right a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dfe8e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}
.topbar-right a:hover {
  color: #d9b463;
}
.topbar-right i {
  font-size: 13px;
  color: #d9b463;
}
.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #eef3ee;
  transition: all 0.25s ease;
}
.topbar-social a:hover {
  background: #c9a24d;
  border-color: #c9a24d;
  color: #123321;
  transform: translateY(-2px);
}
.topbar-social a:last-child {
  width: auto;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 991px) {
  .topbar-left li:nth-child(2) {
    display: none;
  }
}
@media (max-width: 768px) {
  #topbar-atv {
    display: none;
  }
}

/* MEGA MENU (giữ lại nếu trang khác còn dùng .menu-wrapper) */
.menuatv-li.menuatv-has-sub > .menu-wrapper {
  position: absolute;
  top: 120%;
  left: 50%;
  min-width: 900px;
  max-width: 90vw;
  background: #fff;
  border-radius: 14px;
  padding: 24px 15px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
}
.menuatv-li.menuatv-has-sub:hover > .menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.menuatv-li.menuatv-has-sub > .menu-wrapper .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}
.menuatv-li.menuatv-has-sub > .menu-wrapper .col-lg-4 {
  flex: 1 1 0;
  min-width: 0;
}
.menuatv-li.menuatv-has-sub > .menu-wrapper .col-lg-4 > div:first-child {
  border-bottom: 2px solid #f2f2f2;
  padding-bottom: 10px;
  margin-bottom: 8px;
  white-space: nowrap;
}
.menuatv-li.menuatv-has-sub > .menu-wrapper ul,
.menuatv-li.menuatv-has-sub > .menu-wrapper ul li,
.menuatv-li.menuatv-has-sub > .menu-wrapper ul li ul {
  all: revert;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.menuatv-li.menuatv-has-sub > .menu-wrapper ul li a {
  display: block;
  padding: 8px 6px;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: normal;
  border-radius: 6px;
  transition: 0.2s ease;
}
.menuatv-li.menuatv-has-sub > .menu-wrapper ul li a:hover {
  background: #aaa;
  color: #fff;
  padding-left: 12px;
}
@media (max-width: 1000px) {
  .menuatv-li.menuatv-has-sub > .menu-wrapper {
    min-width: 700px;
  }
}
@media (max-width: 991px) {
  .menuatv-li.menuatv-has-sub > .menu-wrapper {
    display: none;
  }
}

/* =====================================================================
   HEADER MỚI (kiểu Mona Dream)
===================================================================== */
/* ===== HEADER MONA DREAM STYLE – không dùng :root, gán thẳng giá trị ===== */

#menuatv-header {
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  padding: 16px 20px 12px;
  background: transparent;
  font-family: "Be Vietnam Pro", sans-serif;
  transition: padding 0.3s ease;
}

#menuatv-header *,
.menuatv-mobile *,
.menuatv-overlay {
  box-sizing: border-box;
}

/* Thanh đen bo tròn */
.menuatv-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 98px;
  padding: 0 28px 0 36px;
  /* background: #242526; */
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: height 0.3s ease;
}

#menuatv-header.menu-scroll {
  padding-top: 8px;
}
#menuatv-header.menu-scroll .menuatv-container {
  height: 84px;
}

/* ===== LOGO ===== */
.menuatv-logo {
  flex-shrink: 0;
  margin-left: 0;
}
.menuatv-logo a {
  display: block;
}
.menuatv-logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ===== MENU DESKTOP ===== */
.menuatv-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menuatv-ul {
  display: flex;
  align-items: center;
  gap: 56px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menuatv-li {
  position: relative;
}

.menuatv-li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 36px 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.menuatv-li > a:hover,
.menuatv-li:hover > a {
  color: #ff9f1c;
}

.menuatv-arrow {
  font-size: 8px;
  transition: transform 0.2s ease;
}
.menuatv-has-sub:hover .menuatv-arrow {
  transform: rotate(180deg);
}

/* ===== SUBMENU ===== */
.menuatv-submenu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 240px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #242526;
  border: 1px solid rgba(255, 159, 28, 0.45);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.menuatv-has-sub:hover .menuatv-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menuatv-submenu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #e8e8e8 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.menuatv-submenu li a:hover {
  background: rgba(255, 159, 28, 0.15);
  color: #ff9f1c !important;
}

/* ===== KHỐI LIÊN HỆ BÊN PHẢI ===== */
.menuatv-contact {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.menuatv-contact-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border: 2px solid #ff9f1c;
  border-radius: 30px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.25;
  transition: background 0.25s ease;
}

.menuatv-contact-box:hover {
  background: rgba(255, 159, 28, 0.12);
  color: #ffffff;
}

.menuatv-contact-box.is-phone {
  padding-right: 32px;
}
.menuatv-contact-box.is-mail {
  padding-left: 32px;
}

.menuatv-contact-label {
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
}

.menuatv-contact-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

/* Nút tròn "Or" nằm giữa hai ô */
.menuatv-or {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 -20px;
  border: 4px solid #242526;
  border-radius: 50%;
  background: #ff9f1c;
  color: #242526;
  font-size: 13px;
  font-weight: 800;
  box-sizing: content-box;
  width: 32px;
  height: 32px;
}

/* ===== NÚT MOBILE ===== */
.menuatv-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ff9f1c;
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

/* ===== MENU MOBILE ===== */
.menuatv-mobile {
  position: fixed;
  top: 0;
  right: -320px;
  z-index: 999999;
  width: 300px;
  height: 100%;
  padding: 70px 24px 24px;
  background: #242526;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.menuatv-mobile.active {
  right: 0;
}

.menuatv-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.menuatv-mobile-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menuatv-mobile-ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.menuatv-mobile-ul li a {
  display: block;
  padding: 14px 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.menuatv-mobile-ul li a:hover {
  color: #ff9f1c;
}

.menuatv-mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.menuatv-mobile-contact .menuatv-contact-box {
  padding: 0 22px;
}

.menuatv-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}
.menuatv-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1399.98px) {
  .menuatv-container {
    gap: 16px;
    padding: 0 22px 0 28px;
  }
  .menuatv-logo img {
    height: 56px;
    max-width: 150px;
  }
  .menuatv-ul {
    gap: 24px;
  }
  .menuatv-li > a {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  .menuatv-contact-box {
    padding: 0 16px;
  }
  .menuatv-contact-box.is-phone {
    padding-right: 26px;
  }
  .menuatv-contact-box.is-mail {
    padding-left: 26px;
  }
  .menuatv-contact-value {
    font-size: 13px;
  }
}

@media (max-width: 1279.98px) {
  .menuatv-container > .menuatv-contact {
    display: none;
  }
  .menuatv-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 991.98px) {
  #menuatv-header {
    padding: 10px 10px 0;
  }
  .menuatv-container {
    height: 76px;
    padding: 0 16px 0 22px;
    border-radius: 999px;
  }
  .menuatv-logo {
    margin-left: 0;
  }
  .menuatv-logo img {
    height: 52px;
  }
  .menuatv-nav {
    display: none;
  }
  .menuatv-toggle {
    display: flex;
  }
}

/* =====================================================================
   KHỐI GHI ĐÈ – dùng selector có #menuatv-header để thắng mọi CSS cũ
   (chống tràn ngang, đúng màu chữ, đúng font). Đặt cuối file.
===================================================================== */
#menuatv-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 20px 12px;
  box-sizing: border-box;
  font-family: "Be Vietnam Pro", sans-serif;
  /* background: #141518; */
  z-index: 999;
}

#menuatv-header .menuatv-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 98px;
  margin: 0;
  padding: 0 24px 0 32px;
  box-sizing: border-box;
  background: #242526;
  border-radius: 999px;
  margin-top: -10px;
}

#menuatv-header .menuatv-logo {
  flex: 0 0 auto;
  margin: 0;
}

#menuatv-header .menuatv-nav {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

#menuatv-header .menuatv-ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menuatv-header .menuatv-li > a,
#menuatv-header .menuatv-li > a:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 36px 0;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

#menuatv-header .menuatv-li > a:hover,
#menuatv-header .menuatv-li:hover > a {
  color: #ff9f1c;
}

#menuatv-header .menuatv-submenu li a,
#menuatv-header .menuatv-submenu li a:visited {
  color: #e8e8e8;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
#menuatv-header .menuatv-submenu li a:hover {
  color: #ff9f1c;
}

#menuatv-header .menuatv-contact {
  flex: 0 0 auto;
}

#menuatv-header .menuatv-contact-box,
#menuatv-header .menuatv-contact-box:visited {
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  text-decoration: none;
}
#menuatv-header .menuatv-contact-label,
#menuatv-header .menuatv-contact-value {
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

/* Màn hình vừa: thu gọn để luôn nằm gọn trong thanh */
@media (max-width: 1599.98px) {
  #menuatv-header .menuatv-ul {
    gap: 26px;
  }
  #menuatv-header .menuatv-li > a {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  #menuatv-header .menuatv-contact-box {
    padding: 0 16px;
  }
  #menuatv-header .menuatv-contact-box.is-phone {
    padding-right: 26px;
  }
  #menuatv-header .menuatv-contact-box.is-mail {
    padding-left: 26px;
  }
  #menuatv-header .menuatv-contact-value {
    font-size: 13px;
  }
}

@media (max-width: 1279.98px) {
  #menuatv-header .menuatv-container > .menuatv-contact {
    display: none;
  }
  #menuatv-header .menuatv-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 991.98px) {
  #menuatv-header {
    padding: 10px 10px 0;
  }
  #menuatv-header .menuatv-container {
    height: 76px;
    padding: 0 16px 0 22px;
  }
  #menuatv-header .menuatv-nav {
    display: none;
  }
  #menuatv-header .menuatv-toggle {
    display: flex;
  }
  #menuatv-header .menuatv-logo img {
    height: 52px;
  }
}
