.profession-list_container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  padding: 16px;
  padding-top: 4px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: linear-gradient(to right, var(--main-color) 18%, white 8%);
  color: var(--black);
  height: 80vh;
  overflow-y: auto;
  font-size: 1.6rem;
  z-index: 10;
}

.button-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 32px;
  left: 96%;
  width: 30px;
  height: 30px;
  position: sticky;
}

.close-profession-list_button {
  background: none;
  border: none;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.close-profession-list_button:hover {
  transform: rotate(90deg);
}

.profession-list_container h1 {
  border-radius: 4px;
  margin-bottom: 24px;
  letter-spacing: 2px;
  font-size: 1.6em;
  background-color: #fff;
  padding: 8px;
}

.profession-list {
  list-style: none;
  width: 100%;
}

.profession {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: #fff;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.profession:hover {
  background-color: var(--main-color);
  transition: all 300ms;
}

.profession:hover .salary {
  color: white;
}

.profession img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 16px;
}

.profession h2 {
  color: var(--black);
  font-size: 1.4em;
  margin-bottom: 8px;
}

.salary {
  color: var(--secound-color);
  margin-bottom: 8px;
  transition: color 300ms ease-in-out;
}

.description {
  font-size: 0.8em;
  font-weight: 100;
}
