/* =============================================
   BLOG ARTICLE PAGE
============================================= */
.article-section {
    padding: 80px 0 100px;
    background: var(--bg-white);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: flex-start;
}

/* Article Content */
.article-content {
    max-width: 100%;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.article-meta .blog-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 100px;
}

.article-meta .article-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.article-meta .article-read-time {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.article-meta .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

/* Article Cover Image */
.article-cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 8/5;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a2d4a 100%);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Body — Prose Styling */
.article-body h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.article-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin: 32px 0 12px;
    line-height: 1.4;
}

.article-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 8px;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-body strong {
    color: var(--navy);
    font-weight: 600;
}

.article-body a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: var(--green-hover);
}

/* Blockquote */
.article-body blockquote {
    border-left: 4px solid var(--green);
    padding: 20px 24px;
    margin: 32px 0;
    background: rgba(0, 210, 106, 0.04);
    border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--navy);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Code Block */
.article-body pre {
    background: var(--navy);
    color: #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.85rem;
    line-height: 1.7;
    font-family: 'Courier New', monospace;
}

.article-body code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-family: 'Courier New', monospace;
    color: var(--navy);
}

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

/* Info/Tip Box */
.article-tip {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.article-tip p {
    margin-bottom: 0;
    color: var(--text-primary);
}

.article-tip strong {
    color: var(--blue);
}

/* Article Image (inline) */
.article-body .article-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: 28px 0;
}

.article-body .article-img img {
    width: 100%;
    height: auto;
}

.article-body .article-img figcaption {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Tags at Bottom */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.article-tags span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--bg-page);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

/* Share Row */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.article-share span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

/* =============================================
   ARTICLE SIDEBAR
============================================= */
.article-sidebar {
    position: sticky;
    top: 100px;
}

/* Author Card */
.author-card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border-light);
    text-align: center;
    margin-bottom: 24px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 14px;
}

.author-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.author-card .author-role {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* Table of Contents */
.toc-card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.toc-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.toc-card a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.toc-card a:last-child {
    border-bottom: none;
}

.toc-card a:hover {
    color: var(--green);
    padding-left: 8px;
}

/* Related Posts */
.related-card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.related-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.related-post {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post .blog-tag {
    font-size: 0.68rem;
    padding: 3px 10px;
    margin-bottom: 6px;
    display: inline-block;
}

.related-post h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    transition: var(--transition);
}

.related-post:hover h5 {
    color: var(--green);
}

/* =============================================
   ARTICLE NAV (prev/next)
============================================= */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.article-nav a {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.article-nav a:hover {
    border-color: var(--green);
    box-shadow: 0 4px 16px rgba(0, 210, 106, 0.08);
}

.article-nav .nav-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.article-nav .nav-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}

.article-nav .next-post {
    text-align: right;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .article-body h2 {
        font-size: 1.3rem;
    }
}