/* Page background */
.job {
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero (top area with subtle pattern) */
.job-hero {
  padding: 2rem 1rem 1.5rem;
  text-align: center;

  background-color: #f5f5f5;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 8px 8px;
}

.job-hero__back {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.job-hero__back:hover {
  opacity: 1;
  text-decoration: underline;
}

.job-hero__title {
  margin: 0 0 0.5rem;
  font-weight: 300;
  line-height: 1.15;
  font-size: clamp(32px, 4vw, 44px);
  color: #2d2d2d;
}

.job-hero__location {
  font-size: 14px;
  color: #777777;
  opacity: 1;
}

/* Paper card */
.job-paper-wrap {
  display: flex;
  justify-content: center;
  padding: 0 1rem 4rem;
}

.job-paper {
  width: min(980px, 100%);
  background: #fff;
  padding: 2.5rem 3rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);

  color: #333333;
  font-size: 16px;
}

/* “Job Description” heading */
.job-paper__heading {
  margin: 0 0 1.5rem;
  font-size: 24px;
  font-weight: 500;
  color: #2d2d2d;
}

/* Sections */
.job-section {
  margin: 0 0 2rem;
}

.job-section__title {
  margin: 2rem 0 0.75rem;
  font-size: 18px;
  font-weight: 500;
  color: #4f84a8;
  opacity: 1;
}

.job-section__body {
  line-height: 1.8;
  color: #333333;
}

.job-section__body,
.job-section__body p,
.job-section__body li {
  font-weight: 400;
}

/* Chevron bullets */
.job-section__body ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
}

.job-section__body li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.4rem 0;
  line-height: 1.6;
}

.job-section__body li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.6;
}

/* Mobile */
@media (max-width: 640px) {
  .job-paper {
    padding: 1.5rem;
  }
}

/* CTA blocks at bottom of job listing */
.job-cta {
  margin-top: 2.5rem;
  padding: 2.25rem 2rem;
  background: #f7f7f7;
  text-align: center;
}

.job-cta__title {
  margin: 0 0 1.25rem;
  font-size: 18px;
  font-weight: 500;
  color: #2d2d2d;
}

.job-cta__button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background: #1f5f86;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
}

/* Make it “non-functional” visually (optional) */
.job-cta__button[aria-disabled="true"] {
  cursor: default;
}

.job-cta--secondary {
  margin-top: 1.5rem;
}

.job-cta__linkrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.job-cta__icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  color: #4f84a8;
  font-size: 18px;
  line-height: 1;
}

.job-cta__link {
  color: #4f84a8;
  text-decoration: none;
  font-weight: 600;
}

.job-cta__link[aria-disabled="true"] {
  cursor: default;
}

/* --- Force CTAs to appear below content (not beside it) --- */
.job .job-paper .job-cta-stack {
  display: block;
  clear: both;       /* breaks out of floats */
  width: 100%;
  margin-top: 2.5rem;
}

.job .job-paper .job-cta-stack .job-cta {
  float: none;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  display: block;
}

/* If your theme uses flex/grid inside .job-paper, this ensures CTAs are a new row */
.job .job-paper .job-cta-stack {
  flex-basis: 100%;
}

/* Keep the CTA styling you already have */
.job .job-paper .job-cta {
  padding: 2.25rem 2rem;
  background: #f7f7f7;
  text-align: center;
}
