/* ---------- Color tokens ---------- */
:root {
  --job-primary: #4B8F4D;   /* deep green */
  --job-accent:  #35D62E;   /* bright accent green */
  --job-bg:      #F3FFF1;   /* soft background */
}

/* ---------- Overall wrapper ---------- */
.job_listings {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
}

/* ---------- Search bar layout ---------- */
.job_listings form.job_filters {
  background: var(--job-bg);
  border-radius: 12px;
  padding: 16px 18px 20px;
  border: 1px solid rgba(75, 143, 77, 0.25);
  margin-bottom: 20px;
}

/* Make keyword, location and search button sit on one line */
.job_listings form.job_filters .search_jobs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hide the old clear:both helper, flex replaces it */
.job_listings form.job_filters .search_jobs > div[style*="clear"] {
  display: none !important;
}

/* Each field wrapper */
.job_listings .search_keywords,
.job_listings .search_location {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Labels */
.job_listings .search_keywords label,
.job_listings .search_location label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--job-primary);
  margin-bottom: 4px;
}

/* Inputs */
.job_listings .search_keywords input,
.job_listings .search_location input {
  border-radius: 999px;
  border: 1px solid rgba(75, 143, 77, 0.35);
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  background: #ffffff;
}

.job_listings .search_keywords input:focus,
.job_listings .search_location input:focus {
  border-color: var(--job-primary);
  box-shadow: 0 0 0 2px rgba(75, 143, 77, 0.18);
}

/* Search button */
.job_listings .search_submit {
  flex: 0 0 auto;
}

.job_listings .search_submit input[type="submit"] {
  border-radius: 999px;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--job-primary), var(--job-accent));
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(53, 214, 46, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
}

.job_listings .search_submit input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(53, 214, 46, 0.5);
  filter: brightness(1.03);
}

.job_listings .search_submit input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(53, 214, 46, 0.35);
}

/* Mobile stacking */
@media (max-width: 640px) {
  .job_listings form.job_filters .search_jobs {
    flex-direction: column;
    align-items: stretch;
  }

  .job_listings .search_submit input[type="submit"] {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Job type filter pills ---------- */
.job_listings ul.job_types {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job_listings ul.job_types li {
  margin: 0;
}

.job_listings ul.job_types label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(75, 143, 77, 0.25);
  background: #ffffff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.job_listings ul.job_types input[type="checkbox"] {
  accent-color: var(--job-primary);
}

.job_listings ul.job_types label:hover {
  border-color: var(--job-primary);
  box-shadow: 0 0 0 1px rgba(75, 143, 77, 0.25);
}

/* ---------- Listing meta header (RSS etc.) ---------- */
.job_listings .showing_jobs {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: #4a4a4a;
}

.job_listings .showing_jobs .rss_link {
  font-size: 12px;
  text-decoration: none;
  color: var(--job-primary);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(75, 143, 77, 0.06);
}

/* ---------- Job list cards ---------- */
.job_listings ul.job_listings {
  list-style: none;
  margin: 0;
  padding: 0;
}

.job_listings ul.job_listings > li.job_listing {
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(75, 143, 77, 0.18);
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

/* Card link behaves as card container */
.job_listings ul.job_listings > li.job_listing > a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  background-color: #F3FFF1;
}

/* Accent stripe on the left */
.job_listings ul.job_listings > li.job_listing::before {
  content: "";
  display: block;
  width: 4px;
  background: linear-gradient(180deg, var(--job-primary), var(--job-accent));
  flex-shrink: 0;
}

/* Top row: logo + position + location */
.job-card-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* Company logo */
.job_listings .job_listing .company_logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--job-bg);
  padding: 4px;
  flex-shrink: 0;
}

/* Position & company */
.job_listings .job_listing .position {
  flex: 1 1 0;
}

.job_listings .job_listing .position h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2933;
}

.job_listings .job_listing .company strong {
  font-size: 13px;
  color: var(--job-primary);
}

/* Location with more room */
.job_listings .job_listing .location {
  flex: 2 1 0;
  font-size: 13px;
  line-height: 1.4;
  color: #4a4a4a;
}

/* Footer row: meta + View more */
.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.job-card-footer .meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #6b7280;
}

/* View more pill button (span, not link) */
.job-view-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--job-primary);
  color: var(--job-primary);
  background: #ffffff;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

/* Hover state */
.job_listings ul.job_listings > li.job_listing:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 143, 77, 0.5);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

/* Make the button glow when hovering card */
.job_listings li.job_listing:hover .job-view-more-btn {
  background: linear-gradient(135deg, var(--job-primary), var(--job-accent));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(75, 143, 77, 0.35);
  transform: translateY(-1px);
}

/* Card layout stack on smaller screens */
@media (max-width: 768px) {
  .job-card-main {
    flex-direction: column;
  }

  .job_listings .job_listing .location {
    flex: 1 1 auto;
  }

  .job-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-view-more-btn {
    align-self: stretch;
    justify-content: center;
  }
}

/* ---------- Load more button ---------- */
.job_listings .load_more_jobs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--job-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--job-primary);
  background: #ffffff;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.job_listings .load_more_jobs:hover {
  background: var(--job-primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(75, 143, 77, 0.35);
  transform: translateY(-1px);
}

ul.job_listings li.job_listing a .meta li{
    padding: 0 0 0 42px;
    color: black !important;
}

ul.job_listings li.job_listing a div.location{
    padding: 8px 150px 0 1em !important;
    color: black !important;
}

ul.job_listings li.job_listing a div.position h3{
    font-size: 16px !important;
    color:#4B8F4D;
}

