.blog-hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}


.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-meta-hero {
    color: #94a3b8;
    font-size: 0.95rem;
}

.blog-meta-hero i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.blog-content-section {
    padding: 4rem 0 6rem;
    background: #f8fafc;
}

.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 4rem;
}

.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.toc-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-title i {
    color: var(--primary-color);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.toc-link:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.toc-number {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.toc-link:hover .toc-number {
    background: var(--primary-color);
    color: #fff;
}

.toc-level-3 .toc-link {
    padding-right: 1.5rem;
    font-size: 0.9rem;
}

.toc-level-4 .toc-link {
    padding-right: 2.5rem;
    font-size: 0.85rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d49a2a 100%);
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    color: #d49a2a;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-main-content {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.blog-image-wrapper {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.content-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.content-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    scroll-margin-top: 2rem;
}

.content-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin: 1.5rem 0 0.75rem;
    scroll-margin-top: 2rem;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body ul, .content-body ol {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-body a:hover {
    text-decoration: underline;
}

.content-body strong {
    color: #1e293b;
}

.bottom-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.cta-box-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 2rem;
    border-radius: 16px;
    color: #fff;
}

.cta-box-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-box-content p {
    opacity: 0.9;
    margin: 0;
}

.cta-btn-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.cta-btn-large:hover {
    background: #2363eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 99, 235, 0.1);
}

.related-posts {
    padding-top: 4rem;
    border-top: 1px solid #e2e8f0;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-image {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 260px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        order: -1;
    }

    .toc-card {
        margin-bottom: 1rem;
    }

    .blog-main-content {
        padding: 1.5rem;
    }

    .cta-box-premium {
        flex-direction: column;
        text-align: center;
    }

    .cta-btn-large {
        width: 100%;
        justify-content: center;
    }

    .related-card {
        flex-direction: column;
    }

    .related-image {
        width: 100%;
        height: 150px;
    }
}