.blog-article {
    padding-top: 150px;
    padding-bottom: 100px;
    background: #ffffff; /* pure white */
    color: #1a1a1a; /* dark text */
    cursor: auto !important; /* Restore normal cursor */
}

/* Hide custom cursor glow in articles */
.blog-article ~ .cursor-glow, 
body:has(.blog-article) .cursor-glow {
    display: none !important;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    position: relative;
}

/* Sidebar Profile & Offer (Sticky) */
.article-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.author-block, .offer-block {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 25px;
    transition: 0.3s;
}
.author-block:hover, .offer-block:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.author-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    min-width: 0;
}

.author-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
    margin: 0 !important;
    display: block !important;
}

.author-info {
    min-width: 0;
    flex: 1;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.author-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

.offer-block {
    background: linear-gradient(180deg, #f8f9fa 0%, rgba(168, 85, 247, 0.05) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.offer-block::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: var(--gradient);
}
.offer-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
}
.offer-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}
.offer-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
}

/* Article Content */
.article-content {
    max-width: 800px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}
.breadcrumb a {
    color: var(--accent-light);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.article-tags {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}
.article-tag {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-light);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #000000;
}

.article-cover {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* TL;DR AIO Block */
.tldr-block {
    background: #f8f9fa;
    border-left: 4px solid var(--accent);
    padding: 25px 30px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 40px;
}
.tldr-block h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-light);
}
.tldr-block ul {
    list-style: none;
    margin: 0; padding: 0;
}
.tldr-block ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: #333;
    line-height: 1.6;
}
.tldr-block ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Text Content body */
.article-body h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #000;
}
.article-body h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #000;
}
.article-body p {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.8;
}
.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.article-body li {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .blog-article {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .article-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 30px;
    }
    .article-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
        order: 2;
        gap: 20px;
    }
    .article-content {
        order: 1;
    }
    .author-block {
        display: none;
    }
    .offer-block {
        padding: 20px;
    }
    .article-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .article-body p, .article-body li {
        font-size: 1rem;
    }
    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
    .article-tags {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-article {
        padding-top: 80px;
    }
    .article-container {
        padding: 0 15px;
    }
    .article-title {
        font-size: 1.6rem;
    }
    .article-cover {
        margin-bottom: 25px;
        border-radius: 12px;
    }
    .tldr-block {
        padding: 20px;
        margin-bottom: 30px;
    }
}

.article-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    display: block;
}

@media (max-width: 768px) {
    .nav {
        gap: 15px;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .header-tagline {
        display: none;
    }
}

.blog-article {
    overflow-x: hidden;
}
.article-content {
    width: 100%;
    min-width: 0; /* Clear fix for flex/grid */
}
.article-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.article-table-wrapper {
    -webkit-overflow-scrolling: touch;
}

/* Button overrides for light background articles */
.blog-article .btn-primary {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}
.blog-article .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2);
}

.blog-article .btn-secondary {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}
.blog-article .btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Fix sidebar button */
.offer-block .btn-primary {
    width: 100%;
}
