/*
-------------------------------------
1. Global Layout and Container
-------------------------------------
*/
.job-container {
    /* Switching from flex to grid for better control over multi-column layout on large screens */
    display: grid;
    /* This creates a responsive grid: min 350px per card, filling the space */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px; /* Increased gap for better visual separation */
    max-width: 1200px; /* Constrain width for better readability on huge screens */
    margin: 30px auto; /* Center the container horizontally */
    padding: 0 20px; /* Add slight padding on the sides for mobile */
	margin-top: 15px !important; 
}

/*
-------------------------------------
2. Job Card Styling (Focus on Professionalism)
-------------------------------------
*/
.job-card {
    /* The max-width is now handled by the grid-template-columns */
    width: 100%;
    border: 1px solid #e0e0e0; /* Softer border */
    padding: 25px;
    border-radius: 10px; /* Slightly more rounded for a modern look */
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Professional, subtle shadow */
    transition: transform 0.3s, box-shadow 0.3s;
    
    /* Ensure internal elements (like the button) are correctly positioned */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Interactive hover effect */
.job-card:hover {
    transform: translateY(-3px); /* Lifts the card slightly */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); /* More pronounced shadow on hover */
    border-color: #006bbd; /* Highlight the border with the brand color */
}

/*
-------------------------------------
3. Job Title and Details
-------------------------------------
*/
.job-title {
    font-weight: 700; /* Use a specific weight */
    font-size: 22px; /* Larger title for better scanning */
    margin-bottom: 10px;
    color: #333; /* Darker text for titles */
    line-height: 1.3;
}

.job-details {
    flex-grow: 1; /* Allows the detail section to take up available space */
}

.job-details p {
    margin: 8px 0; /* More balanced vertical margin */
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    /* Removing margin-bottom: 26px; from details to prevent large gaps */
}

.job-details p strong {
    font-weight: 600; /* Ensure the label is clearly bold */
    color: #333;
    /* Optional: Add a subtle separator after the label */
    margin-right: 5px;
}


/*
-------------------------------------
4. Apply Button Styling (Primary CTA)
-------------------------------------
*/
.apply-button {
    display: block; /* Make it full width for better conversion/touch targets */
    width: 100%;
    text-align: center;
    margin-top: 15px; /* Increase margin above the button */
    padding: 12px 20px;
    background-color: #0073e6; /* A more common and vibrant blue */
    color: #fff !important; /* Force white text over link colors */
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.2s, transform 0.1s;
}

.apply-button:hover {
    background-color: #005bb5; /* Darken the button on hover */
    transform: translateY(-1px); /* Add a very subtle press effect */
}


/*
-------------------------------------
5. Load More Button / Pagination
-------------------------------------
*/

/* Targeting the Load More Button specifically from your PHP setup */
#load-more-jobs {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #0073e6;
    background-color: #fff;
    color: #0073e6;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#load-more-jobs:hover:not(:disabled) {
    background-color: #0073e6;
    color: #fff;
}

#load-more-jobs:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #f0f0f0;
}


/* Styling for traditional pagination (if it existed) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .current {
    background-color: #0073e6;
    color: #fff;
    font-weight: bold;
    border-color: #0073e6;
}

/* 1. Remove background, padding, and margin from the default page header wrapper */
.page-header {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important; /* Remove any default border that might be visible */
}

Remove default GeneratePress spacing from the main content wrappers */
#primary, #main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background-color: transparent !important; /* Ensure no wrapper background */
}

.category-title {
    /* Use a smaller bottom margin than the original 20px */
    margin: 30px 0 15px !important; 
}