/* ============================================================
   FAQ Module — Display styles (Module 892)
   ============================================================ */

/* Outer module */

.faq-module {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Header */

.faq-header {
    margin-bottom: 25px;
}

.faq-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #337ab7;
    margin: 0 0 8px 0;
}

.faq-subheading {
    font-size: 1.05rem;
    color: #666;
    margin: 0;
}

/* Two-column body — sidebar sticky is constrained to this element */

.faq-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar navigation */

.faq-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.faq-nav.is-sticky {
    position: fixed;
    top: 20px;
    width: 220px;
}

.faq-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 0;
}

.faq-nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s;
}

.faq-nav-btn:hover,
.faq-nav-btn.active {
    background: #f0f4f9;
    color: #337ab7;
    border-left-color: #337ab7;
}

/* Content area */

.faq-content {
    flex: 1;
    min-width: 0;
}

.faq-section {
    margin-bottom: 30px;
}

.faq-section-title {
    color: #337ab7;
    font-size: 22px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

/* FAQ items / accordion */

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    margin: 0;
}

.faq-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    color: #222;
    transition: background .15s;
}

.faq-toggle:hover {
    background: #f8f8f8;
}

.faq-question-text {
    flex: 1;
    font-weight: 500;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23555' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .2s;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 16px 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.faq-indent {
    display: block;
    padding-left: 2em;
}

/* Responsive */

@media (max-width: 700px) {
    .faq-body {
        flex-direction: column;
    }

    .faq-sidebar {
        width: 100%;
        position: static;
    }
}
