/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
  .footer {
    padding-top: 60px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 35px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  /* Không cho toàn trang bị kéo ngang */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header */
  .top-header {
    height: 70px;
    min-height: 70px;
  }

  .top-header-container {
    width: 90%;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-info {
    display: none;
  }

  /* Nút menu */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    background: var(--primary-color);
    color: var(--dark-color);

    border: none;
    cursor: pointer;

    font-size: 20px;

    position: relative;
    z-index: 10003;
  }

  /* =========================
     SIDEBAR
  ========================= */

  .navbar {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    left: auto !important;

    width: 320px !important;
    max-width: 85vw !important;

    height: 100vh !important;
    height: 100dvh !important;

    margin: 0 !important;

    display: block !important;

    background: #ffffff !important;

    z-index: 10002 !important;

    overflow-y: auto;
    overflow-x: hidden;

    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);

    /*
      Ban đầu đẩy sidebar sang phải
      nhưng không tạo ra horizontal scroll
    */
    transform: translateX(100%) !important;

    transition: transform 0.35s ease !important;
  }

  /* MỞ SIDEBAR */

  .navbar.show {
    right: 0 !important;
    transform: translateX(0) !important;
  }

  /* Container bên trong sidebar */
  .navbar .container {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    padding: 80px 0 30px !important;
  }

  /* Danh sách menu */

  .nav-list {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: stretch !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-list li {
    width: 100% !important;

    flex: none !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;
  }

  /* Menu item */

  .nav-list a {
    width: 100% !important;

    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 15px !important;

    padding: 18px 25px !important;

    color: #333 !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    border: none !important;
    border-bottom: 1px solid #eeeeee !important;

    background: #ffffff !important;
  }

  /* Icon */

  .nav-list a i {
    width: 25px !important;

    flex-shrink: 0;

    text-align: center;

    color: var(--primary-color) !important;
  }

  /* Active */

  .nav-list a.active {
    border-left: 4px solid var(--primary-color) !important;

    background: #fff8e5 !important;

    color: var(--dark-color) !important;
  }

  /* Hover */

  .nav-list a:hover {
    background: #fff8e5 !important;
  }

  /* Lớp làm tối background */
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  /* Sidebar */
  .mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;

    background: #ffffff; /* Sidebar sáng */
    z-index: 999;

    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-sidebar.active {
    transform: translateX(0);
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {
  .footer {
    padding-top: 40px;
  }

  .footer-grid {
    gap: 35px;
  }

  .footer-logo {
    font-size: 22px;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .social-links a {
    width: 38px;
    height: 38px;
  }

  .footer-bottom p,
  .footer-bottom a {
    font-size: 11px;
  }
}
