

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;   /* one column only */
  row-gap: 1.5rem;              /* vertical spacing between items */
  margin: 2rem auto;
  max-width: 90%;
}
.news-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1rem;
}
.news-item img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  object-fit: cover;
}
.news-item time {
  font-size: .9rem;
  color: #666;
  margin-bottom: .5rem;
  display: block;
}
.news-item h3 {
  font-size: 1.25rem;
  margin: 0 0 .75rem;
}
.news-item p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}

/* 5) Footer */
footer {
  background: #f8f9fa;
  text-align: center;
  padding: 1rem 2rem;
  font-size: .9rem;
}

/* 6) Responsive */
@media (max-width: 800px) {
  .nav-links {
    flex-direction: column;
    gap: .5rem;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: 2rem 0;
  font-size: .95rem;
}
.pagination a {
  padding: .4rem .7rem;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
}
.pagination a.current {
  font-weight: bold;
  background: #eee;
  pointer-events: none;
}
.pagination a.disabled {
  color: #999;
  pointer-events: none;
  border-color: #eee;
}
.news-item a {
  color: #8C1515;
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}
