#blog-previews {
  margin-top: 3rem;
  padding: 1rem;
  background-color: #f9f9f9;
}

#blog-previews h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.article-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 300px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background-color: #fff;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #ddd;
}

.blog-content {
  padding: 1rem;
}

.blog-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.blog-content h3 a {
  text-decoration: none;
  color: #333;
}

.blog-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 1rem;
  max-height: 4.2em; /* approx 3 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more-btn {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background-color: #0078d4;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.read-more-btn:hover {
  background-color: #005ea6;
}
