/* ===== JOB DETAIL PAGE — SHARED STYLES ===== */

/* Hero */
.job-detail-hero {
  background: var(--dark);
  padding: 56px 0 52px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(201,168,67,0.12);
}
.job-detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,67,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,67,0.04) 1px, transparent 1px);
  background-size: 52px 52px; pointer-events: none;
}
.jd-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.8rem;
  color: rgba(255,255,255,0.42); margin-bottom: 22px;
  position: relative; z-index: 1;
}
.jd-breadcrumb a { color: var(--gold); text-decoration: none; }
.jd-breadcrumb i { font-size: 0.62rem; }

.jd-urgent {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(244,67,54,0.14); border: 1px solid rgba(244,67,54,0.28);
  color: #ef5350; border-radius: 20px; padding: 4px 13px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  margin-bottom: 14px; position: relative; z-index: 1; display: inline-flex;
}

.job-detail-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800; color: #fff; margin: 0 0 10px; line-height: 1.18;
  position: relative; z-index: 1;
}
.jd-company {
  font-family: var(--font-body); font-size: 0.9rem;
  color: rgba(255,255,255,0.52); margin-bottom: 22px;
  position: relative; z-index: 1;
}
.jd-company i { color: var(--gold); margin-right: 5px; }

.jd-hero-tags { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.jd-tag {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; padding: 6px 14px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
}
.jd-tag i { font-size: 0.72rem; }
.jd-tag-type     { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.13); }
.jd-tag-location { background: rgba(201,168,67,0.1);   color: var(--gold);             border: 1px solid rgba(201,168,67,0.22); }
.jd-tag-salary   { background: rgba(56,142,60,0.12);   color: #81c784;                 border: 1px solid rgba(56,142,60,0.25); }
.jd-tag-exp      { background: rgba(33,150,243,0.1);   color: #64b5f6;                 border: 1px solid rgba(33,150,243,0.2); }

/* Body */
.job-detail-body { padding: 56px 0 80px; background: var(--light); }
.job-detail-grid {
  display: grid; grid-template-columns: 1fr 330px;
  gap: 28px; align-items: start;
}
@media (max-width: 940px) { .job-detail-grid { grid-template-columns: 1fr; } }

/* Content sections */
.jd-section {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 28px; margin-bottom: 18px;
}
.jd-section:last-child { margin-bottom: 0; }
.jd-section h2 {
  font-family: var(--font-heading); font-size: 1.08rem;
  font-weight: 700; color: var(--dark); margin-bottom: 6px;
}
.jd-section .gold-line { margin: 8px 0 18px; }
.jd-section > p {
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-mid); line-height: 1.82; margin-bottom: 12px;
}
.jd-section > p:last-child { margin-bottom: 0; }

.jd-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.jd-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-body); font-size: 0.88rem;
  color: var(--text-mid); line-height: 1.65;
}
.jd-list li::before {
  content: ''; display: block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
  flex-shrink: 0; margin-top: 6px;
}

.jd-perks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .jd-perks-grid { grid-template-columns: 1fr; } }
.jd-perk {
  display: flex; align-items: center; gap: 12px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 15px;
}
.jd-perk-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--dark); display: flex; align-items: center;
  justify-content: center; color: var(--gold); font-size: 0.9rem; flex-shrink: 0;
}
.jd-perk-text {
  font-family: var(--font-body); font-size: 0.83rem;
  font-weight: 600; color: var(--dark); line-height: 1.4;
}
.jd-perk-text span {
  display: block; font-weight: 400; font-size: 0.76rem; color: var(--text-light); margin-top: 2px;
}

/* Sidebar */
.jd-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

.jd-salary-card {
  background: var(--dark); border: 1px solid rgba(201,168,67,0.18);
  border-radius: 14px; padding: 24px; text-align: center;
}
.jd-salary-label {
  font-family: var(--font-body); font-size: 0.68rem;
  color: rgba(255,255,255,0.42); text-transform: uppercase;
  letter-spacing: 1.4px; margin-bottom: 8px; display: block;
}
.jd-salary-amount {
  font-family: var(--font-heading); font-size: 1.9rem;
  font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.jd-salary-note {
  font-family: var(--font-body); font-size: 0.74rem;
  color: rgba(255,255,255,0.38); margin-bottom: 22px; display: block;
}
.jd-apply-btn {
  display: block; width: 100%; text-align: center;
  background: var(--gold); color: #000;
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700;
  padding: 13px; border-radius: 10px; text-decoration: none;
  transition: opacity 0.2s; margin-bottom: 10px; cursor: pointer;
  border: none;
}
.jd-apply-btn:hover { opacity: 0.88; }
.jd-wa-btn {
  display: block; width: 100%; text-align: center;
  background: #25d366; color: #fff;
  font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600;
  padding: 11px; border-radius: 10px; text-decoration: none;
  transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.jd-wa-btn:hover { opacity: 0.88; }

.jd-details-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.jd-details-card h4 {
  font-family: var(--font-heading); font-size: 0.85rem;
  font-weight: 700; color: var(--dark); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.jd-detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border); gap: 10px;
}
.jd-detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.jd-detail-key {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 0.77rem;
  color: var(--text-light); flex-shrink: 0;
}
.jd-detail-key i { color: var(--gold); font-size: 0.73rem; width: 13px; text-align: center; }
.jd-detail-val {
  font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 600; color: var(--dark); text-align: right;
}

.jd-sidebar-checklist {
  font-family: var(--font-body); font-size: 0.76rem;
  color: rgba(255,255,255,0.48); text-align: center; line-height: 2.1;
  margin-top: 16px;
}
.jd-sidebar-checklist i { color: #66bb6a; margin-right: 5px; }

/* Apply form section */
.jd-apply-form { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 28px; }
.jd-apply-form h2 { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.jd-apply-form .gold-line { margin: 8px 0 8px; }
.jd-apply-form > p { font-family: var(--font-body); font-size: 0.86rem; color: var(--text-mid); margin-bottom: 22px; }

/* Back link */
.jd-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.82rem;
  color: var(--text-light); text-decoration: none;
  margin-bottom: 28px; transition: color 0.2s;
}
.jd-back-link:hover { color: var(--gold); }
.jd-back-link i { font-size: 0.75rem; }

@media (max-width: 940px) {
  .jd-sidebar { position: static; }
  .job-detail-body { padding: 36px 0 60px; }
}
@media (max-width: 600px) {
  .jd-section { padding: 20px 16px; }
  .jd-apply-form { padding: 20px 16px; }
  .job-detail-hero { padding: 36px 0 30px; }
  .job-detail-hero h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .jd-hero-tags { gap: 6px; }
  .jd-tag { font-size: 0.76rem; padding: 5px 11px; }
  .jd-breadcrumb { font-size: 0.72rem; gap: 5px; }
  .jd-perks-grid { grid-template-columns: 1fr; }
  .jd-salary-card { padding: 20px; }
  .jd-salary-amount { font-size: 1.6rem; }
  .jd-apply-btn,
  .jd-wa-btn { padding: 12px; font-size: 0.86rem; }
  .jd-details-card { padding: 16px; }
  .jd-back-link { margin-bottom: 18px; }
  .job-detail-body { padding: 28px 0 48px; }
}
@media (max-width: 480px) {
  .jd-urgent { font-size: 0.68rem; padding: 3px 10px; }
  .jd-company { font-size: 0.82rem; }
  .jd-list li { font-size: 0.84rem; }
  .jd-perk-text { font-size: 0.8rem; }
  .jd-perk-text span { font-size: 0.72rem; }
  .jd-detail-key { font-size: 0.74rem; }
  .jd-detail-val { font-size: 0.76rem; }
  .form-submit { font-size: 0.88rem; padding: 12px; }
}
