/* Job Board Styles */
.cjb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cjb-job-board {
    margin: 0 auto;
}

.cjb-jobs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
    flex-direction: column;
}

.cjb-job-card {
    border: 1px solid #afafaf;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px;
}

.cjb-job-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.cjb-job-content h3 {
    margin: 0 0 10px 0;
    color: #ffd25d;
    font-size: 24px;
    font-weight: 600;
}

.cjb-job-meta {
    color: #fffdfd;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.cjb-excerpt {
    color: #fff;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
    font-size: 18px;
}

/* Experience and Last Date Section */
.cjb-job-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0px 0px;
    border-radius: 6px;
    width: 40% !important;
    justify-content: flex-start;
}

.cjb-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cjb-detail-icon {
    font-size: 16px;
    color: #0073aa;
}

.cjb-detail-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.cjb-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    width: 50% !important;
    justify-content: flex-end;
}

.cjb-view-details {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    vertical-align: middle;
    outline: none !important;
    background: linear-gradient(270deg, #FA5674 0%, #6065D4 100%);
    color: #fff;
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    padding: 14px 25px;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.5s linear;
    text-transform: capitalize;
    z-index: 1;
    border: 0px;
    cursor: pointer;
    text-decoration: none;
}

.cjb-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cjb-view-details:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.cjb-no-jobs {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Job Detail Page Styles */
.cjb-job-detail-page {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cjb-back-navigation {
    padding: 20px 30px 0;
}

.cjb-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.cjb-back-button:hover {
    color: #005a87;
}

.cjb-back-arrow {
    font-size: 1.2em;
}

.cjb-job-details-card {
    padding: 0 30px 30px;
}

.cjb-job-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cjb-job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cjb-job-header {
    margin-bottom: 30px;
}

.cjb-job-header h1 {
    margin: 0 0 20px 0;
    color: #ffd25d;
    font-size: 2em;
    line-height: 1.3;
    font-weight: 600;
}

.cjb-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.cjb-meta-item {
    display: flex;
    flex-direction: column;
    color: #333;
    font-size: 14px;
}

.cjb-meta-text {
    color: #333;
    line-height: 1.5;
    font-size: 16px;
}

.cjb-meta-text strong {
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.cjb-expired-text {
    color: #dc3545;
}

.cjb-expired-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 8px;
}

.cjb-job-content-1 {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.cjb-section {
    margin-bottom: 30px;
    flex: 1;
    min-width: 300px;
}

.cjb-section h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.cjb-description {
    line-height: 1.7;
    color: #333;
    font-size: 1.05em;
    text-align: justify;
    margin-top: 23px;
}

.cjb-description p {
    margin-bottom: 15px;
}

.cjb-expired-notice {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin: 30px 0;
}

.cjb-notice-content h3 {
    margin: 0 0 10px 0;
    color: #721c24;
}

.cjb-application-section {
    padding: 20px 30px 10px 20px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #ddd;
    flex: 1;
    min-width: 300px;
    max-width: 85%;
}

.cjb-application-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

/* Form Styles */
.cjb-application-form-wrapper {
    padding: 0;
}

.cjb-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cjb-form-group {
    margin-bottom: 20px;
    flex: 1;
    min-width: 200px;
}

.cjb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 15px;
    text-align: left;
}

.cjb-form-group input,
.cjb-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #ffffff !important;
    background-color: #fafafa00;
}

.cjb-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #050505 !important;
    background-color: #fffffffb;
}

.cjb-form-group input:focus,
.cjb-form-group textarea:focus,
.cjb-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cjb-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.cjb-file-upload-wrapper {
    margin-top: 10px;
}

.cjb-file-info {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.cjb-form-submit {
    text-align: center;
    margin-top: 25px;
}

.cjb-submit-application {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cjb-submit-application:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cjb-submit-application:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Messages */
.cjb-application-message {
    margin-top: 20px;
}

.cjb-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.cjb-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

.cjb-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
    text-align: center;
}

/* Loading Animation */
.cjb-loading {
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 8px;
}

.cjb-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: cjb-spin 1s linear infinite;
    margin: 0 auto 20px;
}


.cjb-job-extra-info{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


@keyframes cjb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container Transitions */
.cjb-job-board-container,
.cjb-job-details-container {
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cjb-jobs-list {
        flex-direction: column;
    }
    
    .cjb-job-card {
        flex: 1 1 100%;
        padding: 15px;
    }
    
    .cjb-job-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .cjb-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cjb-job-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .cjb-meta-item {
        min-width: auto;
    }
    
    .cjb-container {
        padding: 10px;
    }
    
    .cjb-job-details-card {
        padding: 0 15px 15px;
    }
    
    .cjb-back-navigation {
        padding: 15px 15px 0;
    }
    
    .cjb-application-section {
        padding: 20px;
    }
    
    .cjb-application-form-wrapper {
        padding: 0;
    }
}

@media (max-width: 992px) {
    .cjb-job-content-1 {
        flex-direction: column;
    }
    
    .cjb-section,
    .cjb-application-section {
        width: 100%;
    }
}