/* Catalog styles tailored to ReRoute aesthetic */
:root {
  --accent: #6495ED;
}

.org-hero {
  /* Full-bleed, centered hero with dark gradient */
  text-align: center;
  padding: 4rem 1rem;                 /* per spec */
  min-height: 55vh;                   /* ~50–60% viewport */
  display: flex;                      /* center content */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #0c1e45 0%, #1e3c90 100%);
  color: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);      /* make full-width beyond container */
}
.org-hero h1 {
  font-weight: 800;                   /* bold for prominence */
  margin: 0 auto 8px;
  max-width: 700px;
  color: #ffffff;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.org-hero .subhead {
  color: rgba(255,255,255,0.9);       /* lighter white */
  margin: 0 auto 20px;
  max-width: 720px;
}
.search-form .search-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.search-input, .category-select {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e0e6ef;
  background: #fff;
  min-width: 240px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.btn-primary {
  background: var(--accent);          /* blue accent button */
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.btn-primary:hover { opacity: .92; }

/* Constrain readable width and improve mobile stacking */
.org-hero .subhead,
.search-form { max-width: 700px; margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .search-form .search-row { flex-direction: column; gap: 10px; }
  .search-input, .category-select, .btn-primary { width: 100%; max-width: 420px; }
}

.org-grid { padding: 16px; }
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.org-card {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.logo-wrap { height: 140px; display: grid; place-items: center; background: #f7f9fc; }
.logo-wrap img { max-height: 100px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.1)); }

.org-info { padding: 14px 16px 20px; }
.org-name { margin: 0 0 6px; font-weight: 600; }
.org-category { display: inline-block; font-size: 12px; color: #3d4a5c; background: #eef3ff; padding: 4px 8px; border-radius: 999px; }

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s ease;
}
.org-card:hover .overlay { opacity: 1; }
.overlay-btn { background: #fff; color: var(--accent); border-radius: 999px; padding: 10px 16px; font-weight: 600; }

.pagination { display:flex; gap: 12px; justify-content:center; align-items:center; padding: 16px 0 24px; }
.page-link { color: var(--accent); text-decoration:none; font-weight:600; }
.page-status { color:#5f6b7a; }

.empty-state { text-align:center; color:#5f6b7a; padding: 24px 0 56px; }
