/* Employment News Links - stacked card layout */
.enl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.enl-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 16px;       /* rounded */
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 120ms ease, box-shadow 120ms ease;
  height: 100%; /* Ensure cards have equal height */
}

.enl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.enl-card__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.enl-card__body {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 16px;
  flex-grow: 1; /* Fill available space */
}

.enl-card__categories {
  margin-bottom: 8px;
}

.enl-category-tag {
  display: inline-block;
  background: #e5e7eb;
  color: #374151;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 6px;
  margin-bottom: 4px;
}

.enl-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.enl-card__title a {
  text-decoration: none;
}

.enl-card__title a:hover,
.enl-card__title a:focus {
  text-decoration: underline;
}

.enl-card__meta {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 12px;
}

.enl-card__actions {
  margin-top: auto; /* Push to bottom of card */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.enl-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 9999px; /* pill */
  text-decoration: none;
  border: 1px solid #111827; /* gray-900 */
}

.enl-btn--primary {
  background: #111827;
  color: #ffffff;
}

.enl-btn--primary:hover,
.enl-btn--primary:focus {
  filter: brightness(1.05);
}

.enl-btn--secondary {
  background: #ffffff;
  color: #111827;
}

.enl-btn--secondary:hover,
.enl-btn--secondary:focus {
  background: #f9fafb;
}

/* Listing Page Styles */
.enl-listing-page {
  max-width: 100%;
}

.enl-filters {
  margin-bottom: 24px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.enl-filter-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.enl-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enl-filter-group label {
  font-weight: 600;
  color: #374151;
}

.enl-filter-group select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
  min-width: 200px;
}

.enl-clear-filter {
  color: #ef4444;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 120ms ease;
}

.enl-clear-filter:hover {
  background: #fee2e2;
  text-decoration: underline;
}

.enl-results-info {
  margin-bottom: 16px;
}

.enl-results-info p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.enl-no-results {
  text-align: center;
  padding: 40px 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.enl-no-results p {
  color: #6b7280;
  margin-bottom: 16px;
}

/* Pagination */
.enl-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.enl-pagination__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.enl-pagination__link {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  background: #ffffff;
  transition: all 120ms ease;
}

.enl-pagination__link:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.enl-pagination__link--current {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.enl-pagination__link--current:hover {
  background: #111827;
  border-color: #111827;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .enl-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .enl-filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  
  .enl-filter-group select {
    min-width: auto;
  }
  
  .enl-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
  }
  
  .enl-pagination__list {
    flex-wrap: wrap;
    justify-content: center;
  }
}
