.job-offer {
  max-width: var(--max-screen-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 0 auto 5rem auto;
}

.job-offer-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
}

.job-offer-content-details {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.job-offer-content-details > .job-offer-content-details-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.job-offer-content-details-section > .job-offer-content-title {
  color: var(--blue);
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  line-height: 1.5rem;
}

.job-offer-content-details-section > .job-offer-content-info {
  font-size: var(--font-size-xxm);
  color: var(--main-text-color);
  font-weight: var(--font-weight-bold);
  line-height: 1.8125rem;
}

.job-offer-content-details-section > .job-offer-content-text {
  font-size: var(--font-size-l);
  line-height: 1.5rem;
  color: var(--main-text-color);
}

.job-offer-content-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-offer-content-details-row {
  font-size: var(--font-size-l);
  line-height: 1.5rem;
  color: var(--main-text-color);
  display: flex;
  gap: 0.5rem;
}

.job-offer-content-details-row:before {
  content: url('/assets/checkmark.svg');
}

.job-offer-content-subtitle {
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-bold);
  line-height: 1.5rem;
  color: var(--main-text-color);
}

.job-offer-form {
  min-width: 37.5rem;
  position: sticky;
  top: 0;
}

.form > h3 {
  font-size: var(--font-size-xl);
  color: var(--main-text-color);
  font-weight: var(--font-weight-bold);
  line-height: 2.1875rem;
  margin: 0;
}

.job-offer-info {
  font-size: var(--font-size-xm);
  color: var(--blue);
  line-height: var(--font-size-xxm);
}

.file-input-name {
  max-width: calc(100% - 6rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media only screen and (max-width: 1366px) {
  .job-offer {
    padding: 0 3rem;
  }
}

@media only screen and (max-width: 1200px) {
  .job-offer {
    padding: 0 1.5rem;
  }
  .job-offer-title {
    font-size: 5rem;
  }
}

@media only screen and (max-width: 1150px) {
  .job-offer-title {
    font-size: 6rem;
    text-align: center;
  }
  .job-offer-form {
    min-width: 31.5rem;
  }
}

@media only screen and (max-width: 960px) {
  .job-offer {
    padding: 0 2rem;
  }
  .job-offer-title {
    font-size: 6rem;
    text-align: center;
  }
  .job-offer-content {
    grid-template-columns: 1fr; /* Change to a single column for smaller screens */
  }
}

@media only screen and (max-width: 960px) {
  .job-offer-title {
    font-size: 4.5rem;
    text-align: center;
  }
}

@media only screen and (max-width: 767px) {
  .job-offer {
    padding: 0 1.5rem;
  }

  .job-looking-for {
    width: 100%;
    text-align: center;
  }

  .job-offer-title {
    font-size: 3rem;
    text-align: center;
    line-height: normal;
  }

  .job-offer-form {
    min-width: calc(100% - 1rem);
    padding: 3rem 1.5rem;
  }
}

@media only screen and (max-width: 480px) {
  .job-offer {
    padding: 0 1rem;
  }

  .job-offer-form {
    padding: 3rem 1rem;
  }
}

@media only screen and (max-width: 320px) {
  .job-offer-title {
    font-size: 3rem;
    text-align: center;
    line-height: normal;
  }
  .job-offer-form {
    min-width: calc(100%);
  }
}
