:root {
  --blue-color: rgb(54, 83, 248);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
html {
  scroll-behavior: smooth;
}
.main {
}
/* header */
.header {
  position: fixed;
  width: 100%;
  height: 50px;
  background-image: linear-gradient(0, #34465b, #34465b);
  z-index: 1;
}

.nav {
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  height: 50px;
  display: flex;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  list-style-type: none;
  align-items: center;
}

.nav-home {
  border-bottom: 5px solid rgb(135, 195, 255);
}
.nav-item {
  height: 50px;
}

.parent-nav {
  position: relative;
}
.parent-nav > a {
  cursor: text;
}
.parent-nav:hover .sub-nav {
  height: 100px;
  transition: linear 0.2s;
}

.sub-nav {
  /* border: 1px solid #e9e7f7; */
  overflow: hidden;
  height: 0;
  width: 210px;
  position: absolute;
  top: 50px;
  left: 0;
  list-style-type: none;
  background-color: #eaecee;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.sub-nav__item a {
  color: #fff;
}
.sub-nav__item:hover,
.sub-nav__item:hover > a {
  background-color: rgb(248, 248, 248);
  transition: ease-in 0.1s;
  color: #fff;
}
.sub-nav__item > a {
  padding: 16px 0;
  color: #000 !important;
  display: block;
  text-decoration: none;
  text-align: center;
}
/* Notification */
.parent-notify {
  position: relative;
}
.parent-notify:hover .header__notify {
  display: block;
  transform-origin: calc(100% - 30px) top;
  animation: header__notify-growth ease-in 0.2s;
  will-change: opacity, transform;
}
.header__notify {
  display: none;
  width: 380px;
  background-color: #fff;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  border: 1px solid #e9e7f7;
}
.header__notify::before {
  content: "";
  position: absolute;
  top: -33px;
  right: 32px;
  border-width: 20px 30px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.header__notify-heading {
  text-transform: capitalize;
  padding: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #999;
  margin-bottom: 16px;
  user-select: none;
  -webkit-user-select: none;
}

.header__notify-list {
  list-style-type: none;
}

.header__notify-item {
  padding: 6px 0;
}
.header__notify-item:hover {
  background-color: rgb(248, 248, 248);
}

.header__notify-link {
  display: flex;
  text-decoration: none;
}

.header__notify-viewed {
  background-color: rgba(52, 70, 91, 0.1);
}

.header__notify-img {
  padding: 4px;
  width: 40px;
  object-fit: contain;
}
.header__notify-info {
  line-height: 1.2rem;
}

.header__notify-name {
  font-size: 13px;
  color: #222;
}

.header__notify-description {
  font-size: 12px;
  color: #666;
}
.header__notify-footer {
  text-align: center;
  height: 35px;
  background-color: rgb(242, 242, 242);
}
.header__notify-footer:hover {
  background-color: rgb(248, 248, 248);
}
.header__notify-footer .header__notify-footer-link {
  display: block;
  width: 100%;
  margin: 0;
  color: #222;
  line-height: 35px;
  text-decoration: none;
}
/* nav-search */
.nav-search {
  font-size: 18px;
  background-color: #34465b;
  padding: 4px 0;
  border: none;
  color: #fff;
}
.nav-item:hover {
  border-bottom: 5px solid rgb(135, 195, 255);
  transition: ease 0.2s;
}
.nav-item > a {
  line-height: 50px;
  margin: 0 12px;
  padding: 14px 0;
  color: #fff;
  font-size: 19px;
  text-decoration: none;
}
.nav-item > a:hover {
  opacity: 0.7;
  transition: linear 0.2s;
}

@keyframes header__notify-growth {
    from {
      transform: scale(0);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
