header.header {
  background-color: $primary;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  color: $text-light;
  padding-block: 0.5rem;
  padding-inline: 6.25rem;

  .logo {
    display: inline-flex;
    align-items: center;
    .logo-link {
      img {
        width: 50px;
        height: auto;
        aspect-ratio: 1 / 1;
      }
    }
    .logo-text {
      margin-left: 0.44rem;
      font-size: 1.75rem;
      font-weight: 800;
      line-height: normal;
      color: $text-light;
      text-decoration: none;
    }
  }

  nav {
    flex: 1;
    ul {
      width: 100%;
      display: inline-flex;
      align-content: center;
      justify-content: space-evenly;
      list-style-type: none;

      a {
        color: $text-light;
        text-decoration: none;
        font-size: 1rem;
      }
    }
  }

  .apply-now {
    display: inline-flex;
    align-items: center;
    a {
      text-decoration: none;
      background-color: $secondary;
      color: $text-light;
      padding-block: 0.81rem;
      padding-inline: 2.56rem;
      border-radius: 1.5625rem;
      flex-shrink: 0;
      border: 1px solid transparent;
      cursor: pointer;
      text-transform: capitalize;
      font-size: 1rem;
      font-weight: 400;
      line-height: normal;
    }
    button.dropdown {
      display: none;
    }
  }
}

.dropdown-list {
  display: none;
}

@media screen and (max-width: 1024px) {
  header.header {
    padding-inline: 1rem;
  }
}

@media screen and (max-width: 768px) {
  header.header {
    nav {
      display: none;
    }
    .apply-now {
      a {
        padding-inline: 1.5rem;
        margin-right: 0.25rem;
      }
      button.dropdown {
        display: block;
        padding: 0.5rem;
        border: 0;
        background-color: transparent;
        cursor: pointer;
        svg {
          width: 32px;
          height: 32px;
          color: white;
        }
      }
    }
  }
  .dropdown-list {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    padding-inline: 1rem;
    padding-block: 0.5rem;
    width: 100%;
    background-color: $primary;
    display: grid;
    place-items: center;
    row-gap: 0.5rem;
    nav {
      padding-top: 5rem;
      ul {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        gap: 1rem;
        list-style-type: none;
        text-align: center;
        a {
          color: $text-light;
          text-decoration: none;
          font-size: 1rem;
        }
      }
    }
    button {
      display: block;
      padding: 0;
      border: 0;
      background-color: transparent;
      cursor: pointer;
      svg {
        width: 24px;
        height: 24px;
        color: white;
      }
    }
  }
}
