/**
 * GE AI Smart FAQ Generator Pro
 * Frontend FAQ Styles
 * License: GPL v2 or later
 */

.gesfaq-wrap {
    margin: 28px 0;
}

.gesfaq-inner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gesfaq-title {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
}

.gesfaq-accordion,
.gesfaq-list {
    display: block;
}

.gesfaq-item {
    border-top: 1px solid #e5e7eb;
    padding: 14px 0;
}

.gesfaq-item:first-child {
    border-top: none;
    padding-top: 0;
}

.gesfaq-item:last-child {
    padding-bottom: 0;
}

.gesfaq-question {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    color: #111827;
}

.gesfaq-answer {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
}

.gesfaq-answer p {
    margin: 0 0 10px;
}

.gesfaq-answer p:last-child {
    margin-bottom: 0;
}

.gesfaq-accordion details {
    transition: all 0.2s ease;
}

.gesfaq-accordion details summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 34px;
}

.gesfaq-accordion details summary::-webkit-details-marker {
    display: none;
}

.gesfaq-accordion details summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    line-height: 1;
}

.gesfaq-accordion details[open] summary::after {
    content: "−";
}

.gesfaq-accordion details[open] .gesfaq-answer {
    animation: gesfaqFadeIn 0.2s ease;
}

.gesfaq-mode-list .gesfaq-question {
    margin-bottom: 8px;
}

@keyframes gesfaqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .gesfaq-inner {
        padding: 18px;
        border-radius: 12px;
    }

    .gesfaq-title {
        font-size: 22px;
    }

    .gesfaq-question {
        font-size: 16px;
        padding-right: 30px;
    }

    .gesfaq-answer {
        font-size: 14px;
        line-height: 1.7;
    }
}