/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

header {
  text-align: center;
  background: #007BFF;
  color: white;
  padding: 1rem 0;
}

h1 {
  margin: 0;
}

/* News container */
.news-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

/* News card styles */
.news-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.news-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.news-card .content {
  padding: 1rem;
}

.news-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.9rem;
  color: #555;
}

.news-card .link {
  margin-top: auto;
  text-align: right;
  color: #007BFF;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: underline;
}


