*,p{
    font-family: "Plus Jakarta Sans", sans-serif !important;
}

/* Blog Content Image Optimization Styles */
.blog-image-container {
    position: relative;
    margin: 1.25rem 0;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.blog-optimized-image {
    max-width: 100%;
    height: auto;
    display: block !important;
    position: relative;
    z-index: 2;
    border-radius: 7px !important;
    margin:  0 !important;
    object-fit: cover;
    will-change: opacity, filter;
    backface-visibility: hidden;
    border:1px solid #e2e8f0;
}

.blog-image-container.loaded .blog-image-skeleton {
    display: none !important;
}
.blog-image-container.error .blog-image-skeleton {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    animation: none;
    color: #64748b;
    font-size: 1rem;
}

/* Responsive optimizations for blog images */
@media (max-width: 768px) {
    .blog-image-container {
        margin: 0.875rem 0;
        border-radius: 8px;
    }

    /* Overlay loading state so min-height does not stack below the real image */
    .blog-image-skeleton {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        min-height: 120px;
        z-index: 1;
        pointer-events: none;
    }

    .blog-image-skeleton::before {
        width: 40px;
        height: 40px;
    }
}

/* Performance optimizations */
.blog-image-container {
    contain: layout style paint;
}
/* Sidebar Table of Contents */
.sidebar-toc {
    margin-bottom: 2rem;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    margin-bottom: 1rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.blog-sidebar.fixed-mode .toc-header {
    background: rgba(248, 250, 252, 0.5);
    padding: 0.75rem 1rem;
    margin: -0.5rem -1rem 1rem -1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.blog-sidebar.fixed-mode .toc-header:hover {
    background: rgba(248, 250, 252, 0.8);
}

.sidebar-toc h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.toc-arrow {
    font-size: 0.9rem;
    color: var(--purple);
    transition: transform 0.3s ease;
}

.toc-arrow.rotated {
    transform: rotate(180deg);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc-content.show {
    max-height: none;
    height: auto;
    overflow: visible;
}

.sidebar-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-toc li {
    margin-bottom: 0.4rem;
}

.sidebar-toc a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-toc a:hover {
    background: #ffffff96;
    color: var(--primary);
    border-left-color: var(--purple);
}

.sidebar-toc a.active {
    background: #dbeafe;
    color: var(--primary);
    border-left-color: var(--purple);
    font-weight: 600;
}

/* Different indentation levels for TOC */
.sidebar-toc .toc-level-1 {
    padding-left: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.sidebar-toc .toc-level-2 {
    padding-left: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-toc .toc-level-3 {
    padding-left: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.sidebar-toc .toc-level-4 {
    padding-left: 1.75rem;
    font-size: 0.8rem;
    font-weight: 400;
}

.sidebar-toc .toc-level-5 {
    padding-left: 2.25rem;
    font-size: 0.75rem;
    font-weight: 400;
}

.sidebar-toc .toc-level-6 {
    padding-left: 2.75rem;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Backward compatibility for old toc-h3 class */
.sidebar-toc .toc-h3 {
    padding-left: 1.25rem;
    font-size: 0.85rem;
}
