/* ============================================================
   BLOG SYSTEM STYLES - 3WComputer Theme
   Colors: #002D62 (navy), #16a34a (green), #f8fafc (bg)
   ============================================================ */

/* ---------- Blog Hero ---------- */
.ww-blog-search {
    display: flex;
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}
.ww-blog-search input[type="search"] {
    min-width: 0;
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}
.ww-blog-search button {
    background: #1d384d;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
}
.ww-blog-search button:hover { background: #16a34a; }
.ww-blog-search input:focus-visible, .ww-blog-search button:focus-visible,
.blog-tab:focus-visible, .blog-card a:focus-visible { outline: 3px solid #16a34a; outline-offset: 3px; }
.single-v2-content { overflow-wrap: anywhere; }
.single-v2-content ol { list-style-type: decimal; }
.single-v2-content ul { list-style-type: disc; }
.single-v2-content iframe, .single-v2-content video { max-width: 100%; }
.single-v2-content table { display: block; overflow-x: auto; }
.blog-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #002D62;
}
.blog-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.25) saturate(0.8);
}
.blog-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 5rem 0 4rem;
}
.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(22,163,74,0.15);
    border: 1px solid rgba(22,163,74,0.4);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1.25rem;
}
.blog-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}
.blog-hero-sub {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Category Filter Bar ---------- */
.blog-cat-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    position: sticky;
    top: 68px;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.blog-cat-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}
.blog-cat-list::-webkit-scrollbar { display: none; }
.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.9rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    text-decoration: none;
    transition: all 0.18s ease;
}
.blog-cat-pill:hover, .blog-cat-pill.active {
    background: #002D62;
    border-color: #002D62;
    color: #ffffff;
}
.blog-cat-count {
    background: rgba(255,255,255,0.2);
    border-radius: 99px;
    padding: 0 0.45rem;
    font-size: 0.65rem;
}
.blog-cat-pill:not(.active) .blog-cat-count {
    background: #f1f5f9;
    color: #64748b;
}

/* ---------- Blog Main Wrapper ---------- */
.blog-main {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

/* ---------- Blog Grid ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Blog Hero Badge Small (shipping-style banner) */
.blog-hero-badge-sm {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.5rem;
}

/* ---------- Blog Card ---------- */
.blog-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid #f1f5f9;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,45,98,0.12);
}

/* Card Image */
.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 16 / 9;
    background: #eef2f7;
    flex-shrink: 0;
}
.blog-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
    color: #93c5fd;
    font-size: 2.5rem;
}
.blog-card-cat-badge {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    background: #002D62;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

/* Card Body */
.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}
.blog-card-meta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}
.blog-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.blog-card-meta-item i { font-size: 0.65rem; }
.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s;
}
.blog-card-title a:hover { color: #002D62; }
.blog-card-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
.blog-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #002D62;
    text-decoration: none;
    transition: gap 0.18s, color 0.18s;
}
.blog-card-btn:hover { color: #16a34a; gap: 0.6rem; }
.blog-card-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.blog-tag-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    text-decoration: none;
    transition: background 0.15s;
}
.blog-tag-pill:hover { background: #dcfce7; }

/* ---------- Pagination ---------- */
.blog-pagination { text-align: center; margin-top: 2rem; }
.blog-pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 0.65rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.18s;
    background: #fff;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #002D62;
    color: #fff;
    border-color: #002D62;
}

/* ---------- Blog Empty State ---------- */
.blog-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #64748b;
}
.blog-empty-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 1.25rem;
}
.blog-empty h2 { font-size: 1.5rem; font-weight: 800; color: #1e293b; margin-bottom: 0.5rem; }
.blog-empty p { font-size: 0.95rem; }

/* ---------- SINGLE POST ---------- */

/* Single Hero */
.single-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: #001a3a;
}
.single-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.22) saturate(0.7);
    transform: scale(1.04);
}
.single-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 5rem 0 3.5rem;
}

/* Breadcrumb */
.single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.single-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.single-breadcrumb a:hover { color: #4ade80; }
.single-breadcrumb-sep { color: rgba(255,255,255,0.3); font-size: 0.6rem; }

/* Category badges */
.single-cats { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.single-cat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(22,163,74,0.15);
    border: 1px solid rgba(22,163,74,0.4);
    color: #4ade80;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s;
}
.single-cat-badge:hover { background: rgba(22,163,74,0.3); }

/* Single Title */
.single-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    max-width: 820px;
}

/* Meta Bar */
.single-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.single-meta-item { display: flex; align-items: center; gap: 0.6rem; }
.single-meta-icon { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.single-meta-label { font-size: 0.65rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.single-meta-value { font-size: 0.82rem; color: rgba(255,255,255,0.85); font-weight: 600; }
.single-meta-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.15); }
.single-author-avatar img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }

/* Single Layout: sidebar + article */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .single-layout { grid-template-columns: 1fr; }
    .single-sidebar { order: -1; }
}

/* Sidebar */
.single-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 120px; }
.single-sidebar-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.single-sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #002D62;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
}
.single-share-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.single-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.18s, opacity 0.18s;
}
.single-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.single-share-fb { background: #1877f2; }
.single-share-tw { background: #1da1f2; }
.single-share-li { background: #0a66c2; }
.single-share-em { background: #64748b; }

.single-tags-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Related Posts */
.single-related-list { display: flex; flex-direction: column; gap: 0.75rem; }
.single-related-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    border-radius: 0.6rem;
    transition: background 0.15s;
}
.single-related-item:hover { background: #f8fafc; }
.single-related-thumb { width: 56px; height: 56px; border-radius: 0.5rem; overflow: hidden; flex-shrink: 0; background: #e2e8f0; }
.single-related-img { width: 100%; height: 100%; object-fit: cover; }
.single-related-text { display: flex; flex-direction: column; gap: 0.2rem; }
.single-related-title { font-size: 0.78rem; font-weight: 700; color: #1e293b; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.single-related-date { font-size: 0.65rem; color: #94a3b8; font-weight: 600; }

/* Article Content */
.single-content-wrap { min-width: 0; }
.single-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #334155;
}
.single-content h2 {
    font-size: 1.6rem; font-weight: 800; color: #002D62;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.02em;
}
.single-content h3 {
    font-size: 1.25rem; font-weight: 700; color: #0f172a;
    margin: 2rem 0 0.75rem;
}
.single-content h4 {
    font-size: 1.05rem; font-weight: 700; color: #1e293b;
    margin: 1.5rem 0 0.5rem;
}
.single-content p { margin-bottom: 1.4rem; }
.single-content ul, .single-content ol {
    margin: 0 0 1.4rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.45rem;
}
.single-content li { line-height: 1.7; }
.single-content a { color: #002D62; font-weight: 600; text-decoration: underline; text-decoration-color: #93c5fd; transition: color 0.15s; }
.single-content a:hover { color: #16a34a; }
.single-content img { border-radius: 0.75rem; max-width: 100%; height: auto; margin: 1.5rem 0; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.single-content blockquote {
    border-left: 4px solid #16a34a;
    background: #f0fdf4;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.5rem 0;
    color: #166534;
    font-style: italic;
    font-weight: 500;
}
.single-content blockquote p { margin: 0; }
.single-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 1.5rem 0;
}
.single-content code {
    background: #f1f5f9;
    color: #002D62;
    padding: 0.1rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.875rem;
}
.single-content pre code { background: none; color: inherit; padding: 0; }
.single-content table {
    width: 100%; border-collapse: collapse;
    margin: 1.5rem 0; font-size: 0.9rem;
    border-radius: 0.75rem; overflow: hidden;
    box-shadow: 0 0 0 1px #e2e8f0;
}
.single-content th {
    background: #002D62; color: #fff;
    padding: 0.75rem 1rem; text-align: left;
    font-weight: 700; font-size: 0.8rem;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.single-content td { padding: 0.7rem 1rem; border-bottom: 1px solid #f1f5f9; }
.single-content tr:last-child td { border-bottom: none; }
.single-content tr:nth-child(even) td { background: #f8fafc; }

/* Tags Footer */
.single-tags-footer {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem 0;
    margin: 2rem 0;
    border-top: 1px solid #f1f5f9;
}
.single-tags-label { font-size: 0.75rem; font-weight: 700; color: #64748b; letter-spacing: 0.06em; text-transform: uppercase; }

/* Author Box */
.single-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    margin: 2.5rem 0;
}
.single-author-avatar-lg img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #e2e8f0; }
.single-author-name { font-size: 1rem; font-weight: 800; color: #002D62; margin-bottom: 0.25rem; }
.single-author-bio { font-size: 0.875rem; color: #64748b; line-height: 1.6; }

/* Post Navigation */
.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid #f1f5f9;
}
.single-post-nav-prev, .single-post-nav-next {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.single-post-nav-prev:hover, .single-post-nav-next:hover { border-color: #002D62; box-shadow: 0 4px 12px rgba(0,45,98,0.08); }
.single-post-nav-next { text-align: right; }
.single-post-nav-prev a, .single-post-nav-next a { text-decoration: none; display: flex; flex-direction: column; gap: 0.3rem; }
.single-post-nav-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; }
.single-post-nav-title { font-size: 0.875rem; font-weight: 700; color: #1e293b; line-height: 1.35; }

/* ---------- Search Form ---------- */
.blog-search-form { margin-top: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.blog-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 99px;
    padding: 0.3rem 0.3rem 0.3rem 1.25rem;
    backdrop-filter: blur(8px);
    transition: border-color 0.18s;
}
.blog-search-wrap:focus-within { border-color: rgba(255,255,255,0.6); }
.blog-search-icon { color: rgba(255,255,255,0.5); font-size: 0.85rem; flex-shrink: 0; }
.blog-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
}
.blog-search-input::placeholder { color: rgba(255,255,255,0.4); }
.blog-search-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
}
.blog-search-btn:hover { background: #15803d; }
.search-result-count {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* ============================================================
   BLOG TABS & CATEGORY ENHANCEMENTS
   ============================================================ */

/* ── Hero Stats ─────────────────────────────────────────────── */
.blog-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.75rem 2rem;
    border-radius: 99px;
    backdrop-filter: blur(8px);
}
.blog-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.blog-hero-stat strong {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}
.blog-hero-stat span {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.blog-hero-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.15);
}

/* ── Blog Tabs ──────────────────────────────────────────────── */
.blog-tabs-wrap {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 68px;
    z-index: 40;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.blog-tabs {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.6rem 0;
}
.blog-tabs::-webkit-scrollbar { display: none; }

.blog-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.78rem;
    color: #64748b;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    letter-spacing: 0.01em;
}
.blog-tab:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.blog-tab.active {
    background: #002D62;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,45,98,0.25);
}
/* if tab has a color accent set via --tab-accent, use it */
.blog-tab.active[style*="--tab-accent"] {
    background: var(--tab-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.blog-tab-icon {
    font-size: 0.8rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    flex-shrink: 0;
    transition: background 0.2s;
}
.blog-tab.active .blog-tab-icon {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
}
.blog-tab-label {
    line-height: 1;
}
.blog-tab-count {
    background: rgba(0,0,0,0.08);
    color: inherit;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: 99px;
    transition: background 0.2s;
}
.blog-tab.active .blog-tab-count {
    background: rgba(255,255,255,0.25);
}

/* ── Category Banner ─────────────────────────────────────────── */
.blog-cat-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, white), color-mix(in srgb, var(--accent) 4%, white));
    border: 1px solid color-mix(in srgb, var(--accent) 20%, white);
    border-left: 4px solid var(--accent);
    border-radius: 0 1rem 1rem 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
/* Fallback for browsers without color-mix */
.blog-cat-banner {
    --accent: #002D62;
    background: #f0f5ff;
    border-left-color: var(--accent);
}
.blog-cat-banner-icon {
    font-size: 1.75rem;
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.85;
}
.blog-cat-banner-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.2rem;
}
.blog-cat-banner-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.blog-cat-banner-count {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Responsive adjustments ─────────────────────────────────── */
@media (max-width: 640px) {
    .blog-hero-stats {
        flex-direction: column;
        border-radius: 1rem;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
    }
    .blog-hero-stat-divider { width: 40px; height: 1px; }
    .blog-tab { padding: 0.45rem 0.8rem; font-size: 0.72rem; }
    .blog-cat-banner { flex-wrap: wrap; }
    .blog-cat-banner-count { margin-left: 0; }
}

/* ============================================================
   SINGLE POST V2 — Clean two-column layout
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.single-v2-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.single-v2-hero-bg {
    position: absolute;
    inset: 0;
}
.single-v2-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: saturate(0.7) brightness(0.6);
}
.single-v2-hero-content {
    padding: 3rem 0 3rem;
    width: 100%;
}

/* Breadcrumb */
.single-v2-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.single-v2-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}
.single-v2-breadcrumb a:hover { color: #4ade80; }
.single-v2-breadcrumb .sep { font-size: 0.55rem; color: rgba(255,255,255,0.25); }

/* Category badge */
.single-v2-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.85rem;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.85rem;
    text-decoration: none;
}

/* Title */
.single-v2-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

/* Meta row */
.single-v2-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.single-v2-meta-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.single-v2-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    object-fit: cover;
}
.single-v2-meta-icon { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.single-v2-meta-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); font-weight: 600; line-height: 1; }
.single-v2-meta-value { font-size: 0.82rem; color: rgba(255,255,255,0.85); font-weight: 600; line-height: 1.3; }
.single-v2-meta-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.15); }

/* ── Main 2-column Layout ────────────────────────────────────── */
.single-v2-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-areas: "article sidebar";
    gap: 2.5rem;
    align-items: start;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}
@media (max-width: 1024px) {
    .single-v2-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "sidebar" "article";
    }
    .single-v2-sidebar { position: static !important; }
}

/* ── Article ─────────────────────────────────────────────────── */
.single-v2-article {
    grid-area: article;
    min-width: 0;
}

/* Featured image */
.single-v2-featured-img {
    margin: 0 0 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.single-v2-thumb {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Article Typography ──────────────────────────────────────── */
.single-v2-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}
.single-v2-content > *:first-child { margin-top: 0; }

.single-v2-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #002D62;
    margin: 2.5rem 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.single-v2-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2rem 0 0.65rem;
    line-height: 1.3;
}
.single-v2-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.5rem 0 0.5rem;
}
.single-v2-content p {
    margin: 0 0 1.4rem;
}
.single-v2-content ul,
.single-v2-content ol {
    margin: 0 0 1.4rem 1.5rem;
}
.single-v2-content li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
}
.single-v2-content a {
    color: #002D62;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0,45,98,0.3);
    transition: color 0.15s, text-decoration-color 0.15s;
}
.single-v2-content a:hover {
    color: #16a34a;
    text-decoration-color: rgba(22,163,74,0.4);
}
.single-v2-content img {
    border-radius: 0.75rem;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.single-v2-content blockquote {
    border-left: 4px solid #16a34a;
    background: #f0fdf4;
    padding: 1.1rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.75rem 0;
    color: #166534;
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
}
.single-v2-content blockquote p { margin: 0; }
.single-v2-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 1.5rem 0;
}
.single-v2-content code {
    background: #f1f5f9;
    color: #002D62;
    padding: 0.1rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}
.single-v2-content pre code { background: none; color: inherit; padding: 0; }
.single-v2-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e2e8f0;
}
.single-v2-content th {
    background: #002D62;
    color: #fff;
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.single-v2-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.single-v2-content tr:last-child td { border-bottom: none; }
.single-v2-content tr:nth-child(even) td { background: #f8fafc; }
.single-v2-content strong { color: #0f172a; font-weight: 700; }
.single-v2-content em { color: #475569; }
.single-v2-content hr {
    border: none;
    border-top: 2px solid #f1f5f9;
    margin: 2rem 0;
}

/* Tags footer */
.single-v2-tags-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 1.25rem 0;
    border-top: 1px solid #f1f5f9;
    margin: 2rem 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Author box */
.single-v2-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #f0f5ff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #002D62;
    border-radius: 0 1rem 1rem 0;
    padding: 1.5rem;
    margin: 2rem 0;
}
.single-v2-author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    flex-shrink: 0;
}
.single-v2-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #002D62;
    margin-bottom: 0.3rem;
}
.single-v2-author-bio {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Post nav */
.single-v2-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}
.single-v2-nav-prev,
.single-v2-nav-next {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.single-v2-nav-prev:hover,
.single-v2-nav-next:hover {
    border-color: #002D62;
    box-shadow: 0 4px 12px rgba(0,45,98,0.08);
}
.single-v2-nav-next { text-align: right; }
.single-v2-nav-prev a,
.single-v2-nav-next a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.single-v2-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}
.single-v2-nav-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.single-v2-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 90px;
}

/* Sidebar box */
.single-v2-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.single-v2-box-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #002D62;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
}

/* Share buttons */
.single-v2-share-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.sv2-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.18s;
}
.sv2-share:hover { opacity: 0.88; transform: translateY(-1px); }
.sv2-share--fb { background: #1877f2; }
.sv2-share--tw { background: #1da1f2; }
.sv2-share--li { background: #0a66c2; }
.sv2-share--em { background: #64748b; }
.sv2-share i { font-size: 0.82rem; }

/* Info list */
.single-v2-info-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.single-v2-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f8fafc;
}
.single-v2-info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.single-v2-info-label { color: #94a3b8; font-weight: 600; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.06em; flex-shrink: 0; }
.single-v2-info-value { color: #334155; font-weight: 700; text-align: right; }
.single-v2-info-link { color: #002D62; font-weight: 700; text-decoration: none; text-align: right; }
.single-v2-info-link:hover { color: #16a34a; }

/* Tags cloud */
.single-v2-tags-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Related posts */
.single-v2-related { display: flex; flex-direction: column; gap: 0.65rem; }
.single-v2-related-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-decoration: none;
    padding: 0.4rem;
    border-radius: 0.6rem;
    transition: background 0.15s;
}
.single-v2-related-item:hover { background: #f8fafc; }
.single-v2-related-thumb {
    width: 52px; height: 52px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}
.single-v2-related-thumb--empty {
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 1.1rem;
}
.single-v2-related-img { width: 100%; height: 100%; object-fit: cover; }
.single-v2-related-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.single-v2-related-title {
    font-size: 0.78rem; font-weight: 700; color: #1e293b;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.single-v2-related-date { font-size: 0.65rem; color: #94a3b8; font-weight: 600; }

/* Back btn */
.single-v2-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: #002D62;
    color: #fff;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.18s, transform 0.18s;
}
.single-v2-back-btn:hover { background: #16a34a; transform: translateY(-1px); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .single-v2-meta { gap: 0.85rem; }
    .single-v2-meta-divider { display: none; }
    .single-v2-title { font-size: 1.55rem; }
    .single-v2-nav { grid-template-columns: 1fr; }
    .single-v2-share-btns { grid-template-columns: 1fr 1fr; }
    .single-v2-author-box { flex-direction: column; }
}
