/* ═══════════════════════════════════════════════════════════
   BBF FAQ – Frontend Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Tags ── */
.group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
    margin-bottom: 40px;
}

.group-tags a {
    background: #000;
    border: 1px solid #000;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 16px;
    flex: 0 0 auto;
    color: #fff;
    border-radius: 0;
    font-weight: 500;
    max-width: max-content;
}

/* ── FAQ Numbering ── */
.faq-number {
    background: #000;
    color: #ebeae8;
    font-size: 29px;
    padding: 0px 7px;
    font-family: var(--font2);
    font-weight: 500;
    display: inline-block;
    line-height: 1.1em;
}

/* ── Main Title & Description ── */
.faq-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #29343d;
    margin-bottom: 8px;
}

.faq-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── Group Navigation: Blocks ── */
.faq-group-nav {
    margin-bottom: 32px;
}

.faq-group-nav-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-group-block {
    display: inline-block;
    padding: 12px 20px;
    background: #f4f7fb;
    border: 1px solid #e6e6e8;
    border-radius: 6px;
    color: #29343d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.faq-group-block:hover,
.faq-group-block.active {
    background: #db2e87;
    border-color: #db2e87;
    color: #fff;
    text-decoration: none;
}

/* ── Group Navigation: List ── */
.faq-group-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e6e6e8;
}

.faq-group-nav-list li {
    margin: 0;
}

.faq-group-link {
    display: inline-block;
    padding: 10px 18px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.faq-group-link:hover,
.faq-group-link.active {
    color: #db2e87;
    border-bottom-color: #db2e87;
    text-decoration: none;
}

/* ── Group Navigation: Dropdown ── */
.faq-group-nav-dropdown {
    max-width: 400px;
    margin-bottom: 32px;
}

/* ── Group Section ── */
.faq-group-section {
    scroll-margin-top: 80px;
}

.faq-group-title {
    font-size: 18px;
    font-weight: 600;
    color: #29343d;
}

/* ── FAQ Question styling ── */
.faq-question {
    color: #333;
}

/* ── Search ── */
.faq-search-wrapper {
    margin-bottom: 32px;
    position: relative;
    max-width: 500px;
}

.faq-search-input-wrap {
    position: relative;
}

.faq-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
}

.faq-search-input {
    padding-left: 38px !important;
    border-radius: 6px;
    border: 1px solid #e6e6e8;
    font-size: 14px;
}

.faq-search-input:focus {
    border-color: #db2e87;
    box-shadow: 0 0 0 3px rgba(219, 46, 135, 0.1);
}

.faq-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6e8;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.faq-search-result-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
}

.faq-search-result-item:hover {
    background: #f4f7fb;
}

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

.faq-search-result-item .faq-search-snippet {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.faq-search-result-item mark {
    background: rgba(219, 46, 135, 0.15);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

/* ── Content Column (Side Content) ── */
.faq-side-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #eee;
}

.faq-side-content.faq-side-sticky {
    position: sticky;
    top: 20px;
}

.faq-side-content img {
    max-width: 100%;
    height: auto;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .faq-side-content.faq-side-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .faq-group-nav-blocks {
        flex-direction: column;
    }

    .faq-group-block {
        text-align: center;
    }

    .faq-search-wrapper {
        max-width: 100%;
    }
}
