/**
 * KO FAQ Accordion Widget Styles
 * Structural styles only - visual customization via Elementor
 *
 * @package KO_Elementor_Addons
 */

/* Container */
.ko-faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.ko-faq-header {
    text-align: center;
}

.ko-faq-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.ko-faq-label::before,
.ko-faq-label::after {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
}

.ko-faq-title {
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 20px 0;
}

.ko-faq-subtitle {
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* Accordion List */
.ko-faq-list {
    display: flex;
    flex-direction: column;
}

/* Accordion Item */
.ko-faq-item {
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Question Header */
.ko-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.ko-faq-question-text {
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

/* Toggle Icon */
.ko-faq-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.ko-faq-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.ko-faq-item.active .ko-faq-icon {
    transform: rotate(180deg);
}

/* Answer Content */
.ko-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ko-faq-item.active .ko-faq-answer {
    max-height: 1000px;
}

.ko-faq-answer-text {
    line-height: 1.65;
    margin: 0;
    border-top-width: 1px;
    border-top-style: solid;
}

.ko-faq-answer-text p {
    margin: 0 0 12px 0;
}

.ko-faq-answer-text p:last-child {
    margin-bottom: 0;
}

/* CTA Box */
.ko-faq-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ko-faq-cta-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ko-faq-cta-icon svg {
    width: 24px;
    height: 24px;
}

.ko-faq-cta-text {
    margin: 0;
}

.ko-faq-cta-text a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.ko-faq-cta-text a:hover {
    text-decoration: underline;
}

/* Responsive - Tablet */
@media screen and (max-width: 1024px) {
    .ko-faq-cta {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 767px) {
    .ko-faq-question {
        gap: 16px;
    }

    .ko-faq-icon svg {
        width: 14px;
        height: 14px;
    }

    .ko-faq-cta {
        flex-direction: column;
        text-align: center;
    }
}
