.ams-list-page .container,
.job-categories .container {
    width: 100%;
    max-width: 1170px;
}

.ams-list-page .current-opening {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.page-content.ams-list-page,
.job-categories {
    background: #fff !important;
}

.page-content.ams-list-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-content.ams-list-page.hmp {
    padding-top: 0 !important;
}

.ams-list-page .site-header2 {
    margin-top: 0;
    border-top: 0;
    background-color: #1d2733;
    background-origin: border-box;
    background-clip: border-box;
}

.page-content.ams-home-page {
    padding-top: 0 !important;
}

.ams-home-page .site-header2.ams-home-hero {
    margin-top: 0 !important;
    border-top: 0;
    background-color: #1d2733;
    background-origin: border-box;
    background-clip: border-box;
}

@media (min-width: 768px) {
    .ams-home-page .site-header2.ams-home-hero {
        height: 660px !important;
        min-height: 660px;
    }
}

.ams-job-board {
    width: 100%;
    max-width: none;
    margin: 0 0 48px;
    padding: 8px 0 16px;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #333;
    font-family: Arial, Helvetica, sans-serif !important;
    overflow: visible;
}

.ams-job-board h2,
.ams-job-board h3,
.ams-job-board p,
.ams-job-board label,
.ams-job-board li {
    color: #171b27;
}

.ams-list-page .ams-list-wrap {
    margin-top: 34px;
}

.ams-list-intro {
    margin: 0 0 26px !important;
    color: #8a8a8a !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-align: center;
}

.ams-job-filters {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: visible;
}

.ams-filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.ams-filter-row + .ams-filter-row {
    margin-top: 14px;
}

.ams-field {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.ams-field-action {
    flex: 0 0 150px;
}

.ams-job-filters label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #3d4654;
}

.ams-label-spacer {
    visibility: hidden;
}

.ams-job-filters input,
.ams-job-filters select.ams-native,
.ams-job-board button,
.ams-job-board a,
.ams-job-board p,
.ams-job-board label,
.ams-job-board h2,
.ams-job-board h3 {
    font-family: Arial, Helvetica, sans-serif !important;
}

.ams-job-filters input,
.ams-job-filters select.ams-native {
    display: block !important;
    width: 100%;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.ams-job-filters .bootstrap-select {
    display: none !important;
}

.ams-job-filters input:focus,
.ams-job-filters select.ams-native:focus,
.ams-job-filters button:focus,
.ams-filter-clear:focus,
.ams-chip:focus,
.ams-job-row-title:focus,
.ams-page:focus {
    outline: 2px solid #3F77BC;
    outline-offset: 2px;
}

.ams-job-filters button,
.ams-error button {
    height: 42px;
    min-height: 42px;
    width: 100%;
    border: 0;
    border-radius: 2px;
    background: #e86e10;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ams-job-filters button:hover,
.ams-error button:hover {
    background: #cf610e;
}

.ams-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 100%;
    color: #e86e10 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ams-combo-control {
    position: relative;
}

.ams-combo-clear {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: #3d4654 !important;
    font-size: 22px !important;
    line-height: 1;
}

.ams-combo input {
    padding-right: 44px;
}

.ams-combo-list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #d5d8e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 27, 39, 0.12);
}

.ams-combo-list li {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.ams-combo-list li.is-active,
.ams-combo-list li:hover {
    background: #f4f7fb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ams-combo-list li.is-empty {
    color: #5c6575;
    cursor: default;
    text-decoration: none;
}

.ams-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.ams-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #f0d3b8;
    border-radius: 999px;
    background: #fff7f1;
    color: #171b27 !important;
    text-decoration: none !important;
    font-size: 14px;
}

.ams-summary {
    margin: 18px 0 4px;
}

.ams-results-heading {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #6d6d6d !important;
}

.ams-results-range {
    margin: 2px 0 0;
    color: #8a8a8a !important;
    font-size: 13px;
}

.ams-job-list {
    margin-top: 8px;
}

.ams-job-row {
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 2px;
    padding: 16px 2px 14px;
}

.ams-job-row-heading,
.ams-job-row-location,
.ams-job-row-excerpt {
    grid-column: 1;
    max-width: 100%;
}

.ams-job-row-heading {
    margin: 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.ams-job-row-title {
    color: #e86e10 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.ams-job-row-title:hover,
.ams-job-row-title:focus {
    color: #cf610e !important;
    text-decoration: underline !important;
}

.ams-job-row-type {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    text-align: right;
    color: #333 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px;
    font-weight: 700 !important;
    line-height: 1.35;
    white-space: nowrap;
    padding-top: 2px;
}

.ams-job-row-location,
.ams-job-row-excerpt {
    margin: 0;
    color: #6a6a6a !important;
}

.ams-job-row-location {
    font-size: 14px;
}

.ams-job-row-excerpt {
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ams-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.ams-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d5d8e0;
    border-radius: 8px;
    background: #fff;
    color: #171b27 !important;
    text-decoration: none !important;
    font-weight: 700;
}

.ams-page.is-current {
    background: #e86e10;
    border-color: #e86e10;
    color: #fff !important;
}

.ams-page.is-disabled,
.ams-page.is-ellipsis {
    color: #8b93a1 !important;
    background: #f7f8fa;
}

.ams-results-wrap-loading .ams-job-list,
#job-results-wrap.is-loading #job-results {
    opacity: 0.55;
}

.ams-loading,
.ams-error,
.ams-empty {
    margin: 0 0 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f7f8fa;
    color: #3d4654;
}

.ams-error {
    border: 1px solid #e7c2c2;
    background: #fff6f6;
}

.ams-error button {
    width: auto;
    margin-top: 8px;
    padding: 0 18px;
}

.ams-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .ams-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ams-field,
    .ams-field-action {
        flex-basis: auto;
        width: 100%;
    }

    .ams-list-intro {
        font-size: 24px !important;
    }

    .ams-job-row {
        grid-template-columns: 1fr;
    }

    .ams-job-row-heading,
    .ams-job-row-location,
    .ams-job-row-excerpt,
    .ams-job-row-type {
        grid-column: 1;
        grid-row: auto;
    }

    .ams-job-row-type {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ams-job-board *,
    .ams-job-board *::before,
    .ams-job-board *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
