/**
 * Neksio Tools - Scoped Blog Shell Stylesheet
 * 
 * Provides professional responsive styling for Single Blog Posts, including
 * shared Neksio Standalone Header, Navigation, and Footer components.
 *
 * @package NeksioTools
 */

/* ==========================================================================
   1. SHARED NEKSIO STANDALONE HEADER, NAVIGATION & FOOTER STYLES
   ========================================================================== */

body.nek-standalone-body {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.nek-standalone-header {
    background-color: var(--nek-idx-surface, #111827);
    border-bottom: 1px solid var(--nek-idx-border, #2e3d5b);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nek-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nek-header-logo-img {
    height: 44px;
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nek-footer-logo-img {
    height: 48px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
}

.nek-header-nav {
    display: flex;
    align-items: center;
}

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

.nek-nav-item {
    position: relative;
}

.nek-nav-link {
    color: var(--nek-idx-text-muted, #9ca3af);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
}

.nek-nav-link:hover, 
.nek-nav-link.active, 
.nek-nav-item.active > .nek-nav-link {
    color: var(--nek-idx-primary, #6366f1);
}

.nek-caret {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.nek-nav-item.has-children:hover .nek-caret {
    transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.nek-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nek-idx-surface, #111827);
    border: 1px solid var(--nek-idx-border, #2e3d5b);
    border-radius: var(--nek-idx-radius-md, 12px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.nek-nav-item.has-children:hover .nek-dropdown-menu,
.nek-nav-item.has-children:focus-within .nek-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nek-dropdown-link {
    display: block;
    padding: 8px 16px;
    color: var(--nek-idx-text-muted, #9ca3af);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nek-dropdown-link:hover, 
.nek-dropdown-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--nek-idx-primary, #6366f1);
}

/* Mobile Nav Toggle */
body.neksio-blog-shell .nek-nav-toggle,
.nek-nav-toggle {
    display: none !important;
    background: transparent;
    border: 1px solid var(--nek-idx-border, #2e3d5b);
    color: var(--nek-idx-text-main, #ffffff);
    font-size: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.nek-standalone-content {
    flex: 1;
}

/* Standalone Footer */
.nek-standalone-footer {
    background-color: var(--nek-idx-surface, #111827);
    border-top: 1px solid var(--nek-idx-border, #2e3d5b);
    margin-top: 48px;
    padding: 48px 0 24px 0;
}

.nek-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nek-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.nek-footer-brand h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--nek-idx-text-main, #ffffff);
    margin: 12px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nek-footer-brand p {
    color: var(--nek-idx-text-muted, #9ca3af);
    font-size: 13px;
    line-height: 1.6;
    max-width: 380px;
    margin-top: 6px;
}

.nek-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--nek-idx-text-main, #ffffff);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nek-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nek-footer-links li {
    margin-bottom: 10px;
}

.nek-footer-links a {
    color: var(--nek-idx-text-muted, #9ca3af);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nek-footer-links a:hover, 
.nek-footer-links a:focus-visible {
    color: var(--nek-idx-primary, #6366f1);
    outline: none;
}

.nek-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--nek-idx-border, #2e3d5b);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--nek-idx-text-subtle, #6b7280);
    flex-wrap: wrap;
    gap: 12px;
}

.nek-footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nek-footer-legal a {
    color: var(--nek-idx-text-muted, #9ca3af);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nek-footer-legal a:hover {
    color: var(--nek-idx-primary, #6366f1);
}

.nek-legal-sep {
    color: var(--nek-idx-text-subtle, #6b7280);
}

/* Mobile Media Queries */
@media (max-width: 868px) {
    body.neksio-blog-shell .nek-nav-toggle,
    .nek-nav-toggle {
        display: block !important;
    }
    .nek-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nek-idx-surface, #111827);
        border-bottom: 1px solid var(--nek-idx-border, #2e3d5b);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nek-header-nav.is-open .nek-nav-menu {
        display: flex;
    }
    .nek-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        margin-top: 4px;
        display: none;
    }
    .nek-nav-item.has-children.is-open .nek-dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .nek-header-logo-img { height: 38px; }
    .nek-footer-logo-img { height: 40px; }
    .nek-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nek-footer-grid {
        grid-template-columns: 1fr;
    }
    .nek-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   1.1 SCOPED WHITE HEADER & NAVIGATION FOR BLOG SHELL (MATCH TOOL PAGE)
   ========================================================================== */
body.neksio-blog-shell .nek-standalone-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.neksio-blog-shell .nek-nav-link {
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
}

body.neksio-blog-shell .nek-nav-link:hover, 
body.neksio-blog-shell .nek-nav-link.active, 
body.neksio-blog-shell .nek-nav-item.active > .nek-nav-link {
    color: #6366f1 !important;
}

body.neksio-blog-shell .nek-caret {
    color: #64748b !important;
}

body.neksio-blog-shell .nek-dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

body.neksio-blog-shell .nek-dropdown-link {
    color: #475569 !important;
}

body.neksio-blog-shell .nek-dropdown-link:hover, 
body.neksio-blog-shell .nek-dropdown-link.active {
    background: #f1f5f9 !important;
    color: #6366f1 !important;
}

body.neksio-blog-shell .nek-nav-toggle {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

@media (max-width: 868px) {
    body.neksio-blog-shell .nek-nav-menu {
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }
}

/* ==========================================================================
   1.2 SCOPED WHITE BREADCRUMB CARD FOR BLOG SHELL (MATCH TOOL PAGE)
   ========================================================================== */
body.neksio-blog-shell .neksio-breadcrumb {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    margin-bottom: 24px !important;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.neksio-blog-shell .neksio-breadcrumb a {
    color: #6366f1 !important;
    text-decoration: none;
}

body.neksio-blog-shell .neksio-breadcrumb a:hover {
    text-decoration: underline;
    color: #4f46e5 !important;
}

body.neksio-blog-shell .neksio-breadcrumb .sep {
    color: #94a3b8 !important;
    margin: 0 2px;
}

body.neksio-blog-shell .neksio-breadcrumb .current {
    color: #64748b !important;
    font-weight: 600;
}

/* ==========================================================================
   1.3 SCOPED AD SPACE WIDGET STYLING
   ========================================================================== */
body.neksio-blog-shell .nek-ad-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.neksio-blog-shell .nek-ad-placeholder {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 160px;
}

body.neksio-blog-shell .nek-ad-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.neksio-blog-shell .nek-ad-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

body.neksio-blog-shell .nek-ad-title {
    font-size: 16px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
}

body.neksio-blog-shell .nek-ad-sub {
    font-size: 12px;
    color: #94a3b8;
}

/* ==========================================================================
   1.4 NATIVE BACK TO TOP COMPONENT STYLING (MATCH TOOL PAGE)
   ========================================================================== */
.neksio-back-to-top,
#neksioBackToTop {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(14px) scale(0.9) !important;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.25s ease, 
                border-color 0.25s ease, 
                box-shadow 0.25s ease !important;
    outline: none !important;
}

.neksio-back-to-top.is-visible,
#neksioBackToTop.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.neksio-back-to-top:hover,
#neksioBackToTop:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.06) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5), 0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

.neksio-back-to-top:focus-visible,
#neksioBackToTop:focus-visible {
    outline: 2px solid #38bdf8 !important;
    outline-offset: 3px !important;
}

.neksio-back-to-top svg,
#neksioBackToTop svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
    fill: none !important;
    display: block !important;
    margin: auto !important;
    pointer-events: none !important;
}

/* ==========================================================================
   2. SINGLE BLOG POST SCOPED STYLES
   ========================================================================== */

/* ==========================================================================
   2. SINGLE BLOG POST SCOPED STYLES (ISOLATED LIGHT THEME)
   ========================================================================== */

/* Main Blog Wrapper */
.neksio-blog-shell {
    background-color: #f8fafc;
    color: #0f172a;
}

.nek-blog-main-wrapper {
    width: 100%;
}

/* Article Header */
.nek-blog-article-header {
    margin-bottom: 28px;
}

.nek-blog-cat-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.nek-blog-post-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.25;
    letter-spacing: -0.7px;
}

.nek-blog-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
}

.nek-meta-item strong {
    color: #0f172a;
}

.nek-meta-sep {
    color: #cbd5e1;
}

/* Featured Media */
.nek-blog-featured-media {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    max-height: 480px;
}

.nek-blog-featured-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Article Body Typography & Element Styling */
.nek-blog-article-body {
    max-width: 860px;
    margin: 0 auto 48px auto;
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.nek-blog-article-body p {
    margin-bottom: 22px;
}

.nek-blog-article-body .has-large-font-size,
.nek-blog-article-body p.has-large-font-size {
    font-size: 16.5px !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;
    color: #334155 !important;
}

.nek-blog-article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.nek-blog-article-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 14px 0;
    line-height: 1.35;
}

.nek-blog-article-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 24px 0 12px 0;
}

.nek-blog-article-body a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.nek-blog-article-body a:hover {
    color: #4f46e5;
}

.nek-blog-article-body ul, .nek-blog-article-body ol {
    margin: 0 0 24px 0;
    padding-left: 28px;
}

.nek-blog-article-body li {
    margin-bottom: 8px;
}

.nek-blog-article-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #ffffff;
    border-left: 4px solid #6366f1;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.nek-blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}

/* Tables */
.nek-blog-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    overflow-x: auto;
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.nek-blog-article-body th, .nek-blog-article-body td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.nek-blog-article-body th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
}

.nek-blog-article-body td {
    color: #334155;
}

/* Code & Pre Blocks */
.nek-blog-article-body pre, .nek-blog-article-body code {
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 14px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
}

.nek-blog-article-body code {
    padding: 2px 6px;
    color: #38bdf8;
}

.nek-blog-article-body pre {
    padding: 18px 20px;
    overflow-x: auto;
    line-height: 1.5;
}

.nek-blog-article-body pre code {
    padding: 0;
    background: transparent;
    border: none;
    color: #e2e8f0;
}

/* Rank Math / Plugin Table of Contents Styling */
.nek-blog-article-body .rank-math-block,
.nek-blog-article-body #rank-math-toc,
.nek-blog-article-body .ez-toc-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin: 28px 0 !important;
    color: #0f172a !important;
}

.nek-blog-article-body #rank-math-toc a,
.nek-blog-article-body .ez-toc-container a {
    color: #6366f1 !important;
}

/* Social Share Bar */
.nek-blog-share-section {
    max-width: 860px;
    margin: 0 auto 48px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.nek-share-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.nek-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nek-share-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: opacity 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nek-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nek-share-fb { background: #1877f2; }
.nek-share-tw { background: #1da1f2; }
.nek-share-wa { background: #25d366; }
.nek-share-li { background: #0a66c2; }

/* Related Articles Grid */
.nek-blog-related-section {
    max-width: 860px;
    margin: 0 auto 48px auto;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.nek-related-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px 0;
}

.nek-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nek-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.nek-blog-card:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
}

.nek-card-img-wrap {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f1f5f9;
}

.nek-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nek-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nek-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.nek-card-excerpt {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
    line-height: 1.5;
    flex: 1;
}

.nek-card-readmore {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
}

/* Comments Section */
.nek-blog-comments-section {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.nek-blog-comments-section #reply-title,
.nek-blog-comments-section .comments-title {
    color: #0f172a !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.nek-blog-comments-section label {
    color: #475569;
    font-size: 14px;
}

.nek-blog-comments-section input[type="text"],
.nek-blog-comments-section input[type="email"],
.nek-blog-comments-section input[type="url"],
.nek-blog-comments-section textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-top: 4px;
    box-sizing: border-box;
}

.nek-blog-comments-section input[type="submit"] {
    background: #6366f1;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nek-blog-comments-section input[type="submit"]:hover {
    background: #4f46e5;
}

.nek-blog-comments-section input[type="submit"]:hover {
    background: #4f46e5;
}

/* Responsive Rules for Blog Specific Elements */
@media (max-width: 868px) {
    .nek-blog-post-title {
        font-size: 28px;
    }
    .nek-blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .nek-blog-post-title {
        font-size: 24px;
    }
    .nek-blog-related-grid {
        grid-template-columns: 1fr;
    }
    .nek-blog-share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   2-COLUMN BLOG LAYOUT & SIDEBAR STYLES
   ========================================================================== */
.nek-blog-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
}

.nek-blog-main-col {
    min-width: 0;
}

.nek-blog-sidebar-col {
    min-width: 0;
}

/* Sidebar Widget Styling */
.nek-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nek-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #6366f1;
}

.nek-widget-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
}

.nek-widget-btn {
    display: inline-block;
    background: #6366f1;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.nek-widget-btn:hover {
    background: #4f46e5;
    color: #ffffff;
}

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

.nek-widget-recent-list li,
.nek-widget-cat-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.nek-widget-recent-list li:last-child,
.nek-widget-cat-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.nek-widget-post-link {
    text-decoration: none;
    display: block;
}

.nek-widget-post-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.nek-widget-post-link:hover .nek-widget-post-title {
    color: #6366f1;
}

.nek-widget-post-date {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.nek-widget-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: color 0.15s ease;
}

.nek-widget-cat-list a:hover {
    color: #6366f1;
}

.nek-widget-cat-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

@media (max-width: 991px) {
    .nek-blog-layout-grid {
        grid-template-columns: 1fr;
    }
    .nek-blog-sidebar-col {
        margin-top: 32px;
    }
}

/* ==========================================================================
   3. BLOG ARCHIVE PAGE SCOPED STYLES (HIGH SPECIFICITY OVERRIDE PROTECTION)
   ========================================================================== */

body.nek-blog-archive-page {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

body.nek-blog-archive-page .nek-blog-archive-wrapper {
    width: 100% !important;
    flex: 1 !important;
}

body.nek-blog-archive-page .nek-blog-archive-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 32px 24px !important;
}

/* 3.1 HERO SECTION */
body.nek-blog-archive-page .nek-blog-hero-block {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 44px 32px !important;
    margin-bottom: 32px !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.nek-blog-archive-page .nek-blog-hero-inner {
    max-width: 760px !important;
    margin: 0 auto !important;
}

body.nek-blog-archive-page .nek-blog-eyebrow {
    display: inline-block !important;
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 14px !important;
}

body.nek-blog-archive-page .nek-blog-hero-h1 {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.6px !important;
}

body.nek-blog-archive-page .nek-blog-hero-sub {
    font-size: 15px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 0 28px 0 !important;
}

/* Search Form - Strict Inline Layout */
body.nek-blog-archive-page .nek-blog-search-form {
    max-width: 520px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

body.nek-blog-archive-page .nek-blog-search-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.nek-blog-archive-page .nek-blog-search-input {
    width: 100% !important;
    height: 48px !important;
    display: block !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 48px 12px 18px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    margin: 0 !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

body.nek-blog-archive-page .nek-blog-search-input:focus {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

body.nek-blog-archive-page .nek-blog-search-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 8px !important;
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: color 0.15s ease !important;
}

body.nek-blog-archive-page .nek-blog-search-btn:hover {
    color: #6366f1 !important;
    background: transparent !important;
}

/* 3.2 CATEGORY FILTER BAR ("EXPLORE BY TOPIC") */
body.nek-blog-archive-page .nek-blog-cat-filter-section {
    margin-bottom: 36px !important;
}

body.nek-blog-archive-page .nek-section-title-sm {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 14px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body.nek-blog-archive-page .nek-blog-cat-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.nek-blog-archive-page .nek-cat-pill,
body.nek-blog-archive-page .nek-cat-pill:link,
body.nek-blog-archive-page .nek-cat-pill:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 7px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
}

body.nek-blog-archive-page .nek-cat-pill:hover,
body.nek-blog-archive-page .nek-cat-pill:focus {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    background: #ffffff !important;
    text-decoration: none !important;
}

body.nek-blog-archive-page .nek-cat-pill.active,
body.nek-blog-archive-page .nek-cat-pill.active:link,
body.nek-blog-archive-page .nek-cat-pill.active:visited {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25) !important;
}

body.nek-blog-archive-page .nek-cat-pill .count {
    opacity: 0.75 !important;
    font-size: 11px !important;
}

/* 3.3 FEATURED ARTICLE SECTION */
body.nek-blog-archive-page .nek-blog-featured-section {
    margin-bottom: 44px !important;
}

body.nek-blog-archive-page .nek-section-header {
    margin-bottom: 18px !important;
}

body.nek-blog-archive-page .nek-section-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.4px !important;
}

body.nek-blog-archive-page .nek-featured-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    display: grid !important;
    grid-template-columns: 1.1fr 1fr !important;
    align-items: center !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.nek-blog-archive-page .nek-featured-card:hover {
    transform: translateY(-2px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

body.nek-blog-archive-page .nek-featured-img-anchor {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    max-height: 420px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
}

body.nek-blog-archive-page .nek-featured-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

body.nek-blog-archive-page .nek-featured-card:hover .nek-featured-img {
    transform: scale(1.02) !important;
}

body.nek-blog-archive-page .nek-featured-placeholder-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}

body.nek-blog-archive-page .nek-featured-body {
    padding: 32px 36px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

body.nek-blog-archive-page .nek-featured-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 10px 0 12px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.4px !important;
}

body.nek-blog-archive-page .nek-featured-title a,
body.nek-blog-archive-page .nek-featured-title a:link,
body.nek-blog-archive-page .nek-featured-title a:visited {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

body.nek-blog-archive-page .nek-featured-title a:hover {
    color: #6366f1 !important;
}

body.nek-blog-archive-page .nek-featured-excerpt {
    font-size: 14.5px !important;
    color: #475569 !important;
    line-height: 1.65 !important;
    margin: 0 0 20px 0 !important;
}

body.nek-blog-archive-page .nek-featured-meta-bar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 20px !important;
}

body.nek-blog-archive-page .nek-featured-meta-bar strong {
    color: #1e293b !important;
}

body.nek-blog-archive-page .nek-meta-sep {
    color: #cbd5e1 !important;
}

body.nek-blog-archive-page .nek-featured-cta,
body.nek-blog-archive-page .nek-featured-cta:link,
body.nek-blog-archive-page .nek-featured-cta:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #6366f1 !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2) !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

body.nek-blog-archive-page .nek-featured-cta:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* 3.4 LATEST ARTICLES GRID */
body.nek-blog-archive-page .nek-blog-grid-section {
    margin-bottom: 48px !important;
}

body.nek-blog-archive-page .nek-blog-archive-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.nek-blog-archive-page .nek-blog-archive-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.nek-blog-archive-page .nek-blog-archive-card:hover {
    transform: translateY(-3px) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

body.nek-blog-archive-page .nek-card-img-anchor {
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
}

body.nek-blog-archive-page .nek-card-grid-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

body.nek-blog-archive-page .nek-blog-archive-card:hover .nek-card-grid-img {
    transform: scale(1.03) !important;
}

body.nek-blog-archive-page .nek-card-grid-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}

body.nek-blog-archive-page .nek-card-grid-body {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
}

body.nek-blog-archive-page .nek-card-grid-top {
    flex: 1 !important;
}

body.nek-blog-archive-page .nek-blog-cat-badge,
body.nek-blog-archive-page .nek-blog-cat-badge:link,
body.nek-blog-archive-page .nek-blog-cat-badge:visited {
    display: inline-block !important;
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
}

body.nek-blog-archive-page .nek-blog-cat-badge:hover {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #4f46e5 !important;
}

body.nek-blog-archive-page .nek-card-grid-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 8px 0 10px 0 !important;
    line-height: 1.4 !important;
}

body.nek-blog-archive-page .nek-card-grid-title a,
body.nek-blog-archive-page .nek-card-grid-title a:link,
body.nek-blog-archive-page .nek-card-grid-title a:visited {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

body.nek-blog-archive-page .nek-card-grid-title a:hover {
    color: #6366f1 !important;
}

body.nek-blog-archive-page .nek-card-grid-excerpt {
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin: 0 0 16px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

body.nek-blog-archive-page .nek-card-grid-footer {
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 12px !important;
}

body.nek-blog-archive-page .nek-card-grid-meta {
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body.nek-blog-archive-page .nek-card-grid-meta .sep {
    color: #cbd5e1 !important;
}

body.nek-blog-archive-page .nek-card-grid-cta,
body.nek-blog-archive-page .nek-card-grid-cta:link,
body.nek-blog-archive-page .nek-card-grid-cta:visited {
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #6366f1 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

body.nek-blog-archive-page .nek-card-grid-cta:hover {
    color: #4f46e5 !important;
    text-decoration: underline !important;
}

/* 3.5 PAGINATION STYLING */
body.nek-blog-archive-page .nek-blog-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 40px !important;
    margin-bottom: 0 !important;
}

body.nek-blog-archive-page .nek-blog-pagination .page-numbers,
body.nek-blog-archive-page .nek-blog-pagination .page-numbers:link,
body.nek-blog-archive-page .nek-blog-pagination .page-numbers:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    min-width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

body.nek-blog-archive-page .nek-blog-pagination .page-numbers:hover {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    background: #ffffff !important;
}

body.nek-blog-archive-page .nek-blog-pagination .page-numbers.current {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25) !important;
}

body.nek-blog-archive-page .nek-blog-pagination .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
}

body.nek-blog-archive-page .nek-blog-no-results {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 48px 24px !important;
    text-align: center !important;
}

body.nek-blog-archive-page .nek-blog-no-results h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
}

body.nek-blog-archive-page .nek-blog-no-results p {
    font-size: 14px !important;
    color: #64748b !important;
    margin: 0 0 20px 0 !important;
}

body.nek-blog-archive-page .nek-reset-btn {
    display: inline-block !important;
    background: #6366f1 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* RESPONSIVE MEDIA QUERIES FOR BLOG ARCHIVE */
@media (max-width: 1023px) {
    body.nek-blog-archive-page .nek-blog-archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body.nek-blog-archive-page .nek-featured-card {
        grid-template-columns: 1fr !important;
    }
    body.nek-blog-archive-page .nek-featured-img-anchor {
        min-height: 240px !important;
    }
}

@media (max-width: 640px) {
    body.nek-blog-archive-page .nek-blog-hero-block {
        padding: 28px 18px !important;
    }
    body.nek-blog-archive-page .nek-blog-hero-h1 {
        font-size: 24px !important;
    }
    body.nek-blog-archive-page .nek-blog-archive-grid {
        grid-template-columns: 1fr !important;
    }
    body.nek-blog-archive-page .nek-featured-body {
        padding: 20px !important;
    }
    body.nek-blog-archive-page .nek-featured-title {
        font-size: 20px !important;
    }
}

