/* Department heading */
.wjb-dept-title {
    margin-top: 2.5em;
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 600;
    color: #193459;
    letter-spacing: 0.01em;
}

/* Job list (ul) */
.single-content .wjb-job-list {
    list-style: none;
    padding: 0 !important;
    margin-bottom: 0px;
}

li.wjb-job-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9e9e9;
}

/* Job title link */
.wjb-job-item .wjb-view-detail-btn {
    display: block;
    color: #1354c2;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15em;
    transition: color 0.18s;
    margin-bottom: 0.1em;
}
.wjb-job-item .wjb-view-detail-btn:hover {
    color: #0c2b4e;
    text-decoration: underline;
}

/* Job location under title */
.wjb-job-location {
    color: #535353;
    font-size: 1em;
    margin-top: 4px;
    margin-bottom: 2px;
    padding-left: 1px;
}

/* Job detail panel */
.wjb-job-detail-inner h2 {
    font-size: 1.45em;
    margin-bottom: 0.5em;
    color: #1d375a;
}
.wjb-job-desc {
    margin-bottom: 2em;
    color: #222e3a;
    line-height: 1.7;
}
.wjb-job-desc ul, .wjb-job-desc ol {
    margin: 0.6em 0 1em 1.4em;
}
.wjb-job-desc li {
    margin-bottom: 0.4em;
}

.wjb-apply-btn {
    display: inline-block;
    background: #246dff;
    color: #fff;
    padding: 0.68em 1.6em;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.02em;
    text-decoration: none;
    transition: background 0.15s;
    margin-top: 0.8em;
}
.wjb-apply-btn:hover {
    background: #02182e;
    color: #fff;
}

.wjb-back-to-list {
    cursor: pointer;
    color: #1354c2;
    font-size: 1.05em;
    margin-bottom: 1.4em;
    display: inline-block;
    text-decoration: underline;
}

/* Filters container */
.wjb-filters-container {
    display: flex;
    gap: 1.2em;
    align-items: flex-end;
    margin-bottom: 2em;
    flex-wrap: wrap;
}
#wjb-job-search {
    font-size: 1em;
    padding: 0.45em 0.9em;
    border-radius: 6px;
    border: 1px solid #ced3dc;
    background: #fcfcfe;
}
#wjb-filter-department, #wjb-filter-location {
    font-size: 1em;
    padding: 0.45em 1.1em 0.45em 0.7em;
    border-radius: 6px;
    border: 1px solid #ced3dc;
}
div#wjb-job-filters {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    justify-content: space-between;
    max-width: 900px;
    margin: 1rem auto;
}

div#wjb-job-filters :is(select, input) {
    width: 100%;
    max-width: 284px;
    min-width: 160px;
    padding: 0 0.8rem;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #555555;
    color: #555555;
    font-size: 16px;
    line-height: normal;
    display: block;
    box-sizing: border-box;
}

.wjb-disabled{
    opacity:0.5;
    pointer-events:none; 
}

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Application Form Styles */

#wjb-application-form-container {
    max-width: 1280px;
    margin: 2em 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.08);
    padding: 2em 2em 1.2em 2em;
}

/* The form itself */
#wjb-application-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* Individual form field */
#wjb-application-form .wjb-field {
    display: flex;
    flex-direction: column;
    gap: 0.42em;
    margin-bottom: 0.5em;
}

.wjb-field br {
    display: none;
}

#wjb-application-form label,
.wjb-complex-title {
    font-weight: 500 !important;
    font-size: 1.09em !important;
    color: #1a3354 !important;
    margin-bottom: 0.08em !important;
}

h4.wjb-complex-title {
    margin: 0 !important;
    color: #1a3354 !important;
    font-size: 1.09em !important;
    font-weight: 500 !important;
    display: block !important;
}

#wjb-application-form input[type="text"],
#wjb-application-form input[type="email"],
#wjb-application-form input[type="file"],
#wjb-application-form input[type="date"],
#wjb-application-form select,
#wjb-application-form textarea {
    font-size: 1em;
    padding: 0.55em 0.88em;
    border-radius: 7px;
    border: 1px solid #ced3dc;
    background: #f6f8fc;
    margin-top: 0.04em;
}

#wjb-application-form textarea {
    min-height: 100px;
    resize: vertical;
}

#wjb-application-form .wjb-checkbox-wrapper,
#wjb-application-form .wjb-radio-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 1em;
}

#wjb-application-form .wjb-radio-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 4px;
}

#wjb-application-form input[type="checkbox"],
#wjb-application-form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

#wjb-application-form input[type="file"] {
    background: #f6f8fc;
    padding: 0.43em 0.7em;
    font-size: 1em;
    border: 1px solid #c7d0e3;
    border-radius: 7px;
}

#wjb-application-form small {
    color: #687790;
    font-size: 0.98em;
    margin-top: 0.2em;
    display: block;
}

/* Submit button */
#wjb-application-form button[type="submit"] {
	max-width: 256px;
    display: inline-block;
    background: #246dff;
    color: #fff;
    padding: 0.68em 1.6em;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.08em;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.8em;
}
#wjb-application-form button[type="submit"]:hover {
    background: #02182e;
    color: #fff;
}

#wjb-application-form .wjb-form-msg {
    margin-top: 1.1em;
    font-size: 1.02em;
    color: #126d2f;
/*     min-height: 1.4em; */
}

/* Complex Fields (Education/Experience) */
.wjb-complex-entry {
    background: #fdfdfd;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    padding: 1.2em;
    margin-bottom: 1.2em;
    position: relative;
}

.wjb-remove-complex-entry {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.wjb-remove-complex-entry:hover {
    background: #cc0000;
}

.wjb-add-complex-entry {
    background: #f0f4ff;
    color: #246dff;
    border: 1px dashed #246dff;
    border-radius: 6px;
    padding: 0.6em 1.2em;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    margin-bottom: 1em;
}

.wjb-add-complex-entry:hover {
    background: #e1eaff;
}

.wjb-subfield {
    margin-bottom: 0.8em;
}

.wjb-subfield label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 0.3em;
    color: #4a5568;
}

.wjb-subfield input[type="text"],
.wjb-subfield input[type="date"],
.wjb-subfield textarea {
    width: 100%;
}

.wjb-questions-section {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 2px solid #edf2f7;
}

.wjb-questions-section h3 {
    margin-bottom: 1em;
    color: #1a3354;
    font-size: 1.25em;
}

.wjb-question-field {
    margin-bottom: 1.5em !important;
}

/* Responsive for mobile */
@media (max-width: 650px) {
    .wjb-filters-container {
        flex-direction: column;
        gap: 0.7em;
        align-items: stretch;
    }
    #wjb-job-detail {
        padding: 1.2em 0.5em;
    }
}

@media (max-width: 600px) {
    #wjb-application-form-container {
        padding: 1.1em 0.5em 1em 0.5em;
        max-width: 98vw;
    }
}

.wjb-checkbox-wrapper input {
    margin-right: 8px;
    width: auto;
    display: inline-block;
}
.wjb-inline-label {
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
}