/* ===== Job Detail Page ===== */
.job-hero {
    position: relative;
    padding-top: 80px;
    padding-bottom: 20px;
    height: 500px;
}
.job-hero__inner{
    width: 100%;
    border-radius: 16px;
    padding: 30px 40px;
    height: 100%;
    overflow: hidden;
}
.job-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
}
.job-hero__bg {
    width: 100%;
    height: 100%;
    opacity: 0.95;
    z-index: 0;
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2D9BF0 40%, var(--secondary-color) 100%);
}
.job-hero-thumb {
    position: absolute;
    bottom: clamp(-40px, -8vw, -60px);
    left: 10%;
    width: clamp(100px, 20vw, 140px);
    height: clamp(100px, 20vw, 140px);
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 3;
}

.job-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.job-hero .breadcrumbs{
    position: relative;
    z-index: 2;
    color: var(--white-color);
    font-size: 14px;
    font-weight: 400;
}
.job-hero .breadcrumbs a:hover{
    color: var(--white-color);
    text-decoration: underline;
}
.job-content.post-content{
    max-width: unset;
}
.job-content{
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
    margin-bottom: 60px;
}
.job-content .job-title {
    font-size: 36px;
    font-weight: 700;
}

.job-content .job-meta {
    color: #777;
    margin-bottom: 30px;
    font-size: 15px;
}

.job-section {
    margin-bottom: 40px;
}

.job-section__title {
    font-size: 22px;
    font-weight: 600;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

.job-section__content p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-skill {
    background: #f1f1f1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
}
/* ===== Sidebar ===== */
.job-sidebar__box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.job-note {
    color: #777;
    font-size: 14px;
    margin: 6px 0 20px;
}
.job-salary {
    margin-bottom: 20px;
}
.salary-amount {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}
.salary-label {
    color: #888;
    font-size: 14px;
}
.job-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.job-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.job-info-list i {
    background: #f4f4f4;
    border-radius: 50%;
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #555;
}
.job-info-list strong {
    display: block;
    font-weight: 600;
    color: var(--text-color)
}
.job-info-list span {
    display: block;
    font-size: 13px;
    color: #999;
}
.job-apply-btn {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    transition: 0.2s;
}

.company-logo {
    width: 48px;
    height: 48px;
}

.company-name {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    color: #222;
}

.company-address {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.company-intro {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.company-more-btn {
    background: var(--primary-color);
    font-weight: 600;
    transition: 0.2s;
}
.job-sidebar .btn{
    padding: 1rem 2rem;
    justify-content: center;
}

/* === APPLY POPUP === */
.job-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.job-popup.active {
    display: block;
}
.job-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.job-popup__content {
    position: relative;
    max-width: 600px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    z-index: 10;
    animation: popupFade .3s ease;
}
.job-popup__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
@keyframes popupFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.apply-form-wrap .form-row {
    margin-bottom: 15px;
}
.apply-form-wrap label {
    display: block;
    margin-bottom: 5px;
}
.apply-form-wrap input,
.apply-form-wrap textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
}
.btn-apply {
    background: #000;
    color: #fff;
    border: none;
    font-weight: 600;
}
.related-title {
    font-size: 20px;
    font-weight: 700;
}
.related-title-link {
    font-weight: 600;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}
.related-meta {
    font-size: 14px;
    color: #777;
    margin-top: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6em;
}

.related-meta .meta-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Tạo dấu chấm giữa các phần mà không dùng content:"·" */
.related-meta .meta-item:not(:first-child)::before {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: currentColor;
    border-radius: 50%;
    margin-right: 0.4em;
    margin-left: 0.2em;
    content: ""; /* chỉ cần để tạo phần tử, không phải "·" */
}
.related-salary {
    text-align: right;
}
.related-salary strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.related-salary span {
    font-size: 13px;
    color: #999;
}

.related-footer {
    margin-top: 25px;
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-view-all:hover {
    background: #ff6600;
}