/* ==========================================================================
   DANAHOME — legacy blocks kept as-is (used elsewhere on the site)
========================================================================== */
.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 strong {
  font-size: 20px;
}
.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;
}
.schedule-btn {
  background: #222222;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
}
.titledv {
  font-size: 22px;
  font-weight: 600;
  padding-bottom: 12px;
}
.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 {
    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;
  }
}

/* ==========================================================================
   DANAHOME HEADER — redesign
   Palette: warm ink + brushed gold, on a clean paper white
========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --dh-ink: #1b1912;
  --dh-ink-soft: #2c2a22;
  --dh-gold: #c39a4d;
  --dh-gold-dark: #a67f3a;
  --dh-gold-soft: #eddcb3;
  --dh-cream: #fbf8f3;
  --dh-white: #ffffff;
  --dh-line: #ece6d8;
  --dh-text: #211f19;
  --dh-muted: #7c7460;
  --dh-radius: 14px;
  --dh-shadow: 0 16px 40px rgba(27, 25, 18, 0.12);
  --dh-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#menuatv-header,
#topbar-atv,
.menuatv-mobile,
.menuatv-overlay {
  font-family: var(--dh-font);
}

/* =========================
   TOP BAR
========================= */
#topbar-atv {
  width: 100%;
  background: linear-gradient(90deg, #1b1912 0%, #24211a 58%, #4f4227 100%);
  color: #fff;
  font-size: 13.5px;
  position: relative;
}
#topbar-atv::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--dh-gold) 20%,
    var(--dh-gold) 80%,
    transparent
  );
  opacity: 0.6;
}
.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;
}
.topbar-left li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f1ece1;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.topbar-left li .icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(195, 154, 77, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-left i {
  color: var(--dh-gold-soft);
  font-size: 12px;
}
.topbar-left strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.topbar-right > li:not(.topbar-social) {
  padding-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.topbar-right a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dcd6c9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}
.topbar-right a:hover {
  color: var(--dh-gold-soft);
}
.topbar-right i {
  font-size: 12px;
  color: var(--dh-gold-soft);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 9px;
}
.topbar-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: #f1ece1;
  transition: all 0.25s ease;
}
.topbar-social a:hover {
  background: var(--dh-gold);
  border-color: var(--dh-gold);
  color: #1b1912;
  transform: translateY(-2px);
}
.topbar-social a:last-child {
  width: auto;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .topbar-left li:nth-child(2) {
    display: none;
  }
}
@media (max-width: 768px) {
  #topbar-atv {
    display: none;
  }
}

/* =========================
   HEADER SHELL
========================= */
#menuatv-header {
  width: 100%;
  left: 0;
  background: var(--dh-white);
  position: sticky;
  top: 0;
  z-index: 99999;
  box-shadow: 0 1px 0 var(--dh-line);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}
#menuatv-header.menu-scroll {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  box-shadow: 0 12px 30px rgba(27, 25, 18, 0.08);
}

.menuatv-container {
  max-width: 1450px;
  margin: auto;
  padding: 0 24px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* LOGO */
.menuatv-logo img {
  width: 90px;
  display: block;
}

/* =========================
   DESKTOP NAV
========================= */
.menuatv-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.menuatv-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.menuatv-li {
  position: relative;
}
.menuatv-li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 30px 17px;
  text-decoration: none;
  color: var(--dh-text);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: color 0.25s ease;
}
.menuatv-li > a::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 24px;
  height: 2px;
  background: var(--dh-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.menuatv-li:hover > a {
  color: var(--dh-gold-dark);
}
.menuatv-li:hover > a::after {
  transform: scaleX(1);
}

.menuatv-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  color: var(--dh-muted);
}
.menuatv-li:hover > a .menuatv-arrow {
  transform: rotate(180deg);
  color: var(--dh-gold-dark);
}

/* SUBMENU (dropdown) */
.menuatv-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  width: 300px;
  background: var(--dh-white);
  border-radius: var(--dh-radius);
  padding: 10px;
  box-shadow: var(--dh-shadow);
  border: 1px solid var(--dh-line);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 9999;
  list-style: none;
}
.menuatv-li:hover > .menuatv-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.menuatv-sub-li {
  width: 100%;
}
.menuatv-sub-li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--dh-text) !important;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}
.menuatv-sub-li a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dh-gold);
  flex-shrink: 0;
  opacity: 0.65;
}
.menuatv-sub-li a:hover {
  background: var(--dh-cream);
  color: var(--dh-gold-dark) !important;
  padding-left: 18px;
}

/* generic nested <ul> fallback (kept for safety, same visual language) */
.menuatv-nav ul li ul {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  width: 300px;
  background: var(--dh-white);
  border-radius: var(--dh-radius);
  padding: 10px;
  box-shadow: var(--dh-shadow);
  border: 1px solid var(--dh-line);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 9999;
}
.menuatv-nav ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.menuatv-nav ul li ul li a {
  display: block;
  padding: 12px 14px;
  color: var(--dh-text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.menuatv-nav ul li ul li a:hover {
  background: var(--dh-cream);
  color: var(--dh-gold-dark);
  padding-left: 18px;
}
.menuatv-nav ul li ul li ul {
  top: 0;
  left: 100%;
  transform: translateX(8px);
}
.menuatv-nav ul li ul li:hover > ul {
  transform: translateX(0);
}

/* =========================
   HOTLINE (desktop)
========================= */
.menuatv-hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--dh-line);
}
.hotline-icon {
  width: 42px;
  height: 42px;
  background: #f11b1c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dh-gold-soft);
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.hotline-icon::before,
.hotline-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(195, 154, 77, 0.35);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: hotline-pulse 2.2s infinite ease-out;
}
.hotline-icon::after {
  animation-delay: 0.7s;
}
.hotline-icon i {
  animation: hotline-shake 2.6s infinite ease-in-out;
  display: inline-block;
}
@keyframes hotline-pulse {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 190%;
    height: 190%;
    opacity: 0;
  }
}
@keyframes hotline-shake {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30%,
  50% {
    transform: rotate(-14deg);
  }
  20%,
  40% {
    transform: rotate(14deg);
  }
}

.hotline-text {
  display: flex;
  flex-direction: column;
}
.hotline-label {
  font-size: 12.5px;
  color: var(--dh-muted);
  font-weight: 600;
  line-height: 1.2;
}
.hotline-number {
  font-size: 17px;
  font-weight: 800;
  color: var(--dh-ink);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.hotline-number:hover {
  color: var(--dh-gold-dark);
}

/* =========================
   MOBILE TOGGLE (animated burger)
========================= */
.menuatv-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.menuatv-toggle span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--dh-ink);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    top 0.3s ease;
}
.menuatv-toggle span:nth-child(1) {
  top: 15px;
}
.menuatv-toggle span:nth-child(2) {
  top: 22px;
}
.menuatv-toggle span:nth-child(3) {
  top: 29px;
}
.menuatv-toggle.active span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.menuatv-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menuatv-toggle.active span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* =========================
   MOBILE MENU PANEL
========================= */
.menuatv-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--dh-white);
  z-index: 999999;
  overflow-y: auto;
  transition: right 0.35s ease;
  padding: 22px 20px 30px;
  box-shadow: -16px 0 40px rgba(27, 25, 18, 0.18);
}
.menuatv-mobile.active {
  right: 0;
}

.menuatv-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--dh-line);
}
.menuatv-mobile-head img {
  width: 118px;
}

.menuatv-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dh-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--dh-ink);
  cursor: pointer;
  line-height: 1;
}

.menuatv-mobile-ul {
  list-style: none;
}
.menuatv-mobile-ul > li {
  border-bottom: 1px solid var(--dh-line);
}
.menuatv-mobile-ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  color: var(--dh-text);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 700;
}
.menuatv-mobile-has {
  position: relative;
}
.menuatv-mobile-has > .menuatv-mobile-label {
  display: block;
  padding-right: 44px;
}
.menuatv-mobile-has > .menuatv-arrow {
  position: absolute;
  top: 0;
  right: 0;
  height: 52px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.menuatv-mobile-has > .menuatv-arrow a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.menuatv-mobile-ul > li > a .menuatv-arrow {
  font-size: 11px;
  color: var(--dh-muted);
  transition: transform 0.3s ease;
}
.menuatv-mobile-ul > li.active > .menuatv-arrow {
  transform: rotate(180deg);
  color: var(--dh-gold-dark);
}

.menuatv-mobile-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 6px;
}
.menuatv-mobile-ul > li.active > .menuatv-mobile-sub {
  max-height: 800px;
}
.menuatv-mobile-sub li a {
  display: block;
  padding: 12px 10px;
  color: var(--dh-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
}
.menuatv-mobile-sub li a:hover,
.menuatv-mobile-sub li a:active {
  background: var(--dh-cream);
  color: var(--dh-gold-dark);
}

.menuatv-mobile-cta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--dh-ink);
  border-radius: 12px;
}
.menuatv-mobile-cta .hotline-icon {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.menuatv-mobile-cta .hotline-label {
  color: #cfc7b4;
}
.menuatv-mobile-cta .hotline-number {
  color: #fff;
  font-size: 16px;
}

/* OVERLAY */
.menuatv-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 18, 12, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 999998;
}
.menuatv-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* focus visibility for accessibility */
.menuatv-li > a:focus-visible,
.menuatv-sub-li a:focus-visible,
.menuatv-toggle:focus-visible,
.menuatv-mobile-ul a:focus-visible {
  outline: 2px solid var(--dh-gold-dark);
  outline-offset: 2px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .menuatv-li > a {
    padding: 30px 12px;
    font-size: 15px;
  }
}

@media (max-width: 991px) {
  .menuatv-nav {
    display: none;
  }
  .menuatv-hotline {
    display: none;
  }
  .menuatv-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .menuatv-logo img {
    width: 60px;
  }
  .menuatv-container {
    height: 68px;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .menuatv-mobile {
    width: 100%;
  }
}
