.career-hero-section {
    padding-top: 163px;
    position: relative;
    height: 200vh;
    overflow: hidden;
}

.panel {
    width: 100%;
    height: 100vh;
}

.career-hero-section__lines-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.career-hero-section__container {
    position: relative;
    height: 100vh;
}

/* Modal styles */

.career-hero__modal {
    --modal-opacity: 0.7;
    background-color: rgba(254, 254, 254, var(--modal-opacity));
    backdrop-filter: blur(var(--modal-blur, 10px));
    left: 0;
    right: 0;
    bottom: -100vh;
    width: 100%;
    height: 100vh;
    position: absolute;
}

.career-hero__modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.career-hero__modal::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 489px;
    background-image: url("/wp-content/uploads/2025/11/left-block-scaled.webp");
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
}

.career-hero__modal::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 468px;
    background-image: url("/wp-content/uploads/2025/11/rignt-block-scaled.webp");
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
}

@media (max-width: 768px) {
    .career-hero__modal::before {
        background-image: url("/wp-content/uploads/2026/05/career-mobile-bg-top.svg");
        width: 100%;
    }

    .career-hero__modal::after {
        background-image: url("/wp-content/uploads/2026/05/career-mobile-bg-bottom_.webp");
        width: 100%;
        background-position: right;
        z-index: -1;
    }
}

.career-hero__modal-badge {
    position: relative;
    padding: 8px 24px;
    border-radius: 20px;
    margin-bottom: 16px;
    background-color: #fefefe;
    border: 1px solid #e4ebff;
    overflow: hidden;
}

.career-hero__modal-badge::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 340deg, #1629d6 350deg, #1629d6 360deg);
    animation: borderMove 4s linear infinite;
    z-index: 0;
}

.career-hero__modal-badge::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 19px;
    background-color: #fefefe;
    z-index: 1;
}

@keyframes borderMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.career-hero__modal-badge-text {
    color: var(--grey-600, #4f4f4f);
    font-size: 16px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.career-hero__modal-badge-text::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #373cc2;
    border-radius: 50%;
    display: block;
}

.career-hero__modal-content {
    /* padding-top: 305px; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.career-hero__modal-content h1 {
    text-align: center;
    text-wrap: balance;
    max-width: 580px;
    color: var(--black-color);
}

.career-hero__modal-btn {
    margin-top: 16px;
}

.career-hero-bottom-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.career-hero-section__line-text {
    font-family: "Alexandria", sans-serif;
    font-size: clamp(80px, 15vh, 150px);
    line-height: 100%;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #06063c;
    opacity: 1;
    display: flex;
}

.career-hero-section__line-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    white-space: pre;
}
.career-hero-section__line + .career-hero-section__line {
    margin-top: 24px;
}

.career-hero-section__line {
    gap: 24px;
    display: flex;
}
.career-hero-section__line-image {
    box-sizing: border-box;
    border: 1px solid rgba(55, 60, 194, 0.8);
    width: 0%;
    border-radius: 48px;
    height: clamp(80px, 15vh, 150px);
    background: linear-gradient(to left bottom, rgba(150, 154, 242, 1) 0%, rgba(58, 63, 179, 1) 100%);
    display: flex;
    align-items: end;
    justify-content: center;
    opacity: 0;
    overflow: hidden;
    position: relative;
}
.career-hero-section__line-image img {
    width: auto;
    height: clamp(80px, 15vh, 140px);
    object-fit: contain;
    opacity: 1;
    display: block;
}

.career-hero-section__image-block {
    display: none;
}

@media (max-width: 768px) {
    #primary section.career-hero-section {
        padding-top: 192px;
    }

    .career-hero-section__line-text {
        font-size: 50px;
    }

    .career-hero-section__image-block {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        margin-top: 40px;
    }

    .career-hero-section__image-block .career-hero-section__line-image {
        border-radius: 24px;
        max-height: 124px;
        width: 100%;
        border: none;
        opacity: 0;
        transform: translateY(20px);
    }

    .career-hero-section__image-block .career-hero-section__line-image img {
        width: 68px;
        height: 104px;
        object-fit: cover;
    }
    .career-hero-section__lines-list .career-hero-section__line-image {
        display: none;
    }

    .career-hero-section__line + .career-hero-section__line {
        margin-top: 8px;
    }

    .career-hero__modal-content {
        margin-top: 192px;
    }

    .career-hero__modal-content h1 {
        font-size: 44px;
        letter-spacing: 5%;
        line-height: 1.1;
    }

    .career-hero__modal-wrapper {
        display: block;
    }
}
