/*
 * SP Career — front-end styles.
 * Self-contained (no theme variables) so it looks reasonable on any
 * theme out of the box. Every selector is prefixed .spcareer- — safe
 * to override from a theme stylesheet.
 */

.spcareer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.spcareer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  padding: 24px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.spcareer-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  transform: translateY(-2px);
}

.spcareer-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.spcareer-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.spcareer-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  padding: 4px 12px;
  border-radius: 30px;
}

.spcareer-tag--category {
  background: #e8eefc;
  color: #2e7d32;
}

.spcareer-tag--type {
  background: #f1f2f4;
  color: #4a4f57;
}

.spcareer-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.spcareer-card__title a {
  color: #14213d;
  text-decoration: none;
}

.spcareer-card__title a:hover {
  text-decoration: underline;
}

.spcareer-card__excerpt {
  margin: 0 0 14px;
  color: #5b6270;
  font-size: 15px;
  line-height: 1.55;
}

.spcareer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.spcareer-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #444b56;
}

.spcareer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spcareer-card__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2e7d32;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.spcareer-card__btn:hover,
.spcareer-card__btn:focus {
  background: #1b5e1f;
  color: #ffffff;
}

.spcareer-card__btn .spcareer-icon {
  stroke: #ffffff;
}

.spcareer-empty {
  color: #5b6270;
  font-size: 15px;
}

/* ---------------------------------------------------------------------
 * Single career + category archive page templates
 * (templates/single-spcareer.php, templates/taxonomy-spcareer_category.php)
 * ------------------------------------------------------------------- */

.spcareer-page-wrap {
  /* Sits inside Bootstrap's .container (theme-provided) for width/gutters —
     this class only adds the vertical rhythm around that. */
  padding-top: 48px;
  padding-bottom: 80px;
}

/* When the career has a featured image, it's used as the page-hero's
   background (with a dark overlay baked into the inline gradient so
   the breadcrumb/title stay readable) instead of an inline <img>. */
.page-hero.spcareer-hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.spcareer-single__back {
  margin: 0 0 20px;
  font-size: 14px;
}

.spcareer-single__back a {
  color: #5b6270;
  text-decoration: none;
}

.spcareer-single__back a:hover {
  text-decoration: underline;
}

.spcareer-single__title {
  margin: 14px 0 18px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #14213d;
}

.spcareer-single__meta {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e5ea;
}

.spcareer-single__content {
  font-size: 16px;
  line-height: 1.7;
  color: #333a44;
}

.spcareer-single__content p {
  margin: 0 0 1.2em;
}

.spcareer-single__cta {
  margin-top: 32px;
}

.spcareer-archive__title {
  margin: 14px 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: #14213d;
}

.spcareer-archive__description {
  margin-bottom: 24px;
  color: #5b6270;
  font-size: 15px;
}

.spcareer-archive .spcareer-list {
  margin-top: 24px;
}

.spcareer-archive__pagination {
  margin-top: 32px;
}

/* Rich content headings/lists inside the job description */
.spcareer-single__content h2 {
  margin: 2em 0 .6em;
  font-size: 22px;
  font-weight: 800;
  color: #14213d;
}

.spcareer-single__content h2:first-child {
  margin-top: 0;
}

.spcareer-single__content h3 {
  margin: 1.6em 0 .5em;
  font-size: 18px;
  font-weight: 700;
  color: #14213d;
}

.spcareer-single__content ul,
.spcareer-single__content ol {
  margin: 0 0 1.2em;
  padding-left: 22px;
}

.spcareer-single__content li {
  margin-bottom: 8px;
}

/* Two-column layout: description on the left, a sticky apply sidebar
   on the right (Apply box, application form, hiring process). */
.spcareer-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  /* Items stretch to the row's full height (default) so the sidebar's
     box is as tall as the main column — giving .spcareer-sidebar__inner
     room to stick within it instead of running out of space instantly. */
}

.spcareer-single-main {
  min-width: 0;
}

.spcareer-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-height, 0px) + 24px);
}

.spcareer-sidebar__title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  color: #14213d;
}

@media (max-width: 900px) {
  .spcareer-single-grid {
    grid-template-columns: 1fr;
  }

  .spcareer-sidebar__inner {
    position: static;
  }
}

/* Apply-online form card */
.spcareer-apply-form {
  margin: 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
}

.spcareer-apply-form__job {
  margin: 0 0 16px;
  font-size: 13px;
  color: #5b6270;
}

.spcareer-apply-form__job strong {
  color: #14213d;
}

.spcareer-apply-form .wpcf7-form p {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #333a44;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.spcareer-apply-form .wpcf7-form-control:not([type="submit"]):not([type="hidden"]) {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d7dbe0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.spcareer-apply-form textarea.wpcf7-form-control {
  min-height: 90px;
  resize: vertical;
}

.spcareer-apply-form input[type="submit"] {
  width: 100%;
  background: #2952cc;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.spcareer-apply-form input[type="submit"]:hover {
  background: #1d3c99;
}

.spcareer-apply-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 12px;
  color: #c0392b;
}

.spcareer-apply-form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}

/* Hiring process timeline */
.spcareer-hiring {
  margin: 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
}

.spcareer-hiring__steps {
  list-style: none;
  counter-reset: spcareer-step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spcareer-hiring__steps li {
  position: relative;
  margin: 0;
  padding-left: 44px;
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #333a44;
}

.spcareer-hiring__steps li::before {
  counter-increment: spcareer-step;
  content: counter(spcareer-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2952cc;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Related positions */
.spcareer-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #e2e5ea;
}

.spcareer-related__title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
  color: #14213d;
}

.spcareer-related__all {
  margin-top: 20px;
}

.spcareer-related__all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2952cc;
  font-weight: 700;
  text-decoration: none;
}

.spcareer-related__all a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .spcareer-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .spcareer-card__btn {
    width: 100%;
    justify-content: center;
  }
}
