/* ============================================
   RESOURCES HUB
   ============================================ */

.resources-page { padding-bottom: 0; }

/* Hero */
.resources-hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #1a3a5c 100%);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.resources-hero-headline {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  color: #ffffff;
}

.resources-hero-subheadline {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filter */
.resources-filter-section {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.resources-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1.5px solid #dde3ec;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-pill:hover { border-color: #1a6fc4; color: #1a6fc4; }
.filter-pill.active { background: #1a6fc4; border-color: #1a6fc4; color: #fff; }

/* Grid */
.resources-grid-section { padding: 48px 0 64px; }

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

/* Card */
.resource-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.resource-card-image-link { display: block; aspect-ratio: 16/9; overflow: hidden; }

.resource-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.resource-card:hover .resource-card-img { transform: scale(1.04); }

.resource-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a3a5c, #2B7FBF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  aspect-ratio: 16/9;
}

.resource-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.resource-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #1a6fc4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.resource-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  margin: 0 0 10px;
}

.resource-card-title a { color: inherit; text-decoration: none; }
.resource-card-title a:hover { color: #1a6fc4; }

.resource-card-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: auto;
}

/* Empty state */
.resources-empty {
  text-align: center;
  padding: 80px 0;
  color: #64748b;
  font-size: 16px;
}

/* Pagination */
.resources-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.pagination-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #1a6fc4;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.pagination-btn:hover { background: #1460ae; }

.pagination-info {
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 640px) {
  .resources-hero-section { padding: 40px 0 32px; }
  .resources-grid { grid-template-columns: 1fr; }
  .resources-filter-section { position: static; }
}
