/* BW AI Core — AI FAQ Content Block (Feature 3)
   Matches the Blue-White AI design system: same colours, radii, and shadows
   as the AI Search results, AI Chatbot, and AI Summary tools.
   ─────────────────────────────────────────────────────────────────────────── */

.oswaldai-seo-faq-block {
    margin: 40px 0 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(0, 94, 184, 0.12);
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 94, 184, 0.05);
    font-family: Arial, Helvetica, sans-serif;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.oswaldai-seo-faq-block__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    background: rgba(0, 94, 184, 0.05);
    border-bottom: 1px solid rgba(0, 94, 184, 0.09);
}

.oswaldai-seo-faq-block__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #005eb8;
    border-radius: 7px;
    color: #fff;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 1;
}

.oswaldai-seo-faq-block__title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1b3a6b !important;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    flex: 1;
}

.oswaldai-seo-faq-block__badge {
    font-size: 10px;
    font-weight: 600;
    color: #0071ce;
    background: rgba(0, 113, 206, 0.09);
    border-radius: 999px;
    padding: 2px 9px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ── FAQ list ─────────────────────────────────────────────────────────────── */
.oswaldai-seo-faq-block__list {
    display: flex;
    flex-direction: column;
}

/* ── Single item ─────────────────────────────────────────────────────────── */
.oswaldai-seo-faq-block__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.oswaldai-seo-faq-block__item:last-child {
    border-bottom: none;
}

/* ── Question button ──────────────────────────────────────────────────────── */
.oswaldai-seo-faq-block__q {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #1b3a6b;
    line-height: 1.45;
    font-family: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.oswaldai-seo-faq-block__q:hover {
    background: rgba(0, 94, 184, 0.04);
    color: #0071ce;
}
.oswaldai-seo-faq-block__q:focus {
    outline: none;
    background: rgba(0, 94, 184, 0.05);
    color: #1b3a6b;
}
.oswaldai-seo-faq-block__q:focus-visible {
    outline: 2px solid rgba(0, 94, 184, 0.4);
    outline-offset: -2px;
    background: rgba(0, 94, 184, 0.05);
    color: #1b3a6b;
}
.oswaldai-seo-faq-block__q[aria-expanded="true"] {
    background: rgba(0, 94, 184, 0.05);
    color: #005eb8;
}
.oswaldai-seo-faq-block__q-text {
    flex: 1;
}

/* ── Chevron ──────────────────────────────────────────────────────────────── */
.oswaldai-seo-faq-block__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.15s ease;
}
.oswaldai-seo-faq-block__q[aria-expanded="true"] .oswaldai-seo-faq-block__chevron {
    transform: rotate(180deg);
    color: #005eb8;
}

/* ── Answer ───────────────────────────────────────────────────────────────── */
.oswaldai-seo-faq-block__a {
    padding: 20px;
    animation: oswaldai-faq-slide-in 0.18s ease both;
}
.oswaldai-seo-faq-block__a[hidden] {
    display: none;
}
.oswaldai-seo-faq-block__a p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #374151;
}

@keyframes oswaldai-faq-slide-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.oswaldai-seo-faq-block__footer {
    padding: 8px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 94, 184, 0.02);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #94a3b8;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.2px;
}
.oswaldai-seo-faq-block__footer-dot {
    color: #0071ce;
    font-size: 12px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .oswaldai-seo-faq-block {
        border-radius: 10px;
        margin: 28px 0 16px;
    }
    .oswaldai-seo-faq-block__q {
        font-size: 13px;
        padding: 12px 14px;
    }
    .oswaldai-seo-faq-block__a {
        padding: 0 14px 12px 14px;
    }
    .oswaldai-seo-faq-block__a p {
        font-size: 13px;
    }
}

/* ── Keyword links (matches search + chat tools) ─────────────────────────── */
.oswaldai-seo-faq-block__a .oswaldai-kw-link {
    color: #0071ce;
    text-decoration: underline;
    text-decoration-color: rgba(0, 113, 206, 0.4);
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.oswaldai-seo-faq-block__a .oswaldai-kw-link:hover {
    color: #005eb8;
    text-decoration-color: #005eb8;
}

/* Give br-separated lines a little breathing room */
.oswaldai-seo-faq-block__a p br {
    display: block;
    content: "";
    margin-top: 6px;
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .oswaldai-seo-faq-block__chevron,
    .oswaldai-seo-faq-block__q,
    .oswaldai-seo-faq-block__a {
        animation: none !important;
        transition: none !important;
    }
}
