/*
Theme Name: MP Biomedicals (Latest Draft)
Description: MP Biomedicals
Author: MP Biomedicals
Version: 1.0
*/

/* ==========================================
   1. GLOBAL RESET & CONTAINER LOGIC
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0;
    font-weight: 400;
    color: #666666;
    margin: 0;
    background-color: #ffffff;
    overflow-x: hidden !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-header,
.site-content,
.site-footer,
#page {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-content {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: #1a202c;
    text-decoration: none;
}

/* ==========================================
   3. TYPOGRAPHY & LINKS
   ========================================== */
a {
    color: #1c1c1c;
    text-decoration: none;
    transition: all ease 400ms;
    -moz-transition: all ease 400ms;
    -webkit-transition: all ease 400ms;
}

a:hover {
    text-decoration: none;
}

p a:hover {
    color: #fc3329;
}

h1, h3, h4, h5, h6 {
    color: #1a202c;
    line-height: 1.3;
    margin-top: 0;
}

h2 {
    display: block;
    font-size: 2rem;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    font-weight: bold;
    color: #1a202c !important;
}

ol {
    display: block;
    list-style-type: decimal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 0px;
}

ol li {
    list-style: inherit;
    list-style-position: inside;
    margin: 0 0 10px;
    border: none;
}

ol li a {
    color: #1c1c1c;
}

ol li a:hover {
    color: #fc3329;
}

/* ==========================================
   4. HOMEPAGE FULL-WIDTH BANNER
   ========================================== */
.homepage-banner {
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 0 !important;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden !important;
}

.homepage-banner img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ==========================================
   5. SINGLE POST BANNER
   ========================================== */
.single-post-banner {
    width: 100% !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    line-height: 0 !important;
}

.single-post-banner img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px !important;
}

.entry-title {
    font-size: 2.5rem !important;
    color: #1a202c !important;
    margin-bottom: 10px !important;
}

.entry-published-date {
    margin: 0 0 28px !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.5;
}

.entry-published-date time {
    color: inherit;
}

/* ==========================================
   6. AJAX FILTER PLUGIN OVERRIDES
   ========================================== */
.caf-tags-grid,
.caf-tags-grid .caf-post-terms {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.caf-tags-grid a,
.caf-tags-grid span {
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* ==========================================
   7. SIDEBAR FILTER FIX
   ========================================== */
body .caf-terms-list-item {
    display: flex !important;
    align-items: center !important;
}

body .caf-terms-list-item .manage-lc-lbl,
body .caf-terms-list-item .manage-text-lbl {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

body .caf-terms-list-item .trm-name {
    white-space: nowrap !important;
    word-break: keep-all !important;
    margin-right: 6px !important;
}

/* ==========================================
   8. UNIFY POST CARD CATEGORIES & TAGS
   ========================================== */
body .caf-builder-column-main {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
}

body .caf-builder-column-main .caf-builder-module-main {
    display: contents !important;
}

/* ==========================================
   9. BANNER LOGO (OVERLAY)
   ========================================== */
.logo-wrapper {
    position: absolute !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;

    max-width: 1140px !important;

    margin: 0 auto !important;
    padding-left: 20px !important;
    width: 100% !important;
    z-index: 10 !important;
}

/* Logo and company name link */
.logo-wrapper a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: auto !important;
    height: auto !important;
    color: #ffffff !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
}

.banner-brand-name {
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

.homepage-banner img.banner-logo {
    width: 95px !important;
    height: auto !important;
    margin: 0 !important;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3)) !important;
}
/* ==========================================
   10. LOGO MOBILE RESIZE
   ========================================== */
@media screen and (max-width: 768px) {
    .homepage-banner img.banner-logo {
        width: 60px !important;
    }
    .logo-wrapper {
        top: 10px !important;
        padding-left: 15px !important;
    }

    .banner-brand-name {
        font-size: 15px;
    }
}

/* ==========================================
   11. FOOTER
   ========================================== */
.site-footer-fullwidth {
    width: 100% !important;
    padding: 56px 32px 24px !important;
    box-sizing: border-box !important;
    color: #cbd5e1 !important;
    background: #061b36 !important;
}

.site-footer-content {
    max-width: 1140px !important;
    margin: 0 auto !important;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(130px, 1fr));
    gap: 48px;
    padding-bottom: 38px;
    text-align: left;
}

.footer-brand strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
}

.site-footer-content .footer-brand p {
    max-width: 310px;
    margin: 0 !important;
    color: #a9b8c9 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.footer-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-group h2 {
    margin: 0 0 4px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Video sort controls and channel CTA */
.mp-video-sort { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.mp-video-sort button { border: 1px solid #d6dfe8; border-radius: 8px; padding: 11px 20px; background: #eef2f6; color: #142c45; font: inherit; font-weight: 600; cursor: pointer; }
.mp-video-sort button[aria-pressed="true"] { background: #102f50; color: #fff; border-color: #102f50; }
.mp-video-sort button:hover { border-color: #0076a8; }
.mp-video-sort button:focus-visible, .site-footer-fullwidth a:focus-visible { outline: 3px solid #25b9e8; outline-offset: 4px; }
.mp-video-sort-note { color: #53677d; font-size: 14px; margin: 0 0 26px; }
.mp-video-grid .mp-video-card[hidden] { display: none !important; }
.mp-video-more { margin: 38px 0 12px; text-align: center; }
.mp-video-more > a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 19px 32px; border-radius: 8px; background: #003da5; color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }
.mp-video-more > a:hover { background: #002f82; color: #fff; }
.site-footer-fullwidth a { color: #c4d2e1; text-decoration: none; }
.site-footer-fullwidth a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-group a { font-size: 14px; line-height: 1.45; }
.footer-brand > a { display: block; }
.footer-group span {
    color: #a9b8c9;
    font-size: 14px;
    line-height: 1.45;
    cursor: default;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #8295aa;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .site-footer-fullwidth {
        padding: 42px 22px 22px !important;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* ==========================================
   12. TWO-COLUMN POST LAYOUT
   ========================================== */
.post-layout-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    align-items: flex-start !important; /* CRITICAL: Allows sidebar to be sticky */
    margin-top: 30px !important;
}

.post-sidebar {
    width: 25% !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 40px !important;
    border-right: 1px solid #e2e8f0 !important;
    padding-right: 15px !important;
}

.entry-content {
    width: 75% !important;
    padding: 14px 28px 0;
}

@media screen and (max-width: 768px) {
    .post-layout-grid {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .post-sidebar, .entry-content {
        width: 100% !important;
    }
    .post-sidebar {
        position: relative !important;
        top: 0 !important;
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding-bottom: 20px !important;
    }
}

/* ==========================================
   13. TABLE OF CONTENTS
   ========================================== */
#ez-toc-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
}

#ez-toc-container p.ez-toc-title {
    font-family: 'Lato', sans-serif !important;
    font-size: 20px !important;
    color: #00b5f1 !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    border: none !important;
    padding: 0 !important;
    text-transform: none !important;
}

/* Hide toggle button and default numbering */
.ez-toc-toggle,
.ez-toc-number {
    display: none !important;
}

#ez-toc-container ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 10px 10px 0px !important;
}

/* Button sizing and spacing */
#ez-toc-container ul li a {
    font-family: "Lato", sans-serif !important;
    font-size: 15.2px !important;
    color: #888888 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 5px 15px !important;
    margin-bottom: 2px !important;
    line-height: 30px !important;
    border-radius: 4px !important;
    transition: all 0.25s ease-in-out !important;
    box-shadow: none !important;
}

/* Hover & Active Scroll Highlight */
#ez-toc-container ul li a:hover,
#ez-toc-container ul li.active > a,
.post-sidebar .ez-toc-list li.active > a {
    color: #00b5f1 !important;
    background-color: #f0f9ff !important;
    font-weight: 500 !important;
}

/* ==========================================
   14. HIDE AUTO-INSERTED DUPLICATE TOC
   ========================================== */
/* Catches the primary container, numbered variations (-1, -2), and fallback classes */
.entry-content #ez-toc-container,
.entry-content [id^="ez-toc-container-"],
.entry-content .ez-toc-container {
    display: none !important;
}

/* ==========================================
   15. RELATED ARTICLES & ARTICLE CTA
   ========================================== */
.related-articles {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.related-articles h2,
.article-cta h2 {
    margin-top: 0;
}

.related-articles ul {
    margin: 0;
    padding-left: 20px;
}

.related-articles li {
    margin-bottom: 10px;
}

.related-articles a {
    color: #003da5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-cta {
    margin-top: 32px;
    padding: 28px;
    background: #f4f8fc;
    border-left: 4px solid #003da5;
    border-radius: 8px;
}

.article-cta p {
    margin-bottom: 20px;
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-cta-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-cta-primary {
    color: #ffffff;
    background: #003da5;
    border: 1px solid #003da5;
}

.article-cta-secondary {
    color: #003da5;
    background: #ffffff;
    border: 1px solid #003da5;
}

.article-cta-primary:hover {
    color: #ffffff;
    background: #002d7a;
}

.article-cta-secondary:hover {
    color: #ffffff;
    background: #003da5;
}

@media screen and (max-width: 600px) {
    .article-cta {
        padding: 22px;
    }

    .article-cta-actions {
        flex-direction: column;
    }

    .article-cta-actions a {
        width: 100%;
    }
}
/* Blog Top Navigation */
.blog-top-nav {
    position: absolute;
    top: 38px;
    right: max(24px, calc((100% - 1140px) / 2));
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 30px;
}

.blog-top-nav a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 6px;
}

.blog-top-nav a:hover,
.blog-top-nav a:focus {
    color: #ffffff;
    opacity: 0.85;
    border-bottom-color: #ffffff;
}

/* Content type is controlled by the top navigation.
   Keep the Category module in the DOM for AJAX, but hide the duplicate UI. */
body .caf-builder-instance-0 .caf-fl-module-1 {
    display: none !important;
}

/* Scientific topics remain visible as a separate Tag filter. */
body .caf-builder-instance-0 .caf-fl-module-2 {
    display: flex !important;
    width: 100% !important;
}

body .caf-builder-instance-0 .caf-fl-module-2 .caf-terms-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
}

body .caf-builder-instance-0 .caf-fl-module-2 .caf-terms-list-item {
    min-height: 44px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 2px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e8edf3 !important;
    border-radius: 0 !important;
    cursor: pointer;
}

body .caf-builder-instance-0 .caf-fl-module-2 .manage-ic-lbl,
body .caf-builder-instance-0 .caf-fl-module-2 .manage-text-lbl {
    min-width: 0 !important;
    width: 100% !important;
}

body .caf-builder-instance-0 .caf-fl-module-2 .manage-text-lbl {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

body .caf-builder-instance-0 .caf-fl-module-2 .trm-name {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin-right: 8px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
}

body .caf-builder-instance-0 .caf-fl-module-2 .count-span {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

body .caf-builder-instance-0 .caf-fl-module-2 .caf-filter-label-common {
    margin-bottom: 6px;
}

body .homepage-banner .blog-top-nav .blog-filter-link {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 2px 7px;
}

.homepage-banner .banner-dots {
    gap: 0;
}

.homepage-banner .banner-dot,
.homepage-banner .banner-dot.is-active {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.homepage-banner .banner-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
}

.homepage-banner .banner-dot.is-active::before {
    width: 25px;
    border-radius: 10px;
    background: #00b5f1;
}

/* Mobile navigation */
@media screen and (max-width: 768px) {
    .blog-top-nav {
        top: auto;
        right: 16px;
        bottom: 16px;
        left: 16px;
        justify-content: center;
        gap: 22px;
        padding: 12px 16px;
        background: rgba(0, 61, 165, 0.88);
        border-radius: 6px;
    }

    .blog-top-nav a {
        font-size: 14px;
        padding-bottom: 3px;
    }
}
/* =====================================
   MP Biomedicals Homepage Slideshow
===================================== */

.homepage-banner {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(420px, 28.57vw, 600px);
    overflow: hidden;
    background: #061b36;
}

/* Slideshow container */

.homepage-banner .banner-slideshow,
.homepage-banner .banner-overlay {
    position: absolute;
    inset: 0;
}

.homepage-banner .banner-slideshow {
    z-index: 0;
}

/* Slideshow images */

.homepage-banner .banner-slide {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}

.homepage-banner .banner-slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* Improve text readability */

.homepage-banner .banner-overlay {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(6, 27, 54, 0.38) 0%,
        rgba(6, 27, 54, 0.58) 50%,
        rgba(6, 27, 54, 0.35) 100%
    );
}

/* Keep logo and navigation above images */

.homepage-banner .logo-wrapper,
.homepage-banner .blog-top-nav {
    z-index: 4;
}

/* Fixed banner content */

.homepage-banner .banner-content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: min(900px, 82%);
    color: #ffffff;
    text-align: center;
    transform: translate(-50%, -50%);
}

.homepage-banner .banner-content h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.homepage-banner .banner-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(15px, 1.4vw, 21px);
    font-weight: 400;
    line-height: 1.6;
}

/* Slideshow dots */

.homepage-banner .banner-dots {
    position: absolute;
    z-index: 4;
    bottom: 22px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.homepage-banner .banner-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        width 0.3s ease,
        border-radius 0.3s ease,
        background 0.3s ease;
}

.homepage-banner .banner-dot.is-active {
    width: 25px;
    border-radius: 10px;
    background: #00b5f1;
}

/* Mobile adjustment */

@media (max-width: 768px) {
    .homepage-banner {
        height: 520px;
    }

    .homepage-banner .banner-content {
        top: 54%;
        width: 86%;
    }

    .homepage-banner .banner-content h1 {
        font-size: 36px;
    }

    .homepage-banner .banner-content p {
        font-size: 15px;
        line-height: 1.55;
    }

    .homepage-banner .slide-one {
        object-position: 30% center;
    }

    .homepage-banner .slide-two {
        object-position: 70% center;
    }

    .homepage-banner .slide-three {
        object-position: 25% center;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .homepage-banner .banner-slide,
    .homepage-banner .banner-dot {
        transition: none;
    }
}

/* Fix banner navigation click issue */

.homepage-banner .banner-slideshow,
.homepage-banner .banner-slide,
.homepage-banner .banner-overlay,
.homepage-banner .banner-content {
    pointer-events: none !important;
}

.homepage-banner .blog-top-nav,
.homepage-banner .blog-top-nav a,
.homepage-banner .logo-wrapper,
.homepage-banner .logo-wrapper a {
    z-index: 20 !important;
    pointer-events: auto !important;
}

.homepage-banner .banner-dots,
.homepage-banner .banner-dot {
    z-index: 20 !important;
    pointer-events: auto !important;
}

/* Latest resources heading */
.mp-latest-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.mp-latest-heading .mp-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: #0076a8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mp-latest-heading h2 {
    margin: 0;
    color: #061b36 !important;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.mp-latest-heading .mp-section-description {
    max-width: 620px;
    margin: 14px auto 0;
    color: #5f6f82;
    font-size: 16px;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .mp-latest-heading {
        margin-bottom: 24px;
        text-align: left;
    }

    .mp-latest-heading h2 {
        font-size: 30px;
    }

    .mp-latest-heading .mp-section-description {
        font-size: 15px;
    }
}

/* =====================================
   MP Biomedicals Article Card UI
===================================== */

/* Equal card height */

body .caf-builder-instance-0 .post-layout-container-inner.caf-grid {
    align-items: stretch !important;
}

body .caf-builder-instance-0 article.caf-builder-post-area {
    display: flex !important;
    height: 100% !important;
}

body .caf-builder-instance-0 article.caf-builder-post-area > .caf-row-0 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    gap: 0 !important;
    padding: 0 0 18px !important;
    overflow: hidden;
    background: #ffffff !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(6, 27, 54, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Subtle hover */

body .caf-builder-instance-0 article.caf-builder-post-area:hover > .caf-row-0 {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(6, 27, 54, 0.13);
}

/* Same image size */

body .caf-builder-instance-0
.caf-column-0
.caf-module-type-image {
    display: block !important;
    position: relative;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef3f8;
}

body .caf-builder-instance-0
.caf-column-0
.caf-module-type-image a {
    display: block;
    width: 100%;
    height: 100%;
}

body .caf-builder-instance-0
.caf-column-0
.caf-module-type-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.4s ease;
}

body .caf-builder-instance-0
.caf-builder-post-area:hover
.caf-module-type-image img {
    transform: none;
}

/* Consistent title area */

body .caf-builder-instance-0
.caf-builder-post-area
.caf-column-1 {
    flex: 1 1 auto !important;
    min-height: 95px;
    padding: 16px 16px 8px !important;
}

body .caf-builder-instance-0
.caf-builder-title-value {
    display: -webkit-box;
    margin: 0 !important;
    overflow: hidden;
    color: #061b36;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Published date */
body .caf-builder-instance-0 .mp-card-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0 16px 12px;
    color: #6b7787;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

body .caf-builder-instance-0 .mp-card-date::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    background: #00a7df;
    border-radius: 50%;
}

/* Keep tags aligned at the bottom */

body .caf-builder-instance-0
.caf-builder-post-area
.caf-column-2 {
    margin-top: auto !important;
    padding: 0 16px !important;
}

/* Mobile: use one clean column */

@media (max-width: 767px) {
    body .caf-builder-instance-0
    .post-layout-container-inner.caf-grid {
        grid-template-columns: 1fr !important;
        row-gap: 20px !important;
    }

    body .caf-builder-instance-0
    .caf-builder-post-area
    .caf-column-1 {
        min-height: auto;
    }

    body .caf-builder-instance-0
    .caf-builder-title-value {
        font-size: 17px !important;
        -webkit-line-clamp: 2;
    }
}
/* Active top navigation filter */

/* Top navigation filter buttons */

.homepage-banner .blog-top-nav .blog-filter-link {
    appearance: none;
    padding: 0 0 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.homepage-banner .blog-top-nav .blog-filter-link:hover,
.homepage-banner .blog-top-nav .blog-filter-link:focus {
    opacity: 0.85;
}

.homepage-banner .blog-top-nav .blog-filter-link.is-active {
    opacity: 1;
    border-bottom-color: #00b5f1;
}

.webinar-banner-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.webinar-banner-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Card taxonomy hierarchy: content type first, scientific topics second */
body .caf-builder-instance-0 .caf-builder-post-area .caf-column-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

body .caf-builder-instance-0 .caf-builder-post-area .caf-column-2 > .caf-module-1 {
    order: 1 !important;
}

body .caf-builder-instance-0 .caf-builder-post-area .caf-column-2 > .caf-module-0 {
    order: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body .caf-builder-instance-0 .caf-builder-post-area .term-tax-category {
    padding: 6px 12px !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #003da5 !important;
    border-radius: 999px !important;
}

body .caf-builder-instance-0 .caf-builder-post-area .term-tax-post_tag {
    padding: 6px 11px !important;
    color: #334b66 !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    background: #eef3f8 !important;
    border: 1px solid #dce5ee !important;
    border-radius: 999px !important;
}

/* Hide slideshow indicators; automatic rotation continues. */
.homepage-banner .banner-dots {
    display: none !important;
}

/* Keep filter controls comfortably tappable on mobile. */
body .caf-builder-instance-0 .caf-filter-module-reset-output,
body .caf-builder-instance-0 .caf-search-right-col {
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

body .caf-builder-instance-0 .caf-filter-module-reset-output {
    width: 100%;
    padding: 8px 12px;
    cursor: pointer;
}

/* Clean, compact sidebar search with a single visual frame. */
body .caf-builder-instance-0 .caf-module-type-search {
    padding: 0 !important;
    margin-bottom: 20px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body .caf-builder-instance-0 .caf-filter-module-search-output {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ea !important;
    border-radius: 7px !important;
    box-shadow: 0 2px 8px rgba(12, 42, 72, 0.05) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body .caf-builder-instance-0 .caf-filter-module-search-output:focus-within {
    border-color: #1689bd !important;
    box-shadow: 0 0 0 3px rgba(22, 137, 189, 0.12) !important;
}

body .caf-builder-instance-0 .caf-search-input-field {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: #17324d !important;
    font-size: 14px !important;
}

body .caf-builder-instance-0 .caf-search-input-field::placeholder {
    color: #8291a3 !important;
    opacity: 1 !important;
}

body .caf-builder-instance-0 .caf-search-right-col {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    background: #0b5c9f !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

body .caf-builder-instance-0 .caf-search-right-col:hover {
    background: #084a82 !important;
}

body .caf-builder-instance-0 .caf-search-right-col .search-icon,
body .caf-builder-instance-0 .caf-search-right-col i {
    color: #ffffff !important;
    font-size: 15px !important;
}

/* Clean topic filters with clear hover, selected, and count states. */
body .caf-builder-instance-0 .caf-builder-filter-label-wrapper {
    margin: 2px 0 10px !important;
}

body .caf-builder-instance-0 .caf-builder-filter-label {
    color: #17324d !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body .caf-builder-instance-0 .caf-terms-list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .caf-builder-instance-0 .caf-terms-list-item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 0 7px !important;
    padding: 9px 11px !important;
    background: #ffffff !important;
    border: 1px solid #e1e8ef !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

body .caf-builder-instance-0 .caf-terms-list-item:hover {
    background: #f4f8fc !important;
    border-color: #b8cfdf !important;
}

body .caf-builder-instance-0 .caf-terms-list-item .caf-checkbox-box {
    display: none !important;
}

body .caf-builder-instance-0 .caf-terms-list-item .manage-ic-lbl,
body .caf-builder-instance-0 .caf-terms-list-item .manage-text-lbl {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

body .caf-builder-instance-0 .caf-terms-list-item .manage-text-lbl {
    justify-content: space-between !important;
    gap: 10px !important;
}

body .caf-builder-instance-0 .caf-terms-list-item .caf-term-label {
    color: #324a60 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

body .caf-builder-instance-0 .caf-terms-list-item .count-span {
    flex: 0 0 auto !important;
    min-width: 28px !important;
    padding: 2px 7px !important;
    background: #eef3f8 !important;
    border-radius: 999px !important;
    color: #64788b !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

body .caf-builder-instance-0 .caf-terms-list-item.active,
body .caf-builder-instance-0 .caf-terms-list-item.caf-selected {
    background: #eaf4fb !important;
    border-color: #1689bd !important;
    box-shadow: inset 3px 0 0 #1689bd !important;
}

body .caf-builder-instance-0 .caf-terms-list-item.active .caf-term-label,
body .caf-builder-instance-0 .caf-terms-list-item.caf-selected .caf-term-label {
    color: #0b5c9f !important;
    font-weight: 700 !important;
}

body .caf-builder-instance-0 .caf-terms-list-item.active .count-span,
body .caf-builder-instance-0 .caf-terms-list-item.caf-selected .count-span {
    background: #0b5c9f !important;
    color: #ffffff !important;
}

body .caf-builder-instance-0 .caf-terms-list-item.is-empty-topic {
    opacity: 0.5 !important;
}

body .caf-builder-instance-0 .caf-filter-module-reset-output {
    margin-top: 10px !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ea !important;
    border-radius: 7px !important;
    color: #526a7f !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
}

body .caf-builder-instance-0 .caf-filter-module-reset-output:hover {
    background: #f4f8fc !important;
    border-color: #1689bd !important;
    color: #0b5c9f !important;
}

/* =====================================================
   MP BIOMEDICALS – GLOBAL ARTICLE CONTENT SYSTEM
   ===================================================== */

/* ---------- ARTICLE TYPOGRAPHY ---------- */

.entry-content {
    width: 75% !important;
    padding: 14px 28px 0;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #17365d;
}

.entry-content p {
    margin: 0 0 20px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #102f57 !important;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.entry-content h1 {
    margin: 0 0 20px;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.entry-content h2 {
    margin: 42px 0 18px;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.entry-content h3 {
    margin: 32px 0 14px;
    font-size: 24px;
    line-height: 1.35;
}

.entry-content h4 {
    margin: 26px 0 12px;
    font-size: 20px;
    line-height: 1.4;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

/* ---------- GLOBAL ARTICLE TABLE SYSTEM ---------- */

.entry-content .mpbio-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 38px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b7c8d8 #eef3f7;
}

.entry-content .mpbio-table-scroll::-webkit-scrollbar {
    height: 8px;
}

.entry-content .mpbio-table-scroll::-webkit-scrollbar-track {
    background: #eef3f7;
    border-radius: 999px;
}

.entry-content .mpbio-table-scroll::-webkit-scrollbar-thumb {
    background: #b7c8d8;
    border-radius: 999px;
}

.entry-content table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #17365d;
    background: #ffffff;
}

.entry-content table th,
.entry-content table td {
    padding: 15px 16px;
    text-align: left;
    vertical-align: top;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    white-space: normal;
}

.entry-content table thead th,
.entry-content table tr:first-child th {
    background: #eeeeee;
    color: #17365d;
    font-weight: 700;
}

.entry-content table tbody tr:nth-child(even) {
    background: #f3f3f3;
}

.entry-content table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.entry-content table th:first-child,
.entry-content table td:first-child {
    font-weight: 700;
}

/* 2-column comparison tables */
.entry-content table.mpbio-cols-2 {
    min-width: 620px;
}

.entry-content table.mpbio-cols-2 th:first-child,
.entry-content table.mpbio-cols-2 td:first-child {
    width: 30%;
}

.entry-content table.mpbio-cols-2 th:nth-child(2),
.entry-content table.mpbio-cols-2 td:nth-child(2) {
    width: 70%;
}

/* 3-column comparison tables */
.entry-content table.mpbio-cols-3 {
    min-width: 760px;
}

.entry-content table.mpbio-cols-3 th:first-child,
.entry-content table.mpbio-cols-3 td:first-child {
    width: 20%;
}

.entry-content table.mpbio-cols-3 th:nth-child(2),
.entry-content table.mpbio-cols-3 td:nth-child(2),
.entry-content table.mpbio-cols-3 th:nth-child(3),
.entry-content table.mpbio-cols-3 td:nth-child(3) {
    width: 40%;
}

/* 4-column tables */
.entry-content table.mpbio-cols-4 {
    min-width: 880px;
}

.entry-content table.mpbio-cols-4 th:first-child,
.entry-content table.mpbio-cols-4 td:first-child {
    width: 18%;
}

.entry-content table.mpbio-cols-4 th:nth-child(2),
.entry-content table.mpbio-cols-4 td:nth-child(2),
.entry-content table.mpbio-cols-4 th:nth-child(3),
.entry-content table.mpbio-cols-4 td:nth-child(3),
.entry-content table.mpbio-cols-4 th:nth-child(4),
.entry-content table.mpbio-cols-4 td:nth-child(4) {
    width: 27.333%;
}

/* 5-column workflow tables */
.entry-content table.mpbio-cols-5 {
    min-width: 1040px;
}

.entry-content table.mpbio-cols-5 th:first-child,
.entry-content table.mpbio-cols-5 td:first-child {
    width: 14%;
}

.entry-content table.mpbio-cols-5 th:nth-child(2),
.entry-content table.mpbio-cols-5 td:nth-child(2) {
    width: 25%;
}

.entry-content table.mpbio-cols-5 th:nth-child(3),
.entry-content table.mpbio-cols-5 td:nth-child(3) {
    width: 17%;
}

.entry-content table.mpbio-cols-5 th:nth-child(4),
.entry-content table.mpbio-cols-5 td:nth-child(4) {
    width: 19%;
}

.entry-content table.mpbio-cols-5 th:nth-child(5),
.entry-content table.mpbio-cols-5 td:nth-child(5) {
    width: 25%;
}

/* Fallback for tables before JS adds a column-count class */
.entry-content table:not(.mpbio-cols-2):not(.mpbio-cols-3):not(.mpbio-cols-4):not(.mpbio-cols-5) {
    min-width: 720px;
}

.entry-content table:not(.mpbio-cols-2):not(.mpbio-cols-3):not(.mpbio-cols-4):not(.mpbio-cols-5) th:first-child,
.entry-content table:not(.mpbio-cols-2):not(.mpbio-cols-3):not(.mpbio-cols-4):not(.mpbio-cols-5) td:first-child {
    width: 20%;
    min-width: 140px;
}

/* ---------- STANDARD ARTICLE CTA SYSTEM ---------- */

.entry-content .mpbio-content-cta {
    margin: 30px 0 38px;
}

.entry-content .mpbio-content-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    color: #ffffff !important;
    background: #e30613;
    border: 1px solid #e30613;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.entry-content .mpbio-content-cta a::after {
    content: "→";
    font-size: 1.05em;
    line-height: 1;
}

.entry-content .mpbio-content-cta a:hover,
.entry-content .mpbio-content-cta a:focus-visible {
    color: #ffffff !important;
    background: #bd0010;
    border-color: #bd0010;
    transform: translateY(-1px);
}

.entry-content .mpbio-content-cta a:focus-visible {
    outline: 3px solid rgba(0, 181, 241, 0.35);
    outline-offset: 3px;
}

.entry-content .mpbio-content-cta mark,
.entry-content .mpbio-content-cta span,
.entry-content .mpbio-content-cta strong {
    color: inherit !important;
    background: transparent !important;
}

/* ---------- EXISTING BOTTOM ARTICLE CTA ---------- */

.article-cta {
    margin-top: 36px;
    padding: 30px;
    background: #f4f8fc;
    border-left: 4px solid #003da5;
    border-radius: 8px;
}

.article-cta h2 {
    margin: 6px 0 12px !important;
    font-size: 27px !important;
    line-height: 1.25;
}

.article-cta p {
    margin: 0 0 20px;
    color: #53677d;
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-cta-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.article-cta-actions a:hover {
    transform: translateY(-1px);
}

.article-cta-primary {
    color: #ffffff !important;
    background: #003da5;
    border: 1px solid #003da5;
}

.article-cta-primary:hover {
    color: #ffffff !important;
    background: #002d7a;
    border-color: #002d7a;
}

.article-cta-secondary {
    color: #003da5 !important;
    background: #ffffff;
    border: 1px solid #003da5;
}

.article-cta-secondary:hover {
    color: #ffffff !important;
    background: #003da5;
}

/* ---------- IMAGES ---------- */

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content figure {
    margin: 30px 0;
}

.entry-content figcaption {
    margin-top: 8px;
    color: #6f8193;
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- TABLET / MOBILE ---------- */

@media (max-width: 900px) {
    .entry-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .entry-content table {
        font-size: 14.5px;
    }
}

@media (max-width: 768px) {
    .entry-content {
        width: 100% !important;
        padding: 10px 0 0;
        font-size: 16px;
        line-height: 1.65;
    }

    .entry-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .entry-content h2 {
        margin-top: 34px;
        font-size: 26px;
        line-height: 1.3;
    }

    .entry-content h3 {
        font-size: 22px;
    }

    .entry-content .mpbio-table-scroll {
        width: 100%;
        max-width: 100%;
        padding-bottom: 4px;
    }

    .entry-content table {
        font-size: 14px;
        line-height: 1.5;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 12px 14px;
    }

    .entry-content table.mpbio-cols-2 {
        min-width: 600px;
    }

    .entry-content table.mpbio-cols-3 {
        min-width: 720px;
    }

    .entry-content table.mpbio-cols-4 {
        min-width: 840px;
    }

    .entry-content table.mpbio-cols-5 {
        min-width: 980px;
    }

    .entry-content .mpbio-content-cta {
        margin: 26px 0 32px;
    }

    .entry-content .mpbio-content-cta a {
        width: 100%;
        min-height: 46px;
        padding: 13px 18px;
    }

    .article-cta {
        padding: 22px;
    }

    .article-cta-actions {
        flex-direction: column;
    }

    .article-cta-actions a {
        width: 100%;
    }
}

/* Force-hide Zoho Marketing Automation cookie banner components */
#zpcookie-banner, 
.zpcookie-banner,
div[id^="zpccookie"], 
div[class^="zpcookie"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}