/**
 * CSS dla FAQ
 * Zapisz ten kod w pliku assets/css/faq-styles.css
 */

 .noctiluca-faq-section {
    margin-bottom: 40px;
}

.noctiluca-faq-section .faq-title {
    margin-bottom: 20px;
}

.noctiluca-faq-container {
    width: 100%;
}

.noctiluca-faq-item {
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.noctiluca-faq-question {
    position: relative;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.noctiluca-faq-question h4 {
    margin: 0;
    padding-right: 30px;
    font-size: 16px;
    font-weight: 600;
}

.noctiluca-faq-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.noctiluca-faq-toggle:before,
.noctiluca-faq-toggle:after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

.noctiluca-faq-toggle:before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.noctiluca-faq-toggle:after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.noctiluca-faq-question.active .noctiluca-faq-toggle:after {
    transform: rotate(90deg);
}

.noctiluca-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.noctiluca-faq-answer.active {
    padding: 0 20px 20px;
    max-height: 1000px; /* Wartość wystarczająco duża, aby pomieścić treść */
}

/* W przypadku kiedy animacja jest wyłączona */
.noctiluca-faq-container[data-animation="false"] .noctiluca-faq-answer {
    transition: none;
}

/* Responsywność */
@media screen and (max-width: 768px) {
    .noctiluca-faq-question {
        padding: 12px 15px;
    }

    .noctiluca-faq-question h4 {
        font-size: 14px;
    }

    .noctiluca-faq-answer {
        padding: 0 15px;
    }

    .noctiluca-faq-answer.active {
        padding: 0 15px 15px;
    }
}
