/* ============================
   SEARCH RESULTS — GROUP CARDS
   ============================ */

.search-card {
  text-decoration: none;
  color: inherit;
}

.search-card-inner {
  padding: 0.9rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.search-card-inner:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.search-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-card-avatar-fallback {
  font-size: 1.8rem;
  opacity: 0.85;
}

.search-card-body {
  flex: 1;
}

.search-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.search-card-sub {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
}




/* SEARCH RESULTS PAGE SCROLL FOR 3 ROWS */
/* LIMIT GROUP SECTION HEIGHT (max 3 rows) */
.search-groups-scroll {
    max-height: 330px;        /* adjust depending on your card size */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;       /* so scrollbar doesn’t overlap cards */
}

/* Make scrollbar yellow like your style */
.search-groups-scroll::-webkit-scrollbar {
    width: 8px;
}

.search-groups-scroll::-webkit-scrollbar-thumb {
    background: #facc15;
    border-radius: 4px;
}

.search-groups-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
