/* ── FAQs page ──────────────────────────────────────────────────── */

.section-faqs {
    margin: 0 auto;
    padding: 18px 24px;
}

/* ── Two-column layout ──────────────────────────────────────────── */

.faqs-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-8);
    align-items: start;
}

.faqs-main {
    min-width: 0;
}

.faqs-sidebar {
    position: sticky;
    top: 90px;
    gap: 8px;
    display: grid;
    align-content: start;
}

/* Tighter card density, scoped to this page only (doesn't touch the
   shared .sw-panel styling used by other pages). */
.faqs-sidebar .sw-header {
    padding: 10px 14px 8px;
}

.faqs-sidebar .sw-list {
    padding: 0 14px;
}

.faqs-sidebar .sw-item-link {
    padding: 8px 0;
}

/* ── Page header (fallback when no hero) ────────────────────────── */

.faqs-header {
    margin-bottom: var(--space-6);
}

.faqs-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--color-heading, #111827);
}

.faqs-description {
    font-size: 1rem;
    color: var(--ah-text-muted, #6b7280);
    margin: 0;
}

/* Section heading (per-group heading printed by parts/faq_list.php) */
.faq-section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    letter-spacing: -0.3px;
}

.faq-list-wrap + .faq-list-wrap {
    margin-top: var(--space-6);
}

/* ── FAQ list ─────────────────────────────────────────────────────── */

.faqs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.faq-list-wrap{
    margin-top: var(--space-4);
}

/* ── Individual FAQ item ──────────────────────────────────────────── */

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.faq-item[open] {
    border-color: var(--client-color-10, #0b2b2f);
    box-shadow: 0 4px 18px rgba(11, 43, 47, 0.09);
}

/* ── Summary (question row) ───────────────────────────────────────── */

.section-faqs .faq-item summary {
    list-style: none;
    display: block;
    padding: 8px 10px;
    cursor: pointer;
    background: var(--slate-50);
    user-select: none;
    transition: background 0.12s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.section-faqs .faq-item[open] summary {
    background: var(--color-surface);
    border-bottom: 1px solid rgba(11, 43, 47, 0.1);
}

/* Question text row - flex so chevron sits on the right */
.faq-q-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-heading, #111827);
    line-height: 1.4;
    transition: color 0.12s ease;
}

.section-faqs .faq-item[open] .faq-q-text {
    color: var(--client-color-10, #0b2b2f);
}

/* Rotating chevron on .faq-q-text */
.section-faqs .faq-item summary .faq-q-text::after {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--color-heading, #374151);
    border-bottom: 2px solid var(--color-heading, #374151);
    transform: rotate(45deg);
    transition: transform 0.22s ease, border-color 0.15s ease;
    margin-right: var(--space-1);
}

.section-faqs .faq-item[open] summary .faq-q-text::after {
    transform: rotate(-135deg);
    border-color: var(--client-color-10, #0b2b2f);
}

/* ── Answer body ─────────────────────────────────────────────────── */

.faq-a {
    background: var(--color-white);
}

.faq-a-body {
    height: 0;
    overflow: hidden;
    transition: height 260ms ease;
}

.faq-a-body p {
    /* margin: 0 0 10px; */
    color: var(--ah-text-muted, #374151);
    font-size: 0.9rem;
    line-height: 1.25;
    padding: 7px 14px;
}

.faq-a-body p:last-of-type {
    margin-bottom: 0;
}

.faq-a-body a {
    color: var(--client-color-3, #0b2b2f);
    text-decoration: underline;
    font-weight: 600;
}

.faq-a-body a:hover {
    color: var(--color-accent);
}

.faq-link {
    padding: 0 20px 16px;
    margin: 0;
}

.faq-link a {
    font-size: 0.85rem;
    color: var(--client-color-3, #0b2b2f);
    text-decoration: underline;
    font-weight: 500;
}

.faq-link a:hover { color:var(--color-accent); }

/* ── Sidebar: shared label + heading inside contact-alt-box ─────── */

.faqs-sb-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ah-text-muted, #9ca3af);
    margin: 0 0 3px;
}

.faqs-sb-heading {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    margin: 0 0 12px;
}

/* ── Latest News box ──────────────────────────────────────────────── */

.faqs-sb-news-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.faqs-sb-news-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: opacity 0.12s;
}

.faqs-sb-news-card:hover { opacity: 0.8; }

.faqs-sb-news-card .card-desc-text {
    margin-bottom: 0;
    -webkit-line-clamp: 1;
}

.faqs-sb-readmore {
    margin-top: 6px;
    text-decoration: none;
}

/* ── Hot Topics box ───────────────────────────────────────────────── */

.faqs-sb-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.faqs-sb-topic-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--color-heading, #111827);
    transition: background 0.12s, color 0.12s;
}

.faqs-sb-topic-link:hover {
    background: var(--color-bg, #f3f4f6);
    color: var(--client-color-10, #0b2b2f);
}

.faqs-sb-topic-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.faqs-sb-topic-name { flex: 1; }

.faqs-sb-topic-arrow {
    font-size: 0.75rem;
    color: var(--ah-text-muted, #9ca3af);
    margin-left: auto;
}

/* ── Empty state ─────────────────────────────────────────────────── */

.section-faqs .muted {
    color: var(--ah-text-muted, #6b7280);
    font-size: 0.95rem;
    padding: 24px 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .faqs-page-layout {
        grid-template-columns: 1fr 260px;
        gap: var(--space-7);
    }
}

@media (max-width: 720px) {
    .section-faqs {
        padding: 32px 16px 60px;
    }

    .faqs-page-layout {
        grid-template-columns: 1fr;
    }

    .faqs-sidebar {
        position: static;
    }

    .section-faqs .faq-item summary {
        padding: 6px 8px;
    }

    .faq-q-text {
        font-size: 0.88rem;
    }

    .faq-section-heading {
        font-size: 1.15rem;
    }

    .faq-list-wrap + .faq-list-wrap {
        margin-top: var(--space-4);
    }

    .faq-a-body p {
        font-size: 0.875rem;
        padding: 6px 8px;
    }

    .faq-link {
        padding: 0 16px 14px;
    }
}

.faq-item .faq-a-body ul,
.faq-item .faq-a-body ol {
    padding: 0px;
    margin: 1px 0px 0px 40px;
    border-radius: 4px;
    color: grey;
    font-size: small;
    list-style: auto !important;
}
.faq-item .faq-a-body ul{
    list-style: circle;
}

.faq-item .faq-a-body li:marker {
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    text-indent: 0px !important;
    text-align: start !important;
    text-align-last: auto !important;
}