.page {
  padding: 10px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin: 0 auto;
  width: 100%;
}

.article-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 350px; /* Prevent single card from stretching too much */
}

.article-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
  padding: 15px 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
}

.article-title {
  font-size: 1.5rem;
  margin: 0 0 5px 0;
  font-weight: 400;
  line-height: 25px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .article-card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .article-title {
    font-size: 1.2rem;
  }

  .article-meta {
    font-size: 0.8rem;
  }
}
