.jobs {
    width: 70%;
    margin-left: 15%;
    padding-top: 50%;
    padding-bottom: 20%;
}

#jobs-animation {
    scroll-margin-top: 70vh;
}


.job-text {
    font-size: 6vw;
    color: white;
    margin-right: 2%;
    display: block;
}

.job-divider {
    width: 23%;
    height: 2px;
    color: white;
    background: linear-gradient(to right, rgb(124, 75, 250), rgb(255, 67, 135));
}

.looking-for {
    color: white;
    padding-left: 5%;
    font-size: 2vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
}

.accordion-radio {
    display: none;
}

.position {
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50px;
    padding: 20px;
    border: 1px solid white;
    position: relative;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
}

.no-positions {
    font-size: 2vw;
    color: white;
    text-align: center;
}

.arrow {
    width: 5% !important;
    transition: transform 0.3s ease;
}

.accordion-radio:checked+.position-header .arrow {
    transform: rotate(180deg);
}

.position-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-radio:checked~.position-description {
    max-height: 2000px;
    /* Adjust based on max expected content height */
}

.position-name {
    background: linear-gradient(to right, #7e4eff, #ff4185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2%;
    font-size: 1.6rem;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-top: 20px;
}

.text-content {
    width: 50%;
    margin-left: 2%;
}

.image-content {
    width: 20%;
    margin-left: 10%;
}

.apply-button {
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    background: url('../assets/ourprojects.png');
    background-size: cover;
    background-position: center;
    color: white;
    border: none;
    padding: 2% 7% 2% 7%;
    cursor: pointer;
    border-color: 1px white;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.image-container {
    position: relative;
}

.crew-count {
    margin: auto;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.crew-count span {
    font-size: 1vw;
}

.crew-count-inner {
    background: url('../assets/icon number.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 30%;
    text-align: center;
    width: fit-content;
    position: relative;
    display: flex;
    flex-direction: row;
    font-size: 1vw;
}

.crewmates-box {
    position: relative;
}

.crew-count-inner-text {
    background: conic-gradient(#ff4185, #7e4eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2vw;
    font-weight: bold;
    width: fit-content;
}

.job-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.jobs-animation {
    opacity: 0;
    transform: translateX(-360px);
    filter: blur(5px);
    transition: all 0.8s ease;
}

.jobs-animation.animated {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

@media (max-width: 1024px) {
    #jobs-animation {
        scroll-margin-top: 50vh;
    }
}

@media (max-width: 970px) {
    .job-header {
        flex-direction: column;
        align-items: center;
    }

    .looking-for {
        margin-top: 5%;
        font-size: 0.9rem;
        text-align: center;
        margin-left: 0;
        padding-left: 0;
    }

    .text-content {
        width: 100%;
        font-size: 1rem;
        text-align: center;
    }

    .image-content {
        display: none;
    }

    .position-name {
        font-size: 1rem;
    }

    .text-content p {
        font-size: 1rem;
    }

    .apply-button {
        font-size: 1rem;
    }

    .arrow {
        width: 20px;
        height: 20px;
    }

    .image-container {
        text-align: center;
    }

    .crew-count-inner-text {
        font-size: 1.2rem;
    }

    .close-button {
        top: 5px;
        right: 5px;
        font-size: 1rem;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 450px) {
    .no-positions {
        font-size: 3vw;
    }

    .jobs {
        width: 90%;
        margin-left: 5%;
        padding-top: 70%;
    }

    .position {
        padding: 10px;
    }
}