.page-template-tpl_job_listing .terms-list {
    list-style: none; /* Removes default bullets */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.page-template-tpl_job_listing .terms-list li {
    list-style: none; /* Ensures no bullets */
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.page-template-tpl_job_listing .terms-list label {
    cursor: pointer;
}

.page-template-tpl_job_listing .terms-list input[type="checkbox"],
.page-template-tpl_job_listing .terms-list input[type="radio"] {
    margin-right: 5px;
    width: 15px; /* Increases width */
    height: 15px; /* Increases height */
    transform: scale(1.3); /* Makes them 30% larger */
    cursor: pointer;
}

.page-template-tpl_job_listing .form-control {
    height: 45px;
    font-size: 16px;
}

.page-template-tpl_job_listing .btn {
    padding: 12px 10px;
    font-size: 14px;
}

/* Fix for Apply Now button wrapping issue */
.page-template-tpl_job_listing .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
}

.page-template-tpl_job_listing .card-body img {
    flex-shrink: 0; /* Prevents the image from shrinking */
}

.page-template-tpl_job_listing .card-body div {
    flex-grow: 1; /* Ensures job details take up available space */
    min-width: 0; /* Prevents overflowing issues */
}

/* Ensure uniform button size */
.page-template-tpl_job_listing .card-body .btn {
    width: 100%;
    max-width: 250px; /* Ensure same width */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    margin: 10px auto 0; /* Auto for left-right centering */
}

/* Force all buttons in job listings to be the same width */
.page-template-tpl_job_listing .job-listing {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-template-tpl_job_listing .job-listing .btn {
    width: 100%; /* Make all buttons take equal width */
    max-width: 250px; /* Ensures consistency */
}

/* Load More Button Styling */
.page-template-tpl_job_listing #loadMore {
    background: none;
    border: none;
    color: #0a66c2; /* Blue text color */
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
    cursor: pointer;
    width: fit-content; /* Ensures the width is just enough for the text */
}

.page-template-tpl_job_listing #loadMore::after {
    content: "";
    display: block;
    width: 45%; /* Adjusts the width to match the text */
    height: 2px;
    background: #0a66c2;
    position: absolute;
    bottom: 0;
    left: 17%;
}

.page-template-tpl_job_listing #loadMore:hover {
    opacity: 0.8;
}

/* Adjust spacing for smaller screens */
@media (max-width: 768px) {
    .page-template-tpl_job_listing .card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-template-tpl_job_listing .card-body img {
        margin-bottom: 10px;
    }

    .page-template-tpl_job_listing .card-body .btn {
        width: 100%;
        max-width: 250px; /* Ensure buttons are uniform */
    }

    .page-template-tpl_job_listing .col-md-3, 
    .page-template-tpl_job_listing .col-md-4, 
    .page-template-tpl_job_listing .col-md-2 {
        width: 100%;
        margin-bottom: 10px;
    }
}

