/* UNIVA — Careers page specific styles */

.page-hero .hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}
.hero-pill {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; padding: 8px 16px; border-radius: 20px;
  font: 500 13px/20px 'Poppins', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-pill strong { color: var(--amber); font-weight: 600; }

/* Job listing */
.section-job-listing { background: var(--off-white); padding: 60px 0; }
.filter-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-row label {
  font: 600 12px/18px 'Poppins', sans-serif; color: #666666;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-right: 4px; min-width: 80px;
}
.filter-row .filter-btn { padding: 8px 16px; font-size: 12px; }
.filter-summary {
  margin: 24px 0 20px; font: 400 13px/20px 'Poppins', sans-serif;
  color: #4D4D4D;
}
.filter-summary strong { color: var(--indigo); }

.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-item {
  background: #fff; border-left: 3px solid var(--indigo);
  border-radius: 0 8px 8px 0; padding: 20px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.job-item.hidden { display: none; }
.job-item:hover { border-left-color: var(--amber); box-shadow: 0 4px 16px rgba(32,27,105,0.08); }
.job-item-left { min-width: 0; }
.job-item-left .job-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.job-item h3 {
  color: var(--charcoal); font: 600 17px/24px 'Poppins', sans-serif;
  margin-bottom: 4px;
}
.job-item h3 a {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.job-item h3 a:hover { color: var(--indigo); }
.job-item-left > p {
  color: #444444; font-size: 14px; line-height: 22px;
}
.job-meta-strip {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
}
.job-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  font: 400 12px/18px 'Poppins', sans-serif;
}
.job-meta-salary { color: var(--indigo); font-weight: 500; }
.job-meta-deadline { color: #808080; }
.job-meta-item svg { flex-shrink: 0; }
.job-item-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.badge {
  font: 500 11px/16px 'Poppins', sans-serif;
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.02em;
}
.badge-market { background: var(--indigo); color: #fff; }
.badge-dept { background: rgba(32,27,105,0.08); color: var(--indigo); }
.badge-type { background: rgba(245,182,45,0.18); color: #854F0B; }
.btn-apply {
  background: var(--indigo); color: #fff;
  padding: 9px 22px; border-radius: 4px;
  font: 600 13px/20px 'Poppins', sans-serif;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-apply:hover { background: var(--indigo-dark); transform: scale(1.03); }

/* Apply modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 1000; display: none; align-items: flex-start; justify-content: center;
  padding: 5vh 20px; overflow-y: auto;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: #fff; border-radius: 16px; max-width: 560px; width: 100%;
  padding: 40px 36px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.04); color: var(--charcoal);
  font: 500 16px/1 'Poppins', sans-serif;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease; cursor: pointer; border: none;
}
.modal-close:hover { background: rgba(0,0,0,0.08); }
.modal-box h3 {
  color: var(--indigo); font: 600 22px/28px 'Poppins', sans-serif;
  margin-bottom: 8px; padding-right: 36px;
}
.modal-box h3 span { color: var(--charcoal); }
.modal-subtitle {
  color: #666666; font: 400 13px/20px 'Poppins', sans-serif;
  margin-bottom: 24px;
}
.apply-success {
  text-align: center; padding: 32px 0;
}
.apply-success .check {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: rgba(34,197,94,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #22C55E;
}
.apply-success h4 { color: var(--indigo); font: 600 20px/28px 'Poppins', sans-serif; margin-bottom: 8px; }
.apply-success p { color: #484848; font-size: 14px; line-height: 22px; }

/* Bottom CTA */
.section-careers-cta {
  position: relative; background: var(--indigo); color: #fff;
  padding: 80px 0; text-align: center; overflow: hidden;
}
.section-careers-cta h2 { color: #fff; margin-bottom: 12px; }
.section-careers-cta > .container > p {
  color: #EDEDED; margin-bottom: 28px; font-size: 16px;
}

/* ── SINGLE JOB DETAIL ────────────────────────────────────────── */
/* Badge overrides on dark hero background */
.job-detail-hero .badge-market {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.job-detail-hero .badge-dept {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}
.job-detail-hero .badge-type {
  background: var(--amber);
  color: var(--indigo);
  font-weight: 600;
}

.job-detail-hero h1 { color: #fff; margin-bottom: 8px; }
.job-detail-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin: 16px 0 0;
}
.job-detail-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 14px/20px 'Poppins', sans-serif; color: rgba(255,255,255,0.85);
}
.job-detail-meta .meta-salary { color: var(--amber); font-weight: 500; }
.job-detail-meta svg { flex-shrink: 0; }
.job-detail-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px;
}
.btn-outline-white {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.9);
  padding: 10px 22px; border-radius: 4px;
  font: 500 14px/20px 'Poppins', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.job-detail-body { background: var(--off-white); padding: 60px 0 80px; }
.job-content-wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start;
}
.job-content-prose {
  background: #fff; border-radius: 12px; padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.job-content-prose h2 {
  font: 600 18px/26px 'Poppins', sans-serif; color: var(--indigo);
  margin: 28px 0 12px;
}
.job-content-prose h2:first-child { margin-top: 0; }
.job-content-prose h3 {
  font: 600 15px/22px 'Poppins', sans-serif; color: var(--charcoal);
  margin: 20px 0 8px;
}
.job-content-prose p { font: 400 15px/26px 'Poppins', sans-serif; color: #484848; margin-bottom: 12px; }
.job-content-prose ul, .job-content-prose ol { padding-left: 20px; margin-bottom: 16px; }
.job-content-prose li { font: 400 14px/24px 'Poppins', sans-serif; color: #484848; margin-bottom: 4px; }
.job-content-prose strong { font-weight: 600; color: var(--charcoal); }

.job-info-card {
  background: #fff; border-radius: 12px; padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: sticky; top: 100px;
}
.job-info-card h4 {
  font: 600 15px/22px 'Poppins', sans-serif; color: var(--indigo);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.job-info-card ul { list-style: none; padding: 0; margin: 0; }
.job-info-card li {
  font: 400 13px/20px 'Poppins', sans-serif; color: #555555;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.job-info-card li:last-child { border-bottom: none; }
.job-info-card strong { color: var(--charcoal); font-weight: 600; display: block; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
.job-info-card .info-salary { color: var(--indigo); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════════
   NEW MODULES — Job Notify, Cẩm nang, Workplace, Stories, Why Join, Open Apply
   ══════════════════════════════════════════════════════════════════ */

/* ── JOB NOTIFY STRIP ──────────────────────────────────────────── */
.section-job-notify { background: var(--primary); }
.job-notify-inner { padding: 48px 0; }
.job-notify-wrap {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap; justify-content: space-between;
}
.job-notify-text h3 { font: 700 22px/1.3 'Poppins',sans-serif; color: #fff; margin-bottom: 6px; }
.job-notify-text p  { font: 400 14px/1.5 'Poppins',sans-serif; color: #E8E8E8; margin: 0; }
.job-notify-form { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.job-notify-form input[type=email] {
  width: 280px; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  background: rgba(255,255,255,.1); color: #fff;
  font: 400 14px/1 'Poppins',sans-serif; outline: none;
}
.job-notify-form input[type=email]::placeholder { color: rgba(255,255,255,.45); }
.job-notify-form input[type=email]:focus { border-color: var(--amber); background: rgba(255,255,255,.15); }
.job-notify-success, .job-notify-error {
  font: 500 14px/1.5 'Poppins',sans-serif; padding: 10px 0;
}
.job-notify-success { color: #86efac; }
.job-notify-error   { color: #fca5a5; }

/* ── CẨM NANG NGHỀ NGHIỆP ──────────────────────────────────────── */
.section-camnang { background: #fff; padding: 80px 0; }
.camnang-layout {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  gap: 24px; align-items: center;
  margin-top: 48px;
}
.camnang-col { display: flex; flex-direction: column; gap: 20px; }
.camnang-center {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 0 8px;
}
.camnang-center-graphic {
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(45,27,105,.7) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9);
  box-shadow: 0 8px 32px rgba(45,27,105,.3);
}
.camnang-center-label {
  font: 600 12px/1.4 'Poppins',sans-serif; color: var(--primary);
  text-align: center; text-transform: uppercase; letter-spacing: .06em;
  margin: 0;
}
.camnang-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: 12px;
  border: 1px solid rgba(45,27,105,.1); border-left: 3px solid var(--primary);
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.camnang-card:hover {
  box-shadow: 0 8px 28px rgba(45,27,105,.12);
  transform: translateY(-2px);
}
.camnang-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: rgba(245,182,45,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.camnang-card-body h4 { font: 600 13px/1.35 'Poppins',sans-serif; color: var(--primary); margin: 0 0 6px; }
.camnang-card-body p  { font: 400 14px/1.55 'Poppins',sans-serif; color: #484848; margin: 0 0 8px; }
.camnang-link { font: 600 12px/1 'Poppins',sans-serif; color: var(--amber); letter-spacing: .02em; }
.camnang-bottom { display: flex; justify-content: center; margin-top: 4px; }
.camnang-card-wide { max-width: 440px; }
.camnang-card-wide .camnang-card-body p { max-width: 340px; }

/* ── WORKPLACE ─────────────────────────────────────────────────── */
.section-workplace { background: var(--off-white); padding: 80px 0; }
.workplace-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.workplace-text .eyebrow { margin-bottom: 12px; }
.workplace-text h2 { margin-bottom: 16px; }
.workplace-text p { color: #3D3D3D; margin-bottom: 24px; }
.workplace-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.workplace-perks li {
  display: flex; align-items: center; gap: 10px;
  font: 400 14px/1.4 'Poppins',sans-serif; color: #484848;
}
.workplace-perks li svg { color: var(--amber); flex-shrink: 0; }

/* Mini slider (shared by workplace & stories) */
.mini-slider {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--primary);
  box-shadow: 0 12px 40px rgba(45,27,105,.18);
}
.mini-slides { position: absolute; inset: 0; }
.mini-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(45,27,105,.15);
}
.mini-slide.active { opacity: 1; }
.mini-prev, .mini-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  font-size: 16px; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background .2s;
}
.mini-prev { left: 12px; }
.mini-next { right: 12px; }
.mini-prev:hover, .mini-next:hover { background: #fff; }
.mini-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.mini-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .3s, transform .3s;
}
.mini-dot.active { background: var(--amber); transform: scale(1.3); }
.story-placeholder-inner { color: rgba(255,255,255,.5); }
.mini-slider-placeholder {
  aspect-ratio: 4/3; border-radius: 16px; border: 2px dashed rgba(45,27,105,.2);
  background: rgba(45,27,105,.04);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(45,27,105,.35); text-align: center; padding: 24px;
}
.mini-slider-placeholder p { font: 400 12px/1.5 'Poppins',sans-serif; margin: 0; }

/* ── STORIES ───────────────────────────────────────────────────── */
.section-stories { background: #fff; padding: 80px 0; position: relative; }
.stories-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.stories-text .eyebrow { margin-bottom: 12px; }
.stories-text h2 { margin-bottom: 28px; }
.story-quote-item { display: none; }
.story-quote-item.active { display: block; }
.story-quote-item blockquote {
  font: 400 italic 16px/1.75 'Poppins',sans-serif;
  color: #363636; margin: 0 0 20px; padding-left: 20px;
  border-left: 3px solid var(--amber);
}
.story-author strong { font: 600 14px/1.3 'Poppins',sans-serif; color: var(--primary); display: block; }
.story-author span   { font: 400 13px/1.3 'Poppins',sans-serif; color: #555555; }

/* ── WHY JOIN ──────────────────────────────────────────────────── */
.section-why-join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.wj-photo {
  position: relative;
  overflow: hidden;
}
.wj-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.wj-photo-empty {
  width: 100%; height: 100%;
  background: var(--primary-h);
}
.wj-panel {
  background: var(--primary);
  display: flex; align-items: center;
  padding: 72px 64px;
}
.wj-inner { width: 100%; }
.wj-inner h2 {
  color: #fff;
  font: 700 36px/1.2 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 36px;
}
.why-join-list { list-style: none; padding: 0; margin: 0; }
.why-join-list li {
  font: 400 15px/1.6 'Poppins', sans-serif;
  color: rgba(255,255,255,.88);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 14px;
}
.why-join-list li:first-child { border-top: 1px solid rgba(255,255,255,.1); }

/* ── OPEN APPLY FORM ───────────────────────────────────────────── */
.section-open-apply { background: var(--off-white); padding: 80px 0; }
.open-apply-wrap {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 60px; align-items: start;
}
.open-apply-intro .eyebrow { margin-bottom: 12px; }
.open-apply-intro h2 { margin-bottom: 12px; }
.open-apply-intro p { color: #444444; font-size: 14px; line-height: 1.7; }
.open-apply-form-wrap {
  background: #fff; border-radius: 16px; padding: 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.oaf-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.open-apply-form .form-group { margin-bottom: 16px; }
.open-apply-form label {
  display: block; font: 500 13px/1 'Poppins',sans-serif;
  color: #555555; margin-bottom: 7px;
}
.open-apply-form .req { color: #e11d48; }
.open-apply-form label small { font-weight: 400; color: #999999; }
.open-apply-form input[type=text],
.open-apply-form input[type=tel],
.open-apply-form input[type=email],
.open-apply-form select {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  border: 1px solid rgba(26,26,26,.15); background: #fff;
  font: 400 14px/1 'Poppins',sans-serif; color: var(--charcoal);
  transition: border-color .2s; outline: none; box-sizing: border-box;
}
.open-apply-form input:focus,
.open-apply-form select:focus { border-color: var(--primary); }
.open-apply-form input.error,
.open-apply-form select.error { border-color: #e11d48; }
.oaf-file-wrap { display: flex; align-items: center; gap: 10px; }
.oaf-file-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(26,26,26,.2);
  font: 500 13px/1 'Poppins',sans-serif; color: var(--primary);
  background: rgba(45,27,105,.05); white-space: nowrap;
  transition: background .2s;
}
.oaf-file-btn:hover { background: rgba(45,27,105,.1); }
.oaf-file-name { font: 400 12px/1.3 'Poppins',sans-serif; color: #888888; }
.oaf-submit { width: 100%; margin-top: 8px; justify-content: center; }
.oaf-success {
  text-align: center; padding: 32px 16px;
}
.oaf-check {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(45,27,105,.08); color: var(--primary);
  font-size: 24px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.oaf-success h4 { font: 600 18px/1.3 'Poppins',sans-serif; color: var(--primary); margin-bottom: 8px; }
.oaf-success p  { font: 400 14px/1.6 'Poppins',sans-serif; color: #666666; margin: 0; }
.oaf-error { font: 400 13px/1.5 'Poppins',sans-serif; color: #e11d48; margin-top: 12px; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .job-item { grid-template-columns: 1fr; gap: 12px; padding: 18px 20px; }
  .job-item-right { align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
  .modal-box { padding: 32px 24px; }
  .filter-row label { min-width: auto; width: 100%; margin-bottom: 4px; }
  .job-content-wrap { grid-template-columns: 1fr; gap: 24px; }
  .job-content-prose { padding: 24px 20px; }
  .job-info-card { position: static; }
  .job-detail-meta { gap: 12px; }
  .job-detail-actions { flex-direction: column; }
  .btn-outline-white { justify-content: center; }

  /* New modules — mobile */
  .job-notify-wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
  .job-notify-form { width: 100%; }
  .job-notify-form input[type=email] { width: 100%; }
  .camnang-layout { grid-template-columns: 1fr; gap: 16px; }
  .camnang-center { display: none; }
  .workplace-grid,
  .stories-grid { grid-template-columns: 1fr; gap: 32px; }
  .stories-visual { order: -1; }
  .section-why-join { grid-template-columns: 1fr; }
  .wj-photo { height: 300px; }
  .wj-panel { padding: 48px 24px; }
  .wj-inner h2 { font-size: 28px; margin-bottom: 24px; }
  .open-apply-wrap { grid-template-columns: 1fr; gap: 32px; }
  .open-apply-form-wrap { padding: 24px 20px; }
  .oaf-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .filter-group   { gap: 8px; }
  .filter-btn     { flex: 0 0 auto; }
  .job-card-grid  { grid-template-columns: 1fr; }
  .job-card       { padding: 20px 16px; }
  .apply-grid     { grid-template-columns: 1fr; }
}
