/* style2.css */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

h1 {
  text-align: center;
  padding: 40px 20px 10px;
  font-size: 2.5em;
  color: #2c3e50;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.blog-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  width: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.blog-item:hover {
  transform: translateY(-5px);
}

.blog-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-title {
  font-size: 1.4em;
  margin: 0 0 10px;
  color: #34495e;
}

.blog-author {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
}

.blog-excerpt {
  font-size: 0.95em;
  color: #555;
  flex: 1;
  margin-bottom: 20px;
}

.read-more {
  align-self: flex-start;
  padding: 10px 15px;
  background-color: #29b967;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.read-more:hover {
  background-color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-list {
    flex-direction: column;
    align-items: center;
  }

  .blog-item {
    width: 90%;
  }
}
