﻿.careers-content {
    background-color: white;
    overflow: hidden;
}

/*TITLE SECTION*/
.careers-title-container {
    background: linear-gradient(#031b314d,#031b314d),url(/images/careers-480.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .careers-title-container {
        background: linear-gradient(#031b314d,#031b314d),url(/images/careers-768.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

@media (min-width: 992px) {
    .careers-title-container {
        background: linear-gradient(#031b314d,#031b314d),url(/images/careers-992.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

@media (min-width: 1230px) {
    .careers-title-container {
        background: linear-gradient(#031b314d,#031b314d),url(/images/careers-1230.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

@media (min-width: 1920px) {
    .careers-title-container {
        background: linear-gradient(#031b314d,#031b314d),url(/images/careers-1920.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/*CAREERS SECTION*/
.careers-section {
    padding: 100px var(--padding-xm);
}

    .careers-section .cae-dots-wrapper {
        margin-bottom: 16px;
    }

@media (min-width: 768px) {
    .careers-section {
        padding: 100px var(--padding-sm);
    }
}

@media (min-width: 1230px) {
    .careers-section {
        padding: 150px var(--padding-sm);
    }
}

@media (min-width: 1400px) {
    .careers-section {
        padding: 150px var(--padding-md);
    }
}

@media (min-width: 1920px) {
    .careers-section {
        padding: 150px var(--padding-xl);
    }
}


/*OPENED VACANCIES*/
.opened-vacancies h2 {
    font-size: 28px;
    line-height: 42px;
    font-weight: bold;
    margin-bottom: 24px;
}

.vacancy-teams-chips {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--padding-xm) * -1) 40px;
    padding: 0 var(--padding-xm);
}

    .vacancy-teams-chips::-webkit-scrollbar {
        display: none;
    }

.team-chips {
    font-size: 18px;
    line-height: 30px;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 32px;
    border-radius: 21px;
    background-color: var(--bg-theme-light-color);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

    .team-chips.active {
        color: white;
        background-color: var(--text-hover-color);
    }

    .team-chips:hover {
        background-color: var(--button-hover-color);
        color: white;
    }

    .team-chips:not(.active):not(:hover) .team-count {
        color: var(--text-hover-color);
    }

    .team-chips span {
        user-select: none;
    }

.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: height 0.4s ease;
}

.vacancy-card {
    padding: 24px;
    border: 1px solid #3335431a;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.85);
    animation-name: fadeIn;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
    animation-delay: var(--delay, 0ms);
    overflow: hidden;
    transition: background-color 0.4s ease-out;
}

    .vacancy-card.hidden {
        display: none;
    }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vacancy-card a::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
}

.vacancy-card:hover {
    background-color: var(--bg-theme-light-color);
}

.vacancy-title h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 24px;
}

.vacancy-description {
    font-size: 18px;
    margin-bottom: 24px;
}

    .vacancy-description p {
        margin-bottom: 0;
    }

        .vacancy-description p strong {
            font-weight: normal;
        }

.vacancy-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: auto;
    line-height: 20px;
}

.vacancy-arrow {
    width: 18px;
    height: 17px;
    background-image: url(/images/arrow-right.svg);
}

.vacancy-card:hover .vacancy-arrow {
    background-image: url(/images/arrow-right-hl.svg);
}

@media (min-width: 768px) {
    .opened-vacancies h2 {
        font-size: 38px;
        line-height: 42px;
    }

    .vacancy-teams-chips {
        margin: 0 calc(var(--padding-sm) * -1) 40px;
        padding: 0 var(--padding-sm);
    }

    .vacancy-title h4 {
        font-size: 24px;
    }

    .vacancy-card {
        padding: 32px;
    }
}

@media (min-width: 1230px) {
    .vacancies-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (min-width: 1400px) {
    .vacancy-teams-chips {
        margin: 0 calc(var(--padding-md) * -1) 40px;
        padding: 0 var(--padding-md);
    }
}

@media (min-width: 1920px) {
    .vacancy-teams-chips {
        margin: 0 calc(var(--padding-xl) * -1) 40px;
        padding: 0 var(--padding-xl);
    }
}

/*HOW TO JOIN SECTION*/
.how-to-join-section {
    background-color: var(--bg-theme-dark-color);
    color: white;
}

    .how-to-join-section h2 {
        font-size: 28px;
        line-height: 42px;
        font-weight: bold;
        margin-bottom: 80px;
    }

.how-to-join-steps {
    display: grid;
    grid-template-rows: repeat(4, 1fr) auto;
    grid-template-columns: auto 1fr;
    margin-bottom: 45px;
}

.step-badge {
    height: 58px;
    width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 29px;
    font-size: 24px;
    font-weight: bold;
    position: relative;
}

    .step-badge.blue {
        background-color: var(--blue-theme-color);
    }

    .step-badge.purple {
        background-color: var(--purple-theme-color);
    }

    .step-badge.green {
        background-color: var(--green-theme-color);
    }

.badge-container {
    position: relative;
}

.badge-line {
    width: 100%;
    height: 100%;
    border-right: 1px solid #ffffff29;
    left: -50%;
    position: absolute;
    z-index: 0;
}

.step-desc {
    font-size: 18px;
    line-height: 30px;
    padding-left: 24px;
}

.how-to-join-details {
    font-size: 18px;
    line-height: 30px;
    color: #ffffff80;
}

.step-desc:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

@media (min-width: 768px) {
    .how-to-join-section h2 {
        font-size: 38px;
    }
}

@media (max-width: 1229px) {
    .step-desc:not(:last-child) {
        min-height: 138px;
    }
}

@media (min-width: 1230px) {
    .how-to-join-steps {
        grid-template-rows: 1fr auto max-content;
        grid-template-columns: repeat(5, 1fr);
    }

    .how-to-join-section {
        min-height: calc(100vh - 58px);
    }

    .badge-container {
        grid-row: 2;
    }

    .badge-line {
        border-bottom: 1px solid #ffffff29;
        border-right: none;
        left: 0;
        top: -50%;
    }

    .step-desc {
        padding-left: 0;
    }

        .step-desc:nth-child(4n + 2) {
            grid-row: 3;
            padding-top: 24px;
        }

        .step-desc:nth-child(4n + 4) {
            padding-bottom: 24px;
            display: flex;
            align-items: end;
        }

        .step-desc:nth-child(2) {
            grid-column: 1;
        }

        .step-desc:nth-child(4) {
            grid-column: 2;
            max-width: 364px;
        }

        .step-desc:nth-child(6) {
            grid-column: 3;
            max-width: 270px;
        }

        .step-desc:nth-child(8) {
            grid-column: 4;
            max-width: 270px;
        }

        .step-desc:nth-child(10) {
            grid-column: 5;
            text-align: right;
        }

    .badge-container:nth-child(1) {
        margin-right: calc(-25% + 14.5px);
    }

    .badge-container:nth-child(3),
    .step-desc:nth-child(4) {
        margin-left: calc(25% - 14.5px);
        margin-right: calc(-50% + 29px);
    }

    .badge-container:nth-child(5),
    .step-desc:nth-child(6) {
        margin-left: calc(50% - 29px);
        margin-right: calc(-75% + 43.5px);
    }

    .badge-container:nth-child(7),
    .step-desc:nth-child(8) {
        margin-left: calc(75% - 43.5px);
        margin-right: calc(-100% + 58px);
    }

    .badge-container:nth-child(9) {
        display: flex;
        justify-content: end;
    }
}

/*NO SUITABLE SECTION*/
.no-suitable-container h2 {
    font-size: 28px;
    line-height: 42px;
    font-weight: bold;
    margin-bottom: 32px;
}

.no-suitable-container p {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 0;
}

.no-suitable-container {
    padding: 100px var(--padding-xm) 24px;
}

.apply-form {
    padding: 64px var(--padding-xm) 60px;
}

.animation-container {
    display: none;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.animation-cv {
    height: 327px;
    width: 327px;
}

@media (min-width: 768px) {
    .no-suitable-container {
        padding: 100px var(--padding-sm) 32px;
    }

        .no-suitable-container h2 {
            font-size: 38px;
            line-height: 48px;
            margin-bottom: 26px;
        }

    .apply-form {
        padding: 60px var(--padding-sm);
    }
}

@media (min-width: 992px) {
    .no-suitable-container {
        padding: 100px var(--padding-sm) 50px;
    }
}

@media (min-width: 1230px) {
    .no-suitable-container h2 {
        margin-bottom: 20px;
    }

    .no-suitable-container {
        display: flex;
        flex-direction: column;
        padding: 138px var(--padding-sm) 60px;
    }

    .no-suitable-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .apply-form {
        padding: 138px var(--padding-sm);
    }

    .animation-container {
        display: flex;
    }
}

@media (min-width: 1400px) {
    .no-suitable-container h2 {
        margin-bottom: 34px;
    }

    .no-suitable-container {
        padding: 138px var(--padding-md) 34px;
    }

    .apply-form {
        padding: 138px var(--padding-md);
    }

    .animation-cv {
        height: 443px;
        width: 443px;
    }
}

@media (min-width: 1920px) {
    .no-suitable-container {
        padding: 138px var(--padding-xl) 34px;
    }

    .apply-form {
        padding: 138px var(--padding-xl);
    }
}