*, *::before, *::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  --body-bg-color:#F4F6F8;
  --component-bg-color:#FFFFFF;
  --filter-svg-color: rgb(110, 128, 151);
  --companySite-btn: rgba(147, 155, 244, 0.4);
  --companySite-btn-font: #5c66dc;
  --input-text-color: #121721;
  --heading-color: #121721;
  --checkbox-bg-color:#9DAEC2;
  --general-text-color: rgb(113, 127, 150);
  --external-link-bg-color: rgba(147, 155, 244, 0.4);
  --btn-bg-color: #5c66dc;
  --btn-bg-color-hover: #939BF4;
  --search-btn-bg-color: #5c66dc;
  --search-btn-bg-color-hover: #939BF4;
  background-color: var(--body-bg-color);
  font-family: "Kumbh Sans", sans-serif;
  transition: ease-in 0.2s;
}

body.dark {
  position: relative;
  --body-bg-color:#121721;
  --component-bg-color:#19202D;
  --filter-svg-color: #FFFFFF;
  --input-text-color: #FFFFFF;
  --heading-color: #FFFFFF;
  --checkbox-bg-color:rgb(113, 127, 150);
  --general-text-color: #9DAEC2;
  --companySite-btn: rgb(113, 127, 150);
  --companySite-btn-font: white;
  --external-link-bg-color:rgba(92, 102, 220, 0.4);
  --btn-bg-color: #6770db;
  --btn-bg-color-hover: #939BF4;
  --search-btn-bg-color: #6770db;
  --search-btn-bg-color-hover: #939BF4;
}

body > * {
  margin: 0 auto;
}

.container {
  margin: 0 auto;
  width: calc(100% - 2rem);
  max-width: 1110px;
}

.btn {
  background-color: var(--btn-bg-color);
  border-radius: 5px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #FFFFFF;
  font-family: "Kumbh Sans", sans-serif;
  font-weight: 700;
  border: none;
  transition: ease-in 0.1s;
  font-size: 1.2rem;
  font-weight: 500;
}
.btn:hover {
  cursor: pointer;
  background-color: var(--btn-bg-color-hover);
}

header {
  height: 7rem;
  width: 100%;
  border-bottom-left-radius: 5rem;
  background-image: url(./assets/mobile/bg-pattern-header.svg);
  background-size: cover;
  background-position: center;
  z-index: 1;
  position: fixed;
  top: 0;
}

.top__container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem auto 1.75rem auto;
}

h1 {
  font-size: 1.4rem;
  color: #FFFFFF;
}

.nightSwitch__container {
  display: flex;
  align-items: center;
  position: relative;
}

.sun__svg, .moon__svg {
  width: 20px;
  height: 20px;
}

.sun__svg {
  margin-right: 0.5rem;
}

.toggle__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.check {
  display: block;
  position: relative;
  height: 20px;
  width: 40px;
  background-color: #FFFFFF;
  border-radius: 20px;
  cursor: pointer;
  transition: ease-in 0.3s;
  overflow: hidden;
  margin-right: 0.5rem;
}

.check:before {
  content: "";
  display: block;
  position: absolute;
  height: 16px;
  width: 16px;
  top: 2px;
  left: 2px;
  border-radius: 20px;
  background-color: #5c66dc;
  transition: ease-in 0.2s;
}

.check:hover:before {
  background-color: #939BF4;
}

input[type=checkbox].toggle__input:checked + .check:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.searchbar__container {
  background-color: var(--component-bg-color);
  left: 50%;
  border-radius: 5px;
  padding: 0.75rem;
  align-items: center;
}

.searchbar__mobile {
  display: flex;
}

.searchbar__desktop {
  display: none;
}

.search {
  background-color: var(--component-bg-color);
  font-family: "Kumbh Sans", sans-serif;
  padding: 0.75rem;
  border: none;
  font-size: 1rem;
  color: var(--input-text-color);
  font-weight: 300;
}

.search::-webkit-search-cancel-button {
  appearance: none;
}

.search:focus {
  outline: none;
}

label {
  display: flex;
  align-items: center;
}

.sr-only {
  position: absolute;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.title__label__desktop, .filter__label__desktop {
  width: 100%;
}

.mobile_title_label {
  width: 130px;
  flex-grow: 1;
}

.search__input {
  width: 100%;
}

.search__input::placeholder, .filter__search::placeholder {
  color: rgba(113, 127, 150, 0.85);
}

.filter__btn, .search__btn {
  padding: 0.5rem;
  border: none;
}
.filter__btn:hover, .search__btn:hover {
  cursor: pointer;
}

.filter__btn {
  margin: 0 0.5rem;
  padding: 0.5rem;
  background-color: transparent;
  border: none;
}

.search__btn {
  background-color: var(--search-btn-bg-color);
  border-radius: 5px;
  transition: ease-in 0.1s;
}
.search__btn:hover {
  background-color: var(--search-btn-bg-color-hover);
}

.search__svg, .filter__svg, .location__svg {
  transform: scale(0.75);
}

.search__btn-desktop {
  font-size: 1rem;
  padding: 0.85rem;
}

.search__svg {
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  fill: white;
}

.filter__svg {
  fill: var(--filter-svg-color);
  height: 20px;
  width: 20px;
}

.location__svg {
  fill: var(--btn-bg-color);
  width: 35px;
  height: 35px;
}

.dialog-container {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
}

.dialog-overlay {
  background-color: rgba(43, 46, 56, 0.7); /* 1 */
  width: 100%;
  height: 100%;
  animation: fade-in 200ms both;
}

.filter__container {
  padding: 0.5rem;
  background-color: var(--component-bg-color);
  border-radius: 5px;
  animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
  min-width: 337px;
  max-width: 339px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.filter__container > * {
  padding: 1rem;
}

/* 'fade-in' animation for modal + overlay  */
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes slide-up {
  from {
    transform: translate(10% 10%);
  }
}
.filter__container-top {
  border-bottom: 2px solid rgba(157, 174, 194, 0.4);
  display: flex;
  align-items: center;
}

.filter__search {
  padding-left: 0;
  width: 100%;
}

.filter__search, .filter__checkbox-label {
  margin-left: 0.5rem;
}

.filter__container-bottom {
  padding-top: 1.5rem;
}

.filter__container-bottom input, .filter__checkbox-label {
  display: inline-block;
}

.filter__checkbox[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  height: 1.25rem;
  width: 1.25rem;
  margin-left: 0.25rem;
  background-color: var(--checkbox-bg-color);
  cursor: pointer;
  border-radius: 3px;
}

.filter__checkbox[type=checkbox]:after {
  content: "\f00c";
  height: 100%;
  width: 100%;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-weight: 900;
  background-color: #5c66dc;
  color: #FFFFFF;
  opacity: 0;
}

.filter__checkbox[type=checkbox]:hover {
  background-color: #939BF4;
}

.filter__checkbox[type=checkbox]:checked:after {
  opacity: 100;
  border: none;
}

.filter__checkbox-label {
  font-weight: 500;
  color: var(--input-text-color);
}

.filter__container-searchBtn {
  display: block;
  margin: 1.5rem auto 0 auto;
  padding: 1rem;
  font-size: 1.2em;
  min-width: 100%;
}

.displayFilter {
  display: block;
}

.results__container {
  margin-top: 13rem;
  padding: 0;
  padding-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  grid-row-gap: 3.5rem;
  grid-column-gap: 2%;
}

@keyframes cardDrop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}
.card {
  background-color: var(--component-bg-color);
  padding: 0 2rem 2.75rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  width: 350px;
}

#btn-wrapper {
  min-width: 100%;
}

.load__more {
  background-color: var(--btn-bg-color);
  font-size: 1rem;
  display: block;
  padding-left: 2rem;
  padding-right: 2rem;
  margin: 0 auto;
  width: max-content;
}

.noMatch__message {
  font-size: 2em;
  font-weight: 200;
  line-height: 1.5;
  text-align: center;
  color: var(--heading-color);
}

.filter__container-svg {
  fill: var(--btn-bg-color);
}

.hide {
  display: none;
}

.logo__container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  width: 3.25rem;
  padding: 0.5rem;
  border-radius: 17px;
  transform: scale(1.2) translatex(0.5rem) translatey(-1.5rem);
}

.logo__svg {
  height: 25px;
  width: max-content;
}

.card__subtitles {
  display: inline-block;
  color: var(--general-text-color);
  font-weight: 300;
  font-size: 1.2em;
}

.post__time, .card__icon, .job__time {
  position: relative;
  top: -0.75rem;
}

.card__icon {
  font-size: 2em;
  font-weight: 700;
  margin: 0 0.5rem;
}

h2 {
  color: var(--heading-color);
  font-size: 1.35em;
  margin-bottom: 1rem;
}

.card__location {
  color: var(--btn-bg-color);
  font-weight: 700;
  margin-top: 2rem;
}

.jobPost__container {
  width: calc(100% - 4rem);
  max-width: 730px;
  margin: 0 auto;
  margin-top: 6rem;
}

.upperBox, .lowerBox {
  background-color: var(--component-bg-color);
  border-radius: 8px;
}

.upperBox {
  z-index: 2;
  position: sticky;
  top: 6rem;
}

.upperBox, .upperBox__left, .upperBox__right {
  display: flex;
}

.upperBox, .upperBox__left {
  flex-direction: column;
  align-items: center;
}

.upperBox__left {
  height: min-content;
}

.upperBox__right {
  padding-bottom: 2rem;
  align-items: center;
}

.logo__box {
  height: 70px;
  width: 70px;
  border-radius: 20px;
  margin-top: -25%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jobPost__logoSvg {
  transform: scale(0.75);
}

.jobPost__titleBox {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jobPost__h4 {
  font-size: 1.5em;
  margin-bottom: 0.5rem;
  color: var(--input-text-color);
}

.jobPost__titleBox span {
  font-size: 1.15em;
  color: var(--general-text-color);
}

.jobPost__btn {
  padding: 0.8rem 1rem;
  font-size: 1.2em;
}

.jobPost__siteBtn {
  background-color: var(--companySite-btn);
  color: var(--companySite-btn-font);
}

.lowerBox__section {
  margin-bottom: 3.5rem;
}
.lowerBox__section > *:not(:last-child):not(.lowerBox__heading__left) {
  margin-bottom: 2rem;
}

.lowerBox__role {
  margin-bottom: 0;
}

.lowerBox {
  margin-top: 2rem;
  padding: 2rem 2rem;
}

.lowerBox__applyNow {
  margin-top: 3rem;
}

.jobPost__dot {
  font-size: 2em;
  font-weight: 700;
  margin: 0 0.5rem;
}

.jobPost__position {
  font-size: 1.5em;
  font-weight: 600;
  margin: 0.6rem 0;
  color: var(--input-text-color);
}

.jobPost__country {
  font-size: 1.25em;
  color: var(--btn-bg-color);
  font-weight: 600;
}

.lowerBox__applyNow {
  font-family: "Kumbh Sans", sans-serif;
  color: white;
  min-width: 100%;
}

.lowerBox__para, .lowerBox__list {
  color: var(--general-text-color);
  font-size: 1.3em;
  font-weight: 200;
  line-height: 1.6;
}

.lowerBox__list {
  margin-left: 1.5rem;
}
.lowerBox__list > * {
  margin-bottom: 0.8rem;
}
.lowerBox__list > li::marker {
  color: #5c66dc;
}
.lowerBox__list > li {
  padding-left: 15px;
}

footer {
  padding: 2rem;
  background-color: var(--component-bg-color);
  border-radius: 8px;
  margin-top: 4rem;
}

footer .lowerBox__applyNow {
  margin: 0;
}

@media (min-width: 500px) {
  .container {
    width: calc(100% - 4.5rem);
  }
}
@media (min-width: 607px) {
  .upperBox, .upperBox__left, .upperBox__right {
    flex-direction: row;
  }
  .upperBox {
    justify-content: space-between;
  }
  .upperBox__left {
    align-items: unset;
  }
  .logo__box {
    height: 140px;
    width: 140px;
    border-radius: 0px;
    margin-top: 0;
  }
  .jobPost__logoSvg {
    transform: scale(0.6);
  }
  .jobPost__titleBox {
    display: block;
    padding: 2.25rem;
  }
  .upperBox__right, .lowerBox {
    padding: 2.5rem;
  }
  .lowerBox__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .lowerBox__heading__left {
    margin: 0;
  }
  .lowerBox__applyNow {
    margin: 0;
    min-width: 0;
    padding: 0.8rem 2rem;
  }
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer__jobTitle {
    font-size: 1.2em;
    color: var(--input-text-color);
    margin-bottom: 0.5rem;
  }
  .footer__company {
    color: var(--general-text-color);
  }
}
@media (min-width: 759px) {
  header {
    background-image: url(assets/tablet/bg-pattern-header.svg);
    height: 8.25rem;
  }
  .top__container {
    margin: 2.2rem auto;
  }
  h1 {
    font-size: 1.7rem;
  }
  .searchbar__container {
    padding: 0 0.75rem;
  }
  .searchbar__mobile {
    display: none;
  }
  .searchbar__desktop {
    display: flex;
    justify-content: stretch;
  }
  .search__left, .search__right, .search__middle {
    height: 4.5rem;
    padding-left: 1rem;
    flex: 1;
    display: flex;
    align-items: center;
  }
  .search__middle, .search__right {
    max-width: 20rem;
  }
  .search__middle {
    border-left: 2px solid rgba(157, 174, 194, 0.4);
    border-right: 2px solid rgba(157, 174, 194, 0.4);
  }
  .search__right {
    justify-content: space-between;
  }
  .FT__container {
    display: flex;
  }
  .search__svg {
    fill: var(--btn-bg-color);
    transform: none;
  }
  .results__container {
    margin-top: 16rem;
  }
}
@media (min-width: 1107px) {
  .search__btn-desktop {
    padding: 0.8rem 2.5rem;
  }
}
@media (min-width: 1109px) {
  header {
    background-image: url(assets/desktop/bg-pattern-header.svg);
  }
}