.image-with-card {
    position: relative;
    z-index: 1;
}

.card:not([class*=card-outline-]) {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

.card {
    border-radius: .3rem;
    margin-bottom: 50px;
    font-weight: 400;
    position: relative;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0;
}

.card-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card .card-body .card-title {
    color: #006687;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: .75rem;
}

.image-with-card .bg-image {
    height: 606px;
    background-position: left center;
    margin-top: -90px;
    margin-bottom: -250px;
    z-index: -1;
    position: relative;
    background-repeat: no-repeat;
}

.image-with-card .bg-image + .container {
    margin-bottom: 150px;
}

@media (max-width: 768px) {
    .image-with-card .bg-image {
        background-position: center;
        margin-bottom: -70px;
    }

    .image-with-card .bg-image:before {
        display: none;
    }

    .image-with-card .bg-image + .container {
        margin-bottom: 50px;
    }
}

.image-with-card .card {
    width: 80%;
    max-width: 420px;
    left: 40%;
    padding: 1em 3em;
}

@media (max-width: 768px) {
    .image-with-card .card {
        text-align: center;
    }
}

.image-with-card .card h4.card-title {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.25;
}

@media (max-width: 600px) {
    .image-with-card .card h4.card-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .image-with-card .card {
        width: 100%;
        max-width: 100% !important;
        left: 0 !important;
        padding: inherit;
    }
}

/*Clients page*/
.page-template-page-clients .image-with-card {
    margin: 100px 0 140px 0;
}

@media (max-width: 768px) {
    .page-template-page-clients .image-with-card {
        margin: 100px 0 50px 0;
    }
}

.page-template-page-clients .image-with-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: var(--color-yellow);
    top: 130px;
    right: 80px;
    z-index: 0;
}

.page-template-page-clients .image-with-card::after {
    content: "";
    position: absolute;
    width: 214px;
    height: 214px;
    background-color: var(--color-primary);
    opacity: 0.8;
    top: 240px;
    right: 0;
    z-index: 0;
}

@media (max-width: 768px) {
    .page-template-page-clients .image-with-card::before,
    .page-template-page-clients .image-with-card::after {
        display: none;
    }
}

.page-template-page-clients .image-with-card .background-section {
    margin-top: -30px;
    margin-bottom: -350px;
}

@media (max-width: 768px) {
    .page-template-page-clients .image-with-card .background-section {
        margin-bottom: -100px;
    }
}

.page-template-page-clients .image-with-card .card {
    max-width: 460px;
    left: 36%;
    z-index: 1;
}

/*Candidates page*/
.page-template-page-candidates .image-with-card {
    margin: 100px 0 140px 0;
}

@media (max-width: 768px) {
    .page-template-page-candidates .image-with-card {
        margin: 100px 0 50px 0;
    }
}

@media (max-width: 768px) {
    .page-template-page-candidates .image-with-card::before,
    .page-template-page-candidates .image-with-card::after {
        display: none;
    }
}

.page-template-page-candidates .image-with-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: var(--color-yellow);
    top: 130px;
    right: 80px;
    z-index: 0;
}

.page-template-page-candidates .image-with-card::after {
    content: "";
    position: absolute;
    width: 214px;
    height: 214px;
    background-color: var(--color-primary);
    opacity: 0.8;
    top: 240px;
    right: 0;
    z-index: 0;
}

.page-template-page-candidates .image-with-card .background-section {
    margin-bottom: -350px;
}

@media (max-width: 768px) {
    .page-template-page-candidates .image-with-card .background-section {
        margin-bottom: -150px;
    }
}

.page-template-page-candidates .image-with-card .card {
    max-width: 640px;
    left: 39%;
    z-index: 1;
}

@media (max-width: 1200px) {
    .page-template-page-candidates .image-with-card .card {
        left: 25%;
    }
}

/*Candidates Services Page*/
.page-template-page-candidates-services .image-with-card {
    margin: 15.625rem 0 8.75rem 0;
}

@media (max-width: 768px) {
    .page-template-page-candidates-services .image-with-card {
        margin: 100px 0 50px 0;
    }
}

.page-template-page-candidates-services .image-with-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: var(--color-yellow);
    top: 130px;
    right: 80px;
    z-index: 0;
}

.page-template-page-candidates-services .image-with-card::after {
    content: "";
    position: absolute;
    width: 214px;
    height: 214px;
    background-color: var(--color-primary);
    opacity: 0.8;
    top: 240px;
    right: 0;
    z-index: 0;
}

@media (max-width: 768px) {
    .page-template-page-candidates-services .image-with-card::before,
    .page-template-page-candidates-services .image-with-card::after {
        display: none;
    }
}


.page-template-page-candidates-services .image-with-card .background-section {
    margin-bottom: -350px;
}

@media (max-width: 768px) {
    .page-template-page-candidates-services .image-with-card .background-section {
        margin-bottom: -150px;
    }
}

.page-template-page-candidates-services .image-with-card .card {
    max-width: 640px;
    left: 39%;
    z-index: 1;
}

@media (max-width: 1200px) {
    .page-template-page-candidates-services .image-with-card .card {
        left: 25%;
    }
}

/*Join Us Page*/

.page-template-page-join-us .image-with-card {
    margin-top: 5rem; /* rem(80) */
    margin-bottom: 16.875rem; /* rem(270) */
}

.page-template-page-join-us .image-with-card .bg-image {
    margin-bottom: -27.5rem; /* rem(-440) */
}

.page-template-page-join-us .image-with-card .bg-image::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    background-color: var(--color-pink);
    top: 290px;
    right: 80px;
    z-index: 0;
}

.page-template-page-join-us .image-with-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: var(--color-yellow);
    top: 35px;
    right: 80px;
    z-index: -1;
}

.page-template-page-join-us .image-with-card::after {
    content: "";
    position: absolute;
    width: 214px;
    height: 214px;
    background-color: var(--color-secondary);
    top: 140px;
    right: -45px;
    z-index: -1;
}

@media (max-width: 768px) {
    .page-template-page-join-us .image-with-card::after {
        display: none;
    }
}

/* Modifier */

.page-template-page-join-us .image-with-card.with-animated-title {
    margin-top: 11rem;
}

.page-template-page-join-us .image-with-card.with-animated-title .card {
    padding: 0;
    padding-top: 0.625rem; /* rem(10) */
}

/* 1200px */


/* 768px */

@media (max-width: 768px) {
    .page-template-page-join-us .image-with-card {
        margin-bottom: 5rem; /* rem(80) */
    }

    .page-template-page-join-us .image-with-card .bg-image {
        display: none;
    }
}

/*Homepage*/
.page-template-page-home .card {
    width: 80%;
    max-width: 420px;
    left: 40%;
    padding: 1em 3em;
}

.page-template-page-home .join-us:before,.page-template-page-home .join-us:after{
    content: '';
    position: absolute;
    mix-blend-mode: multiply;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-template-page-home .join-us:before,.page-template-page-home .join-us:after{
        display: none;
    }
}

.page-template-page-home .join-us:before{
    right: 80px;
    top: 90px;
    height: 150px;
    width: 150px;
    background-color: #fedb00;
}

.page-template-page-home .join-us:after{
    right: 0;
    top: 190px;
    height: 214px;
    width: 130px;
    background-color: #009191;
}

.page-template-page-home .card h4 {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .page-template-page-home .card {
        width: 100%;
        max-width: 100%;
        left: 0;
        padding: inherit;
    }
}
