/* ============================================================
   GREEN LABEL SERVICES — JOB DETAIL PAGE
   job_detail.css  (scoped to .page-job-detail)
   ============================================================ */


/* ─── BREADCRUMB (dark variant) ────────────────────────────── */
.breadcrumb__list {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         0.375rem;
  padding:     0;
  margin:      0;
  list-style:  none;
}

.breadcrumb__item {
  display:     flex;
  align-items: center;
  font-size:   0.8rem;
  font-weight: 500;
  color:       rgba(255, 255, 255, 0.55);
}

.breadcrumb__item--sep {
  font-size: 0.6rem;
  color:     rgba(255, 255, 255, 0.3);
}

.breadcrumb__link {
  color:      rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__item--current {
  color: rgba(255, 255, 255, 0.9);
}


/* ─── HERO ─────────────────────────────────────────────────── */
.jd-hero {
  position:       relative;
  min-height:     400px;
  display:        flex;
  align-items:    flex-end;
  padding-bottom: 0;
  overflow:       hidden;
}

.jd-hero__bg {
  position:            absolute;
  inset:               0;
  background-image:    url('https://res.cloudinary.com/dbedibtcu/image/upload/v1773415764/IMG-20250611-WA0024_uswe7o.jpg');
  background-size:     cover;
  background-position: center 40%;
}

.jd-hero__overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    to right,
    rgba(7, 20, 7, 0.97) 0%,
    rgba(7, 20, 7, 0.88) 55%,
    rgba(7, 20, 7, 0.68) 100%
  );
}

/* Bottom fade into page */
.jd-hero::after {
  content:    '';
  position:   absolute;
  bottom:     0;
  left:       0;
  right:      0;
  height:     80px;
  background: linear-gradient(to bottom, transparent, #f8faf8);
  pointer-events: none;
}

.jd-hero__inner {
  position:       relative;
  z-index:        1;
  padding-top:    3.5rem;
  padding-bottom: 3rem;
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;
}

.jd-hero__meta {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         0.625rem;
}

.jd-hero__dept-name {
  display:        inline-flex;
  align-items:    center;
  gap:            0.4rem;
  font-size:      0.75rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-primary);
}

.jd-hero__badge {
  display:        inline-flex;
  align-items:    center;
  gap:            0.3rem;
  padding:        0.25rem 0.625rem;
  background:     var(--color-accent);
  border-radius:  var(--radius-pill);
  font-size:      0.6rem;
  font-weight:    800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-white);
}

.jd-hero__title {
  font-size:   clamp(1.75rem, 4vw, 2.875rem);
  font-weight: 800;
  color:       var(--color-white);
  line-height: 1.15;
  max-width:   680px;
}

/* Meta strip */
.jd-hero__strip {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         0.75rem;
}

.jd-hero__strip-item {
  display:     flex;
  align-items: center;
  gap:         0.375rem;
  font-size:   0.85rem;
  font-weight: 500;
  color:       rgba(255, 255, 255, 0.7);
}

.jd-hero__strip-item i {
  color:     var(--color-primary);
  font-size: 0.75rem;
}

.jd-hero__strip-sep {
  color:     rgba(255, 255, 255, 0.3);
  font-size: 1rem;
}


/* ─── TWO-COLUMN LAYOUT ─────────────────────────────────────── */
.jd-layout {
  background: #f8faf8;
  padding:    3rem 0 5rem;
}

.jd-layout__inner {
  display:               grid;
  grid-template-columns: 1fr 340px;
  gap:                   3rem;
  align-items:           start;
}


/* ─── MAIN CONTENT ──────────────────────────────────────────── */
.jd-main {
  display:        flex;
  flex-direction: column;
  gap:            2.5rem;
  min-width:      0;
}

/* Section block */
.jd-section {
  background:    var(--color-white);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow:      hidden;
  box-shadow:    0 2px 12px rgba(0, 0, 0, 0.05);
}

.jd-section__header {
  display:      flex;
  align-items:  center;
  gap:          0.75rem;
  padding:      1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  background:   rgba(23, 199, 20, 0.03);
}

.jd-section__icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  background:      rgba(23, 199, 20, 0.1);
  border-radius:   var(--radius-sm);
  color:           var(--color-primary);
  font-size:       0.875rem;
  flex-shrink:     0;
}

.jd-section__title {
  font-size:   1.05rem;
  font-weight: 700;
  color:       var(--color-text);
}

.jd-section__body {
  padding: 1.75rem;
}

.jd-section__body--prose {
  font-size:   0.925rem;
  color:       var(--color-text-muted);
  line-height: 1.8;
}

.jd-section__body--prose p {
  margin-bottom: 1rem;
}

.jd-section__body--prose p:last-child {
  margin-bottom: 0;
}

/* Lists */
.jd-list {
  list-style:     none;
  padding:        1.75rem;
  margin:         0;
  display:        flex;
  flex-direction: column;
  gap:            0.875rem;
}

.jd-list__item {
  display:     flex;
  align-items: flex-start;
  gap:         0.75rem;
  font-size:   0.9rem;
  color:       var(--color-text);
  line-height: 1.6;
}

.jd-list__bullet {
  color:       var(--color-primary);
  font-size:   0.8rem;
  flex-shrink: 0;
  margin-top:  0.2rem;
}

.jd-list__bullet--accent {
  color: var(--color-accent);
}


/* ─── RELATED JOBS (inline — mobile) ───────────────────────── */
.jd-related--inline {
  display: none;
}

.jd-related__title {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  font-size:   1.05rem;
  font-weight: 700;
  color:       var(--color-text);
  padding:     1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  background:  var(--color-white);
  margin:      0;
}

.jd-related__title i {
  color: var(--color-primary);
}

.jd-related__grid {
  list-style:     none;
  padding:        0;
  margin:         0;
  display:        flex;
  flex-direction: column;
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-md);
  overflow:       hidden;
  background:     var(--color-white);
  box-shadow:     0 2px 12px rgba(0, 0, 0, 0.05);
}

.jd-related__grid .jd-related__title {
  border-radius: 0;
}

.jd-related__card {
  border-top: 1px solid var(--color-border);
}

.jd-related__card:first-child {
  border-top: none;
}

.jd-related__link {
  display:         flex;
  align-items:     center;
  gap:             1rem;
  padding:         1rem 1.5rem;
  text-decoration: none;
  transition:      background 0.2s ease;
}

.jd-related__link:hover {
  background: rgba(23, 199, 20, 0.04);
}

.jd-related__icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  background:      rgba(23, 199, 20, 0.08);
  border-radius:   var(--radius-sm);
  color:           var(--color-primary);
  font-size:       0.8rem;
  flex-shrink:     0;
  transition:      background 0.2s ease;
}

.jd-related__link:hover .jd-related__icon {
  background: var(--color-primary);
  color:      var(--color-white);
}

.jd-related__text {
  flex:           1;
  display:        flex;
  flex-direction: column;
  gap:            0.2rem;
  min-width:      0;
}

.jd-related__name {
  font-size:     0.9rem;
  font-weight:   700;
  color:         var(--color-text);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  transition:    color 0.2s ease;
}

.jd-related__link:hover .jd-related__name {
  color: var(--color-primary-dark, #0d7a0b);
}

.jd-related__desc {
  font-size:   0.775rem;
  color:       var(--color-text-muted);
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
}

.jd-related__arrow {
  color:      var(--color-border);
  font-size:  0.75rem;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.jd-related__link:hover .jd-related__arrow {
  color:     var(--color-primary);
  transform: translateX(3px);
}

/* Back link */
.jd-back {
  padding-top: 0.5rem;
}

.jd-back__link {
  display:     inline-flex;
  align-items: center;
  gap:         0.5rem;
  font-size:   0.875rem;
  font-weight: 600;
  color:       var(--color-text-muted);
  transition:  color 0.2s ease, gap 0.2s ease;
}

.jd-back__link:hover {
  color: var(--color-primary);
  gap:   0.75rem;
}


/* ─── SIDEBAR ───────────────────────────────────────────────── */
.jd-sidebar {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;
  position:       sticky;
  top:            calc(var(--nav-height) + 2rem);
}

.jd-sidebar__section-title {
  font-size:     0.7rem;
  font-weight:   800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin-bottom:  1rem;
}

/* Meta card */
.jd-sidebar__meta-card {
  background:    var(--color-white);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding:       1.5rem;
  box-shadow:    0 2px 12px rgba(0, 0, 0, 0.05);
}

.jd-sidebar__meta-list {
  list-style:     none;
  padding:        0;
  margin:         0;
  display:        flex;
  flex-direction: column;
  gap:            1rem;
}

.jd-sidebar__meta-row {
  display:     flex;
  align-items: flex-start;
  gap:         0.875rem;
}

.jd-sidebar__meta-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           32px;
  height:          32px;
  background:      rgba(23, 199, 20, 0.08);
  border-radius:   var(--radius-sm);
  color:           var(--color-primary);
  font-size:       0.775rem;
  flex-shrink:     0;
}

.jd-sidebar__meta-label {
  display:        block;
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin-bottom:  0.2rem;
}

.jd-sidebar__meta-value {
  display:     block;
  font-size:   0.9rem;
  font-weight: 600;
  color:       var(--color-text);
  line-height: 1.3;
}

.jd-sidebar__meta-value--danger {
  color: #c0392b;
}

/* Apply CTA card */
.jd-sidebar__apply-card {
  background:    linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  border-radius: var(--radius-md);
  padding:       1.75rem;
  text-align:    center;
  position:      relative;
  overflow:      hidden;
}

.jd-sidebar__apply-card::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     radial-gradient(ellipse at 50% 0%, rgba(23, 199, 20, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.jd-sidebar__apply-icon {
  position:        relative;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           48px;
  height:          48px;
  background:      rgba(23, 199, 20, 0.15);
  border-radius:   50%;
  margin:          0 auto 1rem;
  font-size:       1.25rem;
  color:           var(--color-primary);
}

.jd-sidebar__apply-title {
  position:      relative;
  font-size:     1rem;
  font-weight:   700;
  color:         var(--color-white);
  margin-bottom: 0.625rem;
}

.jd-sidebar__apply-text {
  position:      relative;
  font-size:     0.825rem;
  color:         rgba(255, 255, 255, 0.6);
  line-height:   1.6;
  margin-bottom: 1.25rem;
}

.jd-sidebar__apply-btn {
  position: relative;
  width:    100%;
  justify-content: center;
}

/* Related jobs (sidebar) */
.jd-sidebar__related {
  background:    var(--color-white);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding:       1.5rem;
  box-shadow:    0 2px 12px rgba(0, 0, 0, 0.05);
}

.jd-sidebar__related-list {
  list-style:     none;
  padding:        0;
  margin:         0;
  display:        flex;
  flex-direction: column;
  gap:            0.25rem;
}

.jd-sidebar__related-link {
  display:         flex;
  align-items:     center;
  gap:             0.75rem;
  padding:         0.625rem 0.75rem;
  border-radius:   var(--radius-sm);
  text-decoration: none;
  transition:      background 0.2s ease;
}

.jd-sidebar__related-link:hover {
  background: rgba(23, 199, 20, 0.06);
}

.jd-sidebar__rel-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           28px;
  height:          28px;
  background:      rgba(23, 199, 20, 0.08);
  border-radius:   var(--radius-sm);
  color:           var(--color-primary);
  font-size:       0.65rem;
  flex-shrink:     0;
  transition:      background 0.2s ease, color 0.2s ease;
}

.jd-sidebar__related-link:hover .jd-sidebar__rel-icon {
  background: var(--color-primary);
  color:      var(--color-white);
}

.jd-sidebar__rel-name {
  flex:          1;
  font-size:     0.835rem;
  font-weight:   600;
  color:         var(--color-text);
  line-height:   1.35;
  transition:    color 0.2s ease;
}

.jd-sidebar__related-link:hover .jd-sidebar__rel-name {
  color: var(--color-primary-dark, #0d7a0b);
}

.jd-sidebar__rel-arrow {
  color:      var(--color-border);
  font-size:  0.6rem;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.jd-sidebar__related-link:hover .jd-sidebar__rel-arrow {
  color:     var(--color-primary);
  transform: translateX(3px);
}

/* Back to all vacancies */
.jd-sidebar__all-link {
  display:     inline-flex;
  align-items: center;
  gap:         0.5rem;
  font-size:   0.875rem;
  font-weight: 600;
  color:       var(--color-text-muted);
  transition:  color 0.2s ease, gap 0.2s ease;
  padding:     0.25rem 0;
}

.jd-sidebar__all-link:hover {
  color: var(--color-primary);
  gap:   0.75rem;
}


/* ─── CTA STRIP ────────────────────────────────────────────── */
.svc-cta-strip {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  padding:    4rem 0;
  position:   relative;
  overflow:   hidden;
}

.svc-cta-strip::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     radial-gradient(ellipse at 30% 50%, rgba(23, 199, 20, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.svc-cta-strip__inner {
  position:        relative;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             2rem;
  flex-wrap:       wrap;
}

.svc-cta-strip__title {
  font-size:     clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight:   700;
  color:         var(--color-white);
  margin-bottom: 0.5rem;
  line-height:   1.3;
}

.svc-cta-strip__sub {
  font-size: 0.95rem;
  color:     rgba(255, 255, 255, 0.6);
}

.svc-cta-strip__actions {
  display:     flex;
  gap:         1rem;
  flex-wrap:   wrap;
  flex-shrink: 0;
}

.btn-outline-white {
  background:     transparent;
  color:          rgba(255, 255, 255, 0.85);
  border:         2px solid rgba(255, 255, 255, 0.25);
  border-radius:  var(--radius-sm);
  display:        inline-flex;
  align-items:    center;
  gap:            0.5rem;
  padding:        0.75rem 1.75rem;
  font-family:    var(--font);
  font-weight:    700;
  font-size:      0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height:     44px;
  transition:     background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space:    nowrap;
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background:   rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color:        var(--color-white);
  transform:    translateY(-2px);
}


/* ─── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 1100px) {
  .jd-layout__inner {
    grid-template-columns: 1fr 300px;
    gap:                   2rem;
  }
}

@media (max-width: 860px) {
  .jd-layout__inner {
    grid-template-columns: 1fr;
  }

  /* Sidebar goes below main on mobile */
  .jd-sidebar {
    position: static;
    order:    -1; /* meta card appears above content on mobile */
  }

  /* Show inline related on mobile, hide sidebar related */
  .jd-related--inline {
    display: block;
  }

  .jd-sidebar__related {
    display: none;
  }

  .jd-sidebar__all-link {
    display: none;
  }
}

@media (max-width: 768px) {
  .jd-hero {
    min-height: 340px;
  }

  .jd-hero__inner {
    padding-top:    2.5rem;
    padding-bottom: 2.5rem;
  }

  .jd-hero__strip {
    gap: 0.5rem;
  }

  .jd-hero__strip-sep {
    display: none;
  }

  .jd-hero__strip-item {
    font-size: 0.8rem;
  }

  .svc-cta-strip__inner {
    flex-direction: column;
    text-align:     center;
    align-items:    center;
  }

  .svc-cta-strip__actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .jd-layout {
    padding: 2rem 0 3.5rem;
  }

  .jd-section__header {
    padding: 1rem 1.25rem;
  }

  .jd-section__body,
  .jd-list {
    padding: 1.25rem;
  }

  .svc-cta-strip {
    padding: 2.5rem 0;
  }

  .svc-cta-strip__actions {
    flex-direction: column;
    width:          100%;
    align-items:    stretch;
  }

  .svc-cta-strip__actions .btn,
  .svc-cta-strip__actions .btn-outline-white {
    justify-content: center;
  }
}
