/* JD public — không cần plugin @tailwindcss/typography */
.job-page {
    padding-bottom: 5.5rem;
}
#apply {
    scroll-margin-top: 1rem;
    scroll-margin-bottom: 5rem;
}
.job-apply-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(248, 250, 252, 0.98) 65%, rgba(248, 250, 252, 0));
    border-top: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.job-apply-bar.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
.job-apply-bar-inner {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.job-apply-bar-btn {
    display: inline-block;
    width: auto;
    max-width: 100%;
    text-align: center;
    background: #4f46e5;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32);
    transition: background 0.15s ease, transform 0.15s ease;
}
.job-apply-bar-btn:hover {
    background: #4338ca;
    color: #fff;
}
.job-apply-bar-btn:active {
    transform: scale(0.99);
}
.job-page .job-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.job-page .job-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
}
.job-brand-block {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}
.job-brand-logo {
    height: 2.5rem;
    width: auto;
    max-width: 8rem;
    object-fit: contain;
    flex-shrink: 0;
}
.job-brand-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #312e81;
}
a.job-brand-name:hover {
    color: #4338ca;
    text-decoration: underline;
}
.job-brand-intro {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}
.job-card-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
}
.job-card-brand-logo {
    height: 1.25rem;
    width: auto;
    max-width: 4rem;
    object-fit: contain;
}
.job-card-brand-name {
    font-weight: 500;
    color: #4338ca;
}
.job-description {
    line-height: 1.7;
    color: #334155;
    font-size: 0.9375rem;
}
.job-description h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2rem 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e7ff;
}
.job-description h2:first-child {
    margin-top: 0;
}
.job-description h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.25rem 0 0.5rem;
}
.job-description p {
    margin: 0.75rem 0;
}
.job-description ul,
.job-description ol {
    margin: 1rem 0;
    padding: 0;
}
.job-description ul {
    list-style: none;
}
.job-description ul > li {
    position: relative;
    padding-left: 1.65rem;
    margin: 0.6rem 0;
    line-height: 1.65;
}
.job-description ul > li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.62em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 0 3px #e0e7ff;
}
.job-description ol:not(.jd-steps) {
    list-style: none;
    counter-reset: jd-ol;
}
.job-description ol:not(.jd-steps) > li {
    position: relative;
    padding-left: 2rem;
    margin: 0.6rem 0;
    line-height: 1.65;
    counter-increment: jd-ol;
}
.job-description ol:not(.jd-steps) > li::before {
    content: counter(jd-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #4f46e5;
    min-width: 1.5rem;
}
.job-description li {
    margin: 0.4rem 0;
}
.job-description li::marker {
    color: #6366f1;
}
.job-description strong {
    color: #0f172a;
    font-weight: 600;
}
.job-description blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border-left: 4px solid #6366f1;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #3730a3;
    font-size: 0.9rem;
}
.job-description .jd-facts {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.job-description .jd-facts th,
.job-description .jd-facts td {
    padding: 0.65rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}
.job-description .jd-facts th {
    width: 38%;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}
.job-description .jd-facts tr:last-child th,
.job-description .jd-facts tr:last-child td {
    border-bottom: none;
}
.job-description .jd-facts td {
    color: #1e293b;
    background: #fff;
}
.job-description .jd-steps {
    counter-reset: jdstep;
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}
.job-description .jd-steps > li {
    position: relative;
    padding-left: 2.5rem;
    margin: 0.85rem 0;
}
.job-description .jd-steps > li::before {
    counter-increment: jdstep;
    content: counter(jdstep);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 9999px;
    background: #4f46e5;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.job-description-editor-shell {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.job-description-editor-shell:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.job-description-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}
.job-description-toolbar-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding-right: 0.45rem;
    margin-right: 0.35rem;
    border-right: 1px solid #e2e8f0;
}
.job-description-toolbar-group:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}
.job-desc-tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.job-desc-tb-btn:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
    color: #4338ca;
}
.job-desc-tb-btn.is-active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
.job-description-editor-preview {
    min-height: 28rem;
    max-height: 75vh;
    overflow-y: auto;
    cursor: text;
    padding: 1.5rem 2rem;
    outline: none;
}
.job-description-editor-preview:empty::before {
    content: 'Bấm chọn mẫu tin hoặc bắt đầu nhập mô tả…';
    color: #94a3b8;
}
.careers-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.55;
    margin-top: 0.5rem;
}

/* Editor câu hỏi bài test (admin) */
.question-text-editor-shell {
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.question-text-editor-shell:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.question-text-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.question-text-tb-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 0.375rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
}
.question-text-tb-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}
.question-text-preview {
    min-height: 5.5rem;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.6;
    outline: none;
}
.question-text-preview:empty::before {
    content: 'Nhập câu hỏi — chọn text rồi bấm B / U / List để định dạng…';
    color: #94a3b8;
}
.exam-question-text.job-description ul,
.exam-question-text.job-description ol {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}
.exam-question-text.job-description p {
    margin-bottom: 0.5rem;
}
.exam-question-text.job-description p:last-child {
    margin-bottom: 0;
}
