/* Local Jobs — Frontend Styles */

/* Filter bar */
.lj-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}

.lj-filter-item select,
.lj-filter-item input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 180px;
}

.lj-filter-search {
    flex: 1 1 auto;
    min-width: 200px;
}

.lj-filter-search input[type="text"] {
    width: 100%;
}

.lj-filter-type select,
.lj-filter-sort select {
    min-width: 160px;
}

.lj-filter-apply {
    padding: 8px 20px;
    background: var(--z-primary, #0073aa);
    color: #fff;
    border: 1px solid var(--z-primary, #0073aa);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.lj-filter-apply:hover {
    background: var(--z-primary-dark, #005d8c);
    border-color: var(--z-primary-dark, #005d8c);
}

.lj-filter-apply:focus-visible {
    outline: 2px solid var(--z-primary, #0073aa);
    outline-offset: 2px;
}

/* Pagination */
.lj-pagination {
    margin-top: 30px;
    text-align: center;
}

.lj-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.lj-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.lj-pagination .page-numbers:hover:not(.current) {
    background: #f5f5f5;
}

/* Single Job Page */
.lj-single-job-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.lj-single-job-content {
    display: grid;
    grid-template-columns: 9fr 3fr;
    gap: 40px;
}

.lj-job-title {
    margin-top: 0;
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
}

.lj-job-description {
    line-height: 1.6;
    color: #666;
}

.lj-job-description h2,
.lj-job-description h3,
.lj-job-description h4 {
    color: #333;
    margin-top: 25px;
}

.lj-job-description ul,
.lj-job-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.lj-job-description p {
    margin-bottom: 15px;
}

/* Downloads Section */
.lj-job-downloads {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
}

.lj-job-downloads h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.lj-downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lj-downloads-list li {
    margin-bottom: 12px;
}

.lj-download-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.lj-download-link:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.lj-download-link .dashicons {
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

/* How to Apply Section */
.lj-how-to-apply {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
}

.lj-how-to-apply h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.lj-how-to-apply p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.lj-how-to-apply ul,
.lj-how-to-apply ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Back Button */
.lj-back-button {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Sidebar */
.lj-sidebar-column {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
}

.lj-sidebar-logo {
    margin-bottom: 30px;
    text-align: center;
}

.lj-sidebar-logo img {
    max-width: 100%;
    height: auto;
}

.lj-sidebar-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.lj-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lj-sidebar-item h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #333;
}

.lj-sidebar-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .lj-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lj-filter-item {
        width: 100%;
    }

    .lj-filter-item select,
    .lj-filter-item input[type="text"] {
        width: 100%;
        min-width: 0;
    }

    .lj-single-job-content {
        grid-template-columns: 1fr;
    }

    .lj-sidebar-column {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .lj-main-column {
        padding: 20px;
    }

    .lj-job-title {
        font-size: 24px;
    }

    .lj-how-to-apply,
    .lj-job-downloads {
        padding: 20px;
    }

    .lj-how-to-apply h2,
    .lj-job-downloads h2 {
        font-size: 20px;
    }
}
