/* Shared job cards. Images are 2:1; a missing or blocked cover falls back to the logo. */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.job-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e9f6;
  transition: transform 0.25s, box-shadow 0.25s;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.job-media {
  aspect-ratio: 2 / 1;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.job-media > img,
.job-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.job-media > img { object-fit: cover; }

.job-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(180deg, #f7f4ec 0%, #fff 72%);
  border-bottom: 3px solid var(--secondary);
}

.job-placeholder img {
  width: min(190px, 62%);
  height: auto;
  max-height: 72%;
  object-fit: contain;
  margin-inline: auto;
}

.job-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1;
}

.job-body h3 {
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.45;
}

.job-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.job-actions { margin-top: auto; padding-top: 6px; }

.jobs-status {
  text-align: center;
  color: var(--text-light);
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 22px;
  box-shadow: var(--shadow);
}
