/* 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;
    transition: color 0.3s ease;
}
.kb_articles_question a {
    text-decoration: none;
    border: none;
}
.kb_articles_answer {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.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 0;
}
.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 9px;
    margin: 3px;
    background-color: #f9f9f9;
}

/* Search form  ******************************************************************/
.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;
    margin-right: 10px;
    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%;    
}
.kb_active_all_clear {
    float: right;
    border: 1px solid #aaa;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.5s ease;
}
.kb_active_all_clear:hover {
    background-color: #ddd;
    color: #555;
}
@media (max-width: 768px) {
    .kb_search_form {
        flex-direction: column;
        align-items: flex-start;
    }
    .kb_search_input {
        width: 100%;
    }
    .kb_search_button_wrapper {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .kb_search_button {
        width: calc(50% - 5px);
    }
    .kb_active_all_clear {
        width: calc(50% - 5px);
    }
}
/* 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 {
    border: none;
    border-radius: 4px;
    background: #fff;
    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.1;
    cursor: not-allowed;
    transform: none;
}
.kb_rating_success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.kb_articles_rating_icon_up {
    width: 20px;
}
.kb_articles_rating_icon_down {
    width: 20px;
    padding-top: 10px;
}
/* Rating value */
.kb_rating_value {
    font-weight: bold;
}
.kb_archive_btn {
    border: none;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-left: 10px;
    transition: background-color 0.5s ease;
}
.kb_archive_btn:hover {
    background: #e9e9e9;
}
.kb_archive_btn:disabled {
    opacity: 0.1;
    cursor: not-allowed;
    transform: none;
}
.kb_articles_archive {
    width: 20px;
}

/* Tags ******************************************************************/
/*
.kb_articles_tags {
}
*/
.kb_articles_tag {
    display: inline-block;
    font-size: 75%;
    margin-bottom: 0.5rem;
    color: #999;
    background-color: #eee;
    padding: 2px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}
.kb_active_tags {
    font-size: 0.85rem;
    padding: 15px 0px 5px 5px;
    display: flow-root;
}
.kb_articles_tag_active {
    background-color: #ef813c;
    color: #fff;
}
.kb_articles_tag:hover {
    background-color: #ddd;
}
.kb_articles_tag_active:hover {
    background-color: #c16830;
}

/* Individual QA and Glossary Term Pages ******************************************************************/
.kb_individual_page_container {
    padding: 50px 0;
}
.kb_individual_page_container tbody tr td {
    vertical-align: top;
}
.kb_individual_page_nav_link {
    text-align: right;
    padding: 10px 0 50px 0;
}
.kb_individual_page_nav_link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ef813c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
}
.kb_individual_page_nav_link a:hover {
    background-color: #c16830;
}
.kb_individual_page_icon {
    max-width: none !important;
    width: 30px;
    margin-right: 20px;
}
.kb_individual_page_title {
    font-size: 2rem;
    line-height: 1.2;
    padding-bottom: 40px;
}
.kb_individual_page_large {
    margin-bottom: 30px;
    font-size: 125%;
    background: #eee;
    padding: 30px;
    border-radius: 15px;
}
.kb_individual_page_medium {
    font-size: 120%;
    margin-bottom: 10px;
}
.kb_individual_page_text {
    margin: 2px 0 30px 0;
}
.kb_individual_articles_tags {
    padding-bottom: 30px;
}
.kb_individual_articles_tag {
    display: inline-block;
    font-size: 0.85rem;
    margin: 0 10px 10px 0;
    color: #999;
    background-color: #eee;
    padding: 5px 15px;
    border-radius: 15px;
}

/* Advertising blocks */
.kb_individual_page_ads_columns {
    display: flex;
/*            min-height: 500px;*/
    margin-bottom: 40px;
}
.kb_individual_page_ads_left-column {
    flex: 3; /* 75% of the screen */
    padding: 0 30px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.kb_individual_page_ads_right-column {
    flex: 1; /* 25% of the screen */
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
}
.kb_individual_page_ads_right-column a {
    border: none;
    color: #ff8020;
}
.kb_individual_page_ads_row {
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 10px 20px;
    background-color: #eee;
    transition: transform 0.3s ease;
}
.kb_individual_page_ads_product_category {
    font-size: 70%;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
}
.kb_individual_page_ads_product_title {
    font-size: 110%;
    color: #ef813c;
    padding: 5px 0;
    border: none;
    line-height: 1.3;
}
.kb_individual_page_ads_product_tagline {
    font-size: 85%;
    line-height: 1.3;
}
.kb_individual_page_ads_image-container {
    max-width: 100%;
    text-align: center;
}
.kb_individual_page_ads_image-container img {
    max-width: 75%;
    height: auto;
}
.kb_individual_page_ads_altevics_description {
    padding: 20px 0 0 0;
}

/* Responsive design for small screens */
@media (max-width: 768px) {
    .kb_individual_page_ads_columns {
        flex-direction: column;
    }
    .kb_individual_page_ads_left-column, .kb_individual_page_ads_right-column {
        flex: 1;
        width: 100%;
    }
    .kb_individual_page_ads_right-column {
        order: 2;
        min-height: 300px;
    }
    .kb_individual_page_ads_left-column {
        order: 1;
        padding: 0;
    }
}

/* Glossary List Page ******************************************************************/
.kb_glossary_list {
    padding: 20px 0;
}

.kb_glossary_list p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #555;
}

.kb_glossary_letter {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ef813c;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #ef813c;
    padding-bottom: 0.5rem;
}

.kb_glossary_terms {
    margin: 0 0 2rem 0;
}

.kb_glossary_term_item {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.kb_glossary_term_link {
    text-decoration: none;
    color: #1c2328;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.kb_glossary_term_link:hover {
    color: #ef813c;
}

/* Responsive adjustments for glossary */
@media (max-width: 768px) {
    .kb_glossary_letter {
        font-size: 1.5rem;
    }
    .kb_glossary_term_link {
        font-size: 1rem;
    }
    .kb_glossary_term_item {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
}
