﻿/* =====================================================
   CURRENT JOB OPENINGS
===================================================== */

.career-openings {
    padding: 80px 0;
    background: #f7faff;
}

    .career-openings .section-title {
        text-align: center;
        max-width: 750px;
        margin: 0 auto 45px;
    }

        .career-openings .section-title h2 {
            color: #0B3D91;
            margin: 10px 0 12px;
            font-size: 38px;
            font-weight: 700;
        }

        .career-openings .section-title p {
            color: #718096;
            line-height: 1.7;
        }


/* =====================================================
   JOB GRID
===================================================== */

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


/* =====================================================
   JOB CARD
===================================================== */

.job-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .job-card:hover {
        transform: translateY(-5px);
        border-color: #cbdcff;
        box-shadow: 0 15px 35px rgba(11, 61, 145, 0.10);
    }


/* =====================================================
   JOB ICON
===================================================== */

.job-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, #eef4ff, #e5efff );
    color: #0B3D91;
    font-size: 22px;
}


/* =====================================================
   JOB CONTENT
===================================================== */

.job-content {
    flex: 1;
}

    .job-content h3 {
        margin: 0 0 12px;
        color: #0B3D91;
        font-size: 21px;
        font-weight: 700;
    }

    .job-content ul {
        list-style: none;
        padding: 0;
        margin: 0 0 14px;
    }

        .job-content ul li {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-right: 15px;
            margin-bottom: 7px;
            color: #64748b;
            font-size: 13px;
        }

            .job-content ul li i {
                color: #2563EB;
            }

    .job-content p {
        margin: 0;
        color: #718096;
        line-height: 1.65;
        font-size: 14px;
    }


/* =====================================================
   JOB FOOTER
===================================================== */

.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.job-openings {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

    .job-openings i {
        margin-right: 5px;
        color: #2563EB;
    }


/* =====================================================
   APPLY BUTTON
===================================================== */

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #0B3D91;
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .apply-btn:hover {
        background: #2563EB;
        color: #ffffff !important;
        transform: translateY(-2px);
    }


/* =====================================================
   NO JOBS
===================================================== */

.no-jobs {
    grid-column: 1 / -1;
    padding: 60px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.no-jobs-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: #0B3D91;
    font-size: 27px;
}

.no-jobs h3 {
    margin-bottom: 10px;
    color: #0B3D91;
}

.no-jobs p {
    max-width: 600px;
    margin: auto;
    color: #718096;
    line-height: 1.7;
}

/* =====================================================
   CAREER APPLICATION MODAL
===================================================== */

#careerApplicationModal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

    #careerApplicationModal.show {
        display: flex !important;
    }


    /* =====================================================
   MODAL OVERLAY
===================================================== */

    #careerApplicationModal .career-modal-overlay {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.70);
        z-index: 1;
    }


    /* =====================================================
   MODAL CARD
===================================================== */

    #careerApplicationModal .career-modal-card {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 850px;
        max-height: calc(100vh - 40px);
        margin: 0 auto;
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 25px 70px rgba(15, 23, 42, 0.30);
    }


    /* =====================================================
   MODAL HEADER
===================================================== */

    #careerApplicationModal .career-modal-header {
        flex: 0 0 auto;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        padding: 22px 26px;
        background: #ffffff;
        border-bottom: 1px solid #e5eaf2;
    }

        #careerApplicationModal .career-modal-header h3 {
            margin: 7px 0 5px;
            color: #0B3D91;
            font-size: 23px;
            font-weight: 700;
        }

        #careerApplicationModal .career-modal-header p {
            margin: 0;
            color: #718096;
            font-size: 13px;
        }


    /* =====================================================
   CLOSE BUTTON
===================================================== */

    #careerApplicationModal .career-modal-close {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: #f1f5f9;
        color: #475569;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #careerApplicationModal .career-modal-close:hover {
            background: #e2e8f0;
            color: #0B3D91;
        }


    /* =====================================================
   MODAL BODY
===================================================== */

    #careerApplicationModal .career-modal-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 24px 26px;
        overflow-y: auto;
        overflow-x: hidden;
        background: #ffffff;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f8fafc;
    }


        /* Chrome / Edge / Safari */

        #careerApplicationModal .career-modal-body::-webkit-scrollbar {
            width: 7px;
        }

        #careerApplicationModal .career-modal-body::-webkit-scrollbar-track {
            background: #f8fafc;
        }

        #careerApplicationModal .career-modal-body::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }


    /* =====================================================
   SELECTED JOB
===================================================== */

    #careerApplicationModal .selected-job-box {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        margin-bottom: 22px;
        background: #f4f7ff;
        border: 1px solid #dbe7ff;
        border-radius: 10px;
    }

    #careerApplicationModal .selected-job-icon {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: #0B3D91;
        color: #ffffff;
    }

    #careerApplicationModal .selected-job-box span {
        display: block;
        margin-bottom: 3px;
        color: #718096;
        font-size: 11px;
    }

    #careerApplicationModal .selected-job-box strong {
        color: #0B3D91;
        font-size: 16px;
    }


    /* =====================================================
   FORM SECTION TITLE
===================================================== */

    #careerApplicationModal .application-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 22px 0 15px;
        padding-bottom: 9px;
        border-bottom: 1px solid #e5eaf2;
        color: #0B3D91;
        font-size: 15px;
        font-weight: 700;
    }

        #careerApplicationModal .application-section-title i {
            color: #2563EB;
        }


    /* =====================================================
   FORM GRID
===================================================== */

    #careerApplicationModal .application-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    #careerApplicationModal .full-width {
        grid-column: 1 / -1;
    }


    /* =====================================================
   FORM GROUP
===================================================== */

    #careerApplicationModal .career-form-group {
        width: 100%;
        margin-bottom: 15px;
    }

        #careerApplicationModal .career-form-group label {
            display: block;
            margin-bottom: 6px;
            color: #334155;
            font-size: 13px;
            font-weight: 600;
        }

            #careerApplicationModal .career-form-group label span {
                color: #dc2626;
            }


    /* =====================================================
   INPUT
===================================================== */

    #careerApplicationModal .career-form-control {
        display: block;
        width: 100%;
        height: auto;
        min-height: 42px;
        padding: 10px 12px;
        margin: 0;
        border: 1px solid #dbe2ea;
        border-radius: 8px;
        outline: none;
        background: #ffffff;
        color: #1f2937;
        font-family: inherit;
        font-size: 14px;
        line-height: 1.5;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        #careerApplicationModal .career-form-control:focus {
            border-color: #2563EB;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
        }


    /* =====================================================
   TEXTAREA
===================================================== */

    #careerApplicationModal textarea.career-form-control {
        min-height: 110px;
        resize: vertical;
    }


    /* =====================================================
   FILE UPLOAD
===================================================== */

    #careerApplicationModal .career-file-input {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 9px;
        border: 1px dashed #b8c6da;
        border-radius: 8px;
        background: #f8fafc;
        color: #475569;
        font-size: 13px;
    }

    #careerApplicationModal .career-form-group small {
        display: block;
        margin-top: 5px;
        color: #718096;
        font-size: 11px;
    }


    /* =====================================================
   MESSAGE
===================================================== */

    #careerApplicationModal .career-form-message {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-top: 12px;
        padding: 10px 13px;
        border-radius: 8px;
        font-size: 13px;
    }

        #careerApplicationModal .career-form-message:empty {
            display: none;
        }

        #careerApplicationModal .career-form-message.success {
            color: #047857;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
        }

        #careerApplicationModal .career-form-message.error {
            color: #b91c1c;
            background: #fef2f2;
            border: 1px solid #fecaca;
        }


    /* =====================================================
   MODAL FOOTER
===================================================== */

    #careerApplicationModal .career-modal-footer {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        padding: 15px 26px;
        background: #ffffff;
        border-top: 1px solid #e5eaf2;
    }


    /* =====================================================
   CANCEL BUTTON
===================================================== */

    #careerApplicationModal .career-cancel-btn {
        padding: 10px 19px;
        border: 1px solid #dbe2ea;
        border-radius: 8px;
        background: #ffffff;
        color: #475569;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

        #careerApplicationModal .career-cancel-btn:hover {
            background: #f8fafc;
        }


    /* =====================================================
   SUBMIT BUTTON
===================================================== */

    #careerApplicationModal .career-submit-btn {
        padding: 10px 20px;
        border: none;
        border-radius: 8px;
        background: #0B3D91;
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        #careerApplicationModal .career-submit-btn:hover {
            background: #2563EB;
        }


/* =====================================================
   BODY LOCK
===================================================== */

body.career-modal-open {
    overflow: hidden !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    #careerApplicationModal {
        padding: 10px;
    }

        #careerApplicationModal .career-modal-card {
            max-height: calc(100vh - 20px);
            border-radius: 12px;
        }

        #careerApplicationModal .career-modal-header {
            padding: 18px;
        }

        #careerApplicationModal .career-modal-body {
            padding: 20px 18px;
        }

        #careerApplicationModal .career-modal-footer {
            padding: 13px 18px;
        }

        #careerApplicationModal .application-form-grid {
            grid-template-columns: 1fr;
        }

        #careerApplicationModal .full-width {
            grid-column: auto;
        }
}