.blog-posts-card .card {
  position: relative;
  overflow: hidden;

  height: 100%;
  cursor: pointer;

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

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

  border-color: rgba(13, 182, 220, 0.18);

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.blog-posts-card .card img {
  width: 100%;
  min-height: 174px;
  max-height: 174px;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.blog-posts-card .card:hover img {
  transform: scale(1.04);
}

.blog-posts-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;

  padding: 1rem;

  color: white;
  text-align: center;

  background: rgba(0, 0, 0, 0.58);

  opacity: 0;

  transition: opacity 0.3s ease;
}

.blog-posts-card .card:hover .card-overlay {
  opacity: 1;
}

.blog-posts-card .card-title {
  margin: 0;
  padding: 10px;

  color: white;

  font-size: 1.5rem;
  font-weight: bold;

  transition: color 0.3s ease;
}

.blog-posts-card .card-body {
  padding: 1rem;
}

.blog-posts-card .card-body .title {
  display: -webkit-box;

  overflow: hidden;
  text-overflow: ellipsis;

  color: rgb(58, 58, 58);

  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  transition: color 0.25s ease;
}

.blog-posts-card .card-body hr {
  margin: 0.9rem 0;

  opacity: 1;
  background-color: rgba(0, 0, 0, 0.08);
}

.blog-posts-card .card-body .badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-posts-card .badge-item {
  padding: 0.38rem 0.58rem;

  color: #475569;

  font-size: 0.72rem;
  font-weight: 500;

  background-color: rgba(83, 83, 83, 0.08);
  border: 1px solid rgba(13, 182, 220, 0.1);
  border-radius: 999px;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.blog-posts-card .badge-item:hover {
  color: #0db6dc;

  background-color: rgba(13, 182, 220, 0.08);
  border-color: rgba(13, 182, 220, 0.12);
}

.blog-posts-card .badge-item .bi {
  margin-right: 4px;

  color: #0db6dc;
}

.blog-posts-card .skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200% 100%;

  animation: loading 1.5s infinite;
}

.blog-posts-card .skeleton-text {
  height: 16px;
  margin: 8px 0;

  border-radius: 999px;
}

.blog-posts-card .skeleton-img {
  height: 180px;

  border-radius: 12px;
}

@media only screen and (max-width: 767.5px) {
  .blog-posts-card .card img {
    min-height: auto;
    max-height: none;
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}
