/* ==========================================================================
   BadhteJao - Government Jobs Tag & Category Pages Modern Styling
   Responsive, accessible, optimized for mobile (360px - 430px) & desktop
   ========================================================================== */

.job-listing-row {
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.job-listing-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--primary, #0d6efd) !important;
}

.job-card-title a {
  color: #1e293b;
  transition: color 0.15s ease-in-out;
}

.job-card-title a:hover {
  color: var(--primary, #0d6efd);
  text-decoration: underline !important;
}

.job-tags-wrapper {
  line-height: 1.6;
}

.job-tag {
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  white-space: normal;
  word-break: break-word;
}

.job-tag.job-active {
  background-color: #16a34a !important;
  color: #ffffff !important;
}

.job-tag.job-expired {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.job-tag.job-official-notification a {
  color: #0369a1;
  font-weight: 600;
}

.job-tag.job-official-notification a:hover {
  text-decoration: underline;
}

.job-tag.job-detail-link .btn {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.job-tag.job-detail-link .btn:hover {
  opacity: 0.95;
  transform: translateX(2px);
}

/* Lazy Loading Sentinel & State Indicators */
.tag-jobs-sentinel {
  min-height: 50px;
  margin: 1.5rem 0;
}

.tag-jobs-loader {
  animation: fadeIn 0.3s ease-in-out;
}

.tag-jobs-error {
  max-width: 600px;
  margin: 0 auto;
}

.tag-jobs-end {
  font-size: 0.925rem;
  font-weight: 500;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: inline-block;
  margin: 1rem auto;
}

/* Related Taxonomy Navigation Strip */
.related-taxonomy-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 2rem;
}

.related-taxonomy-bar .taxonomy-pill {
  font-size: 0.825rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 0.2rem 0.15rem;
}

.related-taxonomy-bar .taxonomy-pill:hover {
  background: var(--primary, #0d6efd);
  color: #ffffff;
  border-color: var(--primary, #0d6efd);
}

/* Empty State Styling */
.empty-jobs-notice .alert {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

/* Responsive Viewport Optimizations */
@media (max-width: 768px) {
  .job-listing-row {
    padding: 0.85rem !important;
  }
  
  .job-card-title {
    font-size: 1.05rem;
  }
  
  .job-tag.job-detail-link {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }

  .job-tag.job-detail-link .btn {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .organization-image img {
    max-width: 80px;
    height: auto;
  }
  
  .job-tag {
    font-size: 0.775rem;
    padding: 0.35rem 0.5rem;
  }
}
