/* =========================================================
   KITWICK KNOWLEDGEBASE
   ========================================================= */

.kitwick-kb-page {
    width: 100%;
    padding: 45px 0 80px;
    background: #11131b;
    color: #f3f2fa;
}

.kitwick-kb-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.kitwick-kb-hero {
    padding: 35px 0 60px;
}

.kitwick-kb-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(154, 124, 255, .14);
    color: #9a7cff;
    font-size: 13px;
    font-weight: 600;
}

.kitwick-kb-hero h1 {
    max-width: 800px;
    margin: 0;
    color: #f3f2fa;
    font-size: clamp(48px, 6vw, 76px);
    line-height: .96;
    letter-spacing: -.05em;
    font-weight: 600;
}

.kitwick-kb-hero > p {
    max-width: 650px;
    margin: 24px 0 30px;
    color: #989caf;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   SEARCH
   ========================================================= */

.kitwick-kb-search {
    width: 100%;
    max-width: 760px;
    margin-top: 30px;
}

.kitwick-kb-search-inner {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 6px;
    border: 1px solid #363947;
    border-radius: 16px;
    background: #1c1f2a;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .15);
}

.kitwick-kb-search-inner > i {
    margin-left: 17px;
    color: #73758c;
    font-size: 17px;
}

.kitwick-kb-search-inner input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    color: #f3f2fa !important;
    box-shadow: none !important;
    font-size: 15px;
}

.kitwick-kb-search-inner input::placeholder {
    color: #73758c;
}

.kitwick-kb-search-inner button {
    min-height: 50px;
    padding: 0 23px;
    border: 0;
    border-radius: 11px;
    background: #9a7cff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.kitwick-kb-search-inner button:hover {
    background: #8064ed;
    transform: translateY(-1px);
}


/* =========================================================
   SECTION
   ========================================================= */

.kitwick-kb-section {
    margin-top: 15px;
}

.kitwick-kb-section-heading {
    margin-bottom: 22px;
}

.kitwick-kb-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #9a7cff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.kitwick-kb-section-heading h2,
.kitwick-kb-popular-header h2 {
    margin: 0;
    color: #f3f2fa;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 600;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.kitwick-kb-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kitwick-kb-category {
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 23px;
    border: 1px solid #363947;
    border-radius: 19px;
    background: #1c1f2a;
    color: inherit;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.kitwick-kb-category:hover {
    transform: translateY(-3px);
    border-color: #9a7cff;
    background: #202330;
    color: inherit;
}

.kitwick-kb-category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kitwick-kb-category-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(154, 124, 255, .13);
    color: #9a7cff;
    font-size: 18px;
}

.kitwick-kb-arrow {
    color: #73758c;
    font-size: 13px;
    transition: color .2s ease, transform .2s ease;
}

.kitwick-kb-category:hover .kitwick-kb-arrow {
    color: #9a7cff;
    transform: translateX(3px);
}

.kitwick-kb-category-content {
    flex: 1;
    padding-top: 24px;
}

.kitwick-kb-category-content h3 {
    margin: 0 0 8px;
    color: #f3f2fa;
    font-size: 18px;
    font-weight: 600;
}

.kitwick-kb-category-content p {
    margin: 0;
    color: #989caf;
    font-size: 13px;
    line-height: 1.65;
}

.kitwick-kb-category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #30333f;
    color: #73758c;
    font-size: 12px;
}

.kitwick-kb-category-footer .show-on-card-hover {
    margin-left: auto;
}


/* =========================================================
   POPULAR ARTICLES
   ========================================================= */

.kitwick-kb-popular {
    margin-top: 55px;
    border: 1px solid #363947;
    border-radius: 21px;
    background: #1c1f2a;
    overflow: hidden;
}

.kitwick-kb-popular-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 28px;
    border-bottom: 1px solid #363947;
}

.kitwick-kb-popular-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(154, 124, 255, .13);
    color: #9a7cff;
}

.kitwick-kb-article-list {
    display: flex;
    flex-direction: column;
}

.kitwick-kb-article {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 21px 28px;
    border-bottom: 1px solid #30333f;
    color: inherit;
    text-decoration: none !important;
    transition: background .2s ease;
}

.kitwick-kb-article:last-child {
    border-bottom: 0;
}

.kitwick-kb-article:hover {
    background: #202330;
    color: inherit;
}

.kitwick-kb-article-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #141620;
    color: #9a7cff;
}

.kitwick-kb-article-content {
    flex: 1;
    min-width: 0;
}

.kitwick-kb-article-content h3 {
    margin: 0 0 5px;
    color: #f3f2fa;
    font-size: 15px;
    font-weight: 600;
}

.kitwick-kb-article-content small {
    display: block;
    color: #73758c;
    font-size: 12px;
    line-height: 1.5;
}

.kitwick-kb-article-arrow {
    color: #73758c;
    font-size: 12px;
}

.kitwick-kb-article:hover .kitwick-kb-article-arrow {
    color: #9a7cff;
}


/* =========================================================
   LIGHT MODE
   ========================================================= */

html[data-theme="light"] .kitwick-kb-page,
body[data-theme="light"] .kitwick-kb-page {
    background: #f5f5f8;
    color: #17182f;
}

html[data-theme="light"] .kitwick-kb-hero h1,
body[data-theme="light"] .kitwick-kb-hero h1 {
    color: #17182f;
}

html[data-theme="light"] .kitwick-kb-hero > p,
body[data-theme="light"] .kitwick-kb-hero > p {
    color: #73758c;
}

html[data-theme="light"] .kitwick-kb-search-inner,
html[data-theme="light"] .kitwick-kb-category,
html[data-theme="light"] .kitwick-kb-popular,
body[data-theme="light"] .kitwick-kb-search-inner,
body[data-theme="light"] .kitwick-kb-category,
body[data-theme="light"] .kitwick-kb-popular {
    background: #ffffff;
    border-color: #dedee8;
}

html[data-theme="light"] .kitwick-kb-search-inner input,
body[data-theme="light"] .kitwick-kb-search-inner input {
    color: #17182f !important;
}

html[data-theme="light"] .kitwick-kb-category:hover,
body[data-theme="light"] .kitwick-kb-category:hover {
    background: #faf9ff;
    border-color: #8064ed;
}

html[data-theme="light"] .kitwick-kb-section-heading h2,
html[data-theme="light"] .kitwick-kb-popular-header h2,
html[data-theme="light"] .kitwick-kb-category-content h3,
html[data-theme="light"] .kitwick-kb-article-content h3,
body[data-theme="light"] .kitwick-kb-section-heading h2,
body[data-theme="light"] .kitwick-kb-popular-header h2,
body[data-theme="light"] .kitwick-kb-category-content h3,
body[data-theme="light"] .kitwick-kb-article-content h3 {
    color: #17182f;
}

html[data-theme="light"] .kitwick-kb-category-content p,
html[data-theme="light"] .kitwick-kb-article-content small,
body[data-theme="light"] .kitwick-kb-category-content p,
body[data-theme="light"] .kitwick-kb-article-content small {
    color: #73758c;
}

html[data-theme="light"] .kitwick-kb-category-footer,
body[data-theme="light"] .kitwick-kb-category-footer {
    border-color: #dedee8;
}

html[data-theme="light"] .kitwick-kb-popular-header,
html[data-theme="light"] .kitwick-kb-article,
body[data-theme="light"] .kitwick-kb-popular-header,
body[data-theme="light"] .kitwick-kb-article {
    border-color: #dedee8;
}

html[data-theme="light"] .kitwick-kb-article:hover,
body[data-theme="light"] .kitwick-kb-article:hover {
    background: #faf9ff;
}

html[data-theme="light"] .kitwick-kb-article-icon,
body[data-theme="light"] .kitwick-kb-article-icon {
    background: #f5f5f8;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .kitwick-kb-page {
        padding: 30px 0 55px;
    }

    .kitwick-kb-container {
        width: min(100% - 24px, 1160px);
    }

    .kitwick-kb-hero {
        padding: 25px 0 45px;
    }

    .kitwick-kb-hero h1 {
        font-size: 44px;
    }

    .kitwick-kb-category-grid {
        grid-template-columns: 1fr;
    }

    .kitwick-kb-search-inner {
        min-height: 58px;
    }

    .kitwick-kb-search-inner button {
        padding: 0 16px;
    }

    .kitwick-kb-popular-header {
        padding: 22px;
    }

    .kitwick-kb-article {
        padding: 18px 22px;
    }

}

@media (max-width: 480px) {

    .kitwick-kb-hero h1 {
        font-size: 38px;
    }

    .kitwick-kb-search-inner > i {
        margin-left: 12px;
    }

    .kitwick-kb-search-inner input {
        padding: 0 10px;
        font-size: 13px;
    }

    .kitwick-kb-search-inner button {
        min-height: 44px;
        padding: 0 13px;
        font-size: 13px;
    }

    .kitwick-kb-category {
        min-height: 185px;
        padding: 20px;
    }

}