/* ── knowledge-base.css ── */

/* Hero */
.kb-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    height: 80vh;
    justify-content: center;
    align-items: center;
}

.kb-hero img.kb-hero-bg {
    height: 100%;
    width: calc(100% - 20px);
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 0;
}

.kb-hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0 20%;
    z-index: 2;
}

.kb-hero-text h1 {
    font-size: 60px;
    font-weight: 600;
    line-height: 150%;
    color: var(--white-text-Color);
    text-transform: uppercase;
}

.kb-hero-text p {
    font-size: 35px;
    font-weight: 500;
    line-height: 110%;
    color: var(--white-text-Color);
}

@media (max-width: 790px) {
    .kb-hero {
        height: 50vh;
    }

    .kb-hero-text h1 {
        font-size: 24px;
        font-weight: 600;
        line-height: 125%;
        white-space: normal;
    }

    .kb-hero-text p {
        font-size: 18px;
    }

    .kb-hero img.kb-hero-bg {
        width: calc(100% - 10px);
        left: 5px;
    }
}

/* Search Bar */
.kb-search-wrap {
    max-width: 700px;
    margin: 2.5rem auto 0;
    padding: 0 1rem;
}

.kb-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #d1d8e0;
    border-radius: 0;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.kb-search-input:focus {
    border-color: #0d3b6e;
    box-shadow: 0 0 0 3px rgba(13, 59, 110, 0.1);
}

/* Category Tabs */
.kb-tabs {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.kb-tab-btn {
    padding: 0.6rem 1.3rem;
    background: #ECEDF3;
    color: var(--primary-Color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.kb-tab-btn:hover,
.kb-tab-btn.active {
    background: var(--primary-Color);
    border-color: var(--primary-Color);
    color: #fff;
}

/* Product Filter */
.kb-product-filter-wrap {
    max-width: 1100px;
    margin: 1.2rem auto 0;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid #e4e8ef;
    padding-top: 1.2rem;
}

.kb-filter-label {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kb-product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kb-product-btn {
    padding: 0.45rem 1.1rem;
    background: #fff;
    color: var(--primary-Color);
    border: 2px solid #d1d8e0;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    white-space: nowrap;
}

.kb-product-btn:hover,
.kb-product-btn.active {
    background: var(--primary-Color);
    border-color: var(--primary-Color);
    color: #fff;
}

@media (max-width: 768px) {
    .kb-product-filter-wrap {
        padding: 1rem 1rem 0;
        flex-wrap: wrap;
    }
}

/* FAQ Content Area */
.kb-content {
    max-width: 1100px;
    margin: 2.5rem auto 4rem;
    padding: 0 2rem;
}

.kb-category-group {
    margin-bottom: 2.5rem;
}

.kb-category-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0d3b6e;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e4e8ef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kb-category-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.4rem;
    background: #c9a227;
    border-radius: 0;
}

/* FAQ Accordion */
.kb-faq-item {
    border: 1px solid #e4e8ef;
    border-radius: 0;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.kb-faq-item:hover {
    box-shadow: 0 4px 12px rgba(13, 59, 110, 0.08);
}

.kb-faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 1.1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2e4a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}

.kb-faq-question:hover {
    background: #f8f9fb;
}

.kb-faq-question.open {
    background: #f0f4fa;
    color: #0d3b6e;
}

.kb-faq-arrow {

    flex-shrink: 0;
    transition: transform 0.25s;
    display: block;
}

.kb-faq-question.open .kb-faq-arrow {
    transform: rotate(180deg);
}

.kb-faq-answer {
    display: none;
    padding: 0 1.5rem 1.2rem;
    font-size: 0.97rem;
    color: #4a5568;
    line-height: 1.7;
    background: #f0f4fa;
}

.kb-faq-answer.open {
    display: block;
}

/* Empty State */
.kb-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Search highlight */
.kb-faq-item.hidden-by-search {
    display: none;
}

@media (max-width: 768px) {
    .kb-content {
        padding: 0 1rem;
    }

    .kb-tabs {
        padding: 0 1rem;
    }

    .kb-faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .kb-faq-answer {
        padding: 0 1rem 1rem;
    }
}