.faq-container {
    max-width: 100%;
    margin: 2rem auto;
    font-family: inherit;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background-color: #555;
    transition: all 0.3s ease;
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin: 0;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding: 1.25rem 1.25rem 2rem;
    opacity: 1;
    margin-bottom: 0.5rem;
    max-height: min-content;
}

.faq-answer-content {
    padding: 0;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question,
    .faq-answer {
        padding: 1rem;
    }
}
