/* ===================================================
   Job Profile Pages — all jp-* component styles
   =================================================== */

/* ── Nav header: suppress inner-header hero height on jp pages ── */
.jp-page-header {
  min-height: 0 !important;
  padding-bottom: 0 !important;
}

.jp-page-header .inner-heading-text {
  display: none;
}

/* ── Hero: full-bleed outer, constrained inner ── */
.jp-hero-outer {
  width: 100%;
  background: #046a38;
}

.jp-hero {
  position: relative;
  height: clamp(260px, 28vw, 720px);
  width: 100%;
  overflow: hidden;
}

.jp-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.jp-hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a7048 0%, #046a38 40%, #034d29 100%);
}

.jp-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.jp-hero-chevron {
  position: absolute;
  top: 0;
  right: 0;
  width: 22%;
  min-width: 130px;
  height: 100%;
  background: #046a38;
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 18% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 8%;
}

.jp-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jp-hero-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

/* ── Title banner ── */
.jp-title-banner {
  background: #fbdd40;
  padding: 28px 40px;
  text-align: center;
}

.jp-title-banner h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

/* ── Main content area ── */
.jp-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

/* ── Breadcrumb / back link ── */
.jp-breadcrumb {
  margin-bottom: 28px;
}

.jp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #046a38;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.jp-back-link:hover,
.jp-back-link:focus-visible {
  color: #024d29;
  text-decoration: underline !important;
}

.jp-back-link i {
  font-size: 0.8rem;
}

/* ── Intro description ── */
.jp-description {
  font-style: italic;
  color: #555;
  font-size: 0.95rem;
  text-align: center;
  margin: 0 0 36px;
  line-height: 1.6;
}

/* ── Job profiles section ── */
.jp-profiles-section {
  margin-bottom: 48px;
}

.jp-profiles-header {
  background: #046a38;
  border-radius: 6px 6px 0 0;
  margin: 0 0 12px;
}

.jp-profiles-header h2 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  padding: 13px 18px;
}

.jp-profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.jp-profile-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: #f0f8f3;
  border: 1.5px solid #b0d9bf;
  border-radius: 8px;
  color: #046a38 !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
  min-height: 54px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.15s ease;
}

.jp-profile-card:hover,
.jp-profile-card:focus-visible {
  background: #046a38;
  border-color: #024d29;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(4, 106, 56, 0.2);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .jp-hero-icon {
    font-size: 3.5rem;
  }

  .jp-title-banner {
    padding: 20px;
  }

  .jp-profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jp-main {
    padding: 28px 16px 56px;
  }
}

@media (max-width: 420px) {
  .jp-profiles-grid {
    grid-template-columns: 1fr;
  }
}
