/* Modern Indeed-style for WP Job Manager listings */

.job_listings { 
  list-style: none; 
  margin: 0; 
  padding: 0;
  background: transparent;
}

.job_listings .job_listing {
  display: block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 0 0 12px 0;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}

.job_listings .job_listing:hover { 
  border-color: #2557a7;
  box-shadow: 0 2px 8px rgba(37, 87, 167, 0.15);
}

.job_listing .position {
  display: block;
  margin-bottom: 8px;
}

.job_listing .position a { 
  color: #2557a7;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

.job_listing .position a:hover {
  text-decoration: underline;
}

.job_listing .company_logo { 
  display: none; /* Hidden in list view like Indeed */
}

.job_listing .company {
  color: #2d2d2d;
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.job_listing .location {
  color: #2d2d2d;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.job_listing .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 8px 0;
}

.job_listing .meta > span,
.job_listing .job-type {
  display: inline-flex;
  align-items: center;
  color: #2d2d2d;
  font-size: 14px;
  padding: 4px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.job_listing .date {
  color: #595959;
  font-size: 13px;
  margin-top: 8px;
}

.job_listing .salary {
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0;
}

.job_listing .description {
  color: #595959;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.job_listing .apply {
  margin-top: 12px;
}

.job_listing .apply a.button {
  display: inline-block;
  background: #2557a7;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: none;
  transition: background 0.2s ease;
}

.job_listing .apply a.button:hover {
  background: #1d4580;
}

/* Urgently hiring badge */
.job_listing .urgently-hiring {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .job_listings .job_listing {
    padding: 16px;
  }
  
  .job_listing .position a {
    font-size: 16px;
  }
}

/* Single job page styles */
.job-single-card{ background:#fff; border-radius:12px; padding:28px; box-shadow:0 12px 30px rgba(15,23,42,0.06); border:1px solid rgba(15,23,42,0.04); }
.job-single-top{ display:flex; gap:20px; align-items:center; justify-content:space-between; }
.job-single-top .company_logo{ width:96px; height:96px; border-radius:12px; overflow:hidden; background:#f5f7fa; display:flex; align-items:center; justify-content:center; }
.job-single-top .company_logo img{ width:100%; height:100%; object-fit:cover; }
.job-single-header{ flex:1; min-width:0; }
.job-single-header .job_title{ font-size:26px; margin:0 0 6px; color:#0f1724; }
.job-single-header .company{ color:#6b7280; margin-bottom:8px; }
.job-single-header .meta{ display:flex; gap:8px; align-items:center; color:#6b7280; }
.job-single-body{ margin-top:20px; color:#0f1724; line-height:1.7; }
.job-single-body .description img{ max-width:100%; height:auto; }

@media (max-width:900px){
  .job-single-top{ flex-direction:column; align-items:flex-start; }
  .job-single-top .apply{ align-self:stretch; margin-top:10px; }
}


/* Page background for jobs page */
.post-type-archive-job_listing,
.page-template-default.page .site-main,
.tax-job_category .site-main,
.tax-job_industry .site-main,
.tax-job_skill .site-main,
.tax-job_education .site-main {
  background: #f8f9fa;
  min-height: 100vh;
}

.job_listings_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Job listing count */
.showing_jobs {
  font-size: 14px;
  color: #595959;
  margin: 16px 0 12px 0;
  font-weight: 400;
}

/* Pagination */
.job-manager-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
}

.job-manager-pagination a,
.job-manager-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #2557a7;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.job-manager-pagination a:hover {
  background: #f8f9fa;
  border-color: #2557a7;
}

.job-manager-pagination .current {
  background: #2557a7;
  color: #fff;
  border-color: #2557a7;
}
