/* ===========================================================
   Career page — job listing cards, badges, and detail page
   Matches existing site design tokens (colors, radius, shadow)
=========================================================== */

.job-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.job-listing-card {
  display: block;
  background: #fff;
  border: 1px solid #ecedf0;
  border-radius: 14px;
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(16, 34, 0, 0.04);
  position: relative;
}
.job-listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(16, 34, 0, 0.1);
  border-color: #b1d269;
}

.job-listing-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.job-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 30px;
  color: #fff;
  background: #76b413;
}
.job-type-badge.job-type-full_time { background: #76b413; }
.job-type-badge.job-type-part_time { background: #3e7bd6; }
.job-type-badge.job-type-contract { background: #b8860b; }
.job-type-badge.job-type-internship { background: #8a5cf6; }
.job-type-badge.job-type-remote { background: #17a2a2; }

.job-dept {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.job-listing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1c1f26;
}

.job-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #666;
}
.job-listing-meta i { color: #76b413; margin-right: 4px; }

.job-listing-cta {
  font-size: 14px;
  font-weight: 700;
  color: #1c1f26;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.job-listing-card:hover .job-listing-cta { color: #76b413; }

/* --- Job detail page --- */
.career-detail-page {
  padding-top: 140px;
  padding-bottom: 70px;
}

/* Fix: menu.css's ".content h1" is white by default (designed for dark
   hero sections). On plain content pages (page.php, career-detail.php's
   404 state) that white text on a light background is unreadable. */
.content h1 {
  color: #1c1f26;
}

.job-detail-header {
  background: #f7f8fa;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 30px;
}
.job-detail-header h1 {
  color: #1c1f26;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  margin: 16px 0 12px;
}
.job-detail-header .job-listing-meta { margin-bottom: 0; font-size: 14px; }

.job-detail-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 14px;
  color: #1c1f26;
}
.job-detail-body h3:first-child { margin-top: 0; }
.job-detail-body ul {
  display: block;
  padding-left: 20px;
  margin-bottom: 0;
  list-style: disc;
}
.job-detail-body ul li {
  display: list-item;
  text-align: left;
  margin-bottom: 10px;
  color: #555;
  line-height: 1.6;
}
.job-detail-body p { color: #555; line-height: 1.7; }

.job-apply-sidebar {
  background: #1c1f26;
  border-radius: 16px;
  padding: 28px;
  color: #fff;
  position: sticky;
  top: 30px;
}
.job-apply-sidebar h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.job-apply-sidebar p { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 20px; }
.job-apply-sidebar .job-listing-meta { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.job-apply-sidebar .job-listing-meta i { color: #b1d269; }
.job-apply-sidebar .cmn-btn { width: 100%; text-align: center; justify-content: center; }
.job-apply-sidebar .cmn-btn span { justify-content: center; width: 100%; }

/* --- Apply modal file upload field --- */
.lead-modal .file-upload-field {
  border: 1.5px dashed #dcdfe4;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.lead-modal .file-upload-field:hover { border-color: #76b413; background: #f9fdf4; }
.lead-modal .file-upload-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.lead-modal .file-upload-field .file-upload-label {
  font-size: 13px;
  color: #666;
}
.lead-modal .file-upload-field .file-upload-label i { color: #76b413; margin-right: 6px; }
.lead-modal .file-upload-field.has-file { border-color: #76b413; background: #f9fdf4; }
.lead-modal .file-upload-field.has-file .file-upload-label { color: #2f7a1f; font-weight: 600; }

@media (max-width: 991px) {
  .job-listing-grid { grid-template-columns: 1fr; }
  .job-apply-sidebar { position: static; margin-bottom: 30px; }
}

/* ===========================================================
   How We Work page — 6-step process grid variant.
   Base .process-grid is hardcoded to 5 columns; this mirrors
   the same breakpoint pattern for a clean 6-item layout.
=========================================================== */
.process-grid.process-grid-6 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .process-grid.process-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .process-grid.process-grid-6 {
    grid-template-columns: repeat(1, 1fr);
  }
}