@keyframes showContent {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hideContent {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.accordion-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    width: 100%;
}

.accordion-item {
    display: grid;
    grid-auto-columns: 100%;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    transition: height 0.3s ease;
}

.accordion-heading {
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: #fff7f1;
}

.accordion-button {
    border: 2px solid var(--color-primary-hover);
    width: 100%;
    font-size: 40px;
    border-radius: 5px;
    background: transparent;
    color: var(--color-primary-hover);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 50px;
    text-align: left;
    cursor: pointer;
}

.bars {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    aspect-ratio: 1/1;
}

.bars .bar {
    width: 100%;
    height: 2px;
    background: var(--color-primary-hover);
}

.bars .bar:first-child {
    position: absolute;
    top: calc(50% - 1px);
    left: 0;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.open .bar:first-child {
    transform: rotate(0);
}

.accordion-content {
    width: calc(100% - 10px);
    padding: 0 10px 10px;
    margin: 0 5px;
    border: 2px solid var(--color-primary);
    border-top: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    transform-origin: top center;
    animation: none;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.open .accordion-content {
    animation: showContent 0.3s forwards;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.accordion-content-inner {
    border: 2px solid var(--color-primary-hover);
    border-top: none;
    padding: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

@media screen and (max-width: 1024px) {
    .accordion-button {
        font-size: 30px;
        padding: 10px 30px;
    }

    .bars {
        height: 30px;
        width: 30px;
    }
}
