/*--------------------------------------------------------------
# Card
--------------------------------------------------------------*/

.card {
    max-width: 100%;
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 1.5rem;
}


@media (max-width: 1200px) {

    .card {
        padding: 1.25rem;
    }

}

@media (max-width: 992px) {

    .card {
        padding: 1.25rem;
    }

}




/*--------------------------------------------------------------
# Card utility classes
--------------------------------------------------------------*/

.card.no-padding {
    padding: 0;
}


/*--------------------------------------------------------------
# Cards wrapper general
--------------------------------------------------------------*/

/* Cards wrapper utility classes */

.cards-wrapper:not(:last-of-type) .card.bottom {
    margin-bottom: 5rem;
}


/*--------------------------------------------------------------
# Card variants
--------------------------------------------------------------*/

.card.bg-lightred {
    background: var(--lightred);
}
.card.bg-darkblue {
    background: var(--dark-blue);
}
.card.bg-silver {
    background: var(--silver);
}
.card.bg-none {
    background: none;
}

.card.has-shadow {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}


/* Card text variations */

.card.text-white,
.card.text-white {
    color: #FFFFFF;
}


/* Card with arrow icon between */

.card.has-arrow-right {
    position: relative;
}
.card.has-arrow-right:before,
.card.has-arrow-right:after {
    content: ' ';
    display: block;
    position: absolute;
    right: -40px;
    top: 50%;
    z-index: 24;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background-color: #9c0e38;
}

.card.has-arrow-right:after {
    content: url('/images/svg/arrow-right.svg');
    padding: 16px;
}

.row > div:last-child > .card.has-arrow-right:before,
.row > div:last-child > .card.has-arrow-right:after {
    display: none;
}


/*--------------------------------------------------------------
# Card icon
--------------------------------------------------------------*/

body.ready .card .card-icon {
    transition: 200ms ease-in;
}


.card .card-icon {
    margin-bottom: 1.25rem;
}



.card:not(.static):hover .card-icon.effect-up {
    transform: translateY(-10px);
}


.card .card-icon picture {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 50%;
}
.card .card-icon picture,
.card .card-icon img {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    border-radius: 50%;
}

.card .card-icon.bg-white {
    background: #FFFFFF;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
}

.card .card-icon.centered {
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}
.card .card-icon.centered picture,
.card .card-icon.centered svg,
.card .card-icon.centered img {
    display:  block;
}
.card .card-icon.align-right picture,
.card .card-icon.align-right svg,
.card .card-icon.align-right img {
    margin-left: auto;
    display: block;
}


/* Card icon sizes */
.card .card-icon.extra-small picture,
.card .card-icon.extra-small svg,
.card .card-icon.extra-small img {
    width: 2rem;
    height: 2rem;
}

.card .card-icon.small picture,
.card .card-icon.small svg,
.card .card-icon.small img {
    width: 3rem;
    height: 3rem;
}
.card .card-icon.medium picture,
.card .card-icon.medium svg,
.card .card-icon.medium img {
    width: 5rem;
    height: 5rem;
}
.card .card-icon.large picture,
.card .card-icon.large svg,
.card .card-icon.large img {
    width: 12rem;
    height: 12rem;
}
.card .card-icon.extra-large picture,
.card .card-icon.extra-large svg,
.card .card-icon.extra-large img {
    width: 14rem;
    height: 14rem;
}
.card .card-icon.immense picture,
.card .card-icon.immense svg,
.card .card-icon.immense img {
    width: 18rem;
    height: 18rem;
}

.card .card-icon.immense-xl picture,
.card .card-icon.immense-xl svg,
.card .card-icon.immense-xl img {
    width: 23rem;
    height: 23rem;
}


/* Card icon colors */

.card .card-icon.white {
    fill: #FFFFFF;
}


/* Card icon utility classes */

.card .card-icon.offset-bottom {
    margin-bottom: 3rem;
}

.card .card-icon.pull-top {
    margin-top: -7.5rem;
}
.card .card-icon.pull-left {
    left: 50%;
    position: relative;
    transform: translateX(-6.5rem);
}



/*--------------------------------------------------------------
# Card title
--------------------------------------------------------------*/

.card .card-title,
.card .card-content h3,
.card .card-content h4 {
    font-size: 1.3rem;
    line-height: 1.2em;
}

.card .card-content.heading-large h3,
.card .card-content.heading-large h4 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}


/*--------------------------------------------------------------
# Card content
--------------------------------------------------------------*/

.card-content p {
    font-size: 0.95rem;
}

.card-content.bottom {
    margin-bottom: 2rem;
}
.card-content.centered {
    text-align: center;
}


/*--------------------------------------------------------------
# Card footer
--------------------------------------------------------------*/

.card-footer {
    text-align: center;
}


/*--------------------------------------------------------------
# Card sizes
--------------------------------------------------------------*/

.card-sm {
    width: 375px;
}


/*--------------------------------------------------------------
# Card utility classes
--------------------------------------------------------------*/

.card.left {
    margin-left: auto;
}
.card.bottom {
    margin-bottom: 2rem;
}

.card.full-height {
    height: 100%;
}

.card.spacing-none {
    padding: 0;
}


/*--------------------------------------------------------------
# Job card
--------------------------------------------------------------*/

.job-card {
    border-top-right-radius: 0;
    position: relative;
    display: block;
    transition: 250ms;
    min-height: 20rem;
}
.job-card:not(.overflow) {
    overflow: hidden;
}
.job-card:hover {
    text-decoration: none;
}

.job-card .job-dot {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: var(--silver);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    transition: width 200ms, height 200ms;
}
.job-card .job-dot svg {
    transition: transform 300ms;
    height: 1.35rem;
    width: 1.35rem;
    top: 5px;
    left: 5px;
    transform: scale(0) rotate(0);
    position: relative;
}

.job-card .job-name h2,
.job-card .job-name h3 {
    font-weight: 400;
    width: 90%;
    line-height: 1.2;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.job-card .job-card-info {
    margin: 1.25rem 0;
}
.job-card .job-card-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-card .job-card-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.job-card .job-card-info ul li p {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #666666;
}
.job-card .job-card-info svg {
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.5rem;
    fill: #666666;
    vertical-align: text-bottom;
}

.job-card .job-card-description {
    color: #666666;
    font-size: 0.95rem;
}
.job-card .job-card-description p {
    margin-bottom: 0;
}


/* Job empty card */

.job-empty-card {
    grid-column: 1 / 4;
    min-height: auto;
}
.job-empty-card h3 {
    width: 65%;
    margin-bottom: 0;
}


.jobs-cards-wrapper .job-card.min-height {
    min-height: 20rem;
}


/*--------------------------------------------------------------
# Job filter card
--------------------------------------------------------------*/

.jobs-filter-card {
    border-top-left-radius: 0;
    padding: 2rem 1.5rem 1.5rem;
    position: sticky;
    top: 7rem;
    width: 280px;
    display: flex;
    flex-direction: column;
}
.jobs-filter-card.min-height {
    min-height: 30.5rem;
}
.jobs-filter-card form input {
    width: 100%;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--grey-border);
    border-radius: .5rem;
    font-size: 0.9rem;
}

.jobs-filter-card-footer {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 1rem;
}
.jobs-filter-card-footer:not(:first-child) {
    padding-top: 15px;
}
.jobs-filter-card-footer div {
    display: flex;
    align-items: center;
}
.jobs-filter-card-footer p {
    margin-bottom: 0;
    flex-shrink: 0;
}
.jobs-filter-card-footer svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}
.jobs-filter-card-footer .toggle-map-btn {
    cursor: pointer;
}

body.menu-open-job-filters .jobs-filter-card {
    transform: translateY(0);
}


/*--------------------------------------------------------------
# Apply now card
--------------------------------------------------------------*/

.apply-now-card {
    position: sticky;
    top: 6.5rem;
    margin-bottom: 5rem;
    padding: 1.25rem;
    pointer-events: all;
}

.apply-now-card.no-sticky {
    position: static;
}


/* Apply now card header */

.apply-now-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.apply-now-card-header h2 {
    margin-bottom: 0;
}
.apply-now-card-header svg {
    display: none;
}


/*--------------------------------------------------------------
# Job benefit card
--------------------------------------------------------------*/

.job-benefit-card {
    color: #000;
}
.job-benefit-card .card-title h3 {
    font-size: 1.15rem;
    line-height: 1.25em;
}

.job-benefit-card.centered.no-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}


/*--------------------------------------------------------------
# Media querys
--------------------------------------------------------------*/

@media all and (max-width: 1200px) {


    /* Card utility classes */
    .card.left {
        margin-left: 0;
    }




    /* Card sizes */

    .card-sm {
        width: auto;
        max-width: 375px;
    }


}

@media all and (max-width: 992px) {

    /* Jobs filter card */

    .jobs-filter-card {
        min-height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        z-index: 749;
        left: 0;
        width: 100%;
        border-radius: 1rem 1rem 0 0;
        transform: translateY(100%);
        transition: transform 200ms;
        padding-bottom: 4.5rem;
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    }




    /* Card utility classes */

    .card.left {
        margin-left: auto;
        margin-right: auto;
    }

     .apply-now-card.no-sticky {
         position: fixed;
     }

    .card .card-icon.pull-top {
        margin-top: 0;
    }




    /* Card with arrow right icon */

    .card.has-arrow-right:before,
    .card.has-arrow-right:after {
        top: auto;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
        right: 0;
    }




    /* Apply now card */

    .apply-now-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        transform: translateY(100%);
        transition: transform 300ms;
        overflow-y: scroll;
        margin-bottom: 0;
        border-radius: 0;
    }

    .apply-now-card-header svg {
        width: 1.15rem;
        height: 1.15rem;
        display: block;
    }


    body.apply-card-posted .apply-now-card {
        transform: translateY(0);
        top: 0;
    }


    /* Card icon */

    .card .card-icon.immense-xl picture,
    .card .card-icon.immense-xl svg,
    .card .card-icon.immense-xl img {
        width: auto;
        height: auto;
    }

    .card .card-icon.pull-left {
        left: 0;
        transform: none;
    }
    .card .card-icon.pull-left picture {
        margin: 0 auto;
    }



}

@media all and (max-width: 575px) {

    .card .card-icon.medium picture,
    .card .card-icon.medium svg,
    .card .card-icon.medium img {
        width: 4rem;
        height: 4rem;
    }


    /* Card utility classes */

    .card.no-spacing-mobile {
        padding: 0;
    }

    .card.bottom {
        margin-bottom: 2.5rem;
    }



    /* Card icon immense */

    .card .card-icon.immense picture,
    .card .card-icon.immense svg,
    .card .card-icon.immense img {
        width: 12rem;
        height: 12rem;
    }

}
