/* The block with the job title, logo, and publication date */
.job-header {
    max-width: 1200px;
    margin: 40px auto 30px auto;
    padding: 0 20px;
}

.job-header .job-title-logo {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.job-header .job-title-meta {
    flex: 1;
}

.job-header .entry-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.job-header .entry-meta {
    font-size: 14px;
    color: #777;
}

.job-header .company-logo img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
}

/* The main container for the vacancy */
.job-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Left side: The metadata of the job */
.job-sidebar {
    flex: 1;
    max-width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
}

.job-sidebar h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.job-sidebar p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #666;
}

/* Salary style */
.job-sidebar .job-salary {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Right side: Basic information about the vacancy */
.job-content {
    flex: 2;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.job-content .entry-content {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Vacancy response form */
.apply-form {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apply-form h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* First and last name in one line */
.name-fields {
    display: flex;
    gap: 10px;
}

.name-field,
.family-name-field {
    flex: 1;
}

/* The checkbox and the text in one line */
.policy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-checkbox input[type="checkbox"] {
    margin: 0;
}

.apply-now-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.apply-now-button:hover {
    background-color: #005177;
}

/* Styles for taxonomies (name and values on the same line) */
.job-meta-section {
    margin-bottom: 15px;
}

.job-meta-section h3,
.job-meta-section p {
    display: inline;
    margin: 0;
}

.job-meta-section h3 {
    font-weight: bold;
}

.job-meta-section p {
    margin-left: 5px;
}

/* Container for the job list */
.job-list-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

/* Left side: Search and filters */
.job-list-filters {
    flex: 1;
    max-width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.job-search-form {
    margin-bottom: 20px;
}

.job-search-form input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Full-width Search button */
.job-list-filters .search-button {
    width: 100%;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.job-list-filters .search-button:hover {
    opacity: 0.9;
}

/* Styles for filter headers */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.filter-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.filter-header .toggle-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.filter-header.active .toggle-icon {
    transform: rotate(180deg);
}

/* Styles for filter lists */
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}

.filter-list li {
    margin-bottom: 5px;
}

.filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.filter-list input[type="checkbox"] {
    margin-right: 10px;
}

/* Right side: The list of vacancies */
.job-list-results {
    flex: 2;
}

.job-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.job-item h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

/* Styles for the company's headline and logo */
.job-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.job-item-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.job-item-header h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.job-item-header h3 a:hover {
    color: #0073aa;
}

.job-company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 20px;
}

.job-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles for job descriptions */
.job-item-description {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Styles for meta information and "Read more" buttons */
.job-meta-and-button {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

/* Styles for meta information */
.job-meta {
    display: flex;
    gap: 20px;
    flex: 1;
}

.job-meta-column {
    flex: 1;
}

.job-meta-item {
    margin-bottom: 10px;
}

.job-meta-item strong {
    font-weight: bold;
    color: #333;
}

.job-meta-item span {
    color: #777;
}

/* Styles for icons in meta information */
.job-meta-item i {
    margin-right: 8px;
    color: #777 !important;
    width: 16px;
    text-align: center;
}

/* Styles for the "Read more" button */
.job-read-more-button {
    flex-shrink: 0;
    align-self: flex-end;
}

.read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more-button:hover {
    background-color: #005177;
}

/* Styles for pagination */
.job-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px;
}

.job-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.job-pagination .page-numbers:hover {
    background-color: #d0d0d0;
}

.job-pagination .page-numbers.current {
    background-color: #d0d0d0;
    cursor: default;
}

.job-pagination .next.page-numbers {
    background-color: #f0f0f0;
}

.job-pagination .dashicons {
    vertical-align: middle;
    font-size: 16px;
    line-height: 1;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .job-header .job-title-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .job-container {
        flex-direction: column;
        gap: 20px;
    }

    .job-sidebar {
        max-width: 100%;
        width: 100%;
        padding: 20px;
        margin: 0;
        box-sizing: border-box;
        order: 1; /* The block with salary and filters will be the first */
    }

    .job-content {
        order: 2; /* The job description will be the second one */
    }

    .name-fields {
        flex-direction: column;
        gap: 10px;
    }

    .job-list-container {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .job-list-filters {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .job-list-results {
        width: 100%;
    }

    .filter-header {
        padding: 15px;
    }

    .filter-header h3 {
        font-size: 18px;
    }

    .filter-list {
        padding: 10px;
    }

    .filter-list li {
        margin-bottom: 10px;
    }

    .filter-list label {
        font-size: 16px;
    }

    .job-meta-and-button {
        flex-direction: column;
        gap: 10px;
    }

    .job-read-more-button {
        align-self: flex-start;
    }

    .job-meta-item i {
        margin-right: 6px;
    }
}