/**
 * Chi tiết vị trí — giao diện ổn định trong Elementor editor & frontend (không phụ thuộc Tailwind JIT).
 */
.scuti-job-detail-root {
  background: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.scuti-jd-main {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .scuti-jd-main {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.scuti-jd-hero {
  position: relative;
  min-height: 240px;
  height: 42vh;
  display: flex;
  align-items: flex-end;
  background: #7f1d1d;
}

@media (min-width: 768px) {
  .scuti-jd-hero {
    min-height: 300px;
    height: 45vh;
  }
}

.scuti-jd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #7f1d1d 0%, rgba(127, 29, 29, 0.92) 45%, rgba(127, 29, 29, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.scuti-jd-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.scuti-jd-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem 3.5rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .scuti-jd-hero-inner {
    padding: 0 1.5rem 4rem;
  }
}

.scuti-jd-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fecaca;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.scuti-jd-back:hover {
  color: #fff;
}

.scuti-jd-dept {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.scuti-jd-title {
  font-size: clamp(1.35rem, 5.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

.scuti-jd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.scuti-jd-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  max-width: 100%;
}

@media (min-width: 640px) {
  .scuti-jd-pill {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.scuti-jd-pill i {
  margin-right: 0.5rem;
  color: #fecaca;
}

.scuti-jd-pill--salary {
  background: rgba(239, 68, 68, 0.9);
}

.scuti-jd-pill--salary i {
  color: #fff;
}

.scuti-jd-shell {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 5;
  min-width: 0;
}

@media (min-width: 768px) {
  .scuti-jd-shell {
    padding: 0 1.5rem;
    margin-top: -3rem;
  }
}

.scuti-jd-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .scuti-jd-grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .scuti-jd-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
  }
}

.scuti-jd-col-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .scuti-jd-col-main {
    gap: 2rem;
  }
}

.scuti-jd-article {
  background: #fff;
  border-radius: 2rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.scuti-jd-article-inner {
  padding: 1.25rem 1rem 1.5rem;
}

@media (min-width: 480px) {
  .scuti-jd-article-inner {
    padding: 1.5rem 1.25rem 2rem;
  }
}

@media (min-width: 768px) {
  .scuti-jd-article-inner {
    padding: 3rem;
  }
}

.scuti-jd-intro {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

@media (min-width: 480px) {
  .scuti-jd-intro {
    padding: 1.25rem 1.5rem;
  }
}

.scuti-jd-intro p:last-child {
  margin-bottom: 0;
}

.scuti-jd-section {
  margin-bottom: 2.5rem;
}

.scuti-jd-section:last-child {
  margin-bottom: 0;
}

.scuti-jd-section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #000;
  margin: 0 0 1.25rem;
}

@media (min-width: 480px) {
  .scuti-jd-section-title {
    align-items: center;
  }
}

.scuti-jd-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scuti-jd-prose {
  color: #475569;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.scuti-jd-prose img,
.scuti-jd-prose video,
.scuti-jd-prose iframe,
.scuti-jd-prose object,
.scuti-jd-prose embed {
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .scuti-jd-prose {
    font-size: 1.125rem;
  }
}

.scuti-jd-list-check,
.scuti-jd-list-dot {
  list-style: none;
  margin: 0;
  padding: 0;
}

.scuti-jd-list-check li,
.scuti-jd-list-dot li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #475569;
}

.scuti-jd-list-check li i {
  color: #ef4444;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.scuti-jd-list-dot li i {
  color: #ef4444;
  font-size: 6px;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.scuti-jd-benefits {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .scuti-jd-benefits {
    grid-template-columns: 1fr 1fr;
  }
}

.scuti-jd-benefit {
  padding: 1.15rem 1rem;
  border-radius: 1rem;
  border: 1px solid #fee2e2;
  background: #fef2f2;
}

@media (min-width: 480px) {
  .scuti-jd-benefit {
    padding: 1.5rem;
  }
}

.scuti-jd-benefit--wide {
  background: #fff;
  border-color: #fecaca;
}

@media (min-width: 768px) {
  .scuti-jd-benefit--wide {
    grid-column: 1 / -1;
  }
}

.scuti-jd-benefit-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.scuti-jd-benefit-head i {
  color: #ef4444;
  font-size: 1.125rem;
}

.scuti-jd-benefit-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}

.scuti-jd-benefit p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #475569;
}

.scuti-jd-related-title {
  font-size: clamp(1.15rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: #000;
  margin: 0 0 1.5rem;
}

.scuti-jd-related-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .scuti-jd-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.scuti-jd-related-card {
  display: block;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1.15rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
}

@media (min-width: 480px) {
  .scuti-jd-related-card {
    padding: 1.5rem;
  }
}

.scuti-jd-related-card:hover {
  box-shadow: 0 30px 60px -15px rgba(185, 28, 28, 0.15);
}

.scuti-jd-related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.scuti-jd-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.scuti-jd-tag--red {
  background: #fef2f2;
  color: #ef4444;
}

.scuti-jd-tag--amber {
  background: #fef3c7;
  color: #b45309;
}

.scuti-jd-related-card h3 {
  margin: 0;
  font-weight: 800;
  color: #000;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scuti-jd-related-card:hover h3 {
  color: #ef4444;
}

.scuti-jd-related-loc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.scuti-jd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .scuti-jd-sidebar {
    position: sticky;
    top: 7rem;
  }
}

.scuti-jd-card {
  background: #fff;
  border-radius: 2rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1rem 1.5rem;
}

@media (min-width: 480px) {
  .scuti-jd-card {
    padding: 2rem;
  }
}

.scuti-jd-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #000;
}

.scuti-jd-deadline-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 1rem;
}

.scuti-jd-deadline-row i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #ef4444;
}

@media (min-width: 480px) {
  .scuti-jd-deadline-row {
    align-items: center;
    flex-wrap: nowrap;
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .scuti-jd-deadline-row i {
    margin-top: 0;
  }
}

.scuti-jd-card-note {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.scuti-jd-btn-apply {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 1rem;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.scuti-jd-btn-apply:hover {
  background: #ef4444;
  transform: translateY(-2px);
}

.scuti-jd-mail-note {
  font-size: 0.75rem;
  color: #64748b;
  margin: 1rem 0 0;
  text-align: center;
}

.scuti-jd-mail-note a {
  color: #ef4444;
  font-weight: 700;
  text-decoration: none;
}

.scuti-jd-mail-note a:hover {
  text-decoration: underline;
}

.scuti-jd-hotline {
  font-size: 0.875rem;
  color: #475569;
  margin: 0.75rem 0 0;
  text-align: center;
}

.scuti-jd-hotline a {
  color: #ef4444;
  font-weight: 700;
  text-decoration: none;
}

.scuti-jd-support {
  border-radius: 1rem;
  border: 1px solid #fee2e2;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  padding: 1.5rem;
}

.scuti-jd-support h4 {
  margin: 0 0 0.75rem;
  font-weight: 800;
  color: #000;
}

.scuti-jd-support p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.scuti-jd-support a {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #ef4444;
  text-decoration: none;
}

.scuti-jd-support a:hover {
  text-decoration: underline;
}

.scuti-jd-support a i {
  margin-right: 0.5rem;
}

/* Modal */
.scuti-jd-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.scuti-jd-modal[hidden],
.scuti-jd-modal.hidden {
  display: none !important;
}

.scuti-jd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
}

.scuti-jd-modal-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  transform: none;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 1rem 1rem 1.25rem;
  max-height: min(90dvh, calc(100vh - 1rem));
  overflow-y: auto;
  box-sizing: border-box;
}

@supports not (height: 90dvh) {
  .scuti-jd-modal-panel {
    max-height: calc(100vh - 1rem);
  }
}

@media (min-width: 640px) {
  .scuti-jd-modal-panel {
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 32rem;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0 1.5rem;
  }
}

.scuti-jd-modal-inner {
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: inherit;
}

@media (min-width: 640px) {
  .scuti-jd-modal-inner {
    border-radius: 2rem;
    padding: 2.5rem;
    max-height: none;
  }
}

.scuti-jd-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 2;
}

@media (min-width: 640px) {
  .scuti-jd-modal-close {
    top: 1.5rem;
    right: 1.5rem;
  }
}

.scuti-jd-modal-close:hover {
  color: #475569;
}

.scuti-jd-modal h3 {
  margin: 0 0 0.5rem;
  padding-right: 2.75rem;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 800;
  color: #7f1d1d;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .scuti-jd-modal h3 {
    padding-right: 0;
  }
}

.scuti-jd-modal-lead {
  color: #64748b;
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .scuti-jd-modal-lead {
    margin: 0 0 2rem;
    font-size: 1rem;
  }
}

.scuti-jd-modal-success {
  text-align: center;
  padding: 2rem 0;
}

.scuti-jd-modal-success[hidden],
.scuti-jd-modal-success.hidden {
  display: none !important;
}

.scuti-jd-modal-success-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #7f1d1d;
}

.scuti-jd-modal-success-text {
  margin: 0;
  color: #64748b;
}

.scuti-jd-btn-apply--modal {
  margin-top: 0;
}

.scuti-jd-success-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.25rem;
}

/* Elementor editor: tránh bị cắt hero trong khung nhỏ */
.elementor-editor-active .scuti-jd-hero {
  min-height: 220px;
  height: auto;
  padding-top: 2rem;
}
