/* Premium Article Design System */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.article-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -100px;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.article-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
}

.article-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

/* Article Paper Effect */
.article-body-wrapper {
    background: white;
    padding: 5rem;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 20;
    margin-bottom: 5rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .article-body-wrapper {
        grid-template-columns: 1fr;
        padding: 3rem;
        gap: 3rem;
    }
}

.article-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    border-left: 6px solid var(--primary-color);
    padding-left: 1.5rem;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Sidebar Elements */
.article-sidebar {
    position: sticky;
    top: 120px;
    grid-column: 2;
}

.article-toc {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 1100px) {
    .article-sidebar {
        position: static;
        grid-column: 1;
    }
}

.article-toc h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.article-toc h3 i {
    margin-right: 12px;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.article-toc li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.article-toc li a::before {
    content: '→';
    margin-right: 8px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
}

.article-toc li a:hover {
    color: var(--primary-color);
}

.article-toc li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Expert Box */
.expert-box {
    background: #eff6ff;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid #bfdbfe;
    display: flex;
    gap: 1.5rem;
}

.expert-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.expert-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #1e40af;
}

/* Styled Images */
.article-image-container {
    margin: 4rem 0; /* No more negative margin as we are in a grid */
    border-radius: 16px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* FAQ Styling */
.faq-container {
    margin-top: 5rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item h4 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .article-body-wrapper {
        padding: 2rem;
        margin-bottom: 3rem;
    }
    
    .article-image-container {
        margin: 2rem -2rem;
    }
    
    .article-hero {
        height: 50vh;
        margin-bottom: -50px;
    }
}
