/* ===== NEWS CARD COMPONENT ===== */

.news-card {
  height: 100%;
}


.news-card__link {
  text-decoration: none;
  display: flex; 
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacer);
  height: 100%;
}

 @media only screen and (min-width: 768px) {
         .news-card__link {
          flex-direction: row;
         }
    }

.news-card__image {
  position: relative;
  height: 24rem;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.news-card__content {
  flex-grow: 1;
  color: var(--black);
}

.news-card:hover .news-card__content {
}

.news-card__title {
  font-size: var(--text-md);
  line-height: 1;
  font-weight: 900;
  color: var(--white);
  text-wrap: balance;
}

.news-card__date {
  font-size: var(--text-sm);
  color: var(--white);
  font-weight: 900;
}

.news-card__footer {
  
}

@media (min-width: 768px) {
  .news-card__footer {
    margin-top: auto;
    text-align: right;
  }

  .news-card__title {
  font-size: var(--text-lg);
}
}