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

.card-post {
  border-radius: 8px;
  overflow: hidden;
}

.post-container {
  background-size: cover;
  background-position: center;
  height: 240px;
  position: relative;
}

.post-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-content .title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 0.5rem;
}

.post-content .excerpt {
  font-size: 0.9rem;
  margin: 0;
}

.show-more-wrapper {
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .blog-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-row {
    grid-template-columns: 1fr;
  }
}

.card-post {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 0 11px #3c92ca;
  position: relative;
}

.card-post:hover {
  transform: translateY(-6px);
}

.post-container {
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 100%;
  flex-shrink: 0;
}

.post-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  background: rgb(71 148 250 / 69%);
  padding: 8px 12px;
  border-radius: 6px;
  max-width: max-content;
  position: absolute;
  top: 20px;
}

.title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #fff;
  line-height: 1.4;
}

.excerpt {
  font-size: 0.95rem;
  color: #c0c0c0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 15px;
  margin: 10px 0;
  text-decoration: none;
  box-shadow: 0 0 10px #4d00ff70;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  max-width: max-content;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.read-more-btn:hover {
  border-color: var(--accent-blue);
  background: var(--primarybtnhoverbg);
  color: var(--primarybtnhovercolor);
}
