/* Shared job card list (jobs search, saved jobs, etc.) */

.jb-jobs-grid-col .jw-joblist-card {
  width: 100%;
  height: 100%;
}

.jw-joblist-card[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.jw-joblist-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jw-joblist-card {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jw-joblist-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.jw-joblist-card-grid {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: start;
}

.jw-joblist-logo {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.jw-joblist-pill {
  position: static;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.jw-joblist-pill--featured {
  color: #7c3aed;
  background: #ede9fe;
}

.jw-joblist-pill--new {
  color: #059669;
  background: #d1fae5;
}

.jw-joblist-avatar-wrap {
  position: relative;
  display: block;
}

.jw-joblist-avatar-wrap .jw-verified-badge {
  right: -4px;
  bottom: -4px;
}

.jw-joblist-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.jw-joblist-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.jw-joblist-aside {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: 10px;
  min-width: 118px;
}

.jw-joblist-aside-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: auto;
}

.jw-joblist-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jw-joblist-titlebar {
  display: none;
}

.jw-joblist-title-link {
  color: inherit;
  text-decoration: none;
}

.jw-joblist-title-link:hover,
.jw-joblist-title-link:focus {
  color: #0a65cc;
}

.jw-joblist-company-row,
.jw-joblist-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #6b7280;
  margin: 0 0 3px;
}

.jw-joblist-meta:last-of-type {
  margin-bottom: 0;
}

.jw-joblist-company {
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jw-joblist-meta-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jw-joblist-company-icon,
.jw-joblist-meta-icon {
  flex-shrink: 0;
  color: #9ca3af;
}

.jw-joblist-avatar.jw-job-avatar--logo,
.jb-job-logo.jw-job-avatar--logo {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 6px;
  overflow: hidden;
}

.jw-job-avatar--logo img,
.jw-joblist-avatar.jw-job-avatar--logo img,
.jb-job-logo.jw-job-avatar--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.jw-joblist-tags-scroll::-webkit-scrollbar {
  display: none;
}

.jw-joblist-tags {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.jw-joblist-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  flex-shrink: 0;
}

.jw-joblist-tag-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.jw-joblist-tag--mode {
  color: #0369a1;
  background: #e0f2fe;
}

.jw-joblist-tag--type {
  color: #047857;
  background: #d1fae5;
}

.jw-joblist-tag--perm {
  color: #7c3aed;
  background: #ede9fe;
}

.jw-joblist-tags-scroll {
  margin-top: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.jw-joblist-foot,
.jw-joblist-act {
  display: none;
}

.jw-joblist-skills {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

.jw-joblist-skills-label {
  font-weight: 600;
  color: #374151;
  margin-right: 4px;
}

.jw-joblist-skill-item {
  font-weight: 600;
  color: #374151;
}

.jw-joblist-skills-more {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  vertical-align: middle;
}

.jw-joblist-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.jw-joblist-fav:hover {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}

.jw-joblist-fav.is-saved {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}

.jw-joblist-fav.is-saved .jb-fav-icon {
  color: #e11d48;
}

.jw-joblist-posted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1;
  white-space: nowrap;
}

.jw-joblist-posted-icon {
  flex-shrink: 0;
  color: #9ca3af;
}

.jw-joblist-card a.jw-joblist-apply-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 118px;
  height: 36px;
  padding: 0 16px !important;
  border: none !important;
  border-radius: 8px !important;
  background: #0a65cc !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background 0.15s ease;
}

.jw-joblist-card a.jw-joblist-apply-btn:hover,
.jw-joblist-card a.jw-joblist-apply-btn:focus {
  color: #fff !important;
  background: #0952a5 !important;
  text-decoration: none !important;
}

.jw-joblist-posted.jw-joblist-applied {
  color: #047857;
}

.jw-joblist-posted.jw-joblist-applied .jw-joblist-posted-icon {
  color: #10b981;
}

/* Legacy / featured home cards */
.jw-joblist-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f8fafc;
  border: 1px solid #eef0f3;
  white-space: nowrap;
  line-height: 1;
}

.jw-joblist-time-icon {
  flex-shrink: 0;
  color: #9ca3af;
}

.jw-joblist-time--mob {
  display: none;
}

.jb-job-card--showcase .jw-joblist-aside {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.jw-joblist-row1 {
  display: contents;
}

.jw-joblist-row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.jb-job-card--showcase .jb-job-body {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  grid-template-rows: auto auto auto auto;
  gap: 12px 16px;
  align-items: start;
  flex: 1;
  min-height: 0;
}

.jb-job-card--showcase .jw-joblist-row1 {
  display: contents;
}

.jb-job-card--showcase .jb-job-logo {
  grid-column: 1;
  grid-row: 1 / 3;
}

.jb-job-card--showcase .jb-job-head-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-right: 0;
}

.jb-job-card--showcase .jw-joblist-aside {
  grid-column: 3;
  grid-row: 1;
}

.jb-job-card--showcase .jb-tags {
  grid-column: 2 / -1;
  grid-row: 2;
  margin-top: 0;
}

.jb-job-card--showcase .jw-joblist-row2 {
  grid-column: 2 / -1;
  grid-row: 3;
}

.jb-job-card--showcase .jb-job-foot {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 0;
}

.jb-job-card--showcase .jb-job-foot-meta {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .jw-joblist-card {
    padding: 12px 14px;
  }

  .jw-joblist-card-grid {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 10px;
  }

  .jw-joblist-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .jw-joblist-content {
    grid-column: 2;
    grid-row: 1;
    padding-right: 42px;
  }

  .jw-joblist-aside {
    display: contents;
  }

  .jw-joblist-fav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .jw-joblist-aside-bottom {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 0;
  }

  .jw-joblist-posted {
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
    font-size: 12px;
  }

  .jw-joblist-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .jw-joblist-title {
    font-size: 14px;
  }

  .jw-joblist-tags-scroll {
    margin-top: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .jw-joblist-tags {
    display: inline-flex;
    flex-wrap: nowrap;
  }

  .jw-joblist-tag {
    padding: 4px 10px;
    font-size: 10px;
  }

  .jw-joblist-skills {
    white-space: normal;
  }

  .jw-joblist-card a.jw-joblist-apply-btn {
    order: 1;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 72px);
    height: 40px;
    font-size: 13px !important;
  }
}

@media (max-width: 575.98px) {
  .jb-job-card--showcase {
    padding: 14px 16px;
  }

  .jb-job-card--showcase .jb-job-body {
    grid-template-columns: 44px 1fr auto;
    gap: 8px 12px;
  }

  .jb-job-card--showcase .jw-joblist-time--desk {
    display: none !important;
  }

  .jb-job-card--showcase .jw-joblist-time--mob {
    display: inline-flex !important;
    min-height: auto;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
  }
}
