.nav-search {
  height: 47px;
  position: relative;
}

.nav-vertical-center {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 0;
  margin-top: -15px;
  text-align: right;
}

.nav-icon-item {
  padding: 0 20px;
  position: relative;
}

.nav-icon-item:not(:last-child)::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: #ccc;
}

.nav-icon-item img {
  margin-right: 5px;
}

.search-input {
  width: 250px;
  height: 30px;
  display: inline-block;
  position: relative;
}

.search-input input {
  width: 100%;
  height: 30px;
  line-height: 30px;
  padding-left: 10px;
  padding-right: 35px;
  border: 1px solid #D74339;
  border-radius: 30px;
}

.search-input input:focus {
  outline: none;
}

.search-input .search-button {
  width: 35px;
  height: 100%;
  line-height: 30px;
  position: absolute;
  right: 0;
  top: 0;
  border: 0;
  background-color: transparent;
  background-image: url('../images/icon_glass.png');
  background-repeat: no-repeat;
  background-position: center center;
}

.nav-bar {
  height: 50px;
  background-color: #D74339;
}

.nav-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 999;
}

.nav-container > div {
  display: inline-block;
}

.nav-container .nav-logo {
  width: 175px;
}

.nav-logo img {
  height: 50px;
  width: 100%;
  object-fit: cover;
  background-color: #FFF;
}

.nav-container .nav-list {
  flex: 1;
  width: calc(100% - 229px);
  max-height: 50px;
  background-color: #D74339;
  z-index: 2;
  overflow: hidden;
}

.nav-container .nav-list.expanded {
  max-height: 100px;
  transition: max-height .3s ease-in-out;
}

.nav-container .nav-list.collapse {
  max-height: 50px;
  transition: max-height .3s ease-in-out;
}

.nav-list .nav-item {
  list-style: none;
  display: inline-block;
  width: 80px;
  padding: 0 8px;
  text-align: center;
  font-size: 16px;
  color: #fff;
  height: 50px;
  line-height: 50px;
  box-sizing: border-box;
}

.nav-list li a {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.nav-container .nav-collapse {
  font-size: 30px;
  width: 44px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  cursor: pointer;
}

.sub-nav {
  position: absolute;
  min-width: 200px;
  top: 50px;
  left: 0;
  z-index: 2;
  padding: 10px 0;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
  transition: all .3s ease-in-out;
  transform: translateY(50%);
  opacity: 0;
  visibility: hidden;
  z-index: 999999;
}

.show-sub-nav {
  transform: translateY(0%);
  opacity: 1;
  visibility: visible;
}

.sub-nav li {
  list-style: none;
  font-size: 15px;
  padding: 0px 22px;
  color: #333;
  text-align: left;
}

.sub-nav li:hover {
  color: #D74339;
}  

.arrow-icon {
  position: absolute;
  top: 21px;
  width: 0px;
  height: 0px;
  margin-top: -2px;
  border: 7px solid transparent;
  border-top: 8px solid #fff;
  transition: all .3s ease-in-out;
  transform: rotate(0);
}

.nav-list .nav-item:hover .arrow-icon {
  transform: rotate(180deg);
  margin-top: -10px;
}

@media (max-width: 576px) {
  .nav-container .nav-list {
    width: calc(100% - 44px);
  }

  .nav-icon-item {
    padding: 0 10px;
  }

  .search-input {
    width: 190px;
  }
}