/**
 * KBHost Layout Styles
 *
 * Adapted from WP KBHost template-legacy/kbe_style.css with dark mode colors.
 * Image paths updated for standalone /assets/images/ directory.
 */

/* ===== Container ===== */
#kbe_container {
    width: 100%;
    margin: 2em auto 0;
    overflow: hidden;
}
#kbe_container h1 {
    color: #e0e0e0;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 34px;
}

/* ===== Breadcrumb ===== */
.kbe_breadcrum {
    margin: 0 0 30px;
    overflow: hidden;
    width: 100%;
}
.kbe_breadcrum ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kbe_breadcrum ul li {
    float: left;
    padding: 0 3px 2px 3px;
    line-height: 22px;
}
.kbe_breadcrum ul li a {
    text-decoration: none;
    font-size: 14px;
    color: #007acc;
}

/* ===== Search Field ===== */
.kbe_search_field {
    margin: 0 0 36px;
    width: 100%;
    position: relative;
}
.kbe_search_field input[type=text] {
    font-size: 15px;
    border: 1px solid #444;
    width: 100%;
    padding: 12px 17px 13px 55px;
    background: url(../images/kbe_search_btn.png) no-repeat left #1e1e2e;
    background-position-x: 9px;
    background-size: 25px;
    color: #d4d4d4;
    border-radius: 3px;
}

/* ===== Search Results Dropdown ===== */
#search-result {
    padding: 0;
    margin: 0;
    width: 100%;
    font-size: 14px;
    position: absolute;
    z-index: 9999;
    border-bottom: 1px solid #007acc;
}
#search-result li {
    background: url(../images/article.svg) no-repeat scroll left 16px top 13px #2a2a3e;
    background-size: 14px auto;
    list-style: none outside none;
    padding: 0;
    border-left: 1px solid #007acc;
    border-right: 1px solid #007acc;
}
#search-result li a {
    display: block;
    color: #d4d4d4;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    line-height: 22px;
    padding: 12px 20px 12px 55px;
}
#search-result li a:hover {
    text-decoration: none;
}
#search-result li:hover {
    background-color: #333;
}
.kbe_no_result {
    display: inline-block;
    background: #2a2a3e;
    border-bottom: 1px solid #444;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
    padding: 16px 0 14px 55px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    color: #999;
}

/* ===== Content Layout ===== */
.kbe_content_full {
    width: 100%;
    display: inline-block;
    float: none;
}
.kbe_content_right {
    width: 70%;
    float: right;
}
.kbe_content_left {
    width: 70%;
    float: left;
}

/* ===== Left Column ===== */
.kbe_leftcol {
    float: left;
    width: 100%;
}
.kbe_categories {
    width: 100%;
}
.kbe_category {
    width: 44%;
    margin: 0 35px 30px 0;
    display: inline-block;
    vertical-align: top;
    position: relative;
}
.kbe_category span.switch {
    position: absolute;
    top: 4px;
    left: 0;
    margin: 0;
    cursor: pointer;
}
.kbe_category span.switch img {
    margin: 0;
    content: none;
}

/* ===== Category Headers ===== */
#kbe_content h2, .kbe_aside h2 {
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin: 0 0 27px;
    font-size: 22px;
    color: #e0e0e0;
    font-weight: 400;
}
#kbe_content h2 span.kbe_count {
    color: #fff;
    font-size: 14px;
    width: 88px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    font-weight: 400;
    float: right;
    display: block;
    background: #166c94;
}
#kbe_content .kbe_category h2 a {
    display: inline-block;
    text-decoration: none;
    color: #e0e0e0;
    width: 70%;
}
.kbe_leftcol .kbe_category.has-child h2 {
    padding-left: 21px;
}

/* ===== Article Lists ===== */
#kbe_content .kbe_category .kbe_article_list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#kbe_content .kbe_leftcol .kbe_article_list li {
    margin-bottom: 20px;
    margin-left: 0;
    background: url(../images/article.svg) no-repeat left center;
    background-size: 14px auto;
    padding: 0 0 0 32px;
    line-height: 20px;
}
#kbe_content .kbe_leftcol .kbe_article_list li a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 14px;
}
#kbe_content .kbe_leftcol .kbe_article_list li a:hover {
    color: #007acc;
}

/* ===== Child Categories ===== */
#kbe_content .kbe_category .kbe_child_category {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}
#kbe_content .kbe_child_category h3 {
    border-bottom: 1px solid #444;
    padding-bottom: 8px !important;
    margin-left: 15px;
    color: #e0e0e0;
    overflow: hidden;
    font-weight: 600;
    font-size: 20px !important;
}
#kbe_content .kbe_child_category h3 span.kbe_count {
    color: #fff;
    font-size: 13px;
    width: 88px;
    height: 26px;
    line-height: 25px;
    text-align: center;
    font-weight: 400;
    float: right;
    display: block;
    background: #166c94;
    margin-bottom: 0 !important;
}
#kbe_content .kbe_child_category h3 a {
    display: inline-block;
    text-decoration: none;
    color: #e0e0e0;
    width: 70%;
    margin-top: 7px;
}
#kbe_content .kbe_child_category .kbe_child_article_list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 15px;
}
#kbe_content .kbe_leftcol .kbe_child_article_list li {
    margin-bottom: 20px;
    margin-left: 0;
    background: url(../images/article.svg) no-repeat left center;
    background-size: 14px auto;
    padding: 0 0 0 32px;
    line-height: 20px;
}
#kbe_content .kbe_leftcol .kbe_child_article_list li a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 14px;
}

/* ===== Articles Page ===== */
#kbe_content .kbe_leftcol .kbe_articles ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.kbe_articles ul li {
    list-style: none outside none;
    padding: 2px 0 0 30px;
    margin: 0 0 3px;
    background: url(../images/article.svg) no-repeat left center;
    background-size: 14px auto;
}
#kbe_content .kbe_leftcol .kbe_articles ul li a {
    color: #b8b8b8;
    font-size: 14px;
    line-height: 32px;
    text-decoration: none;
}

/* ===== Search Page ===== */
#kbe_content .kbe_leftcol .kbe_articles_search ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.kbe_articles_search ul li {
    list-style: none;
    padding: 4px 0 24px 30px;
    margin: 0 0 10px;
    background: url(../images/article.svg) no-repeat left center;
    background-size: 14px auto;
    border-bottom: 1px solid #333;
}
#kbe_content .kbe_leftcol .kbe_articles_search ul li a {
    color: #d4d4d4;
    font-size: 16px;
    font-weight: 600;
    line-height: 32px;
    text-decoration: none;
}
.post-meta {
    color: #888;
    display: block;
    font-size: 13px;
}

/* ===== Content Details ===== */
#kbe_content .kbe_leftcol a {
    color: #007acc;
    text-decoration: none;
}
#kbe_content .kbe_leftcol h2 {
    font-size: 22px;
    font-weight: normal;
    border-bottom: 1px solid #444;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
#kbe_content .kbe_leftcol h3 {
    font-size: 18px;
    padding-bottom: 0;
    margin-bottom: 16px;
}
#kbe_content .kbe_leftcol p {
    font-weight: normal;
    color: #d4d4d4;
}
#kbe_content .kbe_leftcol ul {
    list-style-type: disc;
    padding: 0 19px;
    margin-bottom: 20px;
}
#kbe_content .kbe_leftcol ol {
    list-style-type: decimal;
    padding: 0 21px;
    margin-bottom: 20px;
}
.article-content {
    line-height: 1.8;
}

/* ===== Aside / Sidebar ===== */
.kbe_aside {
    width: 25%;
    float: right;
}
.kbe_aside.kbe_aside_none {
    display: none !important;
}
.kbe_aside.kbe_aside_left {
    float: left !important;
    margin-right: 5%;
}
.kbe_aside.kbe_aside_right {
    float: right !important;
    margin-left: 5%;
}
.kbe_widget {
    margin-bottom: 40px;
    content: "";
    display: table;
    clear: both;
    width: 99%;
}
.kbe_widget h2 {
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
}
.kbe_widget ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0;
}
#kbe_container .kbe_widget li {
    margin-bottom: 16px;
    margin-left: 0;
    background: url(../images/angle-right.svg) no-repeat;
    background-position: left center;
    background-size: 18px auto;
    padding: 0 0 0 25px;
}
.kbe_widget li a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
}
.kbe_widget li a:hover {
    color: #007acc;
}

/* KBE Object List (sidebar article lists) */
.kbe-object-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.kbe-object-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    background: url(../images/angle-right.svg) no-repeat left center;
    background-size: 18px auto;
}
.kbe-object-list li a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}
.kbe-object-list li a:hover {
    color: #007acc;
}

/* ===== Tags ===== */
.kbe_tags_div {
    width: 100%;
    height: auto;
    margin: 8px 0 16px;
    overflow: hidden;
    color: #999;
}
.kbe_tags_div a {
    color: #007acc !important;
    font-size: 14px;
}

/* ===== Blockquote ===== */
#kbe_container blockquote {
    margin: 15px 30px 0 10px;
    padding-left: 20px;
    border-left: 5px solid #444;
    font-style: italic;
    color: #aaa;
}

/* ===== Responsive ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .kbe_category {
        width: 100%;
        display: inline-block;
    }
    .kbe_aside {
        float: left;
        width: 222px;
    }
    .kbe_content_left, .kbe_content_right {
        width: 64% !important;
    }
    #kbe_content h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 767px) {
    .kbe_category {
        width: 100%;
    }
    .kbe_content_left, .kbe_content_right {
        width: 100% !important;
        float: none;
    }
    .kbe_aside {
        float: none;
        width: 100%;
    }
    .kbe_aside.kbe_aside_left,
    .kbe_aside.kbe_aside_right {
        float: none !important;
        margin: 30px 0 0 0;
    }
}

@media screen and (max-width: 480px) {
    .kbe_breadcrum ul li {
        float: none;
        display: inline-block;
    }
    .kbe_search_field input[type="text"] {
        padding: 17px 4px 13px 9px;
        text-align: center;
    }
    #kbe_content .kbe_category h2 a {
        width: 60%;
    }
}
