/* Faisal Careers Widget & Shortcode Styles */

/* Jobs List Container */
.faisal-careers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Job Card */
.faisal-job-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faisal-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--color-primary, #1e3a8a);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.faisal-job-card .job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.faisal-job-card .job-department {
    background: var(--color-primary, #1e3a8a);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.faisal-job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.faisal-job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.faisal-job-card .job-meta svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

.faisal-job-card .job-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.faisal-job-card .apply-button {
    background: var(--color-primary, #1e3a8a);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.faisal-job-card .apply-button:hover {
    background: var(--color-primary-dark, #1e40af);
    transform: translateY(-2px);
}

/* No Jobs Message */
.no-jobs-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
    font-size: 1.125rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

/* Modal Styles */
.faisal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.faisal-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.faisal-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.faisal-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.faisal-modal .modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Job Detail Modal Content */
.job-detail-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.job-detail-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-right: 2rem;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-detail-meta span {
    color: #6b7280;
    font-size: 0.9rem;
}

.job-detail-meta strong {
    color: #374151;
}

.job-detail-description,
.job-detail-requirements,
.job-detail-benefits {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.job-detail-description h4,
.job-detail-requirements h4,
.job-detail-benefits h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary, #1e3a8a);
    margin: 0 0 1rem 0;
}

.job-detail-description div,
.job-detail-requirements div,
.job-detail-benefits div {
    color: #4b5563;
    line-height: 1.7;
}

.job-detail-requirements ul,
.job-detail-benefits ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.job-detail-requirements li,
.job-detail-benefits li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Application Form */
.job-application-form {
    padding: 2rem;
    background: #f9fafb;
}

.job-application-form h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary, #1e3a8a);
    margin: 0 0 1.5rem 0;
}

.job-application-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-application-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.job-application-form label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.job-application-form input,
.job-application-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.job-application-form input:focus,
.job-application-form textarea:focus {
    outline: none;
    border-color: var(--color-primary, #1e3a8a);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.job-application-form input[type="file"] {
    padding: 0.5rem;
    background: white;
}

.job-application-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-application-btn {
    background: var(--color-primary, #1e3a8a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.submit-application-btn:hover:not(:disabled) {
    background: var(--color-primary-dark, #1e40af);
    transform: translateY(-2px);
}

.submit-application-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Application Success */
.application-success {
    text-align: center;
    padding: 3rem 2rem;
}

.application-success svg {
    margin-bottom: 1.5rem;
}

.application-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 1rem 0;
}

.application-success p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.close-modal-btn {
    background: var(--color-primary, #1e3a8a);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: var(--color-primary-dark, #1e40af);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faisal-careers-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .faisal-job-card .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .faisal-modal .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    .job-detail-header,
    .job-detail-description,
    .job-detail-requirements,
    .job-detail-benefits,
    .job-application-form {
        padding: 1.25rem;
    }

    .job-application-form .form-row {
        grid-template-columns: 1fr;
    }

    .job-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .faisal-job-card {
        padding: 1rem;
    }

    .faisal-job-card .job-title {
        font-size: 1.1rem;
    }

    .job-detail-header h2 {
        font-size: 1.375rem;
    }
}
