/* css/responsive.css */

/* Tablet & Mobile (Dưới 1024px) */
@media (max-width: 1024px) {
  /* Hiện nút menu hamburger */
  .mobile-menu-btn {
    display: block;
    font-size: 2.4rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Biến Nav Menu thành Sidebar trượt */
  .nav-menu {
    position: fixed;
    top: 0;
    left: -300px; /* Ẩn sang trái */
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: 0.4s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 0;
  }

  .nav-menu.active {
    left: 0; /* Trượt ra */
  }

  /* Header của Menu Mobile */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    font-weight: 800;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--border-color);
  }
  #close-menu-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
  }

  /* List item trong mobile */
  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
  }

  /* Ẩn hiệu ứng hover gạch chân ở mobile */
  .nav-link::after {
    display: none;
  }

  /* Xử lý Dropdown ở Mobile (Hiện luôn hoặc click để mở - ở đây ta hiện luôn cho đơn giản) */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    background: #f9f9f9;
    display: none; /* Mặc định ẩn, dùng JS toggle nếu muốn xịn hơn */
    padding-left: 20px;
  }
  /* Tạm thời hiện luôn dropdown trong mobile cho dễ thấy */
  .nav-item:hover .dropdown-menu {
    display: block;
  }

  /* Overlay làm tối màn hình */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    transition: 0.4s;
  }
  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Chặn cuộn body */
  body.no-scroll {
    overflow: hidden;
  }
  /* ------------------------------------------ */
  /* FOOTER RESPONSIVE */
  .footer-top {
    /* Tablet: Chia thành 2 cột (2 hàng, mỗi hàng 2 cột) */
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem; /* Gap hàng dọc 3rem, hàng ngang 2rem */
  }
}
/* Mobile (Dưới 768px) */
@media (max-width: 768px) {
  .footer-top {
    /* Mobile: Gom về 1 cột duy nhất */
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
