/* ===== Two-column card grid for WP Job Manager list ===== */

/* The UL becomes a responsive grid */
ul.job_listings.wpjm-cards-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding-left: 0;
}

/* Make each LI a card container (anchor + CTA stacked) */
ul.job_listings.wpjm-cards-2 > li.job_listing.wpjm-card{
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}
ul.job_listings.wpjm-cards-2 > li.job_listing.wpjm-card:hover{
  border-color: #d1d5db;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* Make the anchor the card’s content area */
ul.job_listings.wpjm-cards-2 > li.job_listing > a{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

/* Title & location polish */
ul.job_listings.wpjm-cards-2 .position h3{
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #111827;
}
ul.job_listings.wpjm-cards-2 .position .company{ display: none; }

ul.job_listings.wpjm-cards-2 .location{
  font-size: .95rem;
  color: #374151;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Hide native meta in the row; we show a synthesized date */
ul.job_listings.wpjm-cards-2 .meta{ display: none !important; }
ul.job_listings.wpjm-cards-2 .wpjm-card__posted{
  margin-top: auto;
  font-size: .9rem;
  color: #6b7280;
}

/* Per-item CTA button (sibling of the anchor) */
ul.job_listings.wpjm-cards-2 > li.job_listing .wpjm-card__cta-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 14px 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #C2274B;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #C2274B;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
ul.job_listings.wpjm-cards-2 > li.job_listing .wpjm-card__cta-link:hover{
  background: #a71d3e;
  box-shadow: 0 4px 14px rgba(194,39,75,.25);
}

/* Force visible + centered */
a.load_more_jobs{
  display: flex !important;          /* beats inline display:none */
  width: max-content;
  margin: 1rem auto;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .70rem 1.05rem;
  border-radius: 14px;

  /* Base look (stick to this color unless hovered) */
  background: #C2274B !important;
  background-image: none !important; /* kill theme gradients */
  color: #ffffff !important;
  border: 1px solid #9a1e3b !important;
  text-decoration: none !important;

  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;

  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.10);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .06s ease, box-shadow .2s ease;
  cursor: pointer;
}

/* Keep style during AJAX states & visited */
a.load_more_jobs:visited,
a.load_more_jobs.loading,
a.load_more_jobs.disabled,
a.load_more_jobs[disabled]{
  background: #C2274B !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #9a1e3b !important;
}

/* Hover: white button with strong outline so it doesn't vanish on white bg */
a.load_more_jobs:hover{
  background: #ffffff !important;
  color: #C2274B !important;
  border-color: #C2274B !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 10px 26px rgba(0,0,0,.12);
}

/* Active + focus ring */
a.load_more_jobs:active{ transform: translateY(0); }
a.load_more_jobs:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 39, 75, .25), 0 6px 18px rgba(0,0,0,.10);
}

/* Nested strong inherits current color */
a.load_more_jobs strong{ color: inherit !important; }

/* Optional full-width on small screens */
@media (max-width: 767px){
  a.load_more_jobs{ width: 100%; }
}


/* Square-ish height for neat rows */
@media (min-width: 768px){
  ul.job_listings.wpjm-cards-2 > li.job_listing > a{
    min-height: 100px;
  }
}

/* Mobile: 1 column */
@media (max-width: 719.98px){
  ul.job_listings.wpjm-cards-2{
    grid-template-columns: 1fr;
  }
}
