/* Netism Job Board - Frontend Styles */
/* Designed to inherit from Avada theme */

/* Board Container */
.njb-board {
    max-width: 100%;
    margin: 0 auto;
}

/* Volunteer Disclaimer Banner */
.njb-disclaimer,
.njb-single-disclaimer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 20px 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
    border-left: 4px solid #c9a84c;
}
.njb-disclaimer strong,
.njb-single-disclaimer strong {
    color: #ffffff;
}
.njb-disclaimer a,
.njb-single-disclaimer a {
    color: #c9a84c;
    text-decoration: underline;
}

/* Search Bar */
.njb-search-bar {
    margin-bottom: 30px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 6px;
}
.njb-search-bar form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.njb-search-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}
.njb-search-bar select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    min-width: 180px;
}
.njb-search-bar button {
    padding: 10px 24px;
    background: #1a3c5e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.njb-search-bar button:hover {
    background: #0d2137;
}

/* List Layout */
.njb-listing {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.njb-listing:hover {
    border-color: #1a3c5e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.njb-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.njb-listing-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}
.njb-listing-title a {
    color: #1a3c5e;
    text-decoration: none;
}
.njb-listing-title a:hover {
    color: #c9a84c;
}

/* Urgency Badges */
.njb-urgency {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.njb-urgency-critical {
    background: #ffebee;
    color: #c62828;
}
.njb-urgency-high {
    background: #fff3e0;
    color: #e65100;
}
.njb-urgency-medium {
    background: #e3f2fd;
    color: #1565c0;
}
.njb-urgency-ongoing {
    background: #e8f5e9;
    color: #2e7d32;
}
.njb-urgency-future {
    background: #f5f5f5;
    color: #666;
}

/* Meta Tags */
.njb-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.njb-meta-item {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
}

/* Excerpt */
.njb-listing-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* View Details Link */
.njb-listing-link {
    display: inline-block;
    color: #1a3c5e;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.njb-listing-link:hover {
    color: #c9a84c;
}

/* Grid Layout */
.njb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.njb-grid .njb-listing {
    margin-bottom: 0;
}

/* Single Listing - Details Card */
.njb-details-card {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}
.njb-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}
.njb-detail-row:last-child {
    border-bottom: none;
}
.njb-detail-label {
    font-weight: 700;
    color: #333;
    min-width: 140px;
    flex-shrink: 0;
}
.njb-detail-expenses {
    flex-direction: column;
}

/* Skills */
.njb-skills-section {
    margin: 20px 0;
}
.njb-skills-section h4 {
    margin-bottom: 10px;
    color: #1a3c5e;
}
.njb-skills-section ul {
    list-style: disc;
    padding-left: 20px;
}
.njb-skills-section li {
    margin-bottom: 6px;
    color: #444;
    font-size: 15px;
}

/* Application Form */
.njb-application-form {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 35px;
    border-radius: 8px;
    margin-top: 40px;
}
.njb-application-form h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
}
.njb-field {
    margin-bottom: 20px;
}
.njb-field label {
    display: block;
    color: #ccc;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}
.njb-field .required {
    color: #c9a84c;
}
.njb-field .optional {
    color: #888;
    font-weight: 400;
}
.njb-field input[type="text"],
.njb-field input[type="email"],
.njb-field input[type="tel"],
.njb-field textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.njb-field input:focus,
.njb-field textarea:focus {
    outline: none;
    border-color: #c9a84c;
    background: rgba(255,255,255,0.15);
}
.njb-field input::placeholder,
.njb-field textarea::placeholder {
    color: rgba(255,255,255,0.4);
}
.njb-field input[type="file"] {
    color: #ccc;
    font-size: 14px;
}
.njb-field input[type="file"]::file-selector-button {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    margin-right: 10px;
}
.njb-submit-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #c9a84c;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.njb-submit-btn:hover {
    background: #d4b65c;
}
.njb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Messages */
.njb-form-messages .njb-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.njb-form-messages .njb-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Closed notice */
.njb-closed-notice {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
    text-align: center;
    color: #666;
}

/* Pagination */
.njb-pagination {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.njb-pagination a,
.njb-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.njb-pagination span.current {
    background: #1a3c5e;
    color: #fff;
    border-color: #1a3c5e;
}
.njb-pagination a:hover {
    background: #f0f0f0;
}

/* No Results */
.njb-no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .njb-search-bar form {
        flex-direction: column;
    }
    .njb-search-bar input[type="text"],
    .njb-search-bar select {
        width: 100%;
        min-width: unset;
    }
    .njb-listing-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .njb-detail-row {
        flex-direction: column;
        gap: 4px;
    }
    .njb-grid {
        grid-template-columns: 1fr;
    }
    .njb-application-form {
        padding: 20px;
    }
    .njb-disclaimer,
    .njb-single-disclaimer {
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .njb-listing {
        padding: 16px;
    }
    .njb-listing-title {
        font-size: 17px;
    }
    .njb-submit-btn {
        width: 100%;
        text-align: center;
    }
}
