/**
 * Simple Job Board overrides — load after plugin styles.
 */

/* ---- Header reset ---- */
.sjb-page .sjb-job-header .sjb-with-logo,
.sjb-page .sjb-job-header .job-info,
.sjb-page .sjb-job-header .sjb-company-wrapper-details,
.sjb-page .sjb-job-header .sjb-job-info,
.sjb-page .sjb-job-header .sjb-job-characteristics,
.sjb-page .sjb-job-header .sjb-job-type-location-date,
.sjb-page .sjb-job-header .row,
.sjb-page .sjb-job-header [class*="col-"] {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    clear: none !important;
}

.sjb-page .sjb-job-header .sjb-job-hero {
    padding: 32px 36px 16px;
}

.sjb-page .sjb-job-header .sjb-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sjb-page .sjb-job-header .sjb-hero-left {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
    flex: 1 1 auto;
}

.sjb-page .sjb-job-header .sjb-hero-content {
    min-width: 0;
    flex: 1 1 auto;
}

.sjb-page .sjb-job-header .sjb-hero-company {
    margin: 8px 0 0;
    color: #5c6470;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.sjb-page .sjb-job-header .sjb-hero-company i {
    color: #004e97;
    margin-right: 8px;
    float: none !important;
}

.sjb-page .sjb-job-header .sjb-hero-actions {
    flex: 0 0 auto;
}

.sjb-page .sjb-job-header .company-logo {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.sjb-page .sjb-job-header .company-logo img {
    width: 84px;
    height: 84px;
    max-width: 84px;
    max-height: 84px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #dbe6f2;
    padding: 8px;
    background: #fff;
}

.sjb-page .sjb-job-header .job-detail h2,
.sjb-page .sjb-job-header .job-detail .job-title {
    margin: 0;
    color: #1a1d24;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.25;
    font-weight: 700;
}

.sjb-page .sjb-job-header .sjb-hero-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #004e97 0%, #0066c4 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 78, 151, 0.25);
}

/* ---- Meta bar: each item clearly separated ---- */
.sjb-page .sjb-job-header .sjb-job-meta-bar {
    padding: 4px 36px 28px;
    overflow: visible !important;
}

.sjb-page .sjb-meta-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 14px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sjb-page .sjb-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    float: none !important;
    width: auto !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 18px !important;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d8e3f0;
    color: #1a1d24;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 78, 151, 0.06);
}

.sjb-page .sjb-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.sjb-page .sjb-meta-icon i {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #004e97;
    font-size: 15px;
    line-height: 1;
}

.sjb-page .sjb-meta-text {
    display: inline-block;
    line-height: 1.3;
}

/* Fallback: legacy plugin markup on detail page */
.sjb-page .sjb-detail .sjb-job-type-location-date,
.sjb-page .sjb-detail .sjb-job-characteristics {
    overflow: visible !important;
}

.sjb-page .sjb-detail .sjb-job-type-location-date .row,
.sjb-page .sjb-detail .sjb-job-meta-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
}

.sjb-page .sjb-detail .sjb-job-type-location-date [class*="col-"],
.sjb-page .sjb-detail .job-type,
.sjb-page .sjb-detail .job-location,
.sjb-page .sjb-detail .job-date,
.sjb-page .sjb-detail .sjb-meta-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    float: none !important;
    width: auto !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 18px !important;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d8e3f0;
    box-shadow: 0 2px 8px rgba(0, 78, 151, 0.06);
    white-space: nowrap;
}

.sjb-page .sjb-detail .job-type i,
.sjb-page .sjb-detail .job-location i,
.sjb-page .sjb-detail .job-date i {
    float: none !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    width: auto !important;
    color: #004e97;
}

@media (max-width: 767px) {
    .sjb-page .sjb-job-header .sjb-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .sjb-page .sjb-job-header .sjb-hero-actions,
    .sjb-page .sjb-job-header .sjb-hero-left {
        width: 100%;
    }

    .sjb-page .sjb-job-header .sjb-hero-apply-btn {
        width: 100%;
    }

    .sjb-page .sjb-job-header .sjb-job-hero,
    .sjb-page .sjb-job-header .sjb-job-meta-bar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sjb-page .sjb-meta-list {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .sjb-page .sjb-meta-item {
        width: 100%;
        white-space: normal;
    }
}

/* ---- Listing / archive page (/tuyen-dung/) ---- */
.sjb-page .sjb-listing-card {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 78, 151, 0.07);
    margin-bottom: 28px;
    overflow: hidden;
}

.sjb-page .sjb-listing-header {
    background: linear-gradient(135deg, #f7faff 0%, #eef4fb 100%);
    border-bottom: 1px solid #e3e8f0;
    padding: 24px 28px 20px;
}

.sjb-page .sjb-listing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.sjb-page .sjb-listing-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1 1 auto;
}

.sjb-page .sjb-listing-logo .company-logo {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.sjb-page .sjb-listing-logo .company-logo img {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #dbe6f2;
    padding: 6px;
    background: #fff;
}

.sjb-page .sjb-listing-summary {
    min-width: 0;
}

.sjb-page .sjb-listing-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.3;
    font-weight: 700;
}

.sjb-page .sjb-listing-title a {
    color: #1a1d24;
    text-decoration: none;
}

.sjb-page .sjb-listing-title a:hover {
    color: #004e97;
}

.sjb-page .sjb-listing-company {
    margin: 0;
    color: #5c6470;
    font-size: 15px;
    line-height: 1.5;
}

.sjb-page .sjb-listing-company i {
    color: #004e97;
    margin-right: 8px;
    float: none !important;
}

.sjb-page .sjb-listing-hero-actions {
    flex: 0 0 auto;
}

.sjb-page .sjb-listing-apply .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #004e97 0%, #0066c4 100%) !important;
    border: none !important;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 78, 151, 0.22);
}

.sjb-page .sjb-listing-card .sjb-job-meta-bar {
    padding: 0;
    margin-top: 4px;
}

.sjb-page .sjb-listing-card .job-description-list,
.sjb-page .sjb-listing-card .job-description {
    padding: 24px 28px 28px;
    color: #434955;
    font-size: 16px;
    line-height: 1.75;
}

.sjb-page .sjb-listing-card .job-description-list h4,
.sjb-page .sjb-listing-card .job-description h4 {
    color: #1a1d24;
    font-size: 18px;
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #004e97;
}

.sjb-page .sjb-listing .list-data .v2 .job-type,
.sjb-page .sjb-listing .list-data .v2 .job-location,
.sjb-page .sjb-listing .list-data .v2 .job-date {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

.sjb-page .sjb-listing .list-data .v2 .job-type i,
.sjb-page .sjb-listing .list-data .v2 .job-location i,
.sjb-page .sjb-listing .list-data .v2 .job-date i {
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

@media (max-width: 767px) {
    .sjb-page .sjb-listing-header,
    .sjb-page .sjb-listing-card .job-description-list,
    .sjb-page .sjb-listing-card .job-description {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sjb-page .sjb-listing-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .sjb-page .sjb-listing-hero-actions,
    .sjb-page .sjb-listing-apply,
    .sjb-page .sjb-listing-apply .btn-primary {
        width: 100%;
    }
}
