/* ========================================
   Fonts
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Big+Shoulders:opsz,wght@10..72,100..900&display=swap');

/* ========================================
   Job Listing
======================================== */

.aim-jobs-wrapper {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.aim-jobs-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1396px;
    text-align: left;
}

.aim-jobs-count,
.aim-jobs-empty,
.aim-jobs-error {
    margin: 0 0 20px;
    color: #151515;
    font-family: "Barlow", sans-serif;
    text-align: left;
}

.aim-jobs-wrapper [hidden] {
    display: none !important;
}

/* ========================================
   Job Cards
======================================== */

.aim-job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    background: #F8F8F8;
}

.aim-job-icon {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    height: 37px;
    background: white;
}

.aim-job-card-content {
    width: 100%;
}

.aim-job-card-content * {
    margin: 0;
}

.aim-job-title {
    color: var(--Black, #151515);
    font-family: "Big Shoulders";
    font-size: 30px;
    font-weight: normal;
    line-height: normal;
    text-transform: uppercase;
}

.aim-job-type {
    color: var(--Black, #151515);
    font-family: Barlow;
    font-size: 16px;
    font-weight: 700;
    line-height: 32px;
}

.aim-job-city {
    margin: 20px 0;
    color: var(--Black, #151515);
    font-family: Barlow;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
}

/* ========================================
   Search and Filters
======================================== */

.aim-search-label {
    color: var(--Core-Gray, #666);
    font-family: "Big Shoulders";
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
}

input.aim-job-search::placeholder {
    color: var(--Core-Gray, #666);
    font-family: Barlow;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
}

.aim-job-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.aim-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #151515;
    justify-content: flex-end;
}

.aim-filter-field input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 12px 20px;
    border: 1px solid var(--Core, #CCC);
    border-radius: 0;
    background: #fff;
}

.aim-filter-field select {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    color: var(--Dark, #222);
    font-family: Barlow;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    padding: 12px 20px;
    width: 100%;
    height: 100%;
}

.select-wrapper {
    border: 1px solid var(--Core, #CCC);
    position: relative;
    height: 56px;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--Dark, #222);
    border-bottom: 1.5px solid var(--Dark, #222);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

/* Unavailable facets remain visible but cannot be selected. */
.aim-job-region option:disabled,
.aim-job-department option:disabled {
    color: #999;
}

/* ========================================
   Shared Buttons
======================================== */

.button-clipped {
    --b: 2px !important;
    --s: 12px !important;
    --c: #151515 !important;

    padding: 10px 20px !important;
    border: var(--b) solid var(--c) !important;
    border-radius: 0 !important;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        var(--s) 100%,
        0 calc(100% - var(--s))
    ) !important;
    background: linear-gradient(
        45deg,
        var(--c) calc(0.707 * var(--s) + var(--b)),
        #0000 0
    ) border-box !important;

    font-family: "Barlow", sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    text-transform: uppercase !important;
}

.button-clipped.clipped-clear {
    background-color: transparent !important;
    color: #151515;
}

.aim-job-button.button-clipped.clipped-clear {
    display: block;
    text-decoration: none;
    text-align: center;
}

.button-clipped.clipped-clear:hover {
    background-color: #151515 !important;
    color: white;
}

.button-clipped.clipped-clear:hover svg path {
    stroke: white;
}

.aim-job-load-more {
    margin-top: 50px;
    width: 200px;
    text-align: center;
    text-decoration: none;
}

.clipped-application {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    width: 178px;
    text-align: center;
}

.clipped-application svg {
    margin-left: 10px;
}

/* ========================================
   Single Job — Breadcrumb and Layout
======================================== */

.job-breadcrumb {
    padding: 40px 0;
    border-bottom: solid 1px var(--Core, #CCC);
    margin-bottom: 100px;
    margin-top: 80px;
}

.breadcrumb-container {
    max-width: 1396px;
    margin: auto;
}

.back-to-careers {
    color: var(--Black, #151515);
    font-family: Barlow;
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
}

.back-to-careers svg {
    margin-right: 15px;
}

.job-grid {
    max-width: 1396px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
}

.job-sidebar {
    grid-column: 1 / span 3;
}

.job-details {
    grid-column: 5 / span 8;
}

/* ========================================
   Single Job — Content
======================================== */

h1.aim-job-position {
    color: var(--Black, #151515);
    font-family: "Big Shoulders";
    font-size: 46px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
}

h2.job-section-title,
h4.job-section-title {
    color: var(--Dark, #222);
    font-family: "Big Shoulders";
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
}

h2.job-section-title {
    margin-bottom: 10px;
}

.aim-job-section {
    margin-top: 50px;
}

div.job-paragraph,
div.job-paragraph p {
    color: var(--Core-Gray, #666);
    font-family: Barlow;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
}

.job-overview {
    padding-bottom: 50px;
    border-bottom: solid 1px var(--Core, #CCC);
}

.job_application {
    padding-top: 50px;
}

/* ========================================
   Single Job — Sidebar
======================================== */

.sidebar-details {
    background: var(--Core-Lighter, #F8F8F8);
    padding: 40px;
}

.sidebar-details a {
    width: 100%;
}

.sidebar-title {
    color: var(--Dark, #222);
    font-family: "Big Shoulders";
    font-size: 30px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
}

.sidebar-details p {
    color: var(--Dark, #222);
    font-family: Barlow;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    padding: 10px 0;
    margin: 0;
}

.sidebar-details p:nth-of-type(2) {
    border-top: solid 1px var(--Core, #CCC);
    border-bottom: solid 1px var(--Core, #CCC);
}

/* ========================================
   Single Job — Related Jobs
======================================== */

.aim-related-jobs {
    margin-top: 60px;
}

.aim-related-job-content {
    border: 1px solid var(--Core, #CCC);
    margin-bottom: 10px;
    padding: 30px 30px 20px;
    position: relative;
}

.aim-related-job-content svg {
    position: absolute;
    right: 14px;
    top: 14px;
}

.aim-related-job:hover > .aim-related-job-content{
    background: var(--Core-Lighter, #F8F8F8); 
}

.aim-related-job-content h5 {
    color: var(--Black, #151515);
    font-family: "Big Shoulders";
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    border-top: none;
}

.aim-related-job-content p {
    color: var(--Black, #151515);
    font-family: Barlow;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
}

/* ========================================
   Single Job — Anniversary
======================================== */

.job-anniversary {
    margin-top: 60px;
}

.job-anniversary p {
    margin: 10px 0;
    color: var(--Dark, #222);
    font-family: Barlow;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
}

.job-anniversary a {
    width: 100%;
}

/* ========================================
   Responsive — All overrides after base rules
======================================== */

@media (max-width: 992px) {
    .aim-jobs-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .job-breadcrumb {
        padding: 30px;
    }

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

    .job-details {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 30px;
    }

    .job-sidebar {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 30px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .job-anniversary {
        display: none;
    }

    .aim-related-jobs {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .aim-jobs-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .aim-job-filters {
        grid-template-columns: 1fr 1fr;
    }

    .aim-filter-field:first-child {
        grid-column: 1 / -1;
    }

    .job-sidebar {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .aim-jobs-list {
        grid-template-columns: 1fr;
    }

    .aim-job-filters {
        grid-template-columns: 1fr;
    }

    .aim-filter-field:first-child {
        grid-column: auto;
    }
}
