@media (min-width: 1200px) and (max-width: 1399.98px) {
  .slogan-top-content-date {
    font-size: 14px !important;
  }
  .slogan-top-content-slogan {
    font-size: 14px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .main-nav {
    display: flex !important;
    align-items: center !important;
  }
  .slogan-top-content-date {
    font-size: 11px;
  }
  .slogan-top-content-slogan {
    font-size: 12px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .main-nav {
    display: flex !important;
    align-items: center !important;
  }
  .slogan-top-content-date {
    font-size: 11px;
  }
  .slogan-top-content-slogan {
    font-size: 12px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .main-nav {
    display: flex !important;
    align-items: center !important;
  }
}

@media (max-width: 576px) {
  .main-nav {
    display: flex !important;
    align-items: center !important;
  }
  .head-background-content-left-title1,
  .head-background-content-left-title2 {
    font-size: 20px;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.98);
    border: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
    border-radius: 0;
  }

  .navbar-nav .dropdown-item {
    padding: 12px 20px;
    white-space: normal;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }

  .navbar-nav .dropdown-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link.dropdown-toggle::after {
    float: right;
    margin-top: 10px;
  }
}

/* Giao diện cho thiết bị to menu không lỗi */
@media (min-width: 992px) {
  /* Xoay icon khi hover */
  .nav-item.has-submenu:hover .nav-link i {
    transform: rotate(180deg);
  }

  /* Ẩn menu con mặc định */
  .nav-item.has-submenu .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* min-width: calc(100% + 20px); */
    width: 420px;
  }

  /* Hiển thị menu con khi hover */
  .nav-item.has-submenu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Hiệu ứng cho từng item */
  .dropdown-menu .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
  }

    .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #003d82;
        font-weight: 800;
        padding-left: 30px;
    }
}

@media (max-width: 767.98px) {
  .head-background-content-right {
    margin: 15px 0 !important;
  }

  .search-form {
    max-width: 100%;
  }

}
