.latest-blog-posts {
  width: 100%;
  margin-bottom: 100px;
}

.latest-blog-posts h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
}

.latest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-container {
  background-size: cover;

  overflow: hidden;
  display: flex;
  border-radius: 15px;
  min-height: 250px;
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
}

.post-link {
  transition: 0.3s;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  background: linear-gradient(rgba(30, 34, 66, 0) 0%, rgb(30, 34, 66) 100%) 0%
      0% / 100%,
    linear-gradient(rgba(30, 34, 66, 0) 0%, rgb(30, 34, 66) 100%);
  width: 100%;
  height: 100%;

  display: flex;
  min-height: 250px;
  align-items: end;
}

.post-link:hover {
  background: linear-gradient(rgba(30, 34, 66, 0) 0%, rgb(30, 34, 66) 100%) 0%
      0% / 100%,
    linear-gradient(rgba(30, 34, 66, 0) 0%, rgb(30, 34, 66) 100%);
  color: #fff;
}

.post-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

a .title {
  margin: 0;
}

.post-content {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-direction: column;
}

.post-content span {
  background: #00c2ff;
  border-radius: 8px;
  padding: 6px;
  font-size: 12px;
}

.excerpt {
  font-size: 14px;
  margin: 10px 0;
}

@media (max-width: 768px) {
  .latest-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .card-post:first-child {
    grid-row: auto;
  }

  .blog-card-title {
    font-size: 1.2rem;
  }

  .card-post img {
    max-height: 180px;
  }
}
