/* Basic Reset */
.kb_articles_stats,
.kb_articles_item,
.kb_articles_question,
.kb_articles_answer,
.kb_articles_tags,
.kb_articles_author,
.kb_articles_source {
    margin: 0;
    padding: 0;
    border: none;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

.dmbs-page-title {
    padding: 30px 0;
}

/* Stats Display */
.kb_articles_stats {
    background-color: #f3f5f7;
    padding: 25px 25px 10px 25px;
    margin: 2rem 0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
}
.kb_articles_stats_header {
    font-size: 110%;
    line-height: 1.4rem;
}
.kb_articles_stats-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
}
.kb_articles_stats-item {
    display: flex;
    align-items: center;
    margin: 15px 15px 15px 0;
    flex: 1 1 200px; /* Ensures responsiveness */
}
.kb_articles_stats-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.kb_articles_stats-number {
    font-size: 24px;
    font-weight: 400;
    display: block;
    line-height: 1.3rem;
}
.kb_articles_stats-text {
    font-size: 14px;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kb_articles_stats-container {
        justify-content: center;
    }
    .kb_articles_stats-item {
        max-width: 100%;
        text-align: left;
    }
    .kb_articles_stats-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .kb_articles_stats-item div {
        text-align: left;
        padding-left: 15px;
    }
}



/* QA Listing */
.kb_articles_item {
    border-bottom: 1px solid #e5e5e5;
    padding: 2rem 0;
    transition: all 0.2s ease-in-out;
}
/*
.kb_articles_item:hover {
    background-color: #f9f9f9;
}*/
.kb_articles_question {
    font-size: 1.4rem;
    font-weight: 400;
    color: #1c2328;
    margin-bottom: 1.2rem;
    line-height: 1.8rem;
}
.kb_articles_answer {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.kb_articles_tags {
/*    background-color: #f0f0f0;
    padding: 2px 6px;
    margin: 2px;
    border-radius: 3px;
    font-size: 0.9em;*/
}
.kb_articles_tag {
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #999;
    margin-bottom: 0.5rem;
    background-color: #eee;
    padding: 5px 15px;
    border-radius: 15px;
}
.kb_articles_author_and_source {
    font-size: 0.9rem;
    color: #5f6368;
    margin-bottom: 0.5rem;
    text-align: right;
}
/*
.kb_articles_source {
}
*/
.kb_articles_source a {
    text-decoration: none;
    outline-offset: 2px;
}
/*
.kb_articles_source a:hover {
}
*/
/* Pagination */
.kb_articles_pagination_wrapper {
    text-align: center;
    padding: 30px;
}
.kb_items_per_page {
    padding-bottom: 15px;
}
.kb_items_per_page_label {
    padding-right: 10px;
}
.kb_items_per_page_select {
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    margin: 5px;
    background-color: #f9f9f9;
    font-weight: 300;
}
.kb_articles_page_numbers a {
    border: none;
    border-radius: 5px;
    padding: 8px 11px;
    margin: 5px;
    background-color: #f9f9f9;
}

/* Search form styles */
.kb_articles_search {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
}
.kb_search_form {
    display: flex;
    gap: 10px;
}
.kb_search_input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.kb_search_input::placeholder {
    color: #bbb;
}
.kb_search_button {
    padding: 10px 20px;
    background-color: #ef813c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.5s ease;
}
.kb_search_button:hover {
    background-color: #c16830;
}
.kb_search_results_count {
    padding: 0px 5px 0 5px;
    font-size: 85%;    
}

/* Search highlight styles */
.kb_search_highlight {
    background-color: rgb(255, 255, 170);
    border-radius: 5px;
}

/* Rating controls */
.kb_articles_rating_controls {
    text-align: right;
}
.kb_rating_btn {
    padding: 0px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-left: 10px;
    transition: background-color 0.5s ease;
}
.kb_rating_btn:hover {
    background: #e9e9e9;
}
.kb_rating_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.kb_rating_success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Rating value */
.kb_rating_value {
    font-weight: bold;
}

/* Tags */
.kb_active_tags {
    font-size: 0.85rem;
    padding: 15px 0px 5px 5px;
    display: flow-root;
}
.kb_articles_tag {
    display: inline-block;
    font-size: 85%;
    margin-bottom: 0.5rem;
    color: #999;
    margin-bottom: 0.5rem;
    background-color: #eee;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}
.kb_articles_tag_active {
    background-color: #ef813c;
    color: #fff;
}
.kb_articles_tag:hover {
    background-color: #ddd;
}
.kb_articles_tag_active:hover {
    background-color: #c16830;
}
.kb_active_all_clear {
    float: right;
    border: 1px solid #aaa;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.5s ease;
}
.kb_active_all_clear:hover {
    background-color: #ddd;
    color: #555;
}