.news__figure {
  grid-area: img;
  position: relative;
  width: 100%;
  height: auto;
}

.news__figure img {
  border: #d2d2d2 1px solid;
}

/* latest news */

.newscontainer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 40px;
  margin: 60px auto;
}

.newscontainer > article:not(:last-child) {
  border-bottom: 1px solid #ccc;
}

@media (min-width: 500px) {
  .newscontainer {
    grid-template-columns: 1fr 1fr;
  }
  .newscontainer > article:not(:last-child) {
    border-bottom: 0;
  }
}

@media (min-width: 700px) {
  .newscontainer {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.news__article {
  position: relative;
  cursor: pointer;
  padding-bottom: 25px;
}

.news__h2 {
  grid-column: span 3;
  /* font-family: 'Open Sans', sans-serif;   */
  font-weight: 900;
  font-size: 4rem;
  text-align: center;
}

.news__figure {
  position: relative;
}

.news__category {
  position: absolute;
  bottom: 15px;
  background-color: var(--primary);
  color: #ffffff;
  text-transform: uppercase;
  padding: 5px 15px 5px 20px;
}

.news__category__link {
  color: #ffffff;
  text-decoration: none;
}

/* position: absolute;
      left: 0;
      bottom: 20px;
      display: inline-block;
      width: auto; */

.news__link {
  display: block;
  padding-bottom: 20px;
  text-decoration: none;
  line-height: normal;

}

.news__article .news__link {
  /* color: var(--primary); */
  color: black;
  /* letter-spacing: 0.05em; */
}

.news__article:hover .news__link {
  color: #fcaf1a;
}

.news__title {
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.5rem;
}

@media (min-width: 500px) {
  .news__title {
    font-size: 1.3rem;
    line-height: 1.5rem;
  }
}

.news__date {
  text-align: right;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.452);
  font-size: 0.8rem;
}

@media (min-width: 500px) {
  .news__date {
    position: absolute;
    bottom: 0;
    right: 0;
  }
}
