/* ============================================================
   Mobile menu — hamburger + drawer (breakpoint: <= 1000px)
   Khớp breakpoint sẵn có trong landing-page-v2.css
   ============================================================ */

/* Base: ẩn trên desktop (>= 1000px) */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.mobile-menu-drawer {
  display: none;
}

@media (max-width: 1000px) {
  /* Ẩn menu desktop, hiện hamburger */
  .group-menu-header {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    float: right;
    margin-top: 14px;
    margin-right: 25px;
    padding: 4px 2px;
    background-color: transparent;
    border: none;
  }

  .mobile-menu-toggle-bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px 0;
    background-color: #ffffff;
  }

  /* Overlay phủ nền khi drawer mở */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
  }
  .mobile-menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
  }

  /* Drawer trượt từ phải */
  .mobile-menu-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    width: 76%;
    max-width: 320px;
    padding: 20px 24px;
    box-sizing: border-box;
    background-color: #1b1b1b;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    text-decoration: none;
    font-family: Nunito;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
  }
  .mobile-menu-drawer.is-open {
    transform: translateX(0);
  }

  /* Header drawer: chỉ có nút đóng */
  .mobile-menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
  }
  .mobile-menu-close {
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    padding: 0 4px;
  }

  /* Các link menu */
  .mobile-menu-link {
    display: block;
    padding: 16px 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Submenu Resource */
  .mobile-menu-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 16px;
    text-align: left;
  }
  .mobile-menu-submenu-arrow {
    transition: transform 0.3s ease;
    width: 15px;
    height: 9px;
  }
  .mobile-menu-submenu.is-open .mobile-menu-submenu-arrow {
    transform: rotate(180deg);
  }
  .mobile-menu-submenu-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .mobile-menu-submenu.is-open .mobile-menu-submenu-panel {
    max-height: 140px;
  }
  .mobile-menu-submenu-link {
    padding-left: 16px;
    border-bottom: none;
    font-size: 15px;
  }
}
