/*
 * nukejobs.css
 * NukeWorker Job Board — Custom UI Overrides
 * Loaded last so these rules win over app.css and style.css
 * Replaces job_cards.css (merged here)
 */

/* ============================================================
   Job Details View — Modern Card Styling (was job_cards.css)
   ============================================================ */
#idjobview {
    background-color: white;
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
#idjobview fieldset {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    position: relative;
    padding-top: 50px;
    margin: 0 0 8px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    font-family: inherit;
}
#idjobview fieldset:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#idjobview legend {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c5282 0%, #346699 100%);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}
#idjobview legend,
#idjobview legend b,
#idjobview legend strong,
#idjobview legend span {
    color: #fff !important;
}
#idjobview fieldset fieldset {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: none;
    padding: 15px;
    padding-top: 40px;
    margin-bottom: 15px;
}
#idjobview fieldset fieldset legend {
    background: #4a5568;
    font-size: 0.82rem;
    padding: 8px 15px;
}
#idjobview fieldset td,
#idjobview fieldset .default_text,
#idjobview fieldset .view:not(h2),
#idjobview fieldset span,
#idjobview fieldset p {
    font-size: 14px !important;
    font-family: inherit !important;
    line-height: 1.7;
}
#idjobview fieldset font {
    color: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
}
#idjobview fieldset :not(legend) > strong,
#idjobview fieldset :not(legend) > b {
    color: #2d3748;
    font-weight: 600;
}
#idjobview fieldset table {
    width: 100%;
}
#idjobview fieldset table td {
    padding: 4px 8px 4px 0;
    vertical-align: top;
    line-height: 1.5;
}
#idjobview .view {
    color: #1a1a1a;
}
#idjobview h2.view {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}
#idjobview .grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}
#idjobview .unit {
    padding: 10px;
    box-sizing: border-box;
}
#idjobview .w-1-3 { width: 33.333%; }
#idjobview .w-1-4 { width: 25%; }
#idjobview .w-1-2 { width: 50%; }
#idjobview .grid > .unit fieldset,
#idjobview .grid.nomargin-gutters > .unit fieldset {
    min-height: 80px;
}
#idjobview .isubmit {
    border-radius: 6px;
    transition: all 0.2s;
}
#idjobview .isubmit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52,102,153,0.2);
}

/* Apply Online Now button */
a.isubmit.apply-online,
a.apply-online,
.btn-apply-prominent {
    background-color: #2e7d32;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 8px auto;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
a.isubmit.apply-online:hover,
a.apply-online:hover,
.btn-apply-prominent:hover {
    background-color: #1b5e20;
    transform: translateY(-1px);
}

/* Action bar */
ul.job-details-action-bar {
    display: block !important;
    width: 95% !important;
    max-width: 1200px !important;
    margin: 0 auto 20px auto !important;
    box-sizing: border-box;
    float: none !important;
    background-color: transparent !important;
    border-radius: 10px;
    padding: 10px 20px;
    margin-top: 15px;
    box-shadow: none;
}
ul.job-details-action-bar li {
    vertical-align: middle;
}

/* Responsive */
@media only screen and (max-width: 768px) {
    #idjobview .w-1-3,
    #idjobview .w-1-4,
    #idjobview .w-1-2 { width: 100%; }
    #idjobview {
        padding: 8px 10px;
    }
    #idjobview fieldset {
        padding-top: 40px;
    }
    #idjobview h2.view {
        font-size: 1.2rem;
    }
    a.isubmit.apply-online,
    a.apply-online {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    ul.job-details-action-bar {
        text-align: center !important;
    }
    ul.job-details-action-bar li {
        display: block !important;
        margin-bottom: 8px;
        float: none !important;
    }
    .site-footer {
        display: none !important;
    }
}

/* ============================================================
   Breadcrumb Navigation — shared across all modernized pages
   Use class "nj-breadcrumb" on the breadcrumb container div.
   ============================================================ */
.nj-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.nj-breadcrumb a {
    color: #346699;
    font-weight: 600;
    text-decoration: none;
}
.nj-breadcrumb a:hover {
    text-decoration: underline;
}
.nj-breadcrumb .nj-breadcrumb-sep {
    color: #999;
}
.nj-breadcrumb .nj-breadcrumb-current {
    color: #333;
    font-weight: 700;
}

/* ============================================================
   Section Headers — scoped to modernized sections only
   Use class "nj-section-title" on h2 elements we've updated.
   Never touch the global h2.main-title to avoid breaking other pages.
   ============================================================ */
h2.nj-section-title {
    background: linear-gradient(135deg, #2c5282 0%, #346699 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
    border: none;
    margin: 0;
    height: auto;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
h2.nj-section-title i {
    opacity: 0.9;
    font-size: 14px;
}
.nj-section-title + .main-title-border {
    border-bottom: 3px solid #346699;
    margin: 0 0 0 0;
}

/* ============================================================
   Featured Jobs Table (.featured-jobs-wrap)
   ============================================================ */
.featured-jobs-wrap {
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    margin-bottom: 24px;
}
.featured-jobs-wrap table {
    border-collapse: collapse !important;
    width: 100%;
    background: #fff !important;
}
.featured-jobs-wrap thead tr {
    background: linear-gradient(135deg, #2c5282 0%, #346699 100%) !important;
}
.featured-jobs-wrap thead th {
    font-size: 12px !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px !important;
    border-bottom: none !important;
    text-align: left !important;
    background: transparent !important;
}
.featured-jobs-wrap tbody tr {
    background: #fff !important;
}
.featured-jobs-wrap tbody tr:nth-child(even) {
    background: #f7fafc !important;
}
.featured-jobs-wrap tbody tr:hover {
    background: #ebf4ff !important;
}
.featured-jobs-wrap tbody td {
    font-size: 13px !important;
    font-family: inherit !important;
    color: #4a5568 !important;
    padding: 9px 14px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
    font-weight: normal !important;
}
.featured-jobs-wrap tbody td:first-child {
    color: #718096 !important;
    white-space: nowrap;
}
.featured-jobs-wrap a,
.featured-jobs-wrap a:link,
.featured-jobs-wrap a:visited {
    color: #346699 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    font-weight: normal !important;
    text-decoration: none !important;
}
.featured-jobs-wrap a:hover {
    color: #2c5282 !important;
    text-decoration: underline !important;
}

/* ============================================================
   Job Detail Page (#idjobview)
   ============================================================ */

/* Meta lines (category, posted, reference) */
.view.verysmall {
    font-size: 13px;
    font-weight: normal;
    font-family: inherit;
    line-height: inherit;
}
.view.verysmall a {
    font-size: 13px !important;
    font-weight: normal !important;
    font-family: inherit !important;
    line-height: inherit !important;
    color: #346699;
    text-decoration: none;
}
.view.verysmall a:hover {
    text-decoration: underline;
}

/* Action bar (Apply / Share / Save / Print) */
ul.job-details-action-bar {
    display: block !important;
    width: 95% !important;
    max-width: 1200px !important;
    margin: 0 auto 20px auto !important;
    box-sizing: border-box;
    float: none !important;
}

/* Card fieldsets */
#idjobview {
    width: 100%;
    max-width: 1200px;
}
#idjobview fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    position: relative;
    padding-top: 50px;
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    font-family: inherit;
}
#idjobview legend {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c5282 0%, #346699 100%);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}
#idjobview legend,
#idjobview legend b,
#idjobview legend strong,
#idjobview legend span {
    color: #fff !important;
}
#idjobview fieldset td,
#idjobview fieldset .default_text,
#idjobview fieldset .view:not(h2),
#idjobview fieldset span,
#idjobview fieldset p {
    font-size: 14px !important;
    font-family: inherit !important;
    line-height: 1.7;
}
#idjobview fieldset font {
    color: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
}
#idjobview fieldset :not(legend) > strong,
#idjobview fieldset :not(legend) > b {
    color: #2d3748;
    font-weight: 600;
}

/* ============================================================
   Quick Job Search Box (.nj-search-box)
   ============================================================ */
.nj-search-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.nj-search-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.nj-search-label {
    width: 160px;
    min-width: 160px;
    text-align: right;
    padding-top: 6px;
    font-size: 13px;
    color: #2d3748;
}
.nj-search-label strong {
    display: block;
    font-weight: 600;
    color: #2d3748;
}
.nj-search-hint {
    display: block;
    font-size: 11px;
    color: #718096;
    font-weight: normal;
    margin-top: 2px;
}
.nj-search-field {
    flex: 1;
}
.nj-search-field select {
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    font-family: inherit;
    color: #2d3748;
    background: #f7fafc;
}
/* Resizable select wrapper — cross-browser (Chrome ignores resize on <select>) */
.nj-resizable-select-wrap {
    resize: vertical;
    overflow: hidden;
    min-height: 130px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f7fafc;
    display: block;
}
.nj-resizable-select-wrap select {
    width: 100% !important;
    height: 100% !important;
    min-height: inherit;
    border: none !important;
    border-radius: 6px !important;
    background: transparent !important;
    resize: none !important;
    padding: 4px 8px;
    font-size: 13px;
    font-family: inherit;
    color: #2d3748;
}
.nj-search-field select:focus {
    outline: none;
    border-color: #346699;
    box-shadow: 0 0 0 3px rgba(52,102,153,0.15);
}
.nj-search-text {
    width: 100%;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    color: #2d3748 !important;
    background: #f7fafc !important;
    box-sizing: border-box;
}
.nj-search-text:focus {
    outline: none;
    border-color: #346699 !important;
    box-shadow: 0 0 0 3px rgba(52,102,153,0.15);
}
.nj-search-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 12px;
}
.nj-btn-reset {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.nj-btn-reset:hover {
    background: #cbd5e0;
}
.nj-btn-search {
    background: linear-gradient(135deg, #2c5282 0%, #346699 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 32px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.nj-btn-search:hover {
    opacity: 0.9;
}
.nj-search-advanced {
    text-align: right;
    font-size: 12px;
}
.nj-search-advanced a {
    color: #346699 !important;
    text-decoration: none;
    font-weight: 500;
}
.nj-search-advanced a:hover {
    text-decoration: underline !important;
}

/* ============================================================
   Featured Companies Box (.nj-companies-wrap)
   ============================================================ */
.nj-companies-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.nj-companies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    align-items: center;
}
.nj-company-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 125px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
}
.nj-company-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.nj-company-item img {
    max-width: 226px !important;
    max-height: 105px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}
.nj-company-item img:hover {
    opacity: 1;
    transform: scale(1.05);
}
.nj-companies-empty {
    padding: 20px;
    text-align: center;
    color: #718096;
    font-size: 13px;
    width: 100%;
}
.nj-company-item:empty {
    display: none;
}

/* ============================================================
   Advanced Job Search (#idadvjobsearch)
   ============================================================ */
#idadvjobsearch {
    max-width: 860px;
    margin: 0 auto;
}
.nj-advsearch-intro {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 12px 20px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #4a5568;
}
.nj-advsearch-intro ul {
    margin: 4px 0 0 0;
    padding-left: 20px;
}
.nj-advsearch-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.nj-advsearch-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.nj-advsearch-row:last-child {
    margin-bottom: 0;
}
.nj-advsearch-label {
    width: 210px;
    min-width: 210px;
    padding-top: 5px;
    font-size: 13px;
    color: #2d3748;
    text-align: right;
}
.nj-advsearch-hint {
    display: block;
    font-size: 11px;
    color: #718096;
    font-weight: normal;
    margin-top: 2px;
}
.nj-advsearch-field {
    flex: 1;
}
.nj-advsearch-field select {
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    font-family: inherit;
    color: #2d3748;
    background: #f7fafc;
}
.nj-advsearch-field select[multiple] {
    width: 100%;
    resize: vertical;
    overflow-y: auto;
    min-height: 80px;
}
.nj-advsearch-field select:focus,
.nj-advsearch-field select[multiple]:focus {
    outline: none;
    border-color: #346699;
    box-shadow: 0 0 0 3px rgba(52,102,153,0.15);
}
.nj-advsearch-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 8px;
    font-size: 13px;
    color: #4a5568;
    align-items: center;
}
.nj-advsearch-radio-group label,
.nj-advsearch-radio-group span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
}
.nj-advsearch-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    color: #4a5568;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nj-advsearch-checkboxes span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nj-advsearch-salary-pair {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #4a5568;
}
.nj-advsearch-salary-pair > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nj-advsearch-textarea {
    width: 100%;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    color: #2d3748 !important;
    background: #f7fafc !important;
    box-sizing: border-box;
    resize: vertical;
}
.nj-advsearch-textarea:focus {
    outline: none;
    border-color: #346699 !important;
    box-shadow: 0 0 0 3px rgba(52,102,153,0.15);
}
@media only screen and (max-width: 768px) {
    .nj-advsearch-row {
        flex-direction: column;
    }
    .nj-advsearch-label {
        width: 100%;
        min-width: unset;
        text-align: left;
        padding-top: 0;
    }
    .nj-resizable-select-wrap {
        min-height: 100px;
    }
}

/* Hide hero banner image on mobile */
@media only screen and (max-width: 768px) {
    table.top-image-hero {
        display: none !important;
    }
}
