/* ==========================================================================
   Humbel Knowledge Base Inner Pages & WPBakery Clean Elements
   Harmonized with Humbel Landing Theme — Lightweight, Zero Bloat, Editorial
   ========================================================================== */

:root {
    --hb-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hb-primary: #1e3a8a;
    --hb-primary-hover: #1e40af;
    --hb-link: #1d4ed8;
    --hb-accent: #f59e0b;
    --hb-dark: #0f172a;
    --hb-text-main: #0f172a;
    --hb-text-body: #1e293b;
    --hb-text-muted: #64748b;
    --hb-text-light: #94a3b8;
    --hb-bg-light: #f8fafc;
    --hb-border: #e2e8f0;
    --hb-border-subtle: #f1f5f9;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.hb-kb-body {
    margin: 0;
    padding: 0;
    font-family: var(--hb-font);
    color: var(--hb-text-main);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hb-kb-body a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.hb-kb-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header Navigation (Matches Landing Page .hb-navbar)
   ========================================================================== */
.hb-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--hb-border);
    position: sticky;
    top: 0;
    z-index: 990;
}

body.admin-bar .hb-navbar {
    top: 32px;
}

.hb-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 20px;
}

.hb-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.hb-logo-badge {
    width: 40px;
    height: 40px;
    background: var(--hb-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hb-accent);
}

.hb-logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.hb-logo-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--hb-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hb-logo-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--hb-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hb-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.hb-nav-link:hover,
.hb-nav-link.active {
    color: var(--hb-primary);
}

.hb-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hb-accent);
    border-radius: 2px;
}

.hb-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hb-nav-search {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 10px 0 12px;
    background: var(--hb-bg-light);
    border: 1px solid var(--hb-border);
    border-radius: 6px;
    color: var(--hb-text-muted);
}

.hb-nav-search:focus-within {
    background: #ffffff;
    border-color: var(--hb-primary);
}

.hb-nav-search input[type="search"] {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 13px;
    color: var(--hb-dark);
    width: 155px;
    padding: 0;
    margin: 0;
}

.hb-nav-search input[type="search"]::placeholder {
    color: var(--hb-text-light);
}

.hb-nav-kbd {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--hb-text-light);
    background: #ffffff;
    border: 1px solid var(--hb-border);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.2;
}

.hb-btn-login {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    background: var(--hb-dark);
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.hb-btn-login:hover {
    background: #1e293b;
}

.hb-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--hb-bg-light);
    border: 1px solid var(--hb-border);
    border-radius: 6px;
    color: var(--hb-dark);
    cursor: pointer;
}

.hb-mobile-drawer {
    background: #ffffff;
    border-top: 1px solid var(--hb-border-subtle);
    padding: 16px 0 20px;
}

.hb-mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.hb-mobile-search input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--hb-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.hb-mobile-search button {
    height: 38px;
    padding: 0 16px;
    background: var(--hb-dark);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.hb-mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-mobile-links li {
    border-bottom: 1px solid var(--hb-border-subtle);
}

.hb-mobile-links a {
    display: block;
    padding: 10px 2px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

/* ==========================================================================
   Archive / Search Page Band
   ========================================================================== */
.hb-page-band {
    background: var(--hb-bg-light);
    border-bottom: 1px solid var(--hb-border);
    padding: 28px 0 26px;
}

.hb-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 12.5px;
    color: var(--hb-text-muted);
    margin-bottom: 10px;
}

.hb-breadcrumb a:hover {
    color: var(--hb-primary);
}

.hb-bc-sep {
    color: #cbd5e1;
}

.hb-bc-current {
    color: #334155;
    font-weight: 600;
}

.hb-band-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.hb-band-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--hb-dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.hb-band-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--hb-text-muted);
    background: #ffffff;
    border: 1px solid var(--hb-border);
    padding: 2px 10px;
    border-radius: 999px;
}

.hb-band-desc {
    margin: 10px 0 0;
    max-width: 720px;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
}

.hb-band-search {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin-top: 16px;
}

.hb-band-search input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--hb-dark);
}

.hb-band-search input:focus {
    outline: none;
    border-color: var(--hb-primary);
}

.hb-band-search button {
    height: 40px;
    padding: 0 20px;
    background: var(--hb-dark);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.hb-band-search button:hover {
    background: var(--hb-primary);
}

/* ==========================================================================
   Main Two-Column Layout
   ========================================================================== */
.hb-main-area {
    padding: 38px 0 64px;
    min-height: 60vh;
}

.hb-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 48px;
    align-items: start;
}

.hb-layout-grid.hb-layout-full {
    grid-template-columns: minmax(0, 1fr);
}

/* ==========================================================================
   Archive Article Feed (Compact, Scannable, Zero Oversized Banners)
   ========================================================================== */
.hb-feed-list {
    border-top: 1px solid var(--hb-border);
}

.hb-feed-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--hb-border);
}

.hb-feed-body {
    flex: 1;
    min-width: 0;
}

.hb-feed-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: var(--hb-text-muted);
    margin-bottom: 6px;
}

.hb-feed-cat {
    font-weight: 600;
    color: var(--hb-primary);
}

.hb-feed-cat:hover {
    text-decoration: underline;
}

.hb-meta-dot {
    color: #cbd5e1;
}

.hb-feed-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: var(--hb-dark);
}

.hb-feed-title a:hover {
    color: var(--hb-primary);
}

.hb-feed-excerpt {
    margin: 0;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hb-feed-thumb {
    flex-shrink: 0;
    width: 164px;
    height: 108px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hb-border);
    background: var(--hb-bg-light);
}

.hb-feed-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.hb-feed-item:hover .hb-feed-thumb-img {
    transform: scale(1.03);
}

/* Pagination */
.hb-pagination {
    margin-top: 32px;
}

.hb-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-pagination .page-numbers a,
.hb-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--hb-border);
    color: #334155;
    background: #ffffff;
}

.hb-pagination .page-numbers a:hover {
    border-color: #94a3b8;
    color: var(--hb-dark);
}

.hb-pagination .page-numbers .current {
    background: var(--hb-dark);
    border-color: var(--hb-dark);
    color: #ffffff;
}

.hb-empty-state {
    padding: 40px 24px;
    background: var(--hb-bg-light);
    border: 1px solid var(--hb-border);
    border-radius: 10px;
    text-align: center;
}

.hb-empty-state h1,
.hb-empty-state h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--hb-dark);
}

.hb-empty-state p {
    margin: 0 0 18px;
    font-size: 14.5px;
    color: var(--hb-text-muted);
}

/* ==========================================================================
   Single Article & Page Layout
   ========================================================================== */
.hb-entry-bc {
    margin-bottom: 14px;
}

.hb-entry-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--hb-border);
}

.hb-entry-title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    color: var(--hb-dark);
    line-height: 1.26;
    letter-spacing: -0.02em;
}

.hb-entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13px;
    color: var(--hb-text-muted);
}

.hb-meta-author {
    font-weight: 600;
    color: #334155;
}

.hb-entry-thumb {
    margin: 0 0 28px;
}

.hb-entry-thumb-img {
    border-radius: 8px;
    border: 1px solid var(--hb-border);
    max-height: 460px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: var(--hb-bg-light);
}

/* Readable Article Typography (.hb-prose) */
.hb-prose {
    font-size: 16px;
    line-height: 1.78;
    color: var(--hb-text-body);
    overflow-wrap: break-word;
}

.hb-prose > *:first-child {
    margin-top: 0;
}

.hb-prose p {
    margin: 0 0 1.25em;
}

.hb-prose h2,
.hb-prose h3,
.hb-prose h4,
.hb-prose h5 {
    color: var(--hb-dark);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.015em;
    margin: 1.75em 0 0.65em;
}

.hb-prose h2 { font-size: 23px; }
.hb-prose h3 { font-size: 19px; }
.hb-prose h4 { font-size: 16.5px; }

.hb-prose a {
    color: var(--hb-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hb-prose a:hover {
    color: var(--hb-primary);
}

.hb-prose ul,
.hb-prose ol {
    margin: 0 0 1.3em;
    padding-left: 1.5em;
}

.hb-prose li {
    margin-bottom: 0.4em;
}

.hb-prose blockquote {
    margin: 1.5em 0;
    padding: 14px 20px;
    background: var(--hb-bg-light);
    border-left: 3px solid var(--hb-accent);
    border-radius: 0 6px 6px 0;
    color: #334155;
}

.hb-prose blockquote p:last-child {
    margin-bottom: 0;
}

.hb-prose pre {
    margin: 1.4em 0;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.6;
}

.hb-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
}

.hb-prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.hb-prose img {
    border-radius: 6px;
    margin: 1.2em 0;
}

.hb-prose .aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hb-prose .alignleft {
    float: left;
    margin: 0.4em 1.5em 1em 0;
    max-width: 50%;
}

.hb-prose .alignright {
    float: right;
    margin: 0.4em 0 1em 1.5em;
    max-width: 50%;
}

.hb-prose .wp-caption {
    max-width: 100%;
    margin: 1.4em 0;
}

.hb-prose .wp-caption-text,
.hb-vc-figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--hb-text-muted);
    text-align: center;
}

/* Tables */
.hb-table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 1.4em 0;
    border: 1px solid var(--hb-border);
    border-radius: 8px;
}

.hb-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.hb-prose th,
.hb-prose td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--hb-border);
    text-align: left;
}

.hb-prose th {
    background: var(--hb-bg-light);
    font-weight: 700;
    color: var(--hb-dark);
}

.hb-prose tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Lightweight WPBakery Converted Elements (.hb-vc-*)
   ========================================================================== */
.hb-vc-row,
.hb-prose .row-fluid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    margin: 1.4em 0;
}

.hb-vc-row > *, .hb-vc-col-12, .hb-prose .span12 { grid-column: span 12; }
.hb-vc-col-11 { grid-column: span 11; }
.hb-vc-col-10 { grid-column: span 10; }
.hb-vc-col-9  { grid-column: span 9; }
.hb-vc-col-8  { grid-column: span 8; }
.hb-vc-col-7  { grid-column: span 7; }
.hb-vc-col-6,  .hb-prose .span6 { grid-column: span 6; }
.hb-vc-col-5  { grid-column: span 5; }
.hb-vc-col-4,  .hb-prose .span4 { grid-column: span 4; }
.hb-vc-col-3,  .hb-prose .span3 { grid-column: span 3; }
.hb-vc-col-2,  .hb-prose .span2 { grid-column: span 2; }
.hb-vc-col-1  { grid-column: span 1; }

.hb-align-left   { text-align: left; }
.hb-align-center { text-align: center; }
.hb-align-right  { text-align: right; }

.hb-align-center .hb-vc-img {
    margin-left: auto;
    margin-right: auto;
}

.hb-vc-figure {
    margin: 1.4em 0;
}

.hb-vc-fig-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--hb-dark);
    margin-bottom: 8px;
}

.hb-vc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 1.4em 0;
}

.hb-vc-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--hb-border);
    margin: 0 !important;
}

.hb-vc-btn-wrap {
    margin: 1.2em 0;
}

.hb-vc-btn,
.hb-prose a.hb-vc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--hb-dark);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.4;
}

.hb-vc-btn:hover,
.hb-prose a.hb-vc-btn:hover {
    background: var(--hb-primary);
    color: #ffffff !important;
}

.hb-vc-callout {
    margin: 1.5em 0;
    padding: 20px 22px;
    background: var(--hb-bg-light);
    border: 1px solid var(--hb-border);
    border-radius: 8px;
}

.hb-vc-callout-title {
    margin: 0 0 6px !important;
    font-size: 18px !important;
}

.hb-vc-callout-sub {
    margin: 0 0 10px;
    color: var(--hb-text-muted);
    font-size: 14px;
}

.hb-vc-notice,
.hb-prose p.info,
.hb-prose p.notice,
.hb-prose p.success,
.hb-prose p.error {
    margin: 1.3em 0;
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 3px solid var(--hb-primary);
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 14.5px;
}

.hb-vc-notice p:last-child { margin-bottom: 0; }
.hb-vc-notice--warning, .hb-prose p.notice { border-left-color: #d97706; background: #fffbeb; color: #92400e; }
.hb-vc-notice--success, .hb-prose p.success { border-left-color: #15803d; background: #f0fdf4; color: #166534; }
.hb-vc-notice--danger,  .hb-prose p.error   { border-left-color: #dc2626; background: #fef2f2; color: #991b1b; }

.hb-vc-accordions {
    margin: 1.4em 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hb-vc-details {
    border: 1px solid var(--hb-border);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.hb-vc-summary {
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hb-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hb-vc-summary::-webkit-details-marker {
    display: none;
}

.hb-vc-summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 500;
    color: var(--hb-text-light);
    line-height: 1;
}

.hb-vc-details[open] .hb-vc-summary {
    border-bottom: 1px solid var(--hb-border-subtle);
    background: var(--hb-bg-light);
}

.hb-vc-details[open] .hb-vc-summary::after {
    content: '\2212';
    color: var(--hb-accent);
}

.hb-vc-details-body {
    padding: 16px 18px;
    font-size: 15px;
}

.hb-vc-details-body > *:last-child {
    margin-bottom: 0;
}

.hb-vc-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}

.hb-vc-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hb-vc-hr {
    border: 0;
    border-top: 1px solid var(--hb-border);
    margin: 1.8em 0;
}

.hb-vc-sep {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.8em 0;
    color: var(--hb-text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hb-vc-sep::before,
.hb-vc-sep::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--hb-border);
}

.hb-vc-spacer {
    height: 14px;
}

.hb-vc-bars {
    margin: 1.2em 0;
}

.hb-vc-bar-item {
    margin-bottom: 10px;
}

.hb-vc-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hb-vc-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.hb-vc-bar-fill {
    height: 100%;
    background: var(--hb-primary);
}

/* ==========================================================================
   Tags, Prev/Next Navigation & Related Articles
   ========================================================================== */
.hb-entry-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--hb-border);
}

.hb-tag-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hb-tag-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hb-text-muted);
}

.hb-tag-chip {
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    background: var(--hb-bg-light);
    border: 1px solid var(--hb-border);
    padding: 3px 10px;
    border-radius: 6px;
}

.hb-tag-chip:hover {
    border-color: #94a3b8;
    color: var(--hb-dark);
}

.hb-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.hb-post-nav-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--hb-border);
    border-radius: 8px;
    height: 100%;
}

.hb-post-nav-card.is-next {
    text-align: right;
}

.hb-post-nav-card:hover {
    border-color: #94a3b8;
    background: var(--hb-bg-light);
}

.hb-post-nav-dir {
    font-size: 12px;
    font-weight: 600;
    color: var(--hb-text-muted);
}

.hb-post-nav-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--hb-dark);
    line-height: 1.38;
}

.hb-related-box {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--hb-border);
}

.hb-related-heading {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    color: var(--hb-dark);
}

.hb-related-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hb-border);
    border-radius: 8px;
    overflow: hidden;
}

.hb-related-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--hb-border-subtle);
}

.hb-related-item:last-child {
    border-bottom: none;
}

.hb-related-item:hover {
    background: var(--hb-bg-light);
}

.hb-related-item-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--hb-dark);
}

.hb-related-item:hover .hb-related-item-title {
    color: var(--hb-primary);
}

.hb-related-item-date {
    font-size: 12px;
    color: var(--hb-text-light);
    white-space: nowrap;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.hb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hb-widget {
    border: 1px solid var(--hb-border);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}

.hb-widget-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hb-border-subtle);
    font-size: 14px;
    font-weight: 700;
    color: var(--hb-dark);
    letter-spacing: -0.01em;
    position: relative;
}

.hb-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 32px;
    height: 2px;
    background: var(--hb-accent);
}

.hb-recent-list,
.hb-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-recent-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--hb-border-subtle);
}

.hb-recent-item:first-child { padding-top: 2px; }
.hb-recent-item:last-child  { border-bottom: none; padding-bottom: 0; }

.hb-recent-link {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.42;
    margin-bottom: 3px;
}

.hb-recent-link:hover {
    color: var(--hb-primary);
}

.hb-recent-date {
    display: block;
    font-size: 11.5px;
    color: var(--hb-text-light);
}

.hb-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    margin: 0 -8px;
    border-radius: 6px;
    font-size: 13.5px;
    color: #334155;
}

.hb-cat-item:hover {
    background: var(--hb-bg-light);
    color: var(--hb-primary);
}

.hb-cat-item.is-current {
    background: #eff6ff;
    color: var(--hb-primary);
    font-weight: 700;
}

.hb-cat-count {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--hb-text-muted);
    background: var(--hb-bg-light);
    border: 1px solid var(--hb-border);
    padding: 1px 7px;
    border-radius: 999px;
}

.hb-cat-item.is-current .hb-cat-count {
    background: #ffffff;
    color: var(--hb-primary);
    border-color: #bfdbfe;
}

/* ==========================================================================
   Footer (Matches Landing Page .hb-footer)
   ========================================================================== */
.hb-footer {
    background: #090d16;
    color: #94a3b8;
    padding: 44px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.hb-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hb-footer-brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hb-footer-brand {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

.hb-footer-copy {
    font-size: 12.5px;
    color: #64748b;
}

.hb-footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
}

.hb-footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
    .hb-desktop-nav {
        display: none;
    }
    .hb-mobile-toggle {
        display: inline-flex;
    }
    .hb-layout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .hb-vc-row,
    .hb-prose .row-fluid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .hb-vc-row > *,
    .hb-prose .row-fluid > * {
        grid-column: span 1 !important;
    }
}

@media (max-width: 640px) {
    .hb-nav-search {
        display: none;
    }
    .hb-nav-inner {
        height: 68px;
    }
    .hb-band-title {
        font-size: 23px;
    }
    .hb-entry-title {
        font-size: 24px;
    }
    .hb-feed-item {
        gap: 14px;
        padding: 18px 0;
    }
    .hb-feed-title {
        font-size: 16.5px;
    }
    .hb-feed-excerpt {
        font-size: 13.5px;
        -webkit-line-clamp: 2;
    }
    .hb-feed-thumb {
        width: 104px;
        height: 76px;
    }
    .hb-post-nav {
        grid-template-columns: 1fr;
    }
    .hb-post-nav-card.is-next {
        text-align: left;
    }
    .hb-prose .alignleft,
    .hb-prose .alignright {
        float: none;
        max-width: 100%;
        margin: 1em 0;
    }
}
