.doc-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
}

.blog-section {
    background: #f6f8fb;
}

.blog-section::before,
.blog-section::after {
    display: none;
}

.blog-cta-section {
    max-width: 1200px;
    margin: 48px auto 0;
    background: #0f172a;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.doc-sidebar {
    background: #ffffff;
    border: 1px solid #e6edf5;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    border-radius: 0 12px 12px 0;
    padding: 24px 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.doc-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6edf5;
}

.doc-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-nav-item {
    display: block;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.doc-nav-item:hover {
    background: rgba(23, 162, 184, 0.1);
    color: #0f172a;
}

.doc-nav-item.active {
    background: rgba(23, 162, 184, 0.14);
    color: #0f172a;
    font-weight: 500;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 20px;
}

.doc-main {
    background: #ffffff;
    border: 1px solid #e6edf5;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    padding: 40px 10px;
    min-height: 60vh;
}

.article-main {
    min-width: 0;
}

.article-sidebar {
    height: fit-content;
    position: sticky;
    top: 20px;
}

.article-toc {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6edf5;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.article-toc-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6edf5;
}

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

.article-toc-list li {
    margin-bottom: 10px;
}

.article-toc-list a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.article-toc-list a:hover {
    color: #17a2b8;
}

.article-toc-list a.active {
    color: #17a2b8;
    font-weight: 600;
    position: relative;
}

.article-toc-list a.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #17a2b8;
    border-radius: 2px;
}

.article-toc-list .toc-h3 {
    padding-left: 16px;
    font-size: 13px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e6edf5;
}

.article-title {
    font-size: 2rem;
    color: #0f172a;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.article-content {
    padding: 0 20px;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 22px;
    color: #0f172a;
    margin: 32px 0 20px 0;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6edf5;
}

.article-content h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 24px 0 12px 0;
    font-weight: 600;
}

.article-content p {
    margin: 16px 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.article-content li {
    margin: 6px 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.article-content a {
    color: #17a2b8;
    text-decoration: none;
}

.article-content a:hover {
    color: #148fa3;
    text-decoration: underline;
}

.article-content p code,
.article-content li code,
.article-content code {
    display: inline-block;
    background: #eef2f7;
    color: #334155;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #dbe3ee;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.article-content pre {
    background: #eef2f7;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    padding: 16px 18px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
}

.article-content .images-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    max-width: 100%;
}

.article-content .images-row img {
    flex: 1;
    margin: 0;
    max-width: 50%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid #e6edf5;
}

.article-content .single-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e6edf5;
    margin: 24px 0;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .doc-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doc-sidebar {
        position: static;
        padding: 16px;
    }

    .doc-main {
        padding: 24px;
    }

    .article-content .images-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 17px;
    }
}
