:root {
  --blue: #0086c9;
  --blue-dark: #005096;
  --blue-light: #0da8ff;
  --blue-pale: #f0f9ff;
  --blue-border: #bae6fd;
  --green: #027a48;
  --green-bg: #ecfdf3;
  --green-bd: #a9efc5;
  --text-dark: #101828;
  --text-mid: #344054;
  --text-soft: #475467;
  --text-muted: #667085;
  --border: #eaecf0;
  --bg: #f8fafc;
  --grad: linear-gradient(90deg, #0da8ff 0%, #005096 100%);
  --shadow-lg: 0 12px 40px rgba(0, 134, 201, 0.15);
  --radius-lg: 20px;
}

/* ── Badge (Bootstrap có .badge nhưng cần override màu riêng) ── */
.badge--open {
  background: var(--green-bg) !important;
  color: var(--green) !important;
  border: 1px solid var(--green-bd);
}
.badge--dept {
  background: #f0f4ff !important;
  color: #3730a3 !important;
  border: 1px solid #c7d2fe;
}
.badge--type {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa;
}

/* ── Meta chips ── */
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
}

/* ── Share buttons ── */
.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.share-btn:hover {
  background: var(--blue-pale);
  border-color: var(--blue-border);
  color: var(--blue);
}
.share-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Main layout: Bootstrap grid không có sticky sidebar ── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  padding: 32px 0 48px;
}
.sidebar {
  position: sticky;
  top: 20px;
}

/* ── Card ── */
.card {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
}
.card + .card {
  margin-top: 20px;
}
.card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.job-hero__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.job-hero__left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.job-hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  gap: 20px;
}
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;

}
.banner__base > * {
  position: relative;
  z-index: 10;
}
/* ── Mô tả công việc ── */
.job-section {
  margin-bottom: 28px;
}
.job-section:last-child {
  margin-bottom: 0;
}
.job-section__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
}
.job-section ul {
  padding-left: 20px;
}
.job-section ul li {
  color: var(--text-soft);
  margin-bottom: 8px;
  line-height: 1.65;
}

.deadline-warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c2410c;
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 134, 201, 0.1) !important;
}

/* ── Sidebar info ── */
.info-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-pale);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Related jobs ── */
.related-job {
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.related-job:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.related-job__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.related-job__title:hover {
  color: var(--blue);
}
.related-chip {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
}
.related-job__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.15s;
}
.related-job__link:hover {
  letter-spacing: 0.3px;
}

/* ── Nút xem tất cả ── */
.btn-viewall {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid var(--blue-border);
  transition: background 0.2s;
}
.btn-viewall:hover {
  background: #e0f2fe;
  color: var(--blue);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  animation: fadeUp 0.35s ease both;
}
.card:nth-child(2) {
  animation-delay: 0.08s;
}
.card:nth-child(3) {
  animation-delay: 0.16s;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding: 24px 0 40px;
  }
  .sidebar {
    position: static;
  }
  .job-hero__right {
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .job-hero__title {
    font-size: 22px !important;
  }
}

@media screen and (max-width: 576px) {
  .job-hero__inner {
    display: block;
  }
  .job-hero__right {
    margin-top: 16px;
  }
  .deadline-warn {
    font-size: 12px;
  }
}
