/* ── Hero Search [rb_search] ── */
.rb-hero-search { width: 100% !important; }
.rb-hero-form {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 20px 24px 18px !important;
    box-shadow: 0 4px 24px rgba(10,38,71,.15) !important;
}
.rb-hero-inputs {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    border: 1.5px solid #e0e4ed !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.rb-hero-field {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex: 1 !important;
    padding: 0 14px !important;
    gap: 8px !important;
    background: #fff !important;
}
.rb-hero-field--keyword { flex: 1.4 !important; }
.rb-hero-icon {
    font-size: 15px !important;
    line-height: 1 !important;
    width: auto !important; height: auto !important;
    min-width: unset !important; min-height: unset !important;
    max-width: none !important; max-height: none !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
.rb-hero-field input,
.rb-hero-field input[type="text"] {
    border: none !important; outline: none !important;
    box-shadow: none !important; font-size: 15px !important;
    color: #2c3e50 !important; background: transparent !important;
    width: 100% !important; padding: 16px 0 !important;
    margin: 0 !important; border-radius: 0 !important; flex: 1 !important;
}
.rb-hero-field input::placeholder { color: #6b7a8d !important; }
.rb-hero-divider {
    width: 1px !important; min-width: 1px !important;
    background: #e0e4ed !important;
    align-self: stretch !important;
    flex-shrink: 0 !important; display: block !important;
}
.rb-hero-btn, .rb-hero-btn[type="submit"] {
    background: #0A2647 !important; color: #fff !important;
    border: none !important; padding: 0 32px !important; margin: 0 !important;
    font-size: 15px !important; font-weight: 700 !important;
    cursor: pointer !important; min-height: 54px !important;
    white-space: nowrap !important; flex-shrink: 0 !important;
    border-radius: 0 !important;
    display: flex !important; align-items: center !important;
}
.rb-hero-btn:hover { background: #00A3A3 !important; }
.rb-hero-popular {
    display: flex !important; flex-direction: row !important;
    align-items: center !important; flex-wrap: wrap !important;
    gap: 8px !important; margin-top: 14px !important;
}
.rb-hero-popular__label { font-size: 14px !important; color: #6b7a8d !important; margin-right: 4px !important; }
.rb-hero-tag {
    display: inline-block !important; padding: 5px 14px !important;
    border: 1.5px solid #e0e4ed !important; border-radius: 20px !important;
    font-size: 13px !important; font-weight: 500 !important;
    color: #2c3e50 !important; text-decoration: none !important;
    background: #fff !important;
}
.rb-hero-tag:hover { border-color: #00A3A3 !important; color: #00A3A3 !important; background: #e6f7f7 !important; }

/* ── Jobs Listing Wrap ── */
.rb-jobs-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 40px;
    font-family: inherit;
}

/* ── Filter Bar ── */
.rb-filter-form {
    background: #0A2647;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
}
.rb-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.rb-filter-field {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 6px;
    padding: 0 12px;
}
.rb-filter-field svg { color: #6b7a8d; flex-shrink: 0; }
.rb-filter-field input,
.rb-filter-field select {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
    padding: 11px 0 !important;
    font-size: 14px !important;
    color: #2c3e50 !important;
}
.rb-filter-field select { cursor: pointer; }
.rb-filter-btn {
    background: #00A3A3;
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.rb-filter-btn:hover { background: #008f8f; }
.rb-filter-clear {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.rb-filter-clear:hover { color: #fff; }

/* ── Results count ── */
.rb-results-count {
    font-size: 14px;
    color: #6b7a8d;
    margin: 0 0 16px;
}

/* ── Job List ── */
.rb-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Job Row (Image 2) ── */
.rb-job-row {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: box-shadow .2s, transform .2s;
}
.rb-job-row:hover {
    box-shadow: 0 4px 20px rgba(10,38,71,.1);
    transform: translateY(-1px);
}
.rb-job-row--featured {
    border-left: 4px solid #00A3A3;
}

/* Avatar */
.rb-job-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #0A2647;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    flex-shrink: 0;
}

/* Body */
.rb-job-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rb-job-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.rb-job-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
.rb-job-title a {
    color: #0A2647 !important;
    text-decoration: none !important;
}
.rb-job-title a:hover { color: #00A3A3 !important; }

/* Badges */
.rb-job-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.rb-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: capitalize;
}
.rb-badge--featured { background: #00A3A3; color: #fff; }
.rb-badge--type     { background: #e6f7f7; color: #00A3A3; }

/* Meta row */
.rb-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.rb-job-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7a8d;
}

/* Tags */
.rb-job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #e0e4ed;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    background: #f8fafc;
}
.rb-tag--type { border-color: #d0f0ee; color: #00A3A3; background: #e6f7f7; }

/* CTA button */
.rb-job-cta { flex-shrink: 0; margin-left: auto; }
.rb-btn-view {
    display: inline-block;
    background: #0A2647;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
}
.rb-btn-view:hover { background: #00A3A3 !important; }

/* No jobs */
.rb-no-jobs {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 10px;
    color: #6b7a8d;
}

/* Pagination */
.rb-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.rb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    border: 1px solid #e0e4ed;
    color: #0A2647;
    background: #fff;
}
.rb-page-btn.active,
.rb-page-btn:hover { background: #0A2647; color: #fff; border-color: #0A2647; }

/* ==============================================
   SINGLE JOB PAGE (Image 3)
   ============================================== */

/* Hide default WP post title on single job */
.single-rb_job .entry-title,
.single-rb_job h1.page-title,
.single-rb_job .post-title { display: none !important; }

.rb-single-wrap {
    font-family: inherit;
    max-width: 100%;
}

/* Navy header — bleeds full width */
.rb-single-header {
    background: #0A2647;
    margin: -20px -9999px 0;
    padding: 36px 9999px;
    color: #fff;
}
.rb-single-header__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.75) !important;
    text-decoration: none !important;
    font-size: 14px;
}
.rb-back-link:hover { color: #fff !important; }
.rb-single-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.rb-sbadge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.15);
    color: #fff;
}
.rb-sbadge--featured { background: #00A3A3; }
.rb-single-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
.rb-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.rb-single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
}

/* Two-column body */
.rb-single-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    max-width: 960px;
    margin: 32px auto 0;
    align-items: start;
}

/* Left column cards */
.rb-single-left { display: flex; flex-direction: column; gap: 20px; }
.rb-single-card {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 28px;
}
.rb-single-card__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0A2647 !important;
    margin: 0 0 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e8ecf3 !important;
}
.rb-single-content { font-size: 15px; line-height: 1.75; color: #4a5568; }
.rb-single-content p { margin: 0 0 12px; }

/* Requirements list */
.rb-req-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.rb-req-list li {
    padding: 8px 0 8px 22px !important;
    position: relative !important;
    font-size: 14px !important;
    color: #4a5568 !important;
    border-bottom: 1px solid #f0f4f8 !important;
    line-height: 1.5 !important;
}
.rb-req-list li:last-child { border-bottom: none !important; }
.rb-req-list li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: #00A3A3;
    font-weight: 700;
}
.rb-req-list--benefits li::before { content: '✓'; }

/* Sidebar */
.rb-single-sidebar { position: sticky; top: 20px; }
.rb-sidebar-card {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rb-apply-btn {
    display: block !important;
    background: #00A3A3 !important;
    color: #fff !important;
    text-align: center !important;
    text-decoration: none !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    transition: background .2s !important;
}
.rb-apply-btn:hover { background: #008f8f !important; }
.rb-sidebar-actions {
    display: flex;
    gap: 10px;
}
.rb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border: 1.5px solid #e0e4ed;
    border-radius: 6px;
    background: #fff;
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.rb-action-btn:hover { border-color: #0A2647; color: #0A2647; }
.rb-sidebar-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #f0f4f8;
    padding-top: 16px;
}
.rb-sidebar-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
}
.rb-sidebar-detail:last-child { border-bottom: none; }
.rb-detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9aa5b4;
    margin-bottom: 2px;
}
.rb-detail-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0A2647;
}

/* Application section */
.rb-single-apply {
    max-width: 960px;
    margin: 32px auto 0;
}

/* Application form styles */
.rb-apply-section {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 36px;
}
.rb-apply-header { margin-bottom: 28px; }
.rb-apply-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0A2647 !important;
    margin: 0 0 6px !important;
}
.rb-apply-subtitle { color: #6b7a8d; font-size: 14px; margin: 0; }
.rb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rb-field { display: flex; flex-direction: column; gap: 6px; }
.rb-field--full { grid-column: 1 / -1; }
.rb-field label { font-size: 13px; font-weight: 600; color: #0A2647; }
.rb-required { color: #00A3A3; }
.rb-field input,
.rb-field textarea {
    padding: 11px 14px !important;
    border: 1.5px solid #e0e4ed !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #2c3e50 !important;
    background: #fff !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    transition: border-color .2s !important;
}
.rb-field input:focus,
.rb-field textarea:focus { border-color: #00A3A3 !important; }
.rb-field.rb-has-error input,
.rb-field.rb-has-error textarea { border-color: #e74c3c !important; }
.rb-field-error { font-size: 12px; color: #e74c3c; min-height: 16px; }

/* File upload */
.rb-file-upload { position: relative; }
.rb-file-upload input[type="file"] {
    position: absolute; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 2;
    top: 0; left: 0;
}
.rb-file-upload__ui {
    border: 2px dashed #e0e4ed;
    border-radius: 8px; padding: 28px;
    text-align: center; background: #f8fafc;
    transition: border-color .2s, background .2s;
}
.rb-file-upload:hover .rb-file-upload__ui { border-color: #00A3A3; background: #e6f7f7; }
.rb-file-upload__ui svg { width: 36px; height: 36px; color: #00A3A3; margin-bottom: 10px; }
.rb-file-upload__ui p { margin: 0 0 4px; font-size: 14px; color: #4a5568; }
.rb-browse-link { color: #00A3A3; font-weight: 600; cursor: pointer; }
.rb-file-hint { font-size: 12px !important; color: #9aa5b4 !important; }
.rb-file-selected {
    padding: 12px 16px; background: #e6f7f7;
    border-radius: 6px; display: flex;
    align-items: center; justify-content: space-between;
}
.rb-file-name { font-weight: 600; color: #0A2647; font-size: 14px; }
.rb-file-remove { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 13px; font-weight: 600; }
.rb-privacy-note { font-size: 12px; color: #9aa5b4; margin: 18px 0 22px; line-height: 1.6; }
.rb-privacy-note a { color: #00A3A3; }

/* Alerts */
.rb-alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; line-height: 1.6; }
.rb-alert--success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.rb-alert--error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.rb-alert--warning { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; }
.rb-alert strong { display: block; margin-bottom: 4px; }

/* Submit button */
.rb-btn-submit {
    background: #0A2647 !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 260px !important;
    display: block !important;
    transition: background .2s !important;
}
.rb-btn-submit:hover { background: #00A3A3 !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .rb-single-body { grid-template-columns: 1fr; }
    .rb-single-sidebar { position: static; }
    .rb-single-title { font-size: 24px !important; }
    .rb-form-grid { grid-template-columns: 1fr; }
    .rb-job-row { flex-wrap: wrap; }
    .rb-job-cta { width: 100%; }
    .rb-btn-view { width: 100%; text-align: center; display: block; }
    .rb-filter-row { flex-direction: column; }
    .rb-filter-field { width: 100%; box-sizing: border-box; }
    .rb-hero-inputs { flex-direction: column !important; }
    .rb-hero-divider { width: 100% !important; height: 1px !important; }
    .rb-hero-btn { width: 100% !important; justify-content: center !important; padding: 14px !important; }
}