header {
  background-color: var(--text-inverse);
}

header .nav-bar {
  width: 100%;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.09);
}

header .nav-bar .nav-container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .nav-bar .nav-links-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex: 6;
  .hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
  }

  .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    max-width: 600px;
    /* width: 55%; */
    margin: 20px auto;

    .nav-item {
      a {
        color: var(--text-primary);
        text-decoration: none;
      }
    }
    .logo a img {
      height: 145px;
      aspect-ratio: 1;
    }

    .mb-dw-logo {
      display: none;
    }

    .mb-dw-logo a img {
      height: 100px;
      aspect-ratio: 1;
    }
  }

  .login-box {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;

    .after-lgn {
      display: flex;
      /* display: none; */
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      padding: 0 20px;
    }

    .after-lgn .profile-container {
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
      img.profile-img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
      }
    }

    .after-lgn .profile-container span {
      font-size: 12px;
      text-align: right;

      strong {
        font-size: 15px;
        font-weight: normal;
      }
    }

    .profile-container .profile-dropdown {
      width: fit-content;
      display: none;
      background-color: var(--bg-secondary);
      z-index: 10;
      position: absolute;
      right: 0;
      top: 85%;
      padding-right: 20px;
      border-radius: 10px;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
      min-width: 170px;
      li {
        padding: 10px 15px;
        cursor: pointer;
        list-style: none;
      }
      li.heading {
        font-style: italic;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 14px;
        padding: 5px 10px;
      }
      li a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-quaternary);
        text-decoration: none;
      }
      li a img {
        width: 20px;
        height: 20px;
      }
    }
    /* .profile-container:hover .profile-dropdown {
      display: block;
    } */

    .profile-container.active .profile-dropdown {
      display: block;
    }
  }
}

header .nav-bar .logo-head {
  display: flex;
  justify-content: space-between;
  flex: 1;

  a img {
    width: 125px;
  }
}

header .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--text-inverse);
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  header .nav-bar a {
    flex: 1;
  }

  header .nav-bar .nav-container {
    flex: 1;
  }

  header .nav-bar .nav-links-wrapper {
    flex-direction: row-reverse;
    flex: 3;
    .nav-links {
      justify-content: start;
    }
    .hamburger {
      display: block;
      font-weight: 500;
    }
  }
  header .nav-bar .logo-head {
    flex: 2;
  }
}

@media (max-width: 1000px) {
  header .nav-bar {
    padding: 2% 0;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.09);
  }

  header .nav-bar .nav-container {
    display: flex;
    justify-content: space-between;
    padding: 1.5%;

    .nav-links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      min-width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.9);
      display: flex;
      flex-direction: column;
      justify-content: start;
      align-items: center;
      gap: 20px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-100%);
      transition: all 0.5s ease-in-out;

      .nav-item {
        padding: 5px;
        text-align: left;
        width: 100%;

        a {
          color: var(--text-inverse);
          padding: 0 calc(8.39664px + 3.086vw);
          display: block;
        }
      }

      .mb-dw-logo {
        display: block;
        padding: 20px 0;
        margin-bottom: 30px;
      }
    }

    .nav-links.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      z-index: 99;
      display: flex;
      padding-top: 15%;
      margin-block: 0;

      .close-btn {
        display: block;
      }
    }
  }

  header .nav-bar .nav-links-wrapper {
    flex-direction: row-reverse;
    justify-content: end;
    gap: 6%;
    .hamburger {
      display: block;
      font-weight: 500;
    }
  }

  header .nav-bar .logo-head {
    position: static;

    img.IQNova-logo {
      width: 100px;
      top: 0;
      left: 15px;
    }
  }

  header .nav-bar a {
    img.mb-logo {
      display: block;
      height: 100px;
      width: fit-content;
      margin: 0 auto;
    }
  }
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Container */
header .notification-container {
  position: relative;
}

/* Bell button */
header .icon-wrapper {
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  padding: 6px;
}

/* Bell icon */
header .icon-wrapper .icon {
  width: 22px;
  height: 22px;
}

/* Badge */
header .badge {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 15px;
  height: 15px;
  background: #ef4444;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  display: none;
}

header .badge.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dropdown */
header .notification-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  width: 360px;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: var(--shadow-primary);
  display: none;
  /* opacity: 0; */
  /* visibility: hidden; */
  /* transform: translateY(-8px); */
  /* transition: all 0.25s ease; */
  z-index: 1000;
}

/* Open state */
/* header .notification-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
} */

/* Arrow */
header .arrow-up {
  position: absolute;
  top: -10px;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--bg-accent-2);
  z-index: 99;
}

/* Heading */
header .notification-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 12px;
  color: var(--text-inverse);
  font-weight: 500;
  background: var(--bg-primary-gradient);
}
header .notification-heading img {
  width: 20px;
  filter: brightness(0) invert(1);
}
/* List */
header .notification-list {
  list-style: none;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  color: var(--text-tertiary);
  font-weight: 400;
}

header .notification-content {
  border-radius: 12px;
  overflow: hidden;
}

/* Item */
header .notification-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

header .notification-item:hover {
  background: rgba(7, 149, 161, 0.05);
}

/* Icon */
header .notification-icon .icon {
  width: 20px;
  height: 20px;
}

/* Text */
header .notification-title {
  font-size: 13px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

header .notification-description {
  font-size: 12px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

header .notification-description a {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}

header .notification-description a::after {
  content: " →";
}

/* Action */
header .notification-action {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-accent-1);
}

header .notification-view-all {
  text-align: center;
  padding: 10px;
  border-top: 1px solid var(--text-muted);
}

header .notification-view-all a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  border: 1px solid var(--text-primary);
  border-radius: 20px;
  padding: 4px 28px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
header .notification-view-all a:hover {
  background: var(--text-primary);
  color: #fff;
}

/* Mobile */
@media (max-width: 480px) {
  header .arrow-up {
    top: -10px;
    right: 12vw;
  }

  header .notification-dropdown {
    width: 80vw;
    right: -12vw;
  }
}
