/* Chi tiết Việc tìm người / Người tìm việc — xanh trắng nhạt */

.vl-detail-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #f0fdfa 100%);
  color: #1e293b;
  font-family: "Barlow", "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.vl-detail-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  box-sizing: border-box;
}

/* --- Hero --- */
.vl-detail-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 42%, #ecfeff 100%);
  color: #0f172a;
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

.vl-detail-hero__logo {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.vl-detail-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vl-detail-hero__main {
  flex: 1 1 220px;
  min-width: 0;
}

.vl-detail-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d9488;
}

.vl-detail-hero__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.vl-detail-shell--seeker .vl-detail-hero__title {
  font-size: 1.45rem;
}

.vl-detail-hero__subtitle {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}

.vl-detail-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.vl-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #0f766e;
}

.vl-detail-tag--accent {
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.22);
}

/* --- Card stack --- */
.vl-detail-card {
  background: #fff;
  margin-top: 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* Nối liền khối đầu tiên dưới hero */
.vl-detail-hero + .vl-detail-card {
  margin-top: 0;
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.vl-detail-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  background: linear-gradient(90deg, rgba(240, 253, 250, 0.95), rgba(236, 254, 255, 0.7));
  border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.vl-detail-card__body {
  padding: 1rem 1.15rem 1.15rem;
}

/* Meta grid */
.vl-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1rem;
}

.vl-detail-meta__item {
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.vl-detail-meta__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.vl-detail-meta__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.vl-detail-meta__value--danger {
  color: #b45309;
  font-weight: 700;
}

.vl-detail-meta__item--full {
  grid-column: 1 / -1;
}

/* Prose blocks */
.vl-detail-prose {
  margin: 0;
  font-size: 0.95rem;
  color: #334155;
}

.vl-detail-prose p {
  margin: 0 0 0.65rem;
}

.vl-detail-prose p:last-child {
  margin-bottom: 0;
}

.vl-detail-prose img {
  max-width: 100%;
  height: auto;
}

.vl-detail-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.vl-detail-prose table td,
.vl-detail-prose table th {
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.35rem 0.5rem;
}

/* --- Popup trang chủ (Default): nội dung trong #KhungThongTinTruongHoc --- */
#KhungThongTinTruongHoc .vl-detail-shell {
  max-width: none;
  margin: 0;
  padding: 0;
}

#KhungThongTinTruongHoc .vl-detail-body {
  min-height: 0;
  background: transparent;
}

#KhungThongTinTruongHoc .vl-detail-hero {
  border-radius: 0;
}

#KhungThongTinTruongHoc .vl-detail-card {
  border-radius: 0;
  box-shadow: none;
  border-left: none;
  border-right: none;
}

#KhungThongTinTruongHoc .vl-detail-card:last-child {
  border-bottom: none;
}

/* --- Khung popup (AJAX chi tiết) --- */
.vl-home-detail-popup {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.vl-home-detail-popup.is-open {
  display: flex;
}

.vl-home-detail-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(3px);
}

.vl-home-detail-popup__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(1180px, 96vw);
  max-height: min(92vh, 980px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.vl-home-detail-popup__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 1.15rem;
  background: linear-gradient(90deg, #ffffff 0%, #f0fdfa 50%, #f0f9ff 100%);
  color: #0f172a;
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
  position: relative;
  z-index: 3;
}

.vl-home-detail-popup__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
}

.vl-home-detail-popup__close {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.55rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.vl-home-detail-popup__close:hover {
  background: #e0f2fe;
  color: #0f766e;
  border-color: rgba(45, 212, 191, 0.45);
}

.vl-home-detail-popup__close:focus {
  outline: 2px solid rgba(45, 212, 191, 0.45);
  outline-offset: 2px;
}

.vl-home-detail-popup__body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

@media (max-width: 576px) {
  .vl-detail-hero {
    padding: 1.1rem 1rem;
  }

  .vl-detail-hero__title {
    font-size: 1.15rem;
  }

  .vl-detail-meta {
    grid-template-columns: 1fr;
  }
}
