/* Homepage modern job cards */
.list-recent-jobs .card-job.card-job-modern {
  --job-ink: #152033;
  --job-muted: #6b7785;
  --job-line: rgba(21, 32, 51, 0.08);
  --job-soft: #f4f6f8;
  --job-accent: #9777fa;
  --job-accent-soft: rgba(151, 119, 250, 0.12);

  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 0;
  margin-bottom: 24px;
  padding: 22px 22px 18px;
  border: 1px solid var(--job-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}

.list-recent-jobs a.card-job.card-job-modern:hover {
  border-color: rgba(151, 119, 250, 0.45);
  box-shadow: 0 14px 36px -18px rgba(21, 32, 51, 0.28);
  transform: translateY(-2px);
  text-decoration: none !important;
  color: inherit;
}

.card-job-modern__header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.card-job-modern__logo {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--job-soft);
  border: 1px solid var(--job-line);
  flex-shrink: 0;
}

.card-job-modern__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-job-modern__main {
  min-width: 0;
}

.card-job-modern__title {
  margin: 0 0 4px;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--job-ink);
}

a.card-job-modern:hover .card-job-modern__title {
  color: var(--job-accent);
}

.card-job-modern__company {
  display: block;
  margin-bottom: 10px;
  color: var(--job-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-job-modern__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-job-modern__facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--job-soft);
  color: var(--job-muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.card-job-modern__facts li i {
  float: none;
  margin: 0;
  font-size: 12px;
  color: #8a95a3;
}

.card-job-modern__salary {
  justify-self: end;
  max-width: 9.5rem;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--job-accent-soft);
  color: var(--job-accent);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.card-job-modern__excerpt {
  flex: 1;
  margin: 0;
  color: #5d6975;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-job-modern__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--job-line);
  margin-top: auto;
}

.card-job-modern__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-job-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.card-job-tag--vitrin {
  background: var(--job-accent-soft);
  color: var(--job-accent);
}

.card-job-tag--urgent {
  background: #ffe8e2;
  color: #c2410c;
}

.card-job-modern__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.card-job-modern__verified i {
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .card-job-modern__header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .card-job-modern__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .card-job-modern__salary {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: none;
  }

  .list-recent-jobs .card-job.card-job-modern {
    padding: 18px;
  }
}
