/**
 * Navigation CSS - Chính xác từ soicau247s.org
 * Áp dụng CSS từ website gốc
 */

/* ============================================
   BASE STYLES
   ============================================ */

*, ::after, ::before {
  box-sizing: border-box;
}

a, button {
  text-decoration: none;
  cursor: pointer;
}

a, button, img, input, span {
  transition: all 0.3s ease 0s;
}

*:focus {
  outline: none !important;
}

a:focus {
  color: inherit;
  outline: none;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

ul, li {
  list-style: outside none none;
  margin: 0;
  padding: 0;
}

/* ============================================
   HEADER MENU - Chính xác từ soicau247s.org
   ============================================ */

.bg-blue1 {
  background: #ed1c24 !important;
}

a {
  color: #1D1D1D;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

header {
  color: #4A4A4A;
  font-size: 13px;
  background: white;
}

.header-menu {
  font-size: 14px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9 !important;
}

.header-menu a {
  color: #ffffff !important;
}

.header-menu .menu {
  display: none;
}

@media (min-width: 992px) {
  .header-menu .menu > li {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .header-menu .menu > li > a {
    padding: 1rem;
    display: block;
    max-height: 100%;
  }
  
  .header-menu .menu > li > .sub-menu {
    top: 100%;
  }
  
  .header-menu .menu ul {
    padding-left: 0;
    position: absolute;
  }
}

@media (min-width: 992px) {
  .header-menu {
    margin-bottom: 1rem;
  }
}

.header-menu li:hover > .sub-menu {
  z-index: 2;
  display: block !important;
}

/* ============================================
   ACTIVE MENU - Trang chủ
   ============================================ */

.active-menu {
  box-shadow: 0 -8px #ED1C24 !important;
  background: #ED1C24 !important;
  position: relative !important;
}

.active-menu:after {
  position: absolute;
  bottom: 100%;
  left: 100%;
  content: "";
  display: block;
  border-top: 4px solid transparent;
  border-right: 4px solid transparent;
  border-left: 4px solid #8A0005;
  border-bottom: 4px solid #8A0005;
}

/* ============================================
   MAIN MENU PC
   ============================================ */

.main-menu-pc .sub-menu {
  display: none;
}

.main-menu-pc .sub-menu a {
  color: #3E3F42 !important;
}

.main-menu-pc .sub-menu a:hover {
  color: #ED1C24 !important;
}

@media (max-width: 991px) {
  .main-menu-pc .sub-menu {
    padding-left: 0.7rem;
  }
}

@media (min-width: 992px) {
  .main-menu-pc label {
    display: none;
  }
  
  .main-menu-pc > li > a:hover {
    box-shadow: 0 -8px #ED1C24 !important;
    background: #ED1C24 !important;
    position: relative !important;
    color: white !important;
  }
  
  .main-menu-pc > li > a:hover:after {
    position: absolute;
    bottom: 100%;
    left: 100%;
    content: "";
    display: block;
    border-top: 4px solid transparent;
    border-right: 4px solid transparent;
    border-left: 4px solid #8A0005;
    border-bottom: 4px solid #8A0005;
  }
  
  .main-menu-pc .sub-menu {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    white-space: nowrap !important;
    padding: 0 !important;
    background: #ffffff !important;
    top: 100% !important;
  }
  
  .main-menu-pc .sub-menu li {
    min-height: 35px;
    display: flex;
    align-items: center;
  }
  
  .main-menu-pc .sub-menu .sub-menu {
    left: 100% !important;
    top: 0 !important;
  }
  
  .main-menu-pc .sub-menu a {
    padding: 0.5rem 1rem;
  }
}

/* ============================================
   SEARCH FORM
   ============================================ */

.input-search-menu::placeholder {
  font-size: 11px;
  padding-left: 0.5rem;
}

.box-search-menu {
  top: 100%;
  right: 0;
  min-width: 150px;
  z-index: 3;
}

.btn-search-menu {
  padding-right: 0.5rem;
}

.btn-search-menu:focus {
  box-shadow: unset;
}

@media (min-width: 992px) {
  .btn-search-menu {
    padding: 0;
  }
}

.btn-search-menu img {
  width: 20px;
  height: 20px;
}

@media (max-width: 991px) {
  .btn-search-menu img {
    width: 15px;
    height: 15px;
  }
}

/* ============================================
   BOOTSTRAP OVERRIDES
   ============================================ */

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.flex-nowrap {
  -ms-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.p-3 {
  padding: 1rem !important;
}

.ml-auto {
  margin-left: auto !important;
}

.d-none {
  display: none !important;
}

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
  
  .d-lg-flex {
    display: -ms-flexbox !important;
    display: flex !important;
  }
}

.nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

.nav-link:focus, .nav-link:hover {
  text-decoration: none;
}

.flex-column {
  -ms-flex-direction: column !important;
  flex-direction: column !important;
}

.form-inline {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -ms-flex-align: center;
  align-items: center;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
  color: #212529;
  text-decoration: none;
}

.mh-100 {
  max-height: 100% !important;
}

@media (min-width: 992px) {
  .flex-lg-nowrap {
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
  }
}
