.stages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 80px 16px;
}

.stages-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
}

.stages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stages-container h2 {
    text-align: center;
    color: var(--dark);
    font-family: 'Gilroy', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.stages-container h2 .stages-title-break {
    display: block;
}

@media (max-width: 767px) {
    .stages-container h2 .stages-title-break {
        display: inline;
    }
}

.stages-list-item-puzzle {
    display: block;
    width: 100%;
    max-width: 243px;
    height: auto;
}

.stages-list-item-header {
    display: flex;
    width: 100%;
    position: relative;
    text-decoration: none;
    color: var(--dark);
    text-align: start;
    border-bottom: 1px solid var(--light-gray);
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    justify-content: flex-start;
    padding: 24px 16px;
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    transition: background-color 0.3s ease;
}

.stages-list-item-header::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    background-image: url('/wp-content/themes/akdev/assets/icons/btn-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.3s ease, filter 0.3s ease;
}

@media (min-width: 768px) {
    .stages-list-item-header:not(.active):hover::after {
        transform: translateY(-50%) rotate(0deg);
        filter: brightness(0) invert(1);
    }
}

.stages-list-item-header.active {
    background-color: var(--lazure-green);
    color: var(--white);
}

.stages-list-item-header:hover {
    background-color: var(--lazure-green);
    color: var(--white);
}

.stages-list-item-header:not(.active):hover::after {
    filter: brightness(0) invert(1);
}

.stages-list-item-header.active::after {
    transform: translateY(-50%) rotate(0deg);
    filter: brightness(0) invert(1);
}

.stages-list-item-body {
    display: none;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.stages-list-item-body.active {
    display: flex;
} 

.stages-list-item-body-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;

    & h3 {
        color: var(--dark);
        font-family: 'Gilroy', sans-serif;
        font-size: 24px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }

    & span {
        color: var(--gray);
        font-family: 'Gilroy', sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }

    & .experience-badge-content span{
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .stages-container {
        align-items: flex-start;
    }

    .stages-container h2 {
        font-size: 40px;
        text-align: start;
    }

    .stages-list-item-body {
        flex-direction: row;
    }

    .stages-list-item-body-content {
        max-width: 65%;
        
        & span {
            font-size: 18px;
        }
    }

    .stages-list-item-body.active {
        padding: 24px 16px;
    }
}

@media (min-width: 992px) {
    .stages-container {
        padding: 80px 20px;
    }

    .stages-content {
        flex-direction: row;
        gap: 40px;
    }

    .stages-list {
        width: 50%;
        flex-shrink: 0;
        max-width: 440px;
    }

    .stages-list-content {
        width: 50%;
        display: flex;
        padding: 0;
        align-items: flex-start;
        min-height: 1px;
    }

    .stages-list-content:empty {
        display: flex;
    }

    .stages-list-item {
        width: 100%;
    }

    .stages-list-item .stages-list-item-body {
        display: none !important;
    }

    .stages-list-content .stages-list-item-body {
        display: flex !important;
        padding: 0;
        width: 100%;
    }

    .stages-list-item-body.active {
        flex-direction: column;

        & .stages-list-item-body-content {
            max-width: 100%;
            padding: 0;
        }
    }
}

@media (min-width: 1200px) {
    .stages-container {
        padding: 80px 120px;
    }

    .stages-container h2 {
        font-size: 56px;
    }

    .stages-content {
        gap: 100px;
    }

    .stages-list-item-header {
        font-size: 24px;
    }

    .stages-list-item-body-content h3 {
        font-size: 32px;
    }
}