/* ── AI FAQ Widget ── */
.ai-faq {
    padding: 0;
    font-family: inherit;
    line-height: 1.6;
}

.ai-faq__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.ai-faq__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px;
    color: #333;
}

/* FAQ list */
.ai-faq__list {
    display: flex;
    flex-direction: column;
}

.ai-faq__item {
    border-bottom: 1px solid #E0E0E0;
}

.ai-faq__item:first-child {
    border-top: 1px solid #E0E0E0;
}

/* Question button — !important needed to override Elementor global button styles */
.ai-faq__question {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 18px 4px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    gap: 16px;
    transition: color 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
    text-indent: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.ai-faq__question:hover,
.ai-faq__question:focus,
.ai-faq__question:active {
    background: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 18px 4px !important;
    margin: 0 !important;
    text-indent: 0 !important;
    text-decoration: none !important;
}

.ai-faq__question span {
    flex: 1;
}

/* Chevron icon */
.ai-faq__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s ease;
}

.ai-faq__item.is-open .ai-faq__icon {
    transform: rotate(180deg);
}

/* Answer panel */
.ai-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 4px;
    font-size: 15px;
    line-height: 1.7;
}

.ai-faq__item.is-open .ai-faq__answer {
    max-height: 1000px;
    padding: 0 4px 18px;
}

/* Answer inner content */
.ai-faq__answer p {
    margin: 0 0 12px;
}

.ai-faq__answer p:last-child {
    margin-bottom: 0;
}

.ai-faq__answer ul,
.ai-faq__answer ol {
    margin: 0 0 12px;
    padding-left: 24px;
}

.ai-faq__answer a {
    color: #C94C00;
    text-decoration: underline;
}

.ai-faq__answer a:hover {
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ai-faq__inner {
        padding: 32px 16px;
    }

    .ai-faq__title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .ai-faq__question,
    .ai-faq__question:hover,
    .ai-faq__question:focus,
    .ai-faq__question:active {
        font-size: 15px;
        padding: 16px 2px !important;
    }

    .ai-faq__answer {
        font-size: 14px;
    }
}
