/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
#topbar {
  background: #114780;
  height: 40px;
  font-size: 14px;
  transition: all 0.5s;
  color: #fff;
  padding: 0;
}
/*topbar*/
#topbar ul{
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding-left: 0;
}
#topbar ul li{
  display: flex;
  align-items: center;
}
/* #topbar ul li::after{
  content: "　";
  margin: 0 8px;
} */
#topbar ul li a{
  display: inline-block;
  color: #fff;
  margin-right: 20px;
}
#topbar ul li a:hover{
  color: #fff;
}

/*--------------------------------------------------------------
  # Header
  --------------------------------------------------------------*/
#header {
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  height: auto;
  padding: 20px;
  /*30*/
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.36);
  padding: 1rem 0;
}

#header.fixed-top {
  height: 90px;
}

#header .logo {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: bold;
}

#header .logo a {
  display: flex;
  font-weight: bold;
  align-items: center;
}
#header .logo a:hover {
  text-decoration: none;
}
#header .logo a img{
  border-radius: 0;
}
#header .logo a span {
  display: none;
  color: #004ea2;
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 10px;
}

#header .logo img {
}

.scrolled-offset {
  margin-top: 90px;
}

/*--------------------------------------------------------------
  # Navigation Menu
  --------------------------------------------------------------*/
/**
  * Desktop Navigation 
  */
.navbar {
  padding: 0;
  margin-bottom: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;

}

.navbar li {
  position: relative;
  list-style: none;
}

.navbar>ul>li {
  white-space: nowrap;
  padding: 10px 0 10px 28px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  transition: 0.3s;
  position: relative;
  text-decoration: none;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar>ul>li>a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: #106eea;
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}

.navbar a:hover:before,
.navbar li:hover>a:before,
.navbar .active:before {
  visibility: visible;
  width: 100%;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #222222;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 0px;
  top: calc(100% + 10px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-weight: 400;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #222222;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 120%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

.form-select {
  padding: 0.175rem 0.75rem;
  background-position: 5.4rem 0.75rem;
}

.header-form>* {
  border-radius: 5px;
  height: 34px;
}

.header-form select {
  flex: 0 25%;
  position: relative;
  border-radius: 5px 0 0 5px;
}
.header-form select >*{
  max-width: fit-content;
  position: relative;
}

.form-select:focus,
.form-control:focus {
  border: 1px solid #ddd !important;
  box-shadow: none !important;
}
#cate{
  z-index: 99;
  padding:0 1.6rem 0 1rem;
  background-color: #fff;
  /* border-color: #b90000; */
  color: #000;
}
#cate select option:hover { 
  color: #333!important; 
  background-color: #ddd;
}
.header-form .input-search{
  margin-left: -15px;
  z-index: 100;
  padding-left: 20px;
  border-radius: 0;/* 5px 0 0 5px */
  background-color: #ffffff;
  /* border-color: #b90000; */
}
.header-form button {
  background-color: #114780;
  border-color: #114780;
  color: #fff;
  flex: 0 20%;
  padding: 0.3rem 0.75rem 0.45rem 0.75rem;
}
.btn:hover {
  color: #fff;
  background-color: #185ba2;
  border-color: #185ba2;
}
.header-form button:hover{
  background-color: #114780;
  border-color: #114780;
}
.search-btn{
  min-height: 34px;
  border-radius: 0 5px 5px 0;
}
.login button {
  padding: 5px 20px;
}
@media(max-width:1400px){
  .login button {
    padding: 5px 10px;
}
}
@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}
@media (max-width: 1200px){
  .login button {
    padding: 5px 10px;
  }
  .header-form{
    flex: 0 40%;
  }
  .header-form .input-search{
    flex: 0 50%;
  }
  .header-form select {
    flex: 0 30%;
  }
}

.btn-warning {
  background-color: #114780;
  border-color: #114780;
  color: #fff;
  border-radius: 5px;
  font-weight: 500;
}
.btn-outline {
  border-color: #114780;
  color: #fff;
}
header .btn-outline:hover, header .btn-outline:focus, header .btn-outline:active {
  background-color: #114780;
  color: #fff;
  border: 1px solid #114780;
}

.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
  background-color: #185ba2;
  border-color: #185ba2;
  color: #fff;
}
header .btn-warning:hover,header .btn-warning:focus,header .btn-warning:active,header :not(.btn-check)+.btn:active {
  background-color: #114780;
  border-color: #114780;
  color: #fff;
}
.login-block,.register-block{
  position: relative;
}
.linkM{
  padding: 1rem;
  display: none;
  background-color: #fff;
  box-shadow: 0px 1px 3px 2px #828282b0;
  position: absolute;
  width: 140px;
  top: 50px;
  right: 0px;
  z-index: 999;
}
.linkM a{
  margin-bottom: 0.5rem;
}
.linkR{
  padding: 1rem;
  display: none;
  background-color: #fff;
  box-shadow: 0px 1px 3px 2px #828282b0;
  position: absolute;
  width: 140px;
  top: 50px;
  right: -20px;
}
.login-block a,.register-block a{
  text-align: center;
  display: block;
}


/**
  * Mobile Navigation 
  */
.mobile-nav-toggle {
  color: #222222;
  font-size: 36px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .navbar-mobile{
    flex-direction: column;
    justify-content: space-between;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
  #navbar .header-form{
    flex: 0 100%;
    flex-wrap: wrap;
  }
  #navbar .header-form input{
    flex: 0 100%;
  }
  #navbar .header-form select{
    border-radius: 4px;
  }
  .header-form button {
    margin-top: 5px;
    flex: 0 100%;
  }
  .mb-search{
    width: 100%;
  }
  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    padding: 0 3px;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
    text-decoration: none;
  }
  .navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(9, 9, 9, 0.6);
    transition: 0.3s;
    z-index: 999;
  }
  
  .navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 25px;
    left: 15px;
  }
  
  .navbar-mobile>ul {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 15px;
    padding: 1rem;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
    max-width: 300px;
    height: 100vh;
  }
  
  .navbar-mobile a,
  .navbar-mobile a:focus {
    padding: 10px 20px;
    font-size: 15px;
    color: #222222;
  }
  
  .navbar-mobile>ul>li {
    padding: 0;
  }
  
  .navbar-mobile a:hover:before,
  .navbar-mobile li:hover>a:before,
  .navbar-mobile .active:before {
    visibility: hidden;
  }
  
  .navbar-mobile a:hover,
  .navbar-mobile .active,
  .navbar-mobile li:hover>a {
    color: #222222;
  }
  
  .navbar-mobile .getstarted,
  .navbar-mobile .getstarted:focus {
    margin: 15px;
  }
  
  .navbar-mobile .dropdown ul {
    position: static;
    display: none;
    margin: 10px 20px;
    padding: 10px 0;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  }
  
  .navbar-mobile .dropdown ul li {
    min-width: 200px;
  }
  
  .navbar-mobile .dropdown ul a {
    padding: 10px 20px;
  }
  
  .navbar-mobile .dropdown ul a i {
    font-size: 12px;
  }
  
  .navbar-mobile .dropdown ul a:hover,
  .navbar-mobile .dropdown ul .active:hover,
  .navbar-mobile .dropdown ul li:hover>a {
    color: #222222;
  }
  
  .navbar-mobile .dropdown>.dropdown-active {
    display: block;
  }
  .mb-social a{
    display: inline-block;
    padding: 0;
    margin-right: 10px;
  }
  .mb-login{
    margin-top: 1.5rem;
    background-color: #ececec;
  }
}



@media(max-width:768px) {
  header>.container {
    flex-wrap: wrap;
  }
}

@media(max-width:500px) {
  .header-form {
    flex-wrap: wrap !important;
  }
  .header-form * {
    margin-bottom: 0.5rem;
  }
  .header-form input {
    flex: 0 100%;
  }

  .header-form select {
    flex: 0 100%;
  }

  .header-form button {
    flex: 0 100%;
    padding: auto;
  }
  .logo img{
    max-width: 300px;
  }
}
@media (max-width: 360px){
.logo img {
    max-width: 250px;
}
}
