/* Blog Section Styles */
#latest-posts {
  padding: 1.5rem;
  background-color: #f9f9f9; /* Light background to distinguish the blog section */
  border-radius: 8px;
  margin-top: 2rem;
}

#latest-posts .main h1 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  text-align: center;
}

.posts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem; /* Space between posts */
  justify-content: space-around;
}

.post {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 25%;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.post img {
  max-width: 100%;
  border-radius: 8px;
  height: auto;
  margin-bottom: 1rem;
}

.post h3 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.post p {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.post a {
  text-decoration: none;
  font-weight: bold;
  color: #1e90ff;
  transition: color 0.3s;
}

.post a:hover {
  color: #0056b3;
}

/* Add responsiveness for smaller screens */
@media screen and (max-width: 768px) {
  .posts {
    flex-direction: column;
    align-items: center;
  }

  .post {
    max-width: 100%;
  }
}
