/* ==========================================================================
   TECHERA MED SYSTEMS - GENMEDITECH EXACT MATCH STYLES
   - Plus Jakarta Sans Typography
   - Compact Headings (h4/h5 proportions)
   - 100% Bulletproof Sticky Contact Form
   - Fully Responsive Medical Tables
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --cbt-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --cbt-page-bg: #f8fafc;
    --cbt-white: #ffffff;
    
    --cbt-navy-title: #0a1e3b;
    --cbt-navy-headings: #0f274a;
    --cbt-text-body: #334155;
    --cbt-text-muted: #64748b;
    
    --cbt-blue-primary: #1267d6;
    --cbt-blue-hover: #0c4da2;
    --cbt-blue-soft: #f0f7ff;
    --cbt-purple-accent: #7357d9;
    --cbt-purple-light: #f5f2fe;
    --cbt-green: #10b981;
    
    --cbt-border: #e2e8f0;
    --cbt-card-radius: 18px;
    --cbt-img-radius: 14px;
}

/* ==========================================================================
   STICKY FIX: Ensure All Theme Parents Allow Sticky Scrolling
   ========================================================================== */
html, body {
    overflow-x: clip !important; /* Does not break sticky like overflow-x:hidden does */
}

#view,
#page, 
#content, 
.site-content, 
.content-area, 
.site-main, 
#primary, 
.cbt-page-wrapper {
    overflow: visible !important;
}

body.single-post {
    background-color: var(--cbt-page-bg) !important;
    font-family: var(--cbt-font) !important;
    -webkit-font-smoothing: antialiased;
}

/* 1. Global Reading Progress Bar */
#cbt-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--cbt-blue-primary), var(--cbt-purple-accent));
    width: 0%;
    z-index: 9999999;
}

/* Container */
.cbt-page-wrapper {
    max-width: 1240px;
    margin: 28px auto 80px;
    padding: 0 20px;
    font-family: var(--cbt-font) !important;
    box-sizing: border-box;
}

/* ==========================================================================
   2-COLUMN GRID (STRETCH FOR PERFECT SIDEBAR STICKY)
   ========================================================================== */
.cbt-main-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 32px !important;
    align-items: stretch !important; /* CRITICAL: Allows sidebar to span full height of article */
    position: relative !important;
}

/* ==========================================================================
   LEFT ARTICLE CARD
   ========================================================================== */
.cbt-article-card {
    background: var(--cbt-white);
    border-radius: var(--cbt-card-radius);
    padding: 24px 28px 48px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    border: 1px solid var(--cbt-border);
}

/* Top Cover Image */
.cbt-hero-cover-wrap {
    width: 100%;
    margin-bottom: 20px;
}
.cbt-hero-cover-img {
    width: 100% !important;
    height: auto !important;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--cbt-img-radius) !important;
    display: block;
    box-shadow: 0 8px 24px rgba(10, 30, 59, 0.08);
}

/* Author & Date Below Image */
.cbt-post-meta-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: var(--cbt-text-muted);
}
.cbt-meta-author-wrap {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.cbt-avatar-round {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.cbt-meta-author-name {
    font-weight: 700;
    color: #0f172a;
}
.cbt-meta-date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cbt-meta-date-wrap svg {
    color: var(--cbt-blue-primary);
}

/* H1 Title */
.cbt-hero-h1 {
    font-size: clamp(1.75rem, 2.8vw, 2.25rem) !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    color: var(--cbt-navy-title) !important;
    margin: 0 0 24px 0 !important;
    letter-spacing: -0.025em;
    font-family: var(--cbt-font) !important;
}

/* ==========================================================================
   HEADINGS: COMPACT & BALANCED (h4 / h5 SCALE)
   ========================================================================== */
.cbt-article-body h1,
.cbt-article-body h2,
.cbt-article-body h3,
.cbt-article-body h4,
.cbt-article-body h5 {
    color: var(--cbt-navy-headings) !important;
    font-family: var(--cbt-font) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* H2: Compact ~22px with vertical gradient indicator */
.cbt-article-body h2 {
    font-size: 1.38rem !important;
    line-height: 1.35 !important;
    margin-top: 2.4rem !important;
    margin-bottom: 0.9rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cbt-article-body h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--cbt-blue-primary), var(--cbt-purple-accent));
    border-radius: 4px;
    flex-shrink: 0;
}

/* H3: Compact ~18px */
.cbt-article-body h3 {
    font-size: 1.15rem !important;
    line-height: 1.4 !important;
    margin-top: 1.8rem !important;
    margin-bottom: 0.7rem !important;
    color: #1e3a5f !important;
}
.cbt-article-body h4 {
    font-size: 1.05rem !important;
    margin-top: 1.4rem !important;
    margin-bottom: 0.5rem !important;
}

/* Body Content */
.cbt-article-body {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--cbt-text-body) !important;
}
.cbt-article-body p {
    margin-bottom: 1.45rem !important;
}
.cbt-article-body a {
    color: var(--cbt-blue-primary) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Responsive Medical Tables */
.cbt-table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    -webkit-overflow-scrolling: touch;
}
.cbt-article-body table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border: 1px solid var(--cbt-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    font-size: 14px !important;
    margin: 0 !important;
}
.cbt-article-body th {
    background: var(--cbt-blue-soft) !important;
    color: var(--cbt-navy-headings) !important;
    font-weight: 800 !important;
    text-align: left !important;
    padding: 13px 16px !important;
    border-bottom: 2px solid var(--cbt-border) !important;
    white-space: nowrap;
}
.cbt-article-body td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--cbt-border) !important;
    color: var(--cbt-text-body) !important;
    vertical-align: middle !important;
}
.cbt-article-body tr:nth-child(even) td {
    background: #fcfdfe !important;
}

/* Blockquote */
.cbt-article-body blockquote {
    background: linear-gradient(135deg, #f0f7ff 0%, #f7faff 100%) !important;
    border: 1px solid #dbeafe !important;
    border-left: 4px solid var(--cbt-blue-primary) !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    margin: 2rem 0 !important;
    color: #0c4a6e !important;
    font-size: 0.98rem;
    font-style: normal !important;
}

/* Author Box & Share */
.cbt-author-footer-card {
    display: flex;
    gap: 18px;
    background: #f8fafc;
    border: 1px solid var(--cbt-border);
    border-radius: 14px;
    padding: 22px;
    margin-top: 42px;
}
.cbt-author-avatar-big img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}
.cbt-author-role {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--cbt-green);
}
.cbt-author-footer-name {
    margin: 3px 0 6px 0 !important;
    font-size: 1.1rem !important;
    color: var(--cbt-navy-title) !important;
}
.cbt-author-footer-bio {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: var(--cbt-text-muted) !important;
}
.cbt-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--cbt-border);
}
.cbt-share-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cbt-navy-title);
}
.cbt-share-btn-group {
    display: flex;
    gap: 8px;
}
.cbt-share-btn {
    background: #f1f5f9;
    border: 1px solid var(--cbt-border);
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    cursor: pointer;
}
.cbt-share-btn:hover {
    background: var(--cbt-blue-primary);
    color: #ffffff;
}

/* ==========================================================================
   RIGHT SIDEBAR & 100% BULLETPROOF STICKY CONTACT FORM
   ========================================================================== */
.cbt-sidebar-column {
    position: relative !important;
    height: 100% !important; /* Critical for sticky to track full article length */
    min-height: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cbt-side-card {
    background: var(--cbt-white);
    border-radius: var(--cbt-card-radius);
    padding: 24px 22px;
    border: 1px solid var(--cbt-border);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.02);
}
.cbt-side-title {
    margin: 0 0 8px 0 !important;
    font-size: 14.5px !important;
    font-weight: 850 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cbt-navy-title) !important;
}

/* 1. Connect Card */
.cbt-connect-desc {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--cbt-text-muted);
    line-height: 1.5;
}
.cbt-connect-socials {
    display: flex;
    gap: 10px;
}
.cbt-social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cbt-purple-light);
    color: var(--cbt-purple-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.cbt-social-circle:hover {
    background: var(--cbt-purple-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   2. STICKY CONTACT FORM: STICKS TO TOP & SCROLLS SMOOTHLY WITH PAGE
   ========================================================================== */
.cbt-sticky-form-card {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important; /* Nav header ke theek neeche stick hoga */
    z-index: 999 !important;
    transition: box-shadow 0.2s ease;
}

/* Jab form stick hojaye toh subtle modern elevation */
.cbt-sticky-form-card:hover {
    box-shadow: 0 8px 26px rgba(10, 30, 59, 0.08);
}

.cbt-form-subtitle {
    margin: 0 0 18px 0;
    font-size: 13px;
    color: var(--cbt-text-muted);
}
.cbt-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cbt-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.cbt-form-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
}
.cbt-req {
    color: #e11d48;
}
.cbt-input {
    width: 100%;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    font-family: var(--cbt-font) !important;
    color: #1e293b !important;
    outline: none !important;
    box-sizing: border-box;
}
.cbt-input:focus {
    background: #ffffff !important;
    border-color: var(--cbt-blue-primary) !important;
    box-shadow: 0 0 0 3px rgba(18, 103, 214, 0.12) !important;
}

.cbt-form-submit-btn {
    margin-top: 4px;
    width: 100%;
    background: var(--cbt-blue-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    font-family: var(--cbt-font) !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(18, 103, 214, 0.25);
}
.cbt-form-submit-btn:hover {
    background: var(--cbt-blue-hover) !important;
    transform: translateY(-2px);
}

/* Status Message */
.cbt-form-status-msg {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
}
.cbt-form-status-msg.cbt-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.cbt-form-status-msg.cbt-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

/* 3. Table of Contents */
.cbt-side-toc-items {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 280px;
    overflow-y: auto;
}
.cbt-side-toc-items li {
    margin-bottom: 7px;
}
.cbt-side-toc-items li.cbt-toc-sub {
    padding-left: 12px;
}
.cbt-side-toc-items a {
    color: var(--cbt-text-muted);
    font-size: 13px;
    text-decoration: none !important;
    display: block;
    padding: 4px 6px;
    border-radius: 6px;
}
.cbt-side-toc-items a:hover,
.cbt-side-toc-items a.active {
    color: var(--cbt-blue-primary);
    background: var(--cbt-blue-soft);
    font-weight: 700;
}

/* Mobile Accordion */
.cbt-mobile-toc-accordion {
    display: none;
    background: #f8fafc;
    border: 1px solid var(--cbt-border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
}
.cbt-mobile-toc-accordion summary {
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 750;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
}
.cbt-mobile-toc-accordion ul {
    list-style: none !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile / Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
    .cbt-main-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .cbt-sticky-form-card {
        position: static !important; /* Mobile par overlap se bachne ke liye */
    }
    .cbt-mobile-toc-accordion {
        display: block;
    }
    .cbt-side-toc-card {
        display: none;
    }
}

@media (max-width: 640px) {
    .cbt-page-wrapper {
        padding: 0 12px;
        margin: 14px auto 40px;
    }
    .cbt-article-card {
        padding: 16px 16px 32px;
    }
    .cbt-post-meta-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ==========================================================================
   BLOG ARCHIVE / CATEGORY ARCHIVE STYLES (NO IMAGE CROP + CARD ANIMATION)
   ========================================================================== */

.cbt-blog-archive-page {
    background-color: var(--cbt-page-bg, #f8fafc);
    padding-bottom: 80px;
    font-family: var(--cbt-font, 'Plus Jakarta Sans', sans-serif) !important;
}

/* 1. Archive Hero */
.cbt-archive-hero {
    background: linear-gradient(135deg, #082b57 0%, #0c3e7a 65%, #18295a 100%);
    padding: 60px 20px 55px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cbt-archive-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}
.cbt-archive-badge {
    display: inline-block;
    background: rgba(25, 169, 116, 0.2);
    color: #4ade80;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 14px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.cbt-archive-title {
    font-size: clamp(1.85rem, 3.5vw, 2.8rem) !important;
    font-weight: 850 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: -0.025em;
}
.cbt-archive-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto 28px;
}

/* Mobile-Proof Search Bar */
.cbt-archive-search-box {
    max-width: 540px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 4px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
}
.cbt-archive-search-form {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 6px !important;
}
.cbt-search-svg {
    color: var(--cbt-text-muted, #64748b);
    margin-left: 8px;
    flex-shrink: 0;
}
.cbt-archive-search-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border: none !important;
    outline: none !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    background: transparent !important;
    padding: 8px 6px !important;
}
.cbt-archive-search-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    background: var(--cbt-blue-primary, #1267d6) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    font-weight: 750 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}
.cbt-archive-search-btn:hover {
    background: var(--cbt-blue-hover, #0d4fa8) !important;
}

/* 2. Container & Category Filter Pills */
.cbt-archive-container {
    max-width: 1240px;
    margin: -22px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.cbt-cat-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(8, 43, 87, 0.05);
    border: 1px solid var(--cbt-border, #e2e8f0);
}
.cbt-filter-pill {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cbt-text-muted, #64748b);
    text-decoration: none !important;
    background: var(--cbt-page-bg, #f8fafc);
    border: 1px solid var(--cbt-border, #e2e8f0);
    transition: all 0.2s ease;
}
.cbt-filter-pill:hover,
.cbt-filter-pill.active {
    background: var(--cbt-blue-primary, #1267d6);
    color: #ffffff;
    border-color: var(--cbt-blue-primary, #1267d6);
}

/* 3. UNIFORM 3-COLUMN BLOG GRID */
.cbt-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
}

/* SEXY CARD ANIMATION ON HOVER (NO IMAGE ZOOM) */
.cbt-card-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cbt-border, #e2e8f0);
    box-shadow: 0 4px 18px rgba(10, 30, 59, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
    position: relative;
}
.cbt-card-item:hover {
    transform: translateY(-7px) !important;
    border-color: #93c5fd !important;
    box-shadow: 0 16px 36px -8px rgba(18, 103, 214, 0.18), 0 0 0 1px rgba(18, 103, 214, 0.25) !important;
}

/* THUMBNAIL WRAP: FULLY CONTAINED (ZERO TEXT CUTOUT) */
.cbt-card-img-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #082b57 !important; /* Blends perfectly with healthcare graphic banners */
}
.cbt-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* GUARANTEES ZERO TEXT CUTOUT */
    display: block !important;
    transition: none !important; /* Image does NOT scale or stretch */
    transform: none !important;
}
.cbt-card-item:hover .cbt-card-img {
    transform: none !important; /* Preserves steady image on hover */
}

/* Card Body */
.cbt-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Dedicated Category Badge Row */
.cbt-card-badge-row {
    margin-bottom: 10px;
    display: block;
    width: 100%;
}
.cbt-card-cat-badge {
    display: inline-block;
    background: #eef7ff;
    color: #0369a1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #bae6fd;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
}

/* Date & Reading Time Row */
.cbt-card-date-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cbt-text-muted, #64748b);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.cbt-dot-sep {
    color: #cbd5e1;
}

/* Title */
.cbt-card-title {
    font-size: 1.12rem !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    font-weight: 800 !important;
}
.cbt-card-title a {
    color: var(--cbt-navy-title, #082b57) !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.cbt-card-item:hover .cbt-card-title a {
    color: var(--cbt-blue-primary, #1267d6) !important;
}

/* Description */
.cbt-card-desc {
    font-size: 13.5px;
    color: var(--cbt-text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Link */
.cbt-card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--cbt-border, #e2e8f0);
}
.cbt-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cbt-blue-primary, #1267d6);
    font-weight: 750;
    font-size: 13px;
    text-decoration: none !important;
    transition: transform 0.2s;
}
.cbt-card-item:hover .cbt-card-link {
    transform: translateX(4px);
}

/* 4. Pagination */
.cbt-pagination-wrap {
    margin-top: 45px;
    text-align: center;
}
.cbt-pagination-wrap ul {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.cbt-pagination-wrap li a,
.cbt-pagination-wrap li span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--cbt-border, #e2e8f0);
    color: var(--cbt-text-body, #334155);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.2s;
}
.cbt-pagination-wrap li span.current,
.cbt-pagination-wrap li a:hover {
    background: var(--cbt-blue-primary, #1267d6);
    color: #ffffff;
    border-color: var(--cbt-blue-primary, #1267d6);
}

/* 5. Bottom CTA */
.cbt-archive-cta-section {
    max-width: 1240px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.cbt-archive-cta-inner {
    background: linear-gradient(135deg, #082b57 0%, #0d3b74 70%, #172758 100%);
    border-radius: 18px;
    padding: 44px 28px;
    color: #ffffff;
    text-align: center;
}
.cbt-archive-cta-badge {
    display: inline-block;
    background: rgba(25, 169, 116, 0.2);
    color: #4ade80;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.cbt-archive-cta-inner h2 {
    color: #ffffff !important;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important;
    margin: 0 0 12px 0 !important;
}
.cbt-archive-cta-inner p {
    color: #cbd5e1;
    font-size: 14px;
    max-width: 620px;
    margin: 0 auto 22px;
    line-height: 1.6;
}
.cbt-archive-cta-btn {
    display: inline-block;
    background: var(--cbt-blue-primary, #1267d6);
    color: #ffffff !important;
    font-weight: 750;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(18, 103, 214, 0.35);
    transition: all 0.2s;
}

/* ==========================================================================
   100% RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .cbt-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
}

@media (max-width: 640px) {
    .cbt-blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .cbt-archive-hero {
        padding: 40px 16px 36px;
    }
    .cbt-cat-filter-bar {
        padding: 8px 10px;
        gap: 6px;
    }
    .cbt-filter-pill {
        font-size: 11.5px;
        padding: 5px 10px;
    }
    .cbt-archive-search-box {
        padding: 3px;
    }
    .cbt-archive-search-btn {
        padding: 8px 14px !important;
        font-size: 12.5px !important;
    }
}