* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* TOP BAR */
.topbar {
  background: black;
  color: white;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  font-size: 40px;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid #ddd;
}

.menu {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 15px;
}
.menu li {
  position: relative;
}
.menu li a{
  text-decoration: none;
  color: black;
  font-size: 20px;
  transition: 0.3s;
  padding: 5px 0;
}
.menu li a:hover{
  color: #0f6e38;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}


/* ICON BÊN NGOÀI */
.icon-img {
  width: 25px;
  height: 30px;
  opacity: 1;
  cursor: pointer;
  gap: 40px;
  transition: 0.2s;
  margin-left: 30px;
}
.icon-img:hover {
  transform: translateY(-5px);
}
/* SEARCH */
.search-box {
  position: right;
  margin-right: 10px;
}

.search-box input {
  padding: 10px 1px 10px 15px;
  border: 4px solid #cccccca0;
}
.mathang-container{
    width: 100%;
    min-height: 100px;
    background: white;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 20px;

}
/* BOX */
.mathang-box{
    width: 100%;

    background: white;

    display: flex;

    overflow: hidden;

    position: relative;
}
.mathang-img{
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
}
.mathang-img img{
    width: 500px;
    height: fit-content;
    padding: 10px;
}
.mathang-info{
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: justify;
    padding: 10px;
}
.mathang-info img{
    width: 120px;
}
.img-info{
    display: flex;
    gap: 20px;
    padding: 10px;
    text-decoration: none;
}
.img-name{
    font-size: 18px;

    color: black;
}
.mathang-text{
    display: flex;

    flex-direction: column;

    gap: 8px;
}
.img-info img{
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
    padding: 5px;
}
/* =========================
   HAMBURGER ICON
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: black;
  transition: 0.3s;
}

/* =========================
   TABLET + MOBILE MENU
========================= */
@media (max-width: 992px) {

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* hiện hamburger */
  .hamburger {
    display: flex;
  }

  /* ẩn menu mặc định */
  .menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;

    flex-direction: column;
    gap: 15px;
    padding: 20px;

    display: none;
    z-index: 999;
    border-top: 1px solid #ddd;
  }

  /* khi bật menu */
  .menu.active {
    display: flex;
  }

  /* ẩn icon bên phải nếu muốn gọn */
  .nav-right {
    display: none;
  }
}

/* =========================
   ANIMATION HAMBURGER -> X
========================= */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}