
/* ---------- Layout ---------- */

.job-posting-container {
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  max-width: 800px;
  margin: 32px auto;
  padding: 32px;
  line-height: 1.6;
  color: #333;
  font-size: 16px;
}

.job-listings {
  margin-top: 32px;
}

/* ---------- Page Headings ---------- */

.job-page-title {
  font-size: 40px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.job-page-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
}

/* ---------- Back Link ---------- */

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- Job Listing ---------- */

.job-listing {
  border-top: 1px solid #e5e5e5;
  padding: 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.job-listing:last-child {
  border-bottom: 1px solid #e5e5e5;
}

.job-listing-details {
  flex: 1;
}

.job-title {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 500;
}

/* ---------- Meta Info ---------- */

.meta-info,
.job-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: #555;
  align-items: center;
}

.job-meta-label {
  font-weight: 600;
}

.job-meta-value {
  font-weight: 400;
}

/* ---------- Actions / Buttons ---------- */

.job-listing-actions {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.job-listing-actions:hover {
  background-color: #000;
}

/* ---------- Job Description ---------- */

.job-description {
  margin-top: 32px;
  font-size: 16px;
}

/* ---------- Application Section ---------- */

.application-form-container {
  border-top: 1px solid #e5e5e5;
  margin-top: 32px;
  padding-top: 32px;
}

.application-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ---------- Form Fields ---------- */

.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.application-form-container input,
.application-form-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.application-form-container textarea {
  resize: vertical;
}

.application-form-container button {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.application-form-container button:hover {
  background-color: #000;
}

/* ---------- Success Message ---------- */

.success-message {
  text-align: center;
  padding: 32px;
  background-color: #f0fdf4;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #065f46;
}

.success-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.success-text {
  font-size: 16px;
}

/* ---------- Not Found ---------- */

.job-not-found {
  text-align: center;
}

/* ---------- Mobile Responsiveness ---------- */

@media (max-width: 568px) {
  .job-posting-container {
    padding: 16px;
    margin: 16px auto;
  }

  .job-page-title {
    font-size: 28px;
    margin: 12px 0 8px;
  }

  .job-title {
    font-size: 22px;
  }

  .job-page-description,
  .job-description,
  .success-text {
    font-size: 14px;
  }

  .job-listing {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .job-listing-actions {
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }

  .meta-info,
  .job-listing-meta {
    font-size: 13px;
    gap: 6px 16px;
  }

  .application-title {
    font-size: 16px;
  }

  .form-label {
    font-size: 13px;
  }

  .application-form-container input,
  .application-form-container textarea,
  .application-form-container button {
    font-size: 14px;
  }

  .success-message {
    padding: 20px;
  }
}
