/**
 * TP FAQ — accordion styles
 *
 * Dark background is set on the Elementor container, not the widget.
 *
 * @package Technoproekt
 * @author  Kkalganov <https://kkalganov.com>
 */

/* ==========================================================================
   Section header (dark variant)
   ========================================================================== */

.tp-faq .tp-section-hdr--dark {
    margin-bottom: 48px;
}

.tp-faq .tp-section-hdr__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tp-yellow);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.tp-faq .tp-section-hdr__label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--tp-yellow);
}

.tp-faq .tp-section-hdr__title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--tp-white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   FAQ list
   ========================================================================== */

.tp-faq__list {
    max-width: 900px;
}

.tp-faq__item {
    border-bottom: 1px solid var(--tp-white-10);
}

/* ==========================================================================
   Question button
   ========================================================================== */

.tp-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--tp-white);
    text-align: left;
    transition: color 0.3s;
}

.tp-faq__question:hover {
    color: var(--tp-yellow);
}

.tp-faq__question svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--tp-yellow);
    transition: transform 0.3s;
}

.tp-faq__item.is-open .tp-faq__question svg {
    transform: rotate(45deg);
}

/* ==========================================================================
   Answer (collapsible)
   ========================================================================== */

.tp-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tp-faq__item.is-open .tp-faq__answer {
    max-height: 500px;
}

.tp-faq__answer-inner {
    padding: 0 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--tp-white-70);
}

.tp-faq__answer-inner a {
    color: var(--tp-yellow);
    text-decoration: underline;
    text-decoration-color: rgba(232, 213, 47, 0.3);
    transition: text-decoration-color 0.3s;
}

.tp-faq__answer-inner a:hover {
    text-decoration-color: var(--tp-yellow);
}

.tp-faq__answer-inner strong {
    color: var(--tp-white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .tp-faq__question {
        font-size: 14px;
        padding: 20px 0;
    }

    .tp-faq__answer-inner {
        font-size: 14px;
    }
}
