/* =========================================
   Jobs page - no mockup, consistent with the teaching page
   ========================================= */

/* (header photo + the dark gradient over it: .hero--photo in components.css - the same on every sub page) */

/* ---------- shared: left aligned contact block (no box) ---------- */
.section--teaching-contact {
  padding: 3rem 0 3.25rem;
  border-top: 6px solid #eff0f2;
  background: #fff;
}
.teaching-contact {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  text-align: left;
}
.teaching-contact__title {
  margin: 0 0 0.35rem;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: #0f172a;
}
.teaching-contact__text {
  margin: 0 0 1.5rem;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #213342;
}
.teaching-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.5rem;
}
.btn.teaching-contact__btn {
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  gap: 0.6rem;
}
.teaching-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.teaching-contact__link .icon { transition: transform 0.2s ease; }
.teaching-contact__link:hover { text-decoration: none; color: var(--color-primary-hover); }
.teaching-contact__link:hover .icon { transform: translateY(-3px); }
.btn.teaching-contact__btn { font-size: var(--fs-ui); }


.hero--jobs .hero__subtitle { max-width: 40rem; }

.section--jobs-intro { padding: 3.5rem 0 1rem; }
.section--jobs-intro .section__title,
.section--positions .section__title { text-align: left; color: #333; }
.jobs-intro {
  max-width: 52rem;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #333;
}
.jobs-intro p { margin: 0 0 1rem; }
.jobs-intro p:first-child { font-size: var(--fs-body); line-height: 1.7; }
.jobs-intro a { color: var(--color-primary); }

.section--positions { padding: 2.5rem 0 4rem; }
.section--positions .section__title { margin-bottom: 1.75rem; }
.jobs-list { display: flex; flex-direction: column; gap: 1.25rem; }

.job-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.6rem 1.4rem;
  background: #fff;
  border: 1px solid #bcbcbc;
  border-right-width: 2px;
  border-bottom-width: 3px;
  border-radius: 8px;
  scroll-margin-top: 6rem;
  box-shadow: none;
  transition: transform 0.2s ease;
}
.job-card:hover { box-shadow: none; background: #fff; transform: translateY(-2px); }
.job-card__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
}
.job-card__title {
  flex: 1;
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  color: #213342;
}
.job-card__type {
  flex: 0 0 auto;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}
.job-card__description {
  margin: 0;
  max-width: 54rem;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #4b5563;
}
.job-card__description p { margin: 0 0 0.6rem; }
.job-card__description p:last-child { margin-bottom: 0; }
.job-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-light-border);
}
.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}
.job-card__meta li { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.job-card__meta .icon { flex: 0 0 auto; color: #213342; }
.job-card__deadline { font-weight: 600; color: #213342; }
.job-card--expired .job-card__deadline { font-weight: 500; color: #9a3412; }
.job-card--expired .job-card__deadline .icon { color: inherit; }
.btn.job-card__apply { padding: 0.5rem 1.1rem; border-radius: 6px; gap: 0.6rem; font-size: var(--fs-ui); }

.jobs-empty {
  padding: 2rem 1.75rem;
  border: 1px dashed #c5cad1;
  border-radius: 10px;
  background: #f7f8fa;
}
.jobs-empty__text { margin: 0; max-width: 44rem; font-size: var(--fs-body); line-height: 1.55; color: #333; }

@media (max-width: 900px) {
  .section--jobs-intro { padding-top: 2.75rem; }
  .section--positions { padding: 2rem 0 3rem; }
}
@media (max-width: 600px) {
  .job-card { padding: 1.15rem 1.1rem 1.1rem; }
  .job-card__header { flex-direction: column-reverse; gap: 0.6rem; }
  .job-card__foot { flex-direction: column; align-items: flex-start; }
  .job-card__meta { flex-direction: column; }
  .teaching-contact__actions { flex-direction: column; align-items: flex-start; }
}
