/**
 * Audioengine – AE All FAQ Widget
 * Two-level accordion: Level 1 = category, Level 2 = post title → content
 */

/* ── Wrapper ──────────────────────────────────────────────────── */
.ae-faq,
.ae-faq *,
.ae-faq *::before,
.ae-faq *::after {
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.ae-faq {
    width: 100%;
    font-family: 'Nunito Sans', Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   LEVEL 1 — Category: bottom border only
══════════════════════════════════════ */

.ae-faq__group {
    border-bottom: 1px solid #d9d9d9 !important;
}

/* Level-1 button */
.ae-faq__l1-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    gap: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.4;
    transition: background 0.18s ease, color 0.18s ease;
}
.ae-faq__l1-btn {
  padding: 20px 28px 20px 28px !important;
  color: #000 !important;
}
.ae-faq__l2-btn{ 
    color: #000 !important;
}
.ae-faq__l1-btn:hover {
    background: #f7f7f7;
}

/* Active Level-1: black background, white text */
.ae-faq__group.is-open > .ae-faq__l1-btn {
    background: #111111;
    color: #ffffff;
}
.ae-faq__l1-btn[aria-expanded="true"] {
    /* Your styles here */
   
    color: #fff !important;
}
.ae-faq__l1-label { flex: 1; }

/* Chevron */
.ae-faq__chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.ae-faq__chevron svg { width: 18px; height: 18px; }

.ae-faq__group.is-open > .ae-faq__l1-btn .ae-faq__chevron {
    transform: rotate(180deg);
}

/* Level-1 panel: hidden by default, shown when group is open */
.ae-faq__l1-panel {
    display: none;
    background: #ffffff;
    border: none;
    margin-left: 24px;
}

.ae-faq__group.is-open > .ae-faq__l1-panel {
    display: block;
}

.ae-faq__no-items {
    padding: 14px 24px;
    font-size: 13px;
    color: #999;
    border: none;
}

/* ══════════════════════════════════════
   LEVEL 2 — Post title → content
   No borders on any post items
══════════════════════════════════════ */

.ae-faq__item {
    border: none;
}

/* Level-2 button: post title */
.ae-faq__l2-btn {
    display: block;
    width: 100%;
    padding: 13px 24px 13px 48px;
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    line-height: 1.45;
    transition: color 0.15s ease;
}

.ae-faq__l2-btn:hover {
    color: #111111;
    text-decoration: underline;
}

.ae-faq__item.is-open > .ae-faq__l2-btn {
    font-weight: 600;
    color: #111111;
}

/* Level-2 content */
.ae-faq__l2-content {
    display: none;
    border: none;
    padding: 2px 24px 16px 48px;
    font-size: 13px;
    line-height: 1.7;
    color: #555555;
}

.ae-faq__item.is-open > .ae-faq__l2-content {
    display: block;
}

.ae-faq__l2-content p        { margin: 0 0 8px; }
.ae-faq__l2-content p:last-child { margin-bottom: 0; }

.ae-faq__l2-content a        { color: #4a8db5; text-decoration: none; }
.ae-faq__l2-content a:hover  { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ae-faq__l1-btn     { padding: 16px; font-size: 14px; }
    .ae-faq__l2-btn     { padding: 12px 16px 12px 32px; font-size: 13px; }
    .ae-faq__l2-content { padding: 2px 16px 14px 32px; }
}
