/* =========================================================
   JOB VACANCY PAGE
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  color: #111111;

  font-family: "Roboto", sans-serif;
}

.jobs-page {
  width: 100%;
}

/* =========================================================
   VACANCIES SECTION
========================================================= */

.vacancies-section {
  width: 100%;

  padding: 30px 0 25px;

  background: #ffffff;
}

.vacancies-container {
  width: min(1060px, 92%);

  margin: 0 auto;
}

/* =========================================================
   HEADING
========================================================= */

.vacancies-container > h1 {
  margin: 0 0 10px;

  color: #00041b;

  font-size: 36px;
  font-weight: 700;

  line-height: 1.2;

  text-align: center;
}

/* =========================================================
   INTRO
========================================================= */

.vacancies-intro {
  max-width: 900px;

  margin: 0 auto 30px;

  color: #222222;

  font-size: 14px;
  font-weight: 700;

  line-height: 1.7;

  text-align: center;
}

/* =========================================================
   CARD GRID
========================================================= */

.vacancy-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 30px 42px;
}

/* =========================================================
   VACANCY CARD
========================================================= */

.vacancy-card {
  width: 100%;

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #111111;
  border-radius: 14px;
}

/* =========================================================
   CARD IMAGE
========================================================= */

.vacancy-card > img {
  display: block;

  width: calc(100% - 18px);
  height: 212px;

  margin: 9px;

  object-fit: cover;
  object-position: center;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.vacancy-content {
  padding: 5px 9px 9px;
}

.vacancy-content h2 {
  min-height: 38px;

  margin: 0 0 15px;

  color: #111111;

  font-size: 13px;
  font-weight: 600;

  line-height: 1.45;
}

/* =========================================================
   APPLY BUTTON
========================================================= */

.vacancy-apply {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 78px;
  height: 36px;

  padding: 0 15px;

  background: #0867e8;
  color: #ffffff;

  border-radius: 3px;

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.vacancy-apply:hover {
  background: #0755c2;

  transform: translateY(-1px);
}

/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.jobs-bottom-nav {
  width: 100%;

  margin-top: 40px;

  display: flex;

  align-items: center;
  justify-content: space-between;
}

.jobs-bottom-nav a {
  display: flex;

  align-items: center;
  justify-content: center;

  min-width: 92px;
  height: 39px;

  padding: 0 15px;

  background: #0870e8;
  color: #ffffff;

  border: 2px solid #000000;
  border-radius: 11px;

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;
}

.jobs-bottom-nav a:hover {
  background: #0756c2;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .vacancies-container {
    width: 92%;
  }

  .vacancy-grid {
    gap: 24px;
  }

  .vacancy-card > img {
    height: 190px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .vacancies-section {
    padding: 25px 0 30px;
  }

  .vacancies-container > h1 {
    font-size: 30px;
  }

  .vacancies-intro {
    font-size: 13px;
  }

  .vacancy-grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .vacancy-card > img {
    width: calc(100% - 16px);
    height: auto;

    aspect-ratio: 16 / 9;

    margin: 8px;
  }

  .vacancy-content h2 {
    font-size: 13px;
  }

  .jobs-bottom-nav {
    margin-top: 30px;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {
  .vacancies-container > h1 {
    font-size: 26px;
  }

  .vacancies-intro {
    font-size: 12px;
  }

  .vacancy-content h2 {
    font-size: 12px;
  }

  .vacancy-apply {
    min-width: 70px;
    height: 34px;

    font-size: 12px;
  }

  .jobs-bottom-nav a {
    min-width: 82px;
    height: 37px;

    font-size: 11px;
  }
}
