/* HEADER STYLING */
.jobs-header {
  max-width: 900px;
  margin: 2rem auto 3rem auto;
  padding: 2rem 1rem;
  text-align: center;
}

.jobs-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1f3556;
  margin-bottom: 0.75rem;
}

.jobs-header p {
  font-size: 1.15rem;
  color: #4a4a4a;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* JOB GRID + CARDS */
.jobs-grid {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.job-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-card h3 {
  margin: 0;
  color: #2a4e77;
}

.job-card small {
  display: block;
  margin: 0.4rem 0 0.7rem 0;
  color: #777;
}

.job-card p {
  font-size: 0.96rem;
  color: #444;
  line-height: 1.55;
}

.job-card a,
.job-card button {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  text-align: center;
  color: #fff;
  background: #3a6ea5;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
}

.job-card a:hover,
.job-card button:hover {
  background: #2a4e77;
}

/* NEW badge */
.job-badge-new {
  background: #28a745;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* MODAL */
.mcjm-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.7) !important;
  z-index: 999999 !important;
  overflow-y: auto !important;
  padding: 40px 15px !important;
}

.mcjm-modal-content {
  background: #ffffff !important;
  margin: auto !important;
  max-width: 850px !important;
  padding: 25px 30px !important;
  border-radius: 10px !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.3) !important;
}

.mcjm-modal-close {
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}

.mcjm-modal-close:hover {
  color: #3a6ea5;
}

body.mcjm-modal-open {
  overflow: hidden !important;
}

/* FORM */
#mcjm-application-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #222;
}

#mcjm-application-form input,
#mcjm-application-form textarea,
#mcjm-application-form select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

#mcjm-application-form textarea {
  min-height: 100px;
  resize: vertical;
}

.mcjm-submit-btn {
  padding: 0.75rem 1rem;
  background: #3a6ea5;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.mcjm-submit-btn:hover {
  background: #2a4e77;
}

/* NO OPENINGS */
.no-openings {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  grid-column: 1 / -1;
}

.no-openings h3 {
  color: #2a4e77;
  margin-bottom: 1rem;
}

.no-openings p {
  color: #555;
}

/* MOBILE */
@media (max-width: 768px) {
  .jobs-header h1 {
    font-size: 2rem;
  }

  .mcjm-modal-content {
    max-width: 95% !important;
    padding: 20px !important;
  }
}
