/* ══════════════════════════════════════════════════════════
 * SL FAQ — Base Styles
 *
 * These are the defaults. Elementor widget style controls
 * override via inline selectors ({{WRAPPER}} .sl-faq-*).
 * ══════════════════════════════════════════════════════════ */

.sl-faq-container {
    width: 100%;
    line-height: 1.6;
}

/* ── Category header ──────────────────────────────────────── */

.sl-faq-category {
    background-color: #f8f8f8;
    padding: 20px;
    margin: 10px 0;
    cursor: pointer;
    font-weight: bold;
    border: none; /* Elementor Group_Control_Border overrides this */
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    user-select: none;
}

.sl-faq-category:hover {
    color: #ff9900;
}

.sl-faq-category:focus-visible {
    outline: 2px solid #ff9900;
    outline-offset: 2px;
}

.sl-faq-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 12px;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
}

.sl-faq-toggle-icon i,
.sl-faq-toggle-icon svg {
    width: 1em;
    height: 1em;
}

.sl-faq-icon-closed,
.sl-faq-icon-opened {
    display: inline-flex;
    align-items: center;
}

.sl-faq-category.expanded .sl-faq-toggle-icon {
    /* no rotate needed — icon swap handles it */
}

/* ── Questions panel ──────────────────────────────────────── */

.sl-faq-questions {
    display: none;
    padding-left: 14px;
}

/* ── Individual FAQ item ──────────────────────────────────── */

.sl-faq-item {
    border-bottom: 1px solid #ddd;
    margin: 0;
    padding: 10px 0;
}

.sl-faq-item:last-child {
    border-bottom: none;
}

/* ── Question ─────────────────────────────────────────────── */

.sl-faq-question {
    padding: 20px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    border-left: 4px solid transparent;
    transition:
        opacity 0.25s ease,
        color 0.2s ease,
        border-left-color 0.2s ease,
        padding-left 0.2s ease;
    user-select: none;
}

.sl-faq-question:hover {
    opacity: 0.85;
}

.sl-faq-question:focus-visible {
    outline: 2px solid #ff9900;
    outline-offset: -2px;
}

.sl-faq-question.expanded {
    border-left-color: #ff9900;
    color: #ff9900;
    font-weight: bold;
    padding-left: 16px;
    opacity: 1;
}

/* ── Answer ───────────────────────────────────────────────── */

.sl-faq-answer {
    display: none;
    padding: 20px;
    background-color: #fff;
}

/* ── Empty state (Elementor editor) ───────────────────────── */

.sl-faq-empty {
    padding: 24px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    text-align: center;
    font-size: 14px;
}
