/* Public Job Portal — matches PDF design (no left sidebar) */

.job-portal-body {
    background: #ffffff;
}

.job-portal-page {
    min-height: 100vh;
}

.job-portal-page .page-wrapper.job-portal-wrapper {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.job-portal-header {
    background: #fff;
    border-bottom: 1px solid #e6e8ec;
    min-height: 3.5rem;
    box-shadow: none;
}

.job-portal-header .navbar-brand-image {
    height: 32px;
    width: auto;
}

.job-portal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background: #fff;
}

[data-bs-theme="dark"] .job-portal-container {
    background: #182433;
}

.job-portal-datetime {
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ---------- Hero / Job Search banner ---------- */
.job-search-hero {
    position: relative;
    margin: 0 0 1.75rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .job-search-hero {
        min-height: 260px;
    }
}

.job-search-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.95) brightness(0.92);
    transform: scale(1.02);
}

.job-search-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 55, 90, 0.45) 0%,
        rgba(20, 90, 120, 0.35) 45%,
        rgba(40, 120, 140, 0.4) 100%
    );
}

.job-search-hero__icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.job-search-hero__icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.75rem;
    opacity: 0.85;
}

.job-search-hero__icon--1 {
    top: 18%;
    left: 10%;
    font-size: 2rem;
}
.job-search-hero__icon--2 {
    top: 55%;
    left: 18%;
    font-size: 1.5rem;
}
.job-search-hero__icon--3 {
    top: 22%;
    right: 14%;
    font-size: 2.1rem;
}
.job-search-hero__icon--4 {
    bottom: 20%;
    right: 22%;
    font-size: 1.8rem;
}
.job-search-hero__icon--5 {
    top: 42%;
    left: 42%;
    font-size: 1.35rem;
    opacity: 0.7;
}

.job-search-hero__form {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 2rem));
}

.job-search-pill {
    display: flex;
    align-items: center;
    background: rgba(186, 230, 210, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.35rem 0.4rem 0.35rem 1.25rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.job-search-pill__input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 1.05rem;
    color: #374151;
    font-weight: 500;
    min-width: 0;
}

.job-search-pill__input::placeholder {
    color: #4b5563;
    opacity: 0.9;
}

.job-search-pill__btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #0b75ba;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.job-search-pill__btn:hover {
    background: #08639e;
    color: #fff;
    transform: scale(1.03);
}

.job-search-pill__btn i {
    font-size: 1.25rem;
}

/* ---------- Filter panel ---------- */
.job-search-panel {
    background: #fff;
    padding: 0.25rem 0 1rem;
}

.job-search-filter-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-search-filter-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0b75ba;
}

.job-search-filter-icon {
    color: #0b75ba;
    font-size: 1.15rem;
}

.job-search-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.35rem;
}

.job-search-select {
    border-color: #d1d5db;
    border-radius: 4px;
    min-height: 2.5rem;
    color: #6b7280;
    background-color: #fff;
}

.job-search-select:focus {
    border-color: #0b75ba;
    box-shadow: 0 0 0 0.15rem rgba(11, 117, 186, 0.15);
}

.job-search-btn {
    background: #3caa3c;
    border-color: #3caa3c;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 4px;
    min-height: 2.5rem;
    padding-inline: 1.25rem;
}

.job-search-btn:hover,
.job-search-btn:focus {
    background: #339633;
    border-color: #339633;
    color: #fff !important;
}

.job-search-entries {
    font-size: 0.875rem;
    color: #4b5563;
}

.job-search-entries__select {
    width: auto;
    min-width: 4rem;
    display: inline-block;
    border-color: #d1d5db;
}

/* ---------- Jobs table ---------- */
.job-search-table-wrap {
    border: 1px solid #e5e7eb;
    border-top: 3px solid #3caa3c;
    border-radius: 2px;
    background: #fff;
}

.job-search-table {
    --tblr-table-bg: transparent;
    margin-bottom: 0;
    color: #3e4b5b;
    font-size: 0.875rem;
}

.job-search-table thead th {
    background: #f3f4f6 !important;
    color: #374151;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    padding: 0.75rem 0.85rem;
}

.job-search-table tbody td {
    vertical-align: middle;
    border-color: #e5e7eb;
    padding: 0.7rem 0.85rem;
    background: #fff;
}

.job-search-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.job-search-sort {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.job-search-sort:hover {
    color: #0b75ba;
}

.job-search-sort i {
    opacity: 0.45;
    font-size: 0.95rem;
}

.job-search-view-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #0b75ba;
    background: #fff;
}

.job-search-view-btn:hover {
    background: #eef6fc;
    color: #08639e;
    border-color: #0b75ba;
}

.job-search-apply-btn {
    background: #0b75ba;
    border-color: #0b75ba;
    color: #fff !important;
    font-weight: 600;
    border-radius: 4px;
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.job-search-apply-btn:hover,
.job-search-apply-btn:focus {
    background: #08639e;
    border-color: #08639e;
    color: #fff !important;
}

.job-search-pagination .page-link {
    color: #0b75ba;
    border-color: #d1d5db;
}

.job-search-pagination .page-item.active .page-link {
    background-color: #0b75ba;
    border-color: #0b75ba;
    color: #fff;
}

.job-search-pagination .page-item.disabled .page-link {
    color: #9ca3af;
}

/* ---------- Job Details (read-only) ---------- */
.job-details-page {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.job-details-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b4168;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.job-details-breadcrumb {
    font-size: 0.8125rem;
}

.job-details-breadcrumb .breadcrumb-item a {
    color: #699ad1;
    text-decoration: none;
}

.job-details-breadcrumb .breadcrumb-item.active,
.job-details-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #3b4168;
}

.job-details-hero {
    background: linear-gradient(135deg, #f3f8fc 0%, #eef6f1 100%);
    border: 1px solid #e5e7eb;
    border-left: 4px solid #0b75ba;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.job-details-code {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0b75ba;
    background: rgba(11, 117, 186, 0.1);
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
}

.job-details-role {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.job-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.job-details-meta i {
    color: #0b75ba;
    margin-right: 0.25rem;
}

.job-details-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}

.job-details-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #3b4168;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #3caa3c;
}

.job-details-prose {
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.7;
    white-space: normal;
}

.job-details-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.job-details-list li + li {
    margin-top: 0.4rem;
}

.job-details-side {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.35rem 0;
}

.job-details-side__item {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #f0f2f5;
}

.job-details-side__item:last-child {
    border-bottom: 0;
}

.job-details-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.job-details-value {
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
}

.job-details-value--stack {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.job-details-empty {
    color: #9ca3af;
    font-weight: 400;
}

.job-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.job-details-tag {
    display: inline-block;
    background: #eef6fc;
    color: #0b75ba;
    border: 1px solid #cfe4f5;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ---------- Apply form (PDF style) ---------- */
.job-apply-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #3b4168;
    margin-bottom: 0.4rem;
}

.job-apply-input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #3b4168;
    background: #fff;
    min-height: 2.55rem;
    font-size: 0.875rem;
}

.job-apply-input::placeholder {
    color: #a0a0a0;
}

.job-apply-input:focus {
    border-color: #0b75ba;
    box-shadow: 0 0 0 0.15rem rgba(11, 117, 186, 0.12);
}

.job-apply-form .input-icon-addon {
    color: #9ca3af;
}

.job-apply-upload {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.job-apply-upload__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    min-height: 2.55rem;
    padding: 0 0.85rem;
    gap: 0.5rem;
}

.job-apply-upload__name {
    flex: 1;
    min-width: 0;
    color: #9ca3af;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-apply-upload.is-selected .job-apply-upload__field {
    border-color: #2fb344;
    background: #f3fbf5;
}

.job-apply-upload.is-selected .job-apply-upload__name {
    color: #1f2937;
    font-weight: 600;
}

.job-apply-upload__status {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.4rem;
    color: #1f7a32;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.job-apply-upload__status .ti {
    flex: 0 0 auto;
    margin-top: 0.05rem;
    font-size: 1rem;
}

.job-apply-upload__browse {
    color: #0b75ba;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
}

.job-apply-upload__browse:hover {
    text-decoration: underline;
}

.job-apply-upload__btn {
    background: #0b75ba;
    border-color: #0b75ba;
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.45rem 1.15rem;
    white-space: nowrap;
}

.job-apply-upload__btn:hover,
.job-apply-upload__btn:focus {
    background: #08639e;
    border-color: #08639e;
    color: #fff !important;
}

.job-apply-phone-group .job-apply-country-code {
    flex: 0 0 7.5rem;
    max-width: 7.5rem;
}

.job-apply-salary-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.job-apply-salary-group .job-apply-currency {
    min-width: 3.5rem;
    font-weight: 600;
    background: #f8fafc;
}

.job-apply-error {
    display: none;
    color: #d63939;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.job-apply-upload.is-invalid {
    outline: 1px solid #d63939;
    border-radius: 6px;
}

.select2-container.is-invalid .select2-selection {
    border-color: #d63939 !important;
}

@media (max-width: 575.98px) {
    .job-apply-upload {
        flex-direction: column;
    }
}

/* ---------- Assessment video ---------- */
.assessment-video-card,
.assessment-complete-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.35rem 1.5rem;
}

.assessment-video-stage {
    position: relative;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 420px;
}

.assessment-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.assessment-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.72);
    text-align: center;
    padding: 1rem;
}

.assessment-video-overlay i {
    font-size: 2rem;
}

.assessment-face-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
}

.assessment-face-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #94a3b8;
}

.assessment-face-badge.is-ok .assessment-face-dot {
    background: #22c55e;
}

.assessment-face-badge.is-bad .assessment-face-dot {
    background: #ef4444;
}

.assessment-min-hint {
    margin-left: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.assessment-security-note {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.assessment-next-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

.assessment-next-box__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b75ba;
    margin: 0;
}

.job-apply-loader {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
}

.job-apply-loader.d-none {
    display: none !important;
}

.job-apply-loader__box {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.job-apply-loader__text {
    color: #3b4168;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.assessment-timer {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b4168;
}

.assessment-simple-header {
    min-height: 3.5rem;
}

.assessment-simple-header .navbar-brand {
    margin-right: 0;
}

.assessment-live-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #0b75ba;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.assessment-live-timer.is-urgent {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.assessment-progress-label {
    font-size: 0.95rem;
    color: #334155;
    white-space: nowrap;
}

.assessment-progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
}

.assessment-progress-bar .progress-bar {
    background: #0b75ba;
    border-radius: 999px;
}

.assessment-question-card {
    min-height: 220px;
}

.assessment-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.assessment-security-badge.is-warn {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.assessment-security-badge.is-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.assessment-security-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.assessment-security-overlay.d-none {
    display: none !important;
}

.assessment-fullscreen-gate {
    z-index: 1900;
    background: rgba(15, 23, 42, 0.9);
}

.assessment-fullscreen-gate__icon {
    background: #e0f2fe;
    color: #0369a1;
}

html:has(.assessment-fullscreen-gate:not(.d-none)),
html:has(.assessment-fullscreen-gate:not(.d-none)) body {
    overflow: hidden;
}

html:fullscreen,
html:-webkit-full-screen {
    background: #f8fafc;
}

html:fullscreen .job-portal-page,
html:-webkit-full-screen .job-portal-page {
    min-height: 100%;
    background: #f8fafc;
}

.assessment-security-overlay__card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.assessment-security-overlay__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.assessment-progress-label {
    font-size: 0.95rem;
    color: #334155;
    white-space: nowrap;
}

.assessment-progress-label {
    font-size: 0.95rem;
    color: #334155;
    white-space: nowrap;
}

.assessment-progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
}

.assessment-progress-bar .progress-bar {
    background: #0b75ba;
    border-radius: 999px;
}

.assessment-instructions-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0b75ba;
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
}

.assessment-instructions-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0e4860;
}

.assessment-instructions-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #334155;
    line-height: 1.55;
}

.assessment-instructions-list li {
    margin: 0.4rem 0;
}

.assessment-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.assessment-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
}

.assessment-step__num {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
}

.assessment-step.is-done,
.assessment-step.is-active {
    color: #0b75ba;
}

.assessment-step.is-done .assessment-step__num,
.assessment-step.is-active .assessment-step__num {
    background: #0b75ba;
    color: #fff;
}

.assessment-test-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1rem;
    align-items: start;
}

.assessment-proctor-pip {
    position: sticky;
    top: 0.75rem;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.assessment-proctor-pip__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #0f172a;
}

.assessment-proctor-pip__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
}

.assessment-proctor-pip__meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .assessment-test-layout {
        grid-template-columns: 1fr;
    }

    .assessment-proctor-pip {
        position: relative;
        top: 0;
        order: -1;
        max-width: 280px;
    }
}

.assessment-proctor-shot {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    text-decoration: none;
    color: inherit;
}

.assessment-proctor-shot img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.assessment-proctor-shot__label {
    display: block;
    padding: 0.4rem 0.55rem;
    font-size: 0.75rem;
    color: #334155;
    background: #fff;
}

    .job-search-pill__input {
        font-size: 0.95rem;
    }

    .job-search-pill__btn {
        width: 38px;
        height: 38px;
    }

    .job-search-hero__icon {
        display: none;
    }
}
