/*
 * sd-layout.css  –  Header, Nav, Dropdown, Footer
 * MM Master Mind Theme  –  viết lại hoàn toàn
 */

/* ═══════════════════════════════════
   GLOBAL BODY
═══════════════════════════════════ */
.sd-luxury-body {
  background: #F7F9FC;
  color: #0C1B36;
  font-family: 'Inter', Arial, sans-serif;
}

/* Hard-reset header khỏi mọi CSS bên ngoài */
.sd-lux-header,
.sd-lux-header * {
  box-sizing: border-box;
  /* KHÔNG inherit màu từ .slx-fullpage */
}

/* ═══════════════════════════════════
   HEADER WRAPPER
═══════════════════════════════════ */
.sd-lux-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(253, 250, 245, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F2;
  transition: box-shadow .2s ease;
}
.sd-lux-header.scrolled {
  box-shadow: 0 2px 20px rgba(7,26,66,.12);
}

.sd-lux-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}

/* ── Logo ── */
.sd-lux-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 28px;
}
.sd-lux-logo img { height: 36px; width: auto; display: block; }
.sd-lux-logo__mark {
  font-size: 22px;
  color: #D4A63A !important;
  line-height: 1;
  flex-shrink: 0;
}
.sd-lux-logo__text {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0C1B36 !important;
  line-height: 1.1;
  text-decoration: none;
}
.sd-lux-logo__sub {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #D4A63A !important;
  line-height: 1.4;
}

/* ═══════════════════════════════════
   PRIMARY NAV
═══════════════════════════════════ */
.sd-lux-nav {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Level-1 list */
.sd-lux-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Level-1 item */
.sd-lux-nav__list > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Level-1 link */
.sd-lux-nav__list > li > a {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 7px 13px !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #34445F !important;
  background: transparent !important;
  border-radius: 50px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.sd-lux-nav__list > li > a:hover,
.sd-lux-nav__list > li.current-menu-item > a,
.sd-lux-nav__list > li.current-menu-ancestor > a {
  background: #EEF3FA !important;
  color: #071A42 !important;
}
.sd-lux-nav__list > li.current-menu-item > a {
  font-weight: 600 !important;
}

/* Mũi tên dropdown */
.sd-lux-nav__list > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #71809A;
  flex-shrink: 0;
  transition: transform .2s;
  margin-left: 3px;
}
.sd-lux-nav__list > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  border-top-color: #071A42;
}

/* ═══════════════════════════════════
   DROPDOWN CẤP 2 – JS-driven (class .open qua mouseenter/leave)
   KHÔNG dùng CSS :hover vì bị theme cha override
═══════════════════════════════════ */
.sd-lux-nav__list li ul,
.sd-lux-nav__list li ul.sub-menu {
  /* Định vị */
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  z-index: 10000 !important;

  /* Size */
  min-width: 210px;
  width: max-content;
  max-width: 300px;

  /* Reset list */
  list-style: none !important;
  margin: 0 !important;
  padding: 6px 0 !important;

  /* Visual */
  background: #ffffff !important;
  border: 1px solid #E2E8F2 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 36px rgba(7,26,66,.16), 0 2px 8px rgba(7,26,66,.06) !important;

  /* JS sẽ set display:none lúc init, sau đó toggle opacity/transform */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

/* Level-2 items */
.sd-lux-nav__list li ul li,
.sd-lux-nav__list li ul.sub-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

/* Level-2 link */
.sd-lux-nav__list li ul li a,
.sd-lux-nav__list li ul.sub-menu li a {
  display: block !important;
  padding: 9px 18px !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #34445F !important;
  background: transparent !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background .12s, color .12s;
  line-height: 1.5;
  border-radius: 0;
}
.sd-lux-nav__list li ul li a:hover,
.sd-lux-nav__list li ul.sub-menu li a:hover,
.sd-lux-nav__list li ul li.current-menu-item > a {
  background: #EEF3FA !important;
  color: #071A42 !important;
  font-weight: 500 !important;
}

/* Separator đầu tiên */
.sd-lux-nav__list li ul li:first-child {
  border-top: none;
}

/* Cấp 3 (nếu có) – dịch sang phải */
.sd-lux-nav__list li ul li ul {
  top: 0 !important;
  left: 100% !important;
  margin-top: -6px;
}

/* ── Header right ── */
.sd-lux-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.sd-lux-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #E2E8F2;
  background: transparent !important;
  color: #34445F !important;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.sd-lux-icon-btn:hover {
  border-color: #D4A63A !important;
  color: #071A42 !important;
  background: #FFF4D4 !important;
}

.sd-lux-submit-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #071A42 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sd-lux-submit-btn:hover { background: #030E25 !important; }

.sd-lux-mobile-toggle { display: none; }

/* ── Search dropdown ── */
.sd-lux-search-drop {
  overflow: hidden;
  max-height: 0;
  background: #F7F9FC;
  border-top: 1px solid transparent;
  transition: max-height .25s ease, border-color .25s;
}
.sd-lux-search-drop.open {
  max-height: 90px;
  border-top-color: #E2E8F2;
}
.sd-lux-search-drop__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

/* ═══════════════════════════════════
   MOBILE NAV
═══════════════════════════════════ */
.sd-lux-mobile-nav {
  background: #fff;
  border-top: 1px solid #E2E8F2;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.sd-lux-mobile-nav.open { max-height: 80vh; overflow-y: auto; }

.sd-lux-mobile-nav__list {
  list-style: none;
  margin: 0; padding: 8px 0 16px;
}
.sd-lux-mobile-nav__list li {
  list-style: none;
  margin: 0; padding: 0;
}
.sd-lux-mobile-nav__list li a {
  display: block;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #0C1B36;
  border-bottom: 1px solid #FFFFFF;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.sd-lux-mobile-nav__list li a:hover { color: #071A42; background: #EEF3FA; }
.sd-lux-mobile-nav__list li:last-child > a { border-bottom: none; }

/* Mobile sub-menu: indent + nhỏ hơn */
.sd-lux-mobile-nav__list li ul {
  list-style: none;
  margin: 0; padding: 0;
  background: #F7F9FC;
  border-top: 1px solid #FFFFFF;
}
.sd-lux-mobile-nav__list li ul li a {
  padding-left: 42px;
  font-size: 14px;
  font-weight: 400;
  color: #34445F;
}

/* ── Overlay ── */
.sd-lux-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 9998;
}
.sd-lux-overlay.open { display: block; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.sd-lux-footer {
  margin-top: 60px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F2;
}
.sd-lux-footer__top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 1px solid #E2E8F2;
}
.sd-lux-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sd-lux-footer__tagline { font-size: 14px; color: #71809A; margin-bottom: 18px; }
.sd-lux-footer__tax-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sd-lux-footer__tag {
  padding: 5px 14px;
  background: #fff; border: 1px solid #E2E8F2;
  border-radius: 50px; font-size: 12px; font-weight: 500; color: #34445F;
  text-decoration: none; transition: all .15s;
}
.sd-lux-footer__tag:hover { border-color: #071A42; color: #071A42; background: #EEF3FA; }

.sd-lux-footer__cols {
  max-width: 1280px; margin: 0 auto; padding: 36px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.sd-lux-footer__col h4,
.sd-lux-footer__col .widget-title {
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: #D4A63A; margin-bottom: 14px;
}
.sd-lux-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sd-lux-footer__col ul li a { font-size: 14px; color: #34445F; text-decoration: none; transition: color .15s; }
.sd-lux-footer__col ul li a:hover { color: #071A42; }
.sd-lux-footer__col--about p { font-size: 13px; color: #71809A; line-height: 1.6; margin-bottom: 14px; }
.sd-lux-footer__socials { display: flex; gap: 8px; }
.sd-lux-social {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #E2E8F2; border-radius: 50%;
  color: #34445F; text-decoration: none; transition: all .15s;
}
.sd-lux-social:hover { background: #071A42; border-color: #071A42; color: #fff; }
.sd-lux-footer__bottom { background: #E2E8F2; }
.sd-lux-footer__bottom-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #71809A; flex-wrap: wrap; gap: 8px;
}
.sd-lux-footer__powered strong { color: #071A42; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 960px) {
  .sd-lux-nav { display: none; }
  .sd-lux-mobile-toggle { display: flex !important; }
  .sd-lux-submit-btn { display: none; }
  .sd-lux-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sd-lux-header__inner { padding: 0 16px; }
  .sd-lux-logo { margin-right: 0; }
  .sd-lux-footer__cols { grid-template-columns: 1fr; gap: 20px; }
  .sd-lux-footer__top { padding: 28px 16px 20px; }
  .sd-lux-footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* dotvn mobile bottom menu */
.sd-mobile-bottom-menu { display: none; }
@media (max-width: 600px) {
  .sd-mobile-bottom-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 10001;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 7px 6px;
    background: rgba(255,255,255,.96);
    border: 1px solid #E2E8F2;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(28,20,16,.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .sd-mobile-bottom-menu__item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 2px;
    border-radius: 13px;
    color: #34445F !important;
    text-decoration: none !important;
    font-family: 'Inter', Arial, sans-serif !important;
  }
  .sd-mobile-bottom-menu__item:active,
  .sd-mobile-bottom-menu__item:hover {
    background: #EEF3FA;
    color: #071A42 !important;
  }
  .sd-mobile-bottom-menu__item span {
    display: block;
    font-size: 17px;
    line-height: 1;
    font-weight: 600 !important;
  }
  .sd-mobile-bottom-menu__item em {
    display: block;
    font-style: normal;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 600 !important;
    white-space: nowrap;
  }
}

/* ═══════════════════════════════════
   SITE IDENTITY LOGO – v1.0.2
═══════════════════════════════════ */
.sd-lux-logo .custom-logo-link,
.sd-lux-footer__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.sd-lux-logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 46px;
  object-fit: contain;
}
.sd-lux-logo__fallback {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.sd-lux-footer__logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 58px;
  object-fit: contain;
}
.sd-lux-footer__logo .sd-lux-logo__fallback {
  display: inline-flex;
}
@media (max-width: 600px) {
  .sd-lux-logo .custom-logo {
    max-width: 170px;
    max-height: 38px;
  }
  .sd-lux-footer__logo .custom-logo {
    max-width: 200px;
    max-height: 48px;
  }
}

/* ==========================================================
   MM.COM.VN HEADER / FOOTER OVERRIDES v1.0.0
========================================================== */
.sd-lux-header {
  background: rgba(255,255,255,.97) !important;
  border-bottom-color: #E2E8F2 !important;
}
.sd-lux-header.scrolled { box-shadow:0 8px 28px rgba(7,26,66,.10) !important; }
.sd-lux-header__inner {
  max-width: 1360px;
  height: 76px;
  gap: 18px;
}
.mm-header-logo { margin-right: 14px; }
.mm-header-logo a,
.mm-footer-logo a { display:inline-flex; align-items:center; line-height:0; }
.mm-header-logo img {
  display:block;
  width:auto;
  height:54px;
  max-width:280px;
  object-fit:contain;
}
.sd-lux-nav__list > li > a {
  color:#263754 !important;
  font-family:'Inter',Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:500 !important;
}
.sd-lux-nav__list > li > a:hover,
.sd-lux-nav__list > li.current-menu-item > a {
  color:#071A42 !important;
  background:#EEF3FA !important;
}
.sd-lux-submit-btn {
  background:#071A42 !important;
  border-color:#071A42 !important;
  color:#fff !important;
}
.sd-lux-icon-btn { color:#071A42 !important; border-color:#DCE4EF !important; }
.sd-lux-search-drop { background:#fff !important; border-color:#E2E8F2 !important; }
.sd-lux-footer {
  background:#06142F !important;
  color:rgba(255,255,255,.78) !important;
}
.sd-lux-footer h4 { color:#fff !important; }
.sd-lux-footer a:hover { color:#E2B750 !important; }
.mm-footer-logo img {
  display:block;
  width:auto;
  height:66px;
  max-width:330px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.sd-lux-footer__tag { border-color:rgba(226,183,80,.35) !important; color:#F0CB73 !important; }
.sd-lux-footer__bottom { border-color:rgba(255,255,255,.10) !important; }
body.admin-bar .sd-lux-header { top:32px !important; }
@media (max-width:782px) { body.admin-bar .sd-lux-header { top:46px !important; } }
@media (max-width: 720px) {
  .sd-lux-header__inner { height:68px; padding:0 14px; }
  .mm-header-logo img { height:44px; max-width:220px; }
  .mm-footer-logo img { height:54px; max-width:270px; }
}
@media (max-width: 430px) {
  .mm-header-logo img { height:38px; max-width:178px; }
}
.mm-footer-logo a{background:#fff;border-radius:14px;padding:8px 12px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.mm-footer-logo img{filter:none!important;height:56px!important}
