/* Thẻ việc làm dùng chung (partials/job-card.blade.php) */
.jp-job-card {
  min-width: 0;
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #d5f2e1;
  border-radius: 12px;
  background: #f5fdf8;
  box-shadow: 0 3px 13px rgba(28, 47, 65, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.jp-job-card:hover {
  border-color: #9cdbb7;
  box-shadow: 0 8px 24px rgba(0, 126, 57, 0.1);
  transform: translateY(-2px);
}

.jp-job-card__logo {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  background: #fff;
}

.jp-job-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.jp-job-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.jp-job-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.jp-job-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.jp-job-card h3 a {
  color: #24364b;
}

.jp-job-card h3 a:hover,
.jp-job-card__company:hover {
  color: #00a84b;
}

.jp-job-card__salary {
  flex: 0 0 auto;
  color: #00a84b;
  font-weight: 700;
  white-space: nowrap;
}

.jp-job-card__company {
  overflow: hidden;
  margin-bottom: 10px;
  color: #667488;
  font-size: 13px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.jp-job-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.jp-job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jp-job-card__tags span {
  padding: 4px 10px;
  border-radius: 5px;
  color: #4b596c;
  background: #e9edf1;
  font-size: 13px;
}

.jp-job-card__tags i {
  margin-right: 3px;
  color: #8a97a8;
}

.jp-job-card form {
  margin: 0;
}

.jp-job-card__save {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #00b14f;
  border-radius: 50%;
  color: #00b14f;
  background: #fff;
  transition: background 0.2s ease;
}

.jp-job-card__save:hover {
  color: #00b14f;
  background: #e7f9ef;
}

.jp-job-card__save.is-saved {
  color: #fff;
  background: #00b14f;
}

@media (max-width: 575px) {
  .jp-job-card {
    gap: 12px;
    padding: 12px;
  }

  .jp-job-card__logo {
    width: 60px;
    height: 60px;
  }

  .jp-job-card__head {
    flex-direction: column;
    gap: 2px;
  }
}
