nav {
  height: fit-content;
  min-height: 140px;
  display: flex;
  align-items: center;
}

.btn-submit.disabled,
.btn-submit:disabled {
  background-color: #d9534f;
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.left-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 40px;
}

.logo-ctn {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-direction: column;
}

.logo-ctn {
  gap: 12px;
  position: absolute;
  z-index: 1000;
  top: 40px;
  pointer-events: none;
  user-select: none;
}

@media screen and (max-width: 768px) {
  .logo-ctn {
    top: 20px;
  }
  header .container {
    max-width: 100%;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  font-weight: bold;
  font-size: 18px;
  line-height: 24px;
  text-transform: uppercase;
}

.nav-links a {
  padding: 12px;
  border-radius: 16px;
  position: relative;
  color: #333;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: #fdeeeb;
}

.nav-links a:hover::after {
  width: 100%;
}

.right-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-register {
  display: block;
  width: 168px;
  height: 48px;
  line-height: 48px;
  font-size: 16px;
  border-radius: 50px;
  color: #ffffff;
  text-align: center;
  background-color: #eb5d40;
}

.btn-register:hover {
  background-color: #d9534f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
}

.user {
  display: flex;
  gap: 16px;
  width: max-content;
  align-items: center;
}

.user:hover {
  cursor: pointer;
}

.user-avatar {
  border: 2px solid #67c2ff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 16px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav .user-name img {
  filter: brightness(0) invert(1);
}

nav .user-name {
  color: #ffffff;
}

nav .user {
  position: relative;
}

nav .user .user-dropdown {
  position: absolute;
  width: 100%;
  top: calc(100% + 8px);
  right: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

nav .user .user-dropdown.show {
  max-height: 500px; /* đủ lớn để chứa nội dung */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

nav .user .user-dropdown ul li {
  padding: 8px 16px;
}

nav .user .user-dropdown ul li a {
  display: block;
  width: 100%;
  height: 100%;
  font-family: "MontMedium";
  font-size: 16px;
  line-height: 24px;
  color: #000000;

  transition: all 0.3s ease;
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 10000000;
  transition: right 0.3s ease;
  background: #A62120;
  /* background: url(https://bansac.vn/gioi-thieu/images/bg-menu-mb.png) no-repeat center center/cover; */
}

.mobile-menu * {
  color: #ffffff;
}

.mobile-menu .mobile-nav-links a {
  font-family: "PhuduBold";
  font-size: 40px;
  color: #fdf5ea;
  font-weight: normal;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
}

.close-menu {
  width: 30px;
  height: 30px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.close-menu span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  top: 50%;
  left: 0;
}

.close-menu span:first-child {
  transform: rotate(45deg);
}

.close-menu span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu-content {
  padding: 20px;
}

.mobile-nav-links {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 150px;
}

.mobile-nav-links li {
  margin: 15px 0;
}

.mobile-nav-links a {
  font-family: "Phudu";
  font-size: 28px;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-weight: bold;
}

.mobile-user-ctn {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: rgb(255, 255, 255, 0.3);
  backdrop-filter: blur(10px); /* Làm mờ nền */
  -webkit-backdrop-filter: blur(10px); /* Safari hỗ trợ */
}

.mobile-user {
  display: flex;
  align-items: center;
  gap: 15px;

  position: relative;
}

.arr-right {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.arr-right.rotate-90 {
  transform: translateY(-50%) rotate(90deg);
}

.mobile-btn {
  width: 100%;
  text-align: center;
}

body.menu-open {
  overflow: hidden;
}

.burger-menu {
  position: fixed;
  top: 58px;
  right: 36px;
  z-index: 1001;
  cursor: pointer;
  background: #00000052;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.burger-menu:hover {
  opacity: 0.8;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #000000;
  margin-bottom: 5px;
}
.burger-menu span:last-child {
  margin-bottom: 0;
}
.user-logout-mobile {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  background-color: rgb(255, 255, 255, 0.14);
  border-radius: 12px;

  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: none;
  margin-bottom: 8px;
  margin-top: 8px;
}

.user-logout-mobile.show {
  max-height: 300px; /* đủ lớn để chứa nội dung */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: block;
}

.nav-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.nav-title .title-bo {
  color: #ffffff;
  text-transform: uppercase;
  font-family: "Phudu";
  font-weight: bold;
  font-size: 32px;
  text-align: center;
}

.nav-title .title-cty {
  color: #ffffff;
  text-transform: uppercase;
  font-family: "Phudu";
  font-weight: bold;
  font-size: 20px;
  text-align: center;
}

.nav-title-logo {
  display: none;
}

@media screen and (max-width: 1200px) {
  .nav-links {
    font-size: 14px;
    gap: 5px;
  }
}

@media screen and (max-width: 1080px) {
  .nav-title .title-bo {
    font-size: 30px;
    text-align: center;
  }

  .nav-title .title-cty {
    font-size: 18px;
  }
}

@media screen and (max-width: 1000px) {
  .nav-title-logo {
    padding-top: 64px;
  }
  .nav-title .title-bo {
    display: none;
  }

  .nav-title .title-cty {
    display: none;
  }

  .nav-title-logo {
    display: block;
  }
  .nav-title-logo img {
    width: 100%;
    height: auto;
    transform: scale(1.45);
  }

  .burger-menu {
    position: fixed;
    top: 20px;
    right: 16px;
  }
}

@media screen and (max-width: 992px) {
  .btn-register {
    display: none;
  }

  .btn-register.mobile-btn {
    display: block;
    max-width: 300px;
    width: 100%;
    margin: 10px auto;
  }

  .user {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .burger-menu {
    display: flex;
    width: 32px;
    height: 32px;
  }

  .burger-menu span{
    width: 20px;
    height: 2px;
  }
}

@media screen and (max-width: 768px) {
  .video-wrapper {
    height: 274px!important;
    aspect-ratio: 16/9;
    padding-bottom: 0!important;
    margin-bottom: 24px!important;
  }
}

@media screen and (max-width: 450px) {
  nav {
    min-height: 90px;
  }

  .nav-title-logo {
    padding-top: 0px;
  }
}