/*
 * Plik: electra-faq-style.css
 * Opis: Style dla rozwijanej sekcji FAQ.
 */

.el-faq-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}
.el-faq-main-title {
    text-align: center;
    color: #1a1a1a;
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: 700;
}
.el-faq-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.el-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    transition: background-color 0.2s;
}
.el-faq-question:hover {
    background-color: #f5f5f5;
    color: #d32f2f;
}
.el-faq-toggle-icon {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s;
    color: #d32f2f;
}

/* Stan aktywny (po kliknięciu) */
.el-faq-item.active .el-faq-question {
    background-color: #fff8f8;
    color: #d32f2f;
}
.el-faq-item.active .el-faq-toggle-icon {
    transform: rotate(45deg);
    color: #d32f2f;
}
.el-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background-color: #fafafa;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.el-faq-answer p {
    margin: 15px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}
.el-faq-item.active .el-faq-answer {
    max-height: 500px; 
    padding: 15px 20px;
}