/* =========================================================
   JOB DETAIL PAGE — navy/gold, consistent w/ career.css
   ========================================================= */
#job-detail-page{ --lift-ease:.35s var(--ease); }

/* ---- Back link ---- */
.jobd-back{
  display:inline-flex; align-items:center; gap:8px;
  color:rgba(255,255,255,.7); font-size:13.5px; font-weight:600;
  margin-bottom:28px; transition:color .3s var(--ease), gap .3s var(--ease);
}
.jobd-back:hover{ color:#fff; gap:12px; }
.jobd-back svg{ width:16px; height:16px; }

/* ---- Hero ---- */
.jobd-hero{
  position:relative; overflow:hidden;
  background:linear-gradient(150deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--blue-700) 130%);
  padding:130px 0 76px; /* ruang buat navbar fixed */
}
.jobd-hero::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 85% 0%, rgba(242,169,60,.18), transparent 55%);
  pointer-events:none;
}
.jobd-hero-top{
  position:relative; z-index:1;
  display:flex; align-items:flex-end; justify-content:space-between; gap:40px; flex-wrap:wrap;
}
.jobd-hero-copy{ max-width:64ch; }

.jobd-badges{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.jobd-badge{
  font-family:var(--font-mono); font-size:11.5px; font-weight:700; letter-spacing:.04em;
  padding:7px 14px; border-radius:999px;
  background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.18);
}
.jobd-badge-outline{ background:transparent; color:rgba(255,255,255,.75); }
.jobd-badge-live{
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(242,169,60,.16); border-color:rgba(242,169,60,.4); color:var(--gold-500);
}
.jobd-badge-live i{
  width:6px; height:6px; border-radius:50%; background:var(--gold-500);
  box-shadow:0 0 0 0 rgba(242,169,60,.6); animation:jobdPulse 1.8s ease-in-out infinite;
}
@keyframes jobdPulse{
  0%{ box-shadow:0 0 0 0 rgba(242,169,60,.55); }
  70%{ box-shadow:0 0 0 6px rgba(242,169,60,0); }
  100%{ box-shadow:0 0 0 0 rgba(242,169,60,0); }
}

.jobd-hero-copy h1{ color:#fff; font-size:clamp(26px,3.6vw,42px); line-height:1.15; margin-bottom:20px; }

.jobd-meta-row{ display:flex; flex-wrap:wrap; gap:20px; }
.jobd-meta-item{
  display:flex; align-items:center; gap:9px;
  font-size:13.5px; color:rgba(255,255,255,.75);
}
.jobd-meta-item svg{ width:16px; height:16px; flex:none; color:var(--gold-500); }

.jobd-hero-cta{ display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex:none; }
.jobd-apply-btn{ padding:14px 28px !important; white-space:nowrap; }
.jobd-apply-note{ font-size:12px; color:rgba(255,255,255,.55); }

@media (max-width:900px){
  .jobd-hero-top{ align-items:flex-start; }
  .jobd-hero-cta{ align-items:flex-start; width:100%; }
}

/* ---- Layout ---- */
.jobd-layout{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:32px;
  align-items:start;
  margin-top:-44px;
  position:relative;
  z-index:2;
}
@media (max-width:1024px){ .jobd-layout{ grid-template-columns:1fr; } }

/* ---- Content cards ---- */
.jobd-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:32px 34px; margin-bottom:24px;
  box-shadow:0 24px 50px -34px rgba(2,69,122,.25);
}
.jobd-card-head{ display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.jobd-card-ic{
  flex:none; width:42px; height:42px; border-radius:12px;
  background:var(--ice-100); color:var(--blue-700);
  display:flex; align-items:center; justify-content:center;
}
.jobd-card-ic svg{ width:20px; height:20px; }
.jobd-card-ic-gold{ background:rgba(242,169,60,.16); color:var(--gold-600, #b9741f); }
.jobd-card-head h2{ font-size:19px; margin:0; }
.jobd-card-sub{ font-size:13px; color:var(--ink-400); margin:4px 0 0; }

.jobd-richtext{ color:var(--ink-600); font-size:15px; line-height:1.75; }
.jobd-richtext ul, .jobd-richtext ol{ padding-left:20px; margin:12px 0; display:flex; flex-direction:column; gap:8px; }
.jobd-richtext p{ margin:0 0 14px; }
.jobd-richtext p:last-child{ margin-bottom:0; }

/* ---- Additional questions ---- */
.jobd-card-questions{ border-color:rgba(242,169,60,.3); }
.jobd-question-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.jobd-question-list li{
  display:flex; gap:14px; align-items:flex-start;
  padding:14px 16px; background:var(--ice-50); border-radius:var(--radius-sm);
  transition:background .3s var(--ease);
}
.jobd-question-list li:hover{ background:var(--ice-100); }
.jobd-question-num{
  flex:none; width:26px; height:26px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue-700),var(--navy-900)); color:#fff;
  font-family:var(--font-mono); font-size:11.5px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.jobd-question-text{ font-size:14.5px; color:var(--ink-600); line-height:1.6; padding-top:3px; }

/* ---- Sidebar ----
   .jobd-side is the grid item. It gets NO flex layout and NO
   position:sticky. Grid items with position:sticky are prone to a
   browser bug (Chrome/Firefox) where the sticky box's height/offset
   is computed against the grid row's track (which matches the tallest
   column — here, the much taller .jobd-main), rather than the item's
   own content height. That pushed the sidebar's visible content down
   and made it look misaligned with the description card, even with
   align-items:start on the parent grid and align-self:start /
   height:max-content on this element.
   The fix: keep .jobd-side as a plain, unstyled grid cell, and move
   ALL layout (flex column, gap, and the sticky positioning) onto a
   child wrapper (.jobd-side-inner) instead. A block-level child is not
   itself a grid item, so it sizes to its own content correctly and the
   sticky behavior works as expected. */
.jobd-side{
  min-width:0;
}

.jobd-side-inner{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* Sticky hanya aktif di desktop */
@media (min-width:1025px){
  .jobd-side-inner{
    position:sticky;
    top:110px;
  }
}

.jobd-side-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:26px 24px; box-shadow:0 24px 50px -34px rgba(2,69,122,.25);
}
.jobd-side-card h3{ font-size:16px; margin-bottom:16px; }

.jobd-summary-list{ display:flex; flex-direction:column; gap:14px; margin-bottom:22px; }
.jobd-summary-list div{ display:flex; flex-direction:column; gap:3px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.jobd-summary-list div:last-child{ border-bottom:none; padding-bottom:0; }
.jobd-summary-list dt{ font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-400); font-family:var(--font-mono); }
.jobd-summary-list dd{ font-size:14px; color:var(--navy-900); font-weight:600; margin:0; }

.jobd-side-apply{ width:100%; justify-content:center; }

.jobd-side-safe{
  display:flex; gap:14px; align-items:flex-start;
  background:linear-gradient(150deg, var(--navy-950), var(--navy-900));
  color:rgba(255,255,255,.85); border:none;
}
.jobd-side-safe svg{ flex:none; width:26px; height:26px; color:var(--gold-500); }
.jobd-side-safe p{ font-size:12.5px; line-height:1.6; margin:0; }
.jobd-side-safe strong{ color:var(--gold-500); }

/* ---- Sticky mobile apply bar ---- */
.jobd-sticky-bar{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  background:#fff; border-top:1px solid var(--line);
  padding:14px 18px; box-shadow:0 -10px 30px -10px rgba(2,69,122,.2);
  align-items:center; justify-content:space-between; gap:14px;
}
.jobd-sticky-info{ display:flex; flex-direction:column; min-width:0; }
.jobd-sticky-info b{ font-size:13.5px; color:var(--navy-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jobd-sticky-info span{ font-size:11.5px; color:var(--ink-400); }

@media (max-width:760px){
  .jobd-sticky-bar{ display:flex; }
  .jobd-hero-cta{ display:none; } /* CTA digantikan sticky bar di mobile */
  .jobd-hero{ padding-bottom:60px; }
}

/* =========================================================
   FIX: tombol scroll-to-top (.to-top, dari main.css) numpuk
   dengan sticky apply bar (.jobd-sticky-bar) di halaman
   detail lowongan versi mobile.
   ========================================================= */
@media (max-width:760px){
  body:has(#job-detail-page) .to-top{
    bottom: 96px;
  }
}