/* Plik: css/faq.css */

.faq-container {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question i {
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.faq-answer {
    /* Domyślnie ukryta odpowiedź */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    margin: 0;
    padding: 0 1rem 1.5rem 0;
    color: var(--text-dark);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--accent-secondary);
    font-weight: bold;
}

/* Style dla aktywnego (rozwiniętego) elementu */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Ustawiamy wystarczająco dużą wysokość */
    transition: max-height 0.5s ease-in;
}