/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

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

body {
  background: #ffffff;
  color: #111111;
  font-family: "Roboto", Arial, sans-serif;
}

/* =========================================================
   PAGE
========================================================= */

.section-4-page {
  width: 100%;
  padding: 12px 0 35px;
}

.section-4-container {
  width: 912px;
  max-width: 94%;
  margin: 0 auto;
}

/* =========================================================
   MAIN TITLE
========================================================= */

.section-4-main-title {
  margin: 0 0 15px;

  color: #f01812;

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

  line-height: 1.2;
  text-align: center;
}

/* =========================================================
   CATEGORY
========================================================= */

.section-4-category {
  width: 100%;
  margin: 0 0 12px;
}

/* =========================================================
   CATEGORY TITLE
========================================================= */

.section-4-category-title {
  width: 100%;

  margin: 0 0 8px;

  padding: 2px 5px;

  background: #b5e4df;

  color: #111111;

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

  line-height: 1.15;

  text-align: center;
}

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

.section-4-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 0;

  border-top: 1px solid #222222;
  border-left: 1px solid #222222;
}

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

.section-4-card {
  min-width: 0;

  display: flex;
  flex-direction: column;

  min-height: 263px;

  padding: 8px;

  background: #ffffff;

  border-right: 1px solid #222222;
  border-bottom: 1px solid #222222;
}

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

.section-4-card img {
  display: block;

  width: 100%;
  height: 125px;

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

  border-radius: 14px;
}

/* =========================================================
   TITLE
========================================================= */

.section-4-card h3 {
  min-height: 59px;

  display: flex;
  align-items: flex-start;

  margin: 10px 0 8px;

  padding: 0 0 8px;

  border-bottom: 1px solid #222222;

  color: #111111;

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

  line-height: 1.15;
}

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

.section-4-apply {
  display: flex;

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

  width: 100%;
  height: 32px;

  margin-top: auto;

  background: #1262e5;

  color: #ffffff;

  border-radius: 15px;

  text-decoration: none;

  font-size: 12px;
  font-weight: 600;
}

.section-4-apply:hover {
  background: #0753c5;
}

/* =========================================================
   BOTTOM BUTTONS
========================================================= */

.section-4-bottom {
  display: flex;

  justify-content: space-between;

  margin-top: 35px;
}

.section-4-bottom a {
  display: flex;

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

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

  padding: 0 15px;

  background: #0870e8;
  color: #ffffff;

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

  text-decoration: none;

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

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

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

  .section-4-category-title {
    font-size: 23px;
  }

  .section-4-card {
    min-height: 245px;
  }

  .section-4-card img {
    height: 115px;
  }

  .section-4-card h3 {
    font-size: 14px;
  }
}

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

@media (max-width: 700px) {
  .section-4-main-title {
    font-size: 21px;
  }

  .section-4-category-title {
    font-size: 20px;
  }

  .section-4-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-4-card {
    min-height: 235px;
  }

  .section-4-card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .section-4-card h3 {
    min-height: 55px;
    font-size: 13px;
  }

  .section-4-apply {
    height: 34px;
  }
}

/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 430px) {
  .section-4-grid {
    grid-template-columns: 1fr;
  }

  .section-4-card {
    min-height: 280px;
  }

  .section-4-card img {
    aspect-ratio: 16 / 10;
  }

  .section-4-card h3 {
    font-size: 14px;
  }

  .section-4-bottom {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}
