/* Search form */
.category {
    text-align: center;
}

form button[type="submit"] {
    padding: 8px 15px;
}

.page-container {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 20px;

}

.messages {
    text-align: center;
}

.messages .success {
    background-color: #d4edda;
    color: #155724;
}

.messages .error {
    background-color: #f8d7da;
    color: #721c24;
}

.search-wrapper {
    display: flex;
    justify-content: center;
}

.job-count {
    margin: 15px 0 20px;
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

/* Job listing cards */
div.job-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    background-color: #ffffff;
    transition: box-shadow 0.2s;
}

div.job-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

div.job-card h3 {
    color: #0073b1;
    text-decoration: none;
}

.job-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.view-job {
    display: flex;
    justify-content: center;
    align-items: center; /* use this instead of align-content */
    max-width: fit-content;
    margin: 0 auto;
    padding: 6px;
    border-radius: 6px;
    background-color: #0073b1;
    color: white;
}

div.job-card h3 a:hover {
    text-decoration: underline;
}

/* Job details */
div.job-card p {
    margin: 5px 0;
}

.status-badge {
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.pagination, h1 {
    text-align: center;
}
/* Job status */
.status-badge.status-open { background: green; }
.status-badge.status-pending { background: gray; }
.status-badge.status-closed { background: gray; }
.status-badge.status-completed { background: gray; }

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
    }
}