.faq-container-97999d97 {
    margin: 0 auto;
    font-family: inherit;
}

.faq-container-97999d97 .faq-main-title {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 50px;
    margin-top: 0;
}

.faq-accordion-97999d97 {
    display: flex;
    flex-direction: column;
}

.faq-accordion-97999d97 .faq-item {
    border-top: 1px solid #e2e8f0;
    transition: margin 0.5s ease-in-out;
}

.faq-accordion-97999d97 .faq-item.active {
    margin: 15px 0;
    border-top-color: transparent;
}

/* Ensure adjacent items don't have double borders when spaced */
.faq-accordion-97999d97 .faq-item + .faq-item.active,
.faq-accordion-97999d97 .faq-item.active + .faq-item {
     border-top-color: #e2e8f0; 
}


.faq-accordion-97999d97 .faq-item:last-child {
    border-bottom: 1px solid #e2e8f0;
}
.faq-accordion-97999d97 .faq-item.active:last-child {
    border-bottom-color: transparent;
}

.faq-accordion-97999d97 .faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 30px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    color: #1e293b;
    transition: color 0.3s ease;
}

.faq-accordion-97999d97 .faq-question:focus {
    outline: none;
}

.faq-accordion-97999d97 .faq-question-text {
    padding-right: 20px;
}

.faq-accordion-97999d97 .faq-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    border: 1px solid #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-accordion-97999d97 .faq-icon-line {
    position: absolute;
    background-color: #64748b;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.faq-accordion-97999d97 .faq-icon-horizontal {
    width: 12px;
    height: 1px;
}

.faq-accordion-97999d97 .faq-icon-vertical {
    width: 1px;
    height: 12px;
}

.faq-accordion-97999d97 .faq-item.active .faq-icon-vertical {
    transform: rotate(90deg);
    opacity: 0;
}
.faq-accordion-97999d97 .faq-item.active .faq-icon-wrapper {
    transform: rotate(180deg);
    transition: transform 0.5s ease-in-out;
}


/* New implementation for bottom-up fade during slide up */
.faq-accordion-97999d97 .faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: grid-template-rows;
}

.faq-accordion-97999d97 .faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-accordion-97999d97 .faq-answer-inner {
    overflow: hidden;
}

.faq-accordion-97999d97 .faq-answer {
    padding: 0 0 30px 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
    
    /* Create a mask that fades out at the bottom as it moves up */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 100%);
    -webkit-mask-size: 100% 200%;
    mask-size: 100% 200%;
    -webkit-mask-position: top;
    mask-position: top;
    
    /* Pull content slightly down when closed to emphasize the bottom boundary hit */
    transform: translateY(10px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                -webkit-mask-position 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                mask-position 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When closed, shift the mask down so the bottom of the text fades into transparency */
.faq-accordion-97999d97 .faq-item:not(.active) .faq-answer {
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}

.faq-accordion-97999d97 .faq-item.active .faq-answer {
    transform: translateY(0);
}

.faq-accordion-97999d97 .faq-answer p {
    margin-top: 0;
}

.faq-accordion-97999d97 .faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .faq-container-97999d97 .faq-main-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    .faq-accordion-97999d97 .faq-question {
        font-size: 20px;
        padding: 20px 0;
    }
    .faq-accordion-97999d97 .faq-answer {
        padding: 0 0 20px 0;
    }
}
