/* Text-only posts (no image) */
.search-textonly-card {
  padding: 1rem !important;
  display: flex;
  flex-direction: column;
}

.search-textonly-card p {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  flex-grow: 1;         /* <-- THIS FILLS THE EXTRA SPACE */
}

.s-posts {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

/* Scroll area: show 2 rows, scroll if more */
.search-posts-scroller {
  height: 600px;          /* ~2 rows of cards on desktop */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
}

/* Optional: slim scrollbar */
.search-posts-scroller::-webkit-scrollbar {
  width: 6px;
}
.search-posts-scroller::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
}

/* Compact card */
.search-post-card {
  padding: 0 !important;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Thumbnail */
.search-post-thumb {
  height: 140px;
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.search-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-post-thumb--placeholder {
  background: rgba(255,255,255,0.03);
  font-size: 1.5rem;
  opacity: 0.5;
}

/* Body */
.search-post-body {
  padding: 0.6rem 0.7rem 0.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.search-post-title {
  font-size: 0.9rem;
}

.search-post-excerpt {
  font-size: 0.75rem;
  line-height: 1.3;
  max-height: 3.2em;          /* keep it to ~2 lines */
  overflow: hidden;
}

/* Meta row (avatar + name + time) */
.search-post-meta {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: auto;          /* <--- key line for alignment */
}
.search-post-meta img {
  width: 18px;
  height: 18px;
}
