/* ============================================
   repository-filikoi-grid.css
   "Λοιποί Φιλικοί" info-card grid
   Header/wrapper/back-button styles come from
   repository-subcategory.css (shared).
   ============================================ */

/* ── Grid container ── */
.filikoi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;      /* cards in the same row share height */
  margin-bottom: 80px;
  padding-top: 8px;
}

/* ── Card ── */
.filikoi-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 24px 22px;
  /* No cursor or hover — cards are intentionally non-clickable */
}

/* ── Card name (bold heading) ── */
.filikoi-card__name {
  font-family: 'ZonaProCustom', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0 0 10px;
  line-height: 1.4;
}

/* ── Card description (body text) ── */
.filikoi-card__desc {
  font-family: 'ZonaProCustom', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #444;
  line-height: 1.65;
  margin: 0;

  /*
   * Prevent very long descriptions from distorting the grid row height.
   * Cards in the same row remain visually aligned (align-items: stretch),
   * but capping text keeps outliers from dominating.
   */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive: 2 columns on tablet ── */
@media (max-width: 900px) {
  .filikoi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: 1 column on mobile ── */
@media (max-width: 540px) {
  .filikoi-grid {
    grid-template-columns: 1fr;
  }

  .filikoi-card {
    padding: 20px 18px;
  }

  .filikoi-grid {
    margin-bottom: 60px;
  }
}

@media (max-width: 420px) {
  .filikoi-grid {
    margin-bottom: 40px;
  }
}
