:root {
  --teenybeans-primary-color1: #434701;
  --teenybeans-primary-color3: #6c956a;
  --teenybeans-primary-color4: #6c956a;
}

/* ///////////////// */
/* /// Section 5 /// */

.section5 {
  margin-top: 100px;
  margin-bottom: 100px;
  min-height: 300px;
  color: var(--teenybeans-primary-color1);
  width: 100%;
}

.section5__container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.section5__content {
  /* max-width: 700px; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section5__content__line1 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--teenybeans-primary-color1);
  letter-spacing: 0.1rem;
}

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

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

.section5__card {
  height: 200px;
  min-width: 250px;
  padding: 0.5rem;
  font-weight: 500;
  color: var(--teenybeans-primary-color4);
  border: 1px solid var(--teenybeans-primary-color3);
  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;
}

.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;
}

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

.section5__card_expanded .section5__card_img_container {
  height: 160px;
}

.section5__card_expanded {
  width: 350px;
  height: 320px;
  flex-grow: 2;
  border: 1px solid var(--teenybeans-primary-color3);
}

.section5__card_expanded .section5__card_text {
  color: white;
  background-color: var(--teenybeans-primary-color3);
}
