/* assets/css/faq.css */

.faq-ftr {
    background-color: var(--c2);
}

.faq-ftr.nl-section h2 {
    color: var(--cw);
    max-width: 600px;
    width: calc( 100% - 40px);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    width: calc( 100% - 40px);
}

.faq-item {
    background: #fff;
    margin-bottom: 1rem;
    border: 1px solid var(--c1);
    overflow: hidden;
}

.faq-item dt {
    margin: 0;
}

.faq-item dd {
    margin: 0;
}

.faq-question {
    margin: 0;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--c1);
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    user-select: none;
}

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

.faq-question:focus {
    outline: 2px solid var(--c1);
}

.faq-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--c1);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 1.5rem 1.5rem 1.5rem;
    color: var(--c1);
    line-height: 1.6;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-ftr {
        padding: 3rem 0;
    }

    .faq-ftr__title {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem 2.5rem 1rem 1rem;
    }

    .faq-icon {
        right: 1rem;
    }

    .faq-answer-content {
        padding: 0 1rem 1rem;
    }
}