/* ===== Vacancy Page ===== */
.vacancy-page { flex: 1; }

/* ---- Breadcrumb ---- */
.breadcrumb { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.breadcrumb-container {
  max-width: var(--max-width); margin: 0 auto; padding: 0.75rem 1.25rem;
  font-size: 0.8125rem; display: flex; align-items: center; gap: 0.5rem;
  color: var(--color-text-muted);
}
.breadcrumb-link { color: var(--color-text-secondary); transition: color 0.15s; }
.breadcrumb-link:hover { color: var(--color-primary); }
.breadcrumb-current {
  color: var(--color-text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: calc(100vw - 180px); /* adapts to viewport instead of fixed 280px */
}

/* ---- Job Header ---- */
.job-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 1.75rem 0 2rem; }
.job-header-container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.job-header-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.75rem;
}

.company-info { display: flex; align-items: center; gap: 0.75rem; }

.company-logo {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--color-primary); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.company-logo-initials { color: #fff; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em; }

.company-details {
  display: flex; flex-direction: column; gap: 0.125rem;
  min-width: 0; /* allow flex child to shrink below content size */
}
.company-name {
  font-weight: 600; font-size: 0.9375rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.company-meta { font-size: 0.8125rem; color: var(--color-text-secondary); }

.status-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.3125rem 0.875rem; border-radius: var(--radius-full);
  background: var(--color-success-light); color: var(--color-success);
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); }

.job-title {
  font-size: 1.75rem; font-weight: 700; margin-bottom: 0.875rem; line-height: 1.2;
  overflow-wrap: anywhere;
}

.job-meta { display: flex; flex-wrap: wrap; gap: 0.625rem 1.125rem; margin-bottom: 1.125rem; }
.meta-item {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; color: var(--color-text-secondary);
}
.meta-item svg { color: var(--color-text-muted); flex-shrink: 0; }

/* Tags row: salary pill + keyword pills */
.job-actions-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.salary-badge {
  display: inline-flex; padding: 0.375rem 1rem; border-radius: var(--radius-full);
  background: var(--color-success-light); color: var(--color-success);
  font-size: 0.875rem; font-weight: 600;
}
.salary-comment { color: var(--color-text-muted); font-size: 0.8125rem; }
.urgent-badge {
  display: inline-flex; padding: 0.375rem 1rem; border-radius: var(--radius-full);
  background: var(--color-urgent-light); color: var(--color-urgent);
  font-size: 0.875rem; font-weight: 600;
}

/* ---- Main Content ---- */
.main-content { padding: 1.5rem 0 3rem; }
.content-container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.content-left { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

/* Content Cards */
.content-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.section-title {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 1.0625rem; font-weight: 700; color: var(--color-text);
  margin-bottom: 1.125rem; padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-border-light);
}
.section-title svg { color: var(--color-primary); flex-shrink: 0; }

/* Replace default bullet points with checkmarks in content lists */
.section-content ul { list-style: none; padding-left: 0; }
.section-content ul li {
  position: relative;
  padding-left: 1.75rem;
}
.section-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1rem;
  height: 1rem;
  background: var(--color-success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Benefits section: plus icons instead of checkmarks */
.section-content--benefits ul li::before {
  background: var(--color-primary);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

/* Thin divider between merged content blocks (e.g. job summary + company profile) */
.section-divider { height: 1px; background: var(--color-border-light); margin: 1.5rem 0; }

/* ---- Sidebar ---- */
.content-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.sidebar-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 0.8125rem; font-weight: 700; color: var(--color-text);
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.04em;
}

/* Apply Card */
.apply-card { border-color: var(--color-navy); border-width: 2px; }

.apply-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.125rem; }

.company-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; overflow: hidden;
}
.avatar-initials { color: #fff; font-weight: 700; font-size: 0.8125rem; }
.avatar-image { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

.apply-info { display: flex; flex-direction: column; gap: 0.125rem; }
.apply-company { font-size: 0.875rem; font-weight: 600; }
.apply-position { font-size: 0.75rem; color: var(--color-text-secondary); }

.action-buttons { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }

.btn-apply {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.75rem; min-height: 48px; border-radius: var(--radius-sm);
  background: #000d41; color: #fff;
  font-weight: 600; font-size: 0.9375rem; transition: background 0.15s;
  text-decoration: none;
}
.btn-apply:hover { background: #0a1e4a; }

/* Outline action buttons (Save, Share) */
.btn-action-outline {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.625rem; min-height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-white); color: var(--color-text);
  font-weight: 500; font-size: 0.875rem; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-action-outline:hover { background: var(--color-border-light); border-color: var(--color-text-muted); }

/* Stats grid */
.apply-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; margin-top: 0.25rem;
}
.stat-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.875rem 0.5rem; gap: 0.125rem;
}
.stat-cell:not(:last-child) { border-right: 1px solid var(--color-border); }
.stat-value { font-size: 1.125rem; font-weight: 700; color: var(--color-text); }
.stat-value--accent { color: var(--color-success); }
.stat-label { font-size: 0.6875rem; color: var(--color-text-muted); }

/* Details List */
.details-list { display: flex; flex-direction: column; }
.detail-row {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.625rem 0; border-bottom: 1px solid var(--color-border-light);
}
.detail-row:last-child { border-bottom: none; }
.detail-row dt { font-size: 0.8125rem; color: var(--color-text-secondary); }
.detail-row dd { font-size: 0.8125rem; font-weight: 600; color: var(--color-text); text-align: right; }

/* Stages */
.stages-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.stage-item { display: flex; align-items: flex-start; gap: 0.875rem; }
.stage-number {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stage-content { display: flex; flex-direction: column; gap: 0.125rem; padding-top: 0.2rem; }
.stage-title { font-size: 0.875rem; font-weight: 600; }
.stage-desc { font-size: 0.75rem; color: var(--color-text-secondary); }

/* Company Link */
.company-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  color: var(--color-primary); font-size: 0.875rem; font-weight: 500;
  word-break: break-all;
}
.company-link:hover { text-decoration: underline; }

/* ---- Desktop two-column layout ---- */
@media (min-width: 768px) {
  .job-title { font-size: 2.125rem; }

  .content-container { flex-direction: row; gap: 2rem; }
  .content-left { flex: 1; }
  .content-sidebar {
    width: 340px; flex-shrink: 0;
    position: sticky; top: 80px; align-self: flex-start;
  }
  .content-card { padding: 2rem; }
}

@media (min-width: 1024px) {
  .job-header { padding: 2rem 0 2.25rem; }
  .main-content { padding: 2rem 0 4rem; }
}
