@import '../css/banner.css';

.faq-section {
    max-width: 800px;
    margin: 4rem auto 2rem;
    padding: 1rem;
}

.faq-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    font-size: 1.125rem;
    padding: .75rem 0 0;
}

.faq-item.active .faq-answer {
    max-height: fit-content;
    opacity: 1;
    margin-top: 0.5rem;
}