/* === Page background (only when WPJM blocks exist) === */
.job_listings,
.job_listings .job_filters,
.job_listings ul.job_listings {
  background: transparent;
}

/* Outer container padding ~20% on desktop */
.job_listings {
  background: #E1D5D5;
  padding-left: 20%;
  padding-right: 20%;
  padding-top: 22px;
  padding-bottom: 22px;
}

/* Mobile: don’t crush the content */
@media (max-width: 900px) {
  .job_listings {
    padding-left: 6%;
    padding-right: 6%;
  }
}

/* === Search / filters === */
.job_filters {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 16px 0;
}

.job_filters .search_jobs {
  background: #fff;
  border: 1px solid rgba(124, 10, 12, 0.15);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Submit button row: centered with OUTSIDE padding */
.job_filters .search_jobs .search_submit {
  display: flex;
  justify-content: center;
  padding: 18px 0 6px; /* outside padding */
}

/* Button styling */
.job_filters .search_jobs .search_submit input[type="submit"],
.job_filters .search_jobs .search_submit button,
.job_filters .search_jobs .search_submit .button {
  appearance: none;
  border: 2px solid #7C0A0C;
  background: #7C0A0C;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 34px; /* thickness */
  line-height: 1;
  cursor: pointer;
}

.job_filters .search_jobs .search_submit input[type="submit"]:hover,
.job_filters .search_jobs .search_submit button:hover,
.job_filters .search_jobs .search_submit .button:hover {
  filter: brightness(0.95);
}

/* Inputs */
.job_filters input[type="text"],
.job_filters input[type="search"],
.job_filters select {
  border: 1px solid rgba(124, 10, 12, 0.18);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  outline: none;
}

.job_filters input[type="text"]:focus,
.job_filters input[type="search"]:focus,
.job_filters select:focus {
  border-color: rgba(124, 10, 12, 0.5);
  box-shadow: 0 0 0 3px rgba(252, 185, 186, 0.55);
}

/* === Job list === */
ul.job_listings {
  margin: 0;
  padding: 0;
}

ul.job_listings li.job_listing {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  border: 0;
}

/* Card link */
ul.job_listings li.job_listing > a.wpjm-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto; /* main + meta */
  grid-template-areas: "main meta";
  align-items: center;

  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(124, 10, 12, 0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);

  padding: 18px 18px;
  text-decoration: none;
  color: inherit;

  position: relative;
  overflow: hidden;
}

/* left accent bar */
ul.job_listings li.job_listing > a.wpjm-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: #7C0A0C;
  border-radius: 10px;
}

/* Hide company logo AND remove layout impact */
ul.job_listings li.job_listing .company_logo,
ul.job_listings li.job_listing img.company_logo {
  display: none !important;
}

/* Main area */
.wpjm-card__main { grid-area: main; min-width: 0; padding-left: 10px; }

.wpjm-card__title {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
}

.wpjm-card__company {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 650;
  color: rgba(17,17,17,0.65);
}

.wpjm-card__location {
  margin: 0;
  font-size: 13px;
  color: rgba(17,17,17,0.65);
}

/* Meta area */
.wpjm-card__meta {
  grid-area: meta;
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;

  min-width: 120px;
}

/* Job type badge (Full Time etc.) */
.wpjm-card__meta-type .job-type,
.wpjm-card__meta-type a.job-type,
.wpjm-card__meta-type span.job-type {
  display: inline-block;
  background: rgba(252, 185, 186, 0.45);
  border: 1px solid rgba(124, 10, 12, 0.18);
  color: #7C0A0C;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
}

/* View label */
.wpjm-view {
  font-size: 13px;
  font-weight: 800;
  color: #7C0A0C;
  opacity: 0.95;
}

/* Prevent “broken out” text overflow */
.wpjm-card__title,
.wpjm-card__company,
.wpjm-card__location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 680px) {
  ul.job_listings li.job_listing > a.wpjm-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "meta";
    gap: 12px;
  }

  .wpjm-card__meta {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
  }

  .wpjm-card__title,
  .wpjm-card__company,
  .wpjm-card__location {
    white-space: normal;
  }
}

.showing_jobs, .job_types {
    display: none !important;
}

