/* careers.css */
.open-positions-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #19293d;
    margin: 0;
}

.jobs-available-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Grid Layout */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Job Card styles */
.job-card {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.job-card-header {
    margin-bottom: 25px;
}

.job-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #19293d;
    margin: 0;
    line-height: 1.2;
    max-width: 70%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.posted-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.job-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* margin-bottom: 25px; */
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #475569;
}

.detail-item i {
    font-size: 1.1rem;
    color: #f2930e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-desc {
    font-size: 0.95rem;
    /* line-height: 1.6; */
    color: #475569;
    /* margin-bottom: 30px; */
    flex-grow: 1;
}

.btn-apply {
    background-color: #f2930e;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-apply:hover {
    background-color: #d9840d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 147, 14, 0.3);
}

.btn-apply:active {
    transform: translateY(0);
}

/* ── Job Application Modal ─────────────────────────────── */
.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 41, 61, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.job-modal.active {
    display: flex;
}

.job-modal-content {
    background: #19293D;
    width: 100%;
    max-width: 860px;
    border-radius: 20px;
    padding: 24px 40px;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    max-height: 98vh;
    overflow-y: auto;
}

.job-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.job-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    /* transform: rotate(90deg); */
}

.job-modal-header {
    margin-bottom: 20px;
}

.job-modal-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    font-family: 'DM Sans', sans-serif;
}

.job-modal-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Form Styles */
.job-modal .form-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
}

.job-modal .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 9px 14px;
    color: #ffffff;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.job-modal .form-control:focus {
    border-color: #F2930E;
    box-shadow: 0 0 0 4px rgba(242, 147, 14, 0.15);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.job-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.job-modal .form-control[readonly] {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    cursor: default;
}

/* Resume Upload area */
.resume-upload-area {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.resume-upload-area:hover {
    border-color: #F2930E;
    background: rgba(255, 255, 255, 0.08);
}

.resume-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-content i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 6px;
    display: block;
}

.upload-content .main-text {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0px;
}

.upload-content .sub-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.btn-submit-application {
    background: #F2930E;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 800;
    transition: all 0.2s;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.btn-submit-application:hover {
    background: #d9840d;
    box-shadow: 0 10px 25px -5px rgba(242, 147, 14, 0.4);
}

.btn-submit-application:active {
    transform: scale(0.98);
}

@media (max-width: 720px) {
    .job-title-row {
        flex-direction: column;
        gap: 8px;
    }

    .job-title {
        max-width: 100%;
    }

    .job-modal-content {
        padding: 32px 24px;
    }

    .job-modal-header h2 {
        font-size: 1.6rem;
    }
}