.insight-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: #fff;
}
.insight-card .insight-card-image {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0px 0px 2px rgb(231, 230, 230);
}
.insight-card .insight-card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 8px;
}
.insight-card .insight-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align: left !important;
    align-items: flex-start;
    min-width: 0;
    padding: 16px 4px 4px;
}
.insight-card .insight-card-category {
    display: inline-block;
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
    color: #0085d9;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}
.insight-card span {
    font-weight: 600;
    line-height: 1.35;
}
.insight-card span a {
    color: #111;
    text-decoration: none;
}
.insight-card .insight-card-content > p {
    color: #686d73;
    line-height: 1.6 !important;
    margin: 5px 0px !important;
}
.insight-card .insight-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
}
.insight-card-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555d65;
    white-space: nowrap;
}
.insight-card .insight-card-more {
    color: #0085d9;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.insight-card-more span {
    margin-left: 5px;
}
.insight-card a:hover {
    color: #005b99;
}
.insight-card a:focus-visible {
    outline: 2px solid #0085d9;
    outline-offset: 3px;
}
.topics-flex.insight-list,
.single-post-page .latest-blog-section > .insight-cards {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 24px;
}
.featured-insights .container {
    max-width: 1000px !important;
    width: 90% !important;
}
.featured-insights .section-title {
    text-align: center !important;
    margin-bottom: 20px !important;
}
.featured-insights {
    padding-bottom: 48px;
}
.featured-insights .insight-card--featured {
    flex-direction: row;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    background: #f8f9fb;
}
.insight-card--featured .insight-card-image {
    flex: 1 1 50%;
    align-self: center;
    min-width: 0;
}
.insight-card--featured .insight-card-content {
    flex: 1 1 50%;
    padding: 8px 4px;
    text-align: left !important;
}
.insight-card--featured .insight-card-meta {
    border-top: 1px solid #e1e5e9;
    padding-top: 12px;
}
.topics-flex.insight-list > .insight-card,
.single-post-page .insight-cards > .insight-card {
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
}
.knowledge-results h3 {
    margin: 0 !important;
}
.knowledge-results .topics-flex.insight-list > .insight-card {
    flex-basis: calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
}
@media (max-width: 991px) {
    .featured-insights .insight-card--featured {
        gap: 18px;
    }
}
@media (max-width: 630px) {
    .featured-insights .insight-card--featured {
        flex-direction: column;
        gap: 0;
        padding: 12px;
    }
    .insight-card--featured .insight-card-image {
        width: 100%;
    }
    .insight-card--featured .insight-card-content {
        padding: 16px 4px 4px;
    }
}

/* Category navigation and independently scrolling desktop results. */
.blog-listing-page .explore-topics-section {
    padding: 64px 0;
}
.blog-listing-page .blog-explore {
    width: 100%;
    margin-bottom: 36px;
}
.blog-listing-page .blog-explore .section-title {
    text-align: center !important;
    margin-bottom: 16px;
}
.blog-listing-page .knowledge-layout {
    display: flex;
    flex-wrap: wrap;

    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 32px;
}
.knowledge-sidebar {
    box-sizing: border-box;
    overflow: hidden;
    flex: 0 0 28%;
    min-width: 0;
    background: var(--Material-Medium, #f6f6f6cb);
    box-shadow: 0px 0px 3px rgba(128, 128, 128, 0.623);
    border-radius: 8px;
    text-align: left;
    padding: 10px 0px;
}
.knowledge-sidebar > span {
    margin: 0;
    color: #222;
    font-weight: 600;
    padding: 15px 20px;
}
.knowledge-categories {
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    margin: 20px;
    border-top: 1px solid #bfc0c2;
}
.knowledge-categories .filter-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #16191c;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
}
.knowledge-categories .filter-btn span {
    overflow-wrap: anywhere;
}
.knowledge-categories .category-icon {
    flex: 0 0 18px;
}
.knowledge-categories .filter-btn:hover {
    background: #eaf5fc;
}
.knowledge-categories .filter-btn.active {
    background: linear-gradient(90deg, #0076d4 0%, #40c4ff 100%);
    color: #fff;
}
.knowledge-categories .filter-btn:focus-visible {
    outline: 2px solid #007dcc;
    outline-offset: 3px;
}
.knowledge-results {
    flex: 1;
    min-width: 0;
    text-align: left;
    max-height: min(800px, 75vh);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 2px 12px 8px 2px;
}
/* Override the global zero-height horizontal scrollbar within this section. */
.blog-listing-page .knowledge-categories,
.blog-listing-page .knowledge-results {
    scrollbar-width: thin;
    scrollbar-color: #69737d #e8ecf0;
}
.blog-listing-page .knowledge-categories::-webkit-scrollbar,
.blog-listing-page .knowledge-results::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.blog-listing-page .knowledge-categories::-webkit-scrollbar-track,
.blog-listing-page .knowledge-results::-webkit-scrollbar-track {
    background: #e8ecf0;
    border-radius: 6px;
}
.blog-listing-page .knowledge-categories::-webkit-scrollbar-thumb,
.blog-listing-page .knowledge-results::-webkit-scrollbar-thumb {
    background: #69737d;
    border-radius: 6px;
}
.knowledge-results:focus-visible {
    outline: 2px solid #0085d9;
    outline-offset: 4px;
}
.knowledge-results > span {
    margin: 0 0 28px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.knowledge-results .topics-flex.insight-list {
    width: 100%;
    max-width: 100%;

    gap: 24px;
}
.knowledge-status {
    color: #626970;
    margin: 0 0 20px;
}
.knowledge-status:empty {
    display: none;
}
.knowledge-results .view-more {
    margin-top: 32px;
}
.knowledge-results .view-more[hidden] {
    display: none;
}
.knowledge-results .btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.blog-listing-page .insight-card span,
.blog-listing-page .insight-card p {
    overflow-wrap: anywhere;
}
@media (max-width: 991px) {
    .blog-listing-page .knowledge-layout {
        gap: 24px;
    }
    .knowledge-categories {
        padding: 12px;
    }
    .knowledge-categories .filter-btn {
        gap: 12px;
    }
    .knowledge-results .topics-flex.insight-list {
        gap: 24px;
    }
    .knowledge-results .insight-card {
        padding: 10px;
    }
}
@media (max-width: 767px) {
    .knowledge-sidebar > span {
        padding: 16px;
    }
    .knowledge-categories {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .knowledge-results > span {
        margin-bottom: 20px;
    }
    .blog-listing-page .explore-topics-section {
        padding: 40px 0;
    }
    .blog-listing-page .latest-news-section {
        padding-top: 48px !important;
    }
    .blog-listing-page .blog-explore {
        box-sizing: border-box;
        padding-inline: 5%;
        margin-bottom: 20px;
    }
}
@media (max-width: 480px) {
    .knowledge-categories .filter-btn {
        gap: 8px;
        padding: 10px 8px;
    }
}

/* One shared content width for the blog, category, and article pages. */
:root {
    --insights-max-width: 1200px;
}
.blog-listing-page .insights-container,
.blog-category-page .insights-container,
.single-post-page .container-blog.blog-detail,
.single-post-page .latest-blog-section > .insight-section-heading,
.single-post-page .latest-blog-section > .insight-cards {
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: var(--insights-max-width) !important;
    margin-inline: auto;
}
.insights-container > .col-12 {
    width: 100%;
    padding-inline: 0;
}
.insights-container .topics-flex.insight-list {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}
.latest-insights-section {
    background: #f8f9fb;
    padding: 48px 0 64px;
}
.latest-insights-title {
    margin: 0 0 32px;
    color: #111;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}
.blog-category-page .blog-explore {
    width: 100%;
}
.insight-card {
    border-radius: 8px;
    box-shadow: 0 2px 6px #07111f04;
}
@media (max-width: 767px) {
    .blog-listing-page .insights-container,
    .blog-category-page .insights-container,
    .single-post-page .container-blog.blog-detail,
    .single-post-page .latest-blog-section > .insight-section-heading,
    .single-post-page .latest-blog-section > .insight-cards {
        width: calc(100% - 32px);
    }
    .latest-insights-section {
        padding: 32px 0 40px;
    }
    .latest-insights-title {
        margin-bottom: 24px;
    }
}

/* Flex wrapping and independent scrolling adapt to available screen space. */
.topics-flex.insight-list,
.single-post-page .latest-blog-section > .insight-cards {
    align-items: stretch;
    justify-content: flex-start;
}
@media (max-width: 991px) {
    .topics-flex.insight-list > .insight-card,
    .single-post-page .insight-cards > .insight-card {
        flex-basis: calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
    .knowledge-sidebar {
        flex-basis: 210px;
    }
}
@media (max-width: 991px) {
    .blog-listing-page .knowledge-layout {
        flex-direction: column;
    }
    .knowledge-sidebar {
        box-sizing: border-box;
        flex: none;
        width: 100%;
    }
    .knowledge-results {
        flex: none;
        box-sizing: border-box;
        width: 100%;
        max-height: min(800px, 75vh);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 2px 12px 8px 2px;
    }
    .knowledge-categories {
        box-sizing: border-box;
        flex-direction: row;
        flex-wrap: nowrap;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin: 16px;
        border: 1px solid #dce3e9;
        border-radius: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        padding: 12px;
    }
    .knowledge-categories .filter-btn {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }
    .knowledge-categories .filter-btn span {
        overflow-wrap: normal;
    }
}
@media (max-width: 630px) {
    .topics-flex.insight-list > .insight-card,
    .single-post-page .insight-cards > .insight-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}
@media (max-width: 630px) {
    .knowledge-results .topics-flex.insight-list > .insight-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* Let the category list set the desktop row height; scroll results within it. */
@media (min-width: 992px) {
    .blog-listing-page .knowledge-layout {
        align-items: stretch;
    }
    .knowledge-results {
        box-sizing: border-box;
        contain: size;
        min-height: 0;
        max-height: none;
    }
}

/* Shared section typography and compact card metadata. */
.blog-listing-page .section-title,
.blog-listing-page .latest-insights-title,
.blog-category-page .section-title,
.single-post-page .insight-section-heading h2 {
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}
.insight-card .insight-card-time,
.insight-card .insight-card-more,
.insight-card .insight-card-more span {
    font-size: 12px;
    line-height: 1.4;
}
.insight-card .insight-card-time img {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    object-fit: contain;
}
.knowledge-categories .filter-btn {
    color: #16191c;
    background-color: transparent;
}
.knowledge-categories .filter-btn span {
    color: inherit;
    -webkit-text-fill-color: currentColor;
    background: none;
}
.knowledge-categories .filter-btn.active,
.knowledge-categories .filter-btn.active:hover {
    color: #fff;
    background: linear-gradient(90deg, #0076d4 0%, #40c4ff 100%);
}
.knowledge-categories .filter-btn:not(.active):hover {
    color: #16191c;
    background: #eaf5fc;
}
.knowledge-categories .category-icon {
    color: inherit;
    stroke: currentColor;
}
.insight-card--featured .insight-card-image img {
    max-height: 300px;
}
.insight-card--featured .insight-card-content > p {
    margin-bottom: 12px;
    line-height: 1.45 !important;
}
.insight-card--featured .insight-card-category {
    margin-bottom: 8px;
}
@media (max-width: 991px) {
    .knowledge-sidebar > span {
        padding: 16px;
    }
    .knowledge-categories {
        gap: 8px;
    }
}
@media (max-width: 630px) {
    .insight-card--featured .insight-card-image img {
        max-height: none;
    }
}
