/* ======== BASE LAYOUT ======== */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f7f7f7;
  color: #222;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

* {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* ======== HEADER ======== */
.header {
  background-color: #1976d2;
  color: white;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0; /* bỏ padding ngang */
  max-width: 1200px;
  margin: 0 auto; /* căn giữa giống canvas */
}

.logo {
  height: 40px;
  transition: height 0.3s ease;
  margin-right: 20px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  background-color: #1976d2;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav a:hover,
.nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ======== FOOTER ======== */
.footer {
  background-color: #1976d2;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 767px) {
  .header-inner {
    flex-direction: row-reverse; /* ✅ Logo bên phải, menu bên trái */
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
  }

  .menu-toggle {
    display: block;
    margin-right: 10px; /* ⬅ đẩy menu icon sang trái một chút */
    position: relative;
    z-index: 1002;
    order: 1; /* menu icon bên trái */
  }

  .logo {
    height: 30px;
    margin-left: 10px; /* ⬅ tạo khoảng cách với mép phải */
    position: relative;
    z-index: 1002;
    order: 2; /* logo bên phải */
  }

.nav {
  position: absolute;
  top: 100%;
  right: 10px;        /* 👈 dropdown nằm bên phải */
  left: auto;         /* 👈 hủy canh trái */
  width: 200px;
  background-color: #1565c0;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0;
  display: none;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
  .nav.show {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    font-size: 15px;
  }
}




