/* ==========================================================
   Uni Pulse News CSS
   Recent news and post list components.
   ========================================================== */

.recent-news .recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recent-news .recent-post-item {
  gap: 22px;
  padding: 22px;
  background: #fff;
  border-radius: var(--hts-radius);
  box-shadow: var(--hts-shadow-sm);
}

.recent-news .recent-post-img {
  flex: 0 0 150px;
  margin: 0;
}

.recent-news .recent-post-img img {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.recent-news .recent-post-content {
  flex: 1;
}

.recent-news .recent-post-content h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.news-card {
  background: #fff;
  border-radius: var(--hts-radius);
  box-shadow: var(--hts-shadow-sm);
  overflow: hidden;
}

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

.news-card-body {
  padding: 1.1rem;
}

@media (max-width: 575.98px) {
  .recent-news .recent-post-item {
    flex-direction: column;
  }

  .recent-news .recent-post-img,
  .recent-news .recent-post-img img {
    width: 100%;
    height: auto;
    flex-basis: auto;
  }
}
