/* ========================================
   WWW CBT 11 - FAQ
   1rem = 10px
   ======================================== */

.faq-section {
    padding: 3.2rem 6.4rem;
    background: var(--color-white);
}

.faq-container {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

/* Tytuł */

.faq-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600 !important;
    font-size: 2.8rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.042rem !important;
    color: #1F1F1F !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Lista pytań */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* Pojedynczy item */

.faq-item {
    background: #F7F8FB;
    border: 0;
    border-radius: 2rem;
    overflow: hidden;
}

/* Przycisk z pytaniem */

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    width: 100%;
    padding: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    white-space: wrap !important;
}

.faq-question:hover,
.faq-question:focus
{
    background-color: unset !important;
}

.faq-question-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #1F1F1F;
}

.faq-icon {
    flex-shrink: 0;
    color: #1F1F1F;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

/* Odpowiedź */

.faq-answer {
    overflow: hidden;
}

.faq-answer-inner {
    padding: 0 1.6rem 1.6rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #1F1F1F;
}

/* Linki i pliki w odpowiedzi */

.faq-answer-links,
.faq-answer-files {
    margin-top: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.faq-answer-links *,
.faq-answer-files *{
    color:#167FAA !important;

}
    

.faq-link-item,
.faq-file-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #167FAA;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-link-item:hover,
.faq-file-item:hover {
    color: #0e5f80;
    text-decoration: underline;
}

.faq-link-item svg,
.faq-file-item svg {
    flex-shrink: 0;
}

/* Tekst dodatkowy (dół sekcji) */

.faq-footer-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #6B7280;
    text-align: center;
    margin: 0;
}

.faq-footer-text a{
    text-decoration: underline;
    color:#167FAA !important;
}

.faq-footer-text p{
    margin:0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .faq-section {
        padding: 3.2rem 4.8rem;
    }

    .faq-title {
        font-size: 2.6rem !important;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3.2rem 2.4rem;
        background: unset;
    }

    .faq-container {
        gap: 2.4rem;
    }

    .faq-title {
        font-size: 2.2rem !important;
        letter-spacing: -0.033rem;
    }

    .faq-question {
        padding: 2rem;
    }

    .faq-answer-inner {
        padding: 0 2rem 2rem;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 2.4rem 1.6rem;
    }

    .faq-question {
        padding: 1.6rem;
    }

    .faq-answer-inner {
        padding: 0 1.6rem 1.6rem;
    }
}
