* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #fcfcfc;
  padding: 28px 0px;
  font-family: "Poppins";
}
.box {
  padding: 32px;
  margin: 24px 0;
  background-color: white;
  border-radius: 20px;
}
.btn,
.btn:focus {
  font-family: "Poppins";
  font-style: normal;
  text-align: center;
  text-transform: capitalize;
  color: #222222;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.select,
.select:focus,
.select:focus-visible {
  outline: none;
  border: none;
  cursor: pointer;
  appearance: none;
  line-height: normal;
  position: relative;
  background-repeat: no-repeat;
}
.option {
  color: #223254;
}
.container {
  max-width: 954px;
  padding: 0 42px;
  margin: 0 auto;
}
.search-title {
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 160%;
  text-transform: capitalize;
  color: #222222;
}
.search-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}
.search-bar .search-input {
  height: 60px;
  width: 720px;
  margin-right: 20px;
  padding: 17px 0 17px 56px;
  background: #fcfcfc;
  outline: none;
  border: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border-radius: 8px;
  color: #bdbdbd;
}
.keyword-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
}

.search-bar .search-btn {
  width: 158px;
  height: 60px;
  background: #afd80c;
  font-weight: 600;
  font-size: 16px;
  line-height: 160%;
}

.search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.search-footer .jobs {
  display: flex;
  align-items: center;
  font-weight: 600;
}
.search-footer .jobs .jobs-icon {
  margin-right: 14px;
}
.search-footer .jobs .jobs-text {
  text-transform: capitalize;
  font-weight: 400;
}

.sorting {
  display: flex;
  align-items: center;
  font-weight: 600;
}
.sorting .dropdown {
  width: 80px;
  padding: 5px;
  font-size: 16px;
  background-image: url("./assets/img/arrow-down.png");
  background-position: right 0 top 50%;
}
.sorting > span {
  margin: 0 8px;
}

/* Job Posts */
.post-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.job-post .post-title {
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 160%;
  text-transform: capitalize;
  color: #222222;
}
.job-post .post-save-btn {
  width: 85px;
  height: 40px;
  font-weight: 500;
  font-size: 15px;
  line-height: 120%;
}
.job-post .post-save-btn:hover {
  background: #afd80c;
  transition: 0.1s ease-in-out;
}
.job-post .job-post-info {
  display: flex;
  justify-content: start;
  align-items: center;
}
.job-post .location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-right: 30px;
  font-style: normal;
  font-size: 15px;
  line-height: 160%;
}
.job-post .location .job-post-icon {
  margin-right: 10px;
}
.job-post .location span {
  font-weight: 600;
}
.job-post .age {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-style: normal;
  font-size: 15px;
  line-height: 160%;
}
.job-post .age .job-post-icon {
  margin-right: 10px;
}
.job-post .age span {
  font-weight: 600;
}
.job-post .job-post-desc {
  margin: 16px 0;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 160%;
  color: #4f4f4f;
}

.job-post-footer {
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: 15px;
}

.job-post-footer .job-post-icon {
  margin-right: 14px;
}
.job-post-footer .desc {
  text-transform: capitalize;
  font-style: normal;
  line-height: 160%;
}
.job-post-footer .desc .job-post-text {
  text-transform: capitalize;
  font-weight: 600;
}

/* Pagination */
.pagination-container {
  margin: 19px 0;
  display: flex;
  justify-content: end;
  align-items: center;
}
.pagination-container .pagination-dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  margin-right: 3px;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  color: #1f1e20;
}

.pagination-container .pagination-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination-container .pag-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 39px;
  height: 39px;
  background: #ffffff;
  border: 1px solid #f1f1f1;
  border-radius: 8px;
  transition: 0.1s ease-in-out;
  cursor: pointer;
}

.pagination-container .dropdown {
  width: 76px;
  height: 39px;
  padding: 0 10px;
  font-size: 14px;
  background-image: url("./assets/img/page-arrow.png");
  background-position: right 10px top 50%;
  background-color: #ffffff;
  border: 1px solid #f1f1f1;
  border-radius: 8px;
  transition: 0.1s ease-in-out;
}
.pagination-dropdown span {
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
}

.pagination-container .pag-btn.selected {
  border-color: #5244ab;
}
.pagination-container .pages {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}
.pagination-container .right-arrow {
  transform: rotate(-90deg);
}
.pagination-container .left-arrow {
  transform: rotate(90deg);
}
/* Media query */
@media screen and (max-width: 768px) {
  .search-bar .search-btn {
    min-width: 110px;
    height: 50px;
  }
  .search-bar .search-input {
    height: 50px;
    margin-right: 10px;
    padding: 17px 0 17px 45px;
  }
}
@media screen and (max-width: 568px) {
  body {
    padding: 8px 0px;
  }
  .box {
    padding: 25px;
    margin: 16px 0;
    border-radius: 20px;
  }
  .container {
    padding: 0 12px;
  }
  .search-bar .search-btn {
    min-width: 70px;
    font-size: 14px;
  }
  .search-title {
    font-size: 18px;
  }
  .search-bar {
    margin: 20px 0;
  }
  .keyword-icon {
    left: 12px;
  }
  .search-footer {
    font-size: 13px;
  }
  .search-footer .jobs .jobs-icon {
    margin-right: 12px;
  }
  .sorting .dropdown > span {
    margin: 0 6px;
  }

  /* Job post */
  .post-heading {
    margin-bottom: 15px;
  }
  .job-post .post-title {
    font-size: 15px;
  }
  .job-post .post-save-btn {
    width: 60px;
    height: 35px;
    font-size: 12px;
  }
  .job-post .location {
    font-size: 12px;
  }
  .job-post .location .job-post-icon {
    margin-right: 8px;
  }
  .job-post .age {
    font-size: 12px;
  }
  .job-post .age .job-post-icon {
    margin-right: 10px;
  }
  .job-post .job-post-desc {
    font-size: 13px;
  }

  .job-post-footer {
    font-size: 12px;
  }

  .job-post-footer .job-post-icon {
    margin-right: 8px;
  }

  /* Pagination */
  .pagination-container {
    flex-direction: column;
    margin: 15px 0;
  }
  .pagination-container .pagination-dropdown {
    margin-bottom: 10px;
  }

  .pagination-container .pagination-btns {
    gap: 4px;
  }
  .pagination-container .pag-btn {
    width: 30px;
    height: 30px;
  }
  .pagination-dropdown .dropdown {
    height: 30px;
    padding: 0 8px;
  }
  .pagination-dropdown span {
    font-size: 12px;
  }

  .pagination-container .pages {
    gap: 4px;
  }
}
