.section5 {
  margin-top: 200px;
}

@media only screen and (max-width: 1660px) {
  .section5 {
    margin-top: 100px;
  }
}

@media only screen and (max-width: 1367px) {
  .section5 {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 1330px) {
  .section5 {
    margin-top: 0px;
  }
}

@media only screen and (max-width: 900px) {
  .section5 {
    margin-top: -100px;
  }
}

@media only screen and (max-width: 860px) {
  .section5 {
    margin-top: -160px;
  }
}

@media only screen and (max-width: 499px) {
  .section5 {
    margin-top: -500px;
  }
}

.section5__content__line1 {
  font-size: 0.9rem;
  font-weight: 400;
  color: #025642;
  letter-spacing: 0.1rem;
  text-align: center;
}

.section5__content__line2 {
  line-height: 38px;
  text-align: center;
  margin-bottom: 25px;
}

.section5__card_container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section5__card {
  height: 200px;
  min-width: 400px;

  padding: 0.5rem;

  font-weight: 500;
  color: #001f48;
  border: 1px solid #025642;

  flex-grow: 1;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  cursor: pointer;

  transition: width 0.5s ease-in-out;
  background-color: white;
}

@media only screen and (max-width: 900px) {
  .section5__card {
    min-width: 280px;
  }
}

.section5__card_img_container {
  height: 130px;
}

.section5__card_img {
  height: 100%;
}

.section5__card_text {
  min-height: 100px;
  width: 100%;
  text-align: left;
  padding: 0.5rem;
}

.section5__card_title {
  font-weight: 800;
  font-style: italic;
}

.section5__card_description {
  font-size: 0.8rem;
  padding: 0.5rem 0;
  color: #416696;
}

.section5__card:not(.section5__card_expanded) .section5__card_description {
  display: none;
}

.section5__card_expanded .section5__card_img_container {
  height: 160px;
}

.section5__card_expanded {
  flex: 2;
  height: 320px;
  flex-grow: 2;
}

.section5__card_expanded .section5__card_text {
  color: #001f48;
  background-color: #d2f1ff;
}
