/*************
JobPress shared styles: base, grid helpers, single job page, apply form,
search form and pagination. Design-specific rules live in jobpress-style-v{N}.css.
**************/
:root {
    --jp-primary-color: #283339;
    --jp-secondary-color: #5f7681;
    --jp-content-color: #3a3a3a;
    --jp-border-color: #e7ebee;
    --jp-brand-color: #0086fe;
    --jp-hover-color: #006dcc;
}
@media (min-width: 1200px) {
    .jp-container {
        max-width: 1140px;
    }
}
@media (min-width: 1400px) {
    .jp-container {
        max-width: 1320px;
    }
}
.jp-container {
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}
.jp-container.jp-content-full {
    max-width: 100%;
}
.jp-single-content-area {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 24px;
}
.jp-content {
    width: 75%;
}
.jp-sidebar {
    width: 25%;
}
.jp-content-full {
    width: 100%;
}
.jp-col-6 {
    padding: 0 10px;
    width: 50%;
}
.jp-mb-15 {
    margin-bottom: 15px;
}
.jp-w-100 {
    width: 100%;
}
.jp-text-center {
    text-align: center;
}
.jp-text-right {
    text-align: right;
}
.jp-align-items-center {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.jp-justify-between {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.jp-mb-0 {
    margin-bottom: 0!important;
}
.jp-mt-0 {
    margin-top: 0!important;
}
.jp-single-wrapper {
    padding: 60px 0;
    width: 100%;
}
.jp-featured-image {
    margin-bottom: 30px;
}
.jp-featured-image img {
    border-radius: 4px;
}
.jp-content {
    color: var(--jp-content-color);
}
.jp-job-location-googlemap iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 4px;
}
.jp-sidebar-title {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 0px;
    color: var(--jp-primary-color);
}
.jp-job-summary-item {
    margin-bottom: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.jp-summary-icon {
    margin-right: 20px;
    margin-top: 3px;
}
.jp-summary-text {
    color: var(--jp-secondary-color);
}
.jp-sidebar .jp-summary {
    background: #fff;
    padding: 20px;
    -webkit-box-shadow: 0 1.5rem 4rem rgba(22,28,45,.05);
    box-shadow: 0 1.5rem 4rem rgba(22,28,45,.05);
    border-radius: 4px;
}
.jp-order-1 {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
}
.jp-order-2 {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}
.jp-img-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 1;
}
figure.jp-img-full-width img {
    width: 100%;
    height: 530px;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}
.jobpress-cover {
    position: relative;
}
.jp-img-full-width::after {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #161c2d;
    content: "";
    opacity: .6;
}
.jp-cover-text {
    position: absolute;
    top: 50%;
    z-index: 1;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #fff;
}
.jp-single-job-header {
    margin: 0 0 40px;
}
.jp-single-job-header .jp-col-6 {
    padding: 0;
}
.jp-single-job-header.border-bottom {
    border-bottom: 1px solid var(--jp-border-color);
    padding-bottom: 40px;
}
.jp-job-listing-area {
    width: 100%;
}
.jp-section-padding {
    padding: 100px 0;
}
.jp-section-title {
    margin-bottom: 60px;
}
.jp-job-apply-form {
    -webkit-box-shadow: 0 1.5rem 4rem rgba(22,28,45,.05);
    box-shadow: 0 1.5rem 4rem rgba(22,28,45,.05);
    background: #ffffff;
    padding: 32px;
    border-radius: 4px;
    border-top: 2px solid var(--jp-brand-color);
    margin-top: 60px;
}
.jp-form-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -20px;
    margin-left: -20px;
}
.jp-form-row .jp-form-half {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 20px;
    padding-left: 20px;
}
.jp-form-group {
    margin-bottom: 20px;
}
.jp-form-group .jp-form-control,
.jp-job-apply-form form.wpcf7-form .wpcf7-form-control {
    width: 100%;
    height: 52px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--jp-border-color);
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 4px;
}
.jp-form-group .jp-form-control:focus,
.jp-job-apply-form form.wpcf7-form .wpcf7-form-control:focus {
    border: 1px solid var(--jp-brand-color);
    outline: 0px;
}
.jp-form-group textarea.jp-form-control,
.jp-job-apply-form form.wpcf7-form textarea.wpcf7-form-control {
    height: auto;
}
.jp-custom-file .jp-custom-file-input {
    opacity: 0;
    height: 52px;
    width: 100%;
    border-radius: 4px;
}
.jp-custom-file {
    position: relative;
}
.jp-custom-file .jp-custom-file-label {
    width: 100%;
    height: 52px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--jp-border-color);
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 4px;
}
.jp-custom-file .jp-custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 52px;
    padding: .8125rem 1.25rem;
    line-height: 1.6;
    color: #506690;
    content: "Browse";
    background-color: #f1f4f8;
    border-left: inherit;
    border-radius: 0 4px 4px 0;
}
.jp-sm-text {
    font-size: 14px;
    color: var(--jp-secondary-color);
}
.jp-form-title {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--jp-primary-color);
}
.jp-form-group label.error,
.jp-job-apply-form form.wpcf7-form .wpcf7-not-valid-tip {
    color: #FF2626;
    font-size: 14px;
}
.resume-file .jp-custom-file label.error {
    position: absolute;
}
@media only screen and (max-width: 991px) {
    .jp-col-6 {
        width: 100%;
    }
    .jp-single-job-header .jp-text-right {
        text-align: left;
    }
    .jp-single-content-area {
        display: block;
    }
    .jp-content {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
    }
    .jp-sidebar {
        width: 100%;
        padding-left: 0;
        margin: 15px 0;
    }
    .jp-content.jp-order-2 {
        padding: 0;
    }
}
@media only screen and (max-width: 767px) {
    .jp-form-title {
        font-size: 25px;
    }
    .jp-form-row {
        display: block;
    }
    .jp-form-row .jp-form-half {
        width: 100%;
        max-width: 100%;
    }
    .jp-job-apply-form {
        padding: 20px;
    }
    .jp-form-half .jp-sm-text {
        text-align: left;
        margin-top: 10px;
        line-height: 1.5;
    }
}

/*************
Modern Pagination Styles
**************/
.jobpress-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.jobpress-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--jp-secondary-color);
    background: #ffffff;
    border: 2px solid var(--jp-border-color);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jobpress-pagination .page-numbers:hover {
    color: var(--jp-brand-color);
    border-color: var(--jp-brand-color);
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 134, 254, 0.15);
}

.jobpress-pagination .page-numbers.current {
    color: #ffffff;
    background: var(--jp-brand-color);
    border-color: var(--jp-brand-color);
    box-shadow: 0 4px 15px rgba(0, 134, 254, 0.3);
}

.jobpress-pagination .page-numbers.current:hover {
    background: var(--jp-hover-color);
    border-color: var(--jp-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 134, 254, 0.25);
}

/* Previous and Next buttons */
.jobpress-pagination .prev,
.jobpress-pagination .next {
    font-weight: 600;
    color: var(--jp-primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
    position: relative;
}

.jobpress-pagination .prev:hover,
.jobpress-pagination .next:hover {
    color: var(--jp-brand-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-color: var(--jp-brand-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 134, 254, 0.15);
}

.jobpress-pagination .prev svg,
.jobpress-pagination .next svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
    transform: scale(0.6);
    -webkit-transform: scale(0.6);
    -moz-transform: scale(0.6);
    -ms-transform: scale(0.6);
    -o-transform: scale(0.6);
}

/* .jobpress-pagination .prev:hover svg {
    transform: translateX(-3px);
    -webkit-transform: translateX(-3px);
    -moz-transform: translateX(-3px);
    -ms-transform: translateX(-3px);
    -o-transform: translateX(-3px);
}

.jobpress-pagination .next:hover svg {
    transform: translateX(3px);
} */

/* Disabled state for prev/next */
.jobpress-pagination .prev.disabled,
.jobpress-pagination .next.disabled {
    color: #adb5bd;
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.jobpress-pagination .prev.disabled:hover,
.jobpress-pagination .next.disabled:hover {
    transform: none;
    box-shadow: none;
    color: #adb5bd;
    background: #f8f9fa;
    border-color: #e9ecef;
}

.jobpress-pagination .prev.disabled svg,
.jobpress-pagination .next.disabled svg {
    fill: #adb5bd;
}

/* Page numbers container */
.jobpress-pagination .page-numbers-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jobpress-pagination .page-numbers-container .page-numbers {
    min-width: 44px;
    height: 44px;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Dots/ellipsis styling */
.jobpress-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: var(--jp-secondary-color);
    cursor: default;
    min-width: auto;
    padding: 0 8px;
}

.jobpress-pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
    color: var(--jp-secondary-color);
    transform: none;
    box-shadow: none;
}

/* Responsive pagination */
@media only screen and (max-width: 767px) {
    .jobpress-pagination {
        gap: 6px;
        margin: 30px 0;
    }
    
    .jobpress-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
        padding: 0 8px;
    }
}

@media only screen and (max-width: 480px) {
    .jobpress-pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .jobpress-pagination .page-numbers-container {
        order: 2;
    }
    
    .jobpress-pagination .prev {
        order: 1;
    }
    
    .jobpress-pagination .next {
        order: 3;
    }
}


/* Job Search Form Styles */
.jobpress-search-form-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px 0 rgb(0 0 0 / 3%);
    border: 1px solid var(--jp-border-color);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.jobpress-search-form-wrapper form {
    display: grid;
    grid-template-columns: 1fr 270px 270px 120px;
    gap: 0;
    align-items: center;
}

.jobpress-search-form-wrapper .search-field {
    display: flex;
    gap: 10px;
    align-items: center;
}
.jobpress-search-form-wrapper .search-field:first-child, .jobpress-search-form-wrapper .search-field:nth-child(2){
    border-right: 1px solid var(--jp-border-color);
    margin-right: 10px;
    padding-right: 10px;
}
.jobpress-search-form-wrapper .search-field:first-child {
    padding-left: 5px;
}
.jobpress-search-form-wrapper .search-field:nth-child(3){
    padding-right: 10px;
}
.search-field.search-submit-field {
    width: 120px;
}

.jobpress-search-form-wrapper .search-field label {
    font-weight: 600;
    margin-bottom: 0px;
    font-size: 16px;
}

.jobpress-search-form-wrapper .search-field input,
.jobpress-search-form-wrapper .search-field select {
    width: 100%;
    color: var(--jp-primary-color);
    padding: 0px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    transition: border-color 0.3s ease;
    height: 28px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.jobpress-search-form-wrapper .select-field{
    position: relative;
}
.jobpress-search-form-wrapper .select-field::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'><path d='M18.71,8.21a1,1,0,0,0-1.42,0l-4.58,4.58a1,1,0,0,1-1.42,0L6.71,8.21a1,1,0,0,0-1.42,0,1,1,0,0,0,0,1.41l4.59,4.59a3,3,0,0,0,4.24,0l4.59-4.59A1,1,0,0,0,18.71,8.21Z'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
  }
.jobpress-search-form-wrapper .search-field select{
    padding-right: 20px;
}
.jobpress-search-form-wrapper .search-field select{
    color: var(--jp-secondary-color);
}
.jobpress-search-form-wrapper .search-field select.selected{
    color: var(--jp-primary-color);
}

.jobpress-search-form-wrapper .search-field input:focus,
.jobpress-search-form-wrapper .search-field select:focus {
    outline: none;
    border-color: var(--jp-border-color);
    box-shadow: none;
}
.jobpress-search-form-wrapper .search-field input::placeholder {
    color: var(--jp-secondary-color);
    opacity: 1; /* Firefox */
}

.jobpress-search-form-wrapper .search-field input::-webkit-input-placeholder {
    color: var(--jp-secondary-color);
}

.jobpress-search-form-wrapper .search-field input::-moz-placeholder {
    color: var(--jp-secondary-color);
    opacity: 1;
}

.jobpress-search-form-wrapper .search-field input:-ms-input-placeholder {
    color: var(--jp-secondary-color);
}

.jobpress-search-form-wrapper button[type="submit"].search-submit{
    width: 100%;
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 20px;
    border-radius: 4px;
    background: var(--jp-brand-color);
    font-weight: 500;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    font-size: 14px;
    height: 40px;
    font-weight: 500;
    border: none;
    line-height: 1;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.jobpress-search-form-wrapper button[type="submit"].search-submit:hover {
    background: var(--jp-hover-color);
    color: #fff;
}

.jobpress-search-form-wrapper .clear-filters:hover {
    background: #6c757d;
    color: white;
}
.jobpress-search-form-wrapper .job-field-icon svg {
    fill: var(--jp-secondary-color);
    width: 17px;
    height: 17px;
    opacity: 0.6;
}

.jobpress-search-form-wrapper .job-field-icon {
    line-height: 16px;
}
.jobpress-no-jobs-found {
    text-align: center;
    border-radius: 5px;
    padding-top: 25px;
    margin-bottom: 30px;
}

.jobpress-no-jobs-found h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--jp-primary-color);
    margin-bottom: 5px;
    margin-top: 0;
}

.jobpress-no-jobs-found p {
    margin: 0;
    font-size: 16px;
    color: var(--jp-secondary-color);
}

.jobpress-no-jobs-found img {
    width: 85px;
    margin-bottom: 30px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .jobpress-search-form-wrapper form {
        grid-template-columns: 1fr;
    }
    
    .jobpress-search-form-wrapper .search-field {
        margin-bottom: 10px;
    }

    /* Stacked fields need no dividers. */
    .jobpress-search-form-wrapper .search-field:first-child,
    .jobpress-search-form-wrapper .search-field:nth-child(2) {
        border-right: 0;
        margin-right: 0;
    }
}

/* Page container used by the default content wrapper (templates/global/wrapper-start.php). */
.jp-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1140px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.jp-job-title {
    margin: 0 0 20px;
}


/*************
Listing footer: "View all jobs" link
**************/
.jp-listing__footer {
    margin-top: 30px;
    text-align: center;
}
.jp-listing .jp-listing__view-all {
    display: inline-block;
    padding: 13px 39px;
    border-radius: 5px;
    background: var(--jp-brand-color);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.jp-listing .jp-listing__view-all:hover,
.jp-listing .jp-listing__view-all:focus {
    background: var(--jp-hover-color);
    color: #fff;
}

/*************
JobPress Jobs block: padding (a block style setting) stays inside the block's
width, like core blocks, so a padded block lines up with the content column.
**************/
.wp-block-jobpress-jobs { box-sizing: border-box; }

/*************
Elementor widget: fill the container. The search bar and the v5 grid are sized by
their own width (container queries), so they don't size the widget, which would
shrink to its header in a row-direction container. Like Elementor's own Maps and
Video widgets; a custom width set in the widget's Advanced tab still applies.
**************/
.e-con .elementor-widget-jobpress_jobs {
    width: 100%;
}

/*************
Listing search bar: sized by the listing's width, which is often narrower than the archive's
**************/
.jp-listing__search {
    container-type: inline-size;
}
.jp-listing__search .jobpress-search-form-wrapper form {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}
/* Medium: keyword on its own row, then category, type and the button. */
@container (max-width: 800px) {
    .jp-listing__search .jobpress-search-form-wrapper form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        row-gap: 10px;
    }
    .jp-listing__search .jobpress-search-form-wrapper .search-field:first-child {
        grid-column: 1 / -1;
        border-right: 0;
        margin-right: 0;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--jp-border-color);
    }
}
/* Narrow: one field per row. */
@container (max-width: 520px) {
    .jp-listing__search .jobpress-search-form-wrapper form {
        grid-template-columns: minmax(0, 1fr);
    }
    .jp-listing__search .jobpress-search-form-wrapper .search-field:nth-child(2) {
        border-right: 0;
        margin-right: 0;
    }
    .jp-listing__search .search-field.search-submit-field {
        width: 100%;
    }
}
