/* ===== Article Page Styles ===== */

/* Hero */
.article-hero {
    background: var(--primary-color);
    padding: 140px 0 70px;
    color: var(--white);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.article-tag {
    background: var(--secondary-color);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-date {
    font-size: 0.85rem;
    opacity: 0.7;
}
.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
}
.article-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.88;
    max-width: 680px;
}

/* Layout */
.article-body {
    padding: 60px 0 80px;
    background: #f8f9fb;
}
.article-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

/* TOC */
.article-toc {
    position: sticky;
    top: 90px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}
.article-toc h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 700;
}
.article-toc ul { list-style: none; }
.article-toc li { margin-bottom: 10px; }
.article-toc a {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.2s;
    display: block;
    padding: 2px 0;
}
.article-toc a:hover { color: var(--secondary-color); }

/* Article Content */
.article-content {
    background: white;
    border-radius: 16px;
    padding: 48px 52px;
    box-shadow: var(--shadow);
}
.article-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 48px 0 20px;
    padding: 0 0 12px 16px;
    border-left: 4px solid var(--secondary-color);
    font-weight: 800;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin: 24px 0 10px;
    font-weight: 700;
}
.article-content p {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.article-content ul {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}
.article-content ul li {
    font-size: 0.95rem;
    line-height: 1.75;
    padding: 6px 0 6px 22px;
    position: relative;
    color: var(--text-dark);
}
.article-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
    top: 8px;
}
.article-content a {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-color: rgba(58,123,186,0.3);
}
.article-content a:hover { color: var(--secondary-color); }

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #f0f6ff, #e8f0fb);
    border-left: 4px solid var(--primary-light);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin: 24px 0;
}
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
}
.comparison-table th:first-child {
    border-left: 4px solid var(--secondary-color);
}
.comparison-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--bg-light);
    vertical-align: top;
    line-height: 1.5;
}
.comparison-table tr:nth-child(even) td { background: #f8f9fb; }
.comparison-table tr:hover td { background: #eef4ff; }

/* Process Steps */
.process-steps {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #e8edf4;
}
.step-num {
    background: var(--secondary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.step-content h4 {
    margin: 0 0 6px;
    font-size: 0.97rem;
    color: var(--primary-color);
}
.step-content p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* FAQ */
.faq-list { margin: 24px 0; }
.faq-item {
    border: 1px solid #e8edf4;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 14px;
    background: #fafbfc;
}
.faq-item h4 {
    font-size: 0.97rem;
    color: var(--primary-color);
    margin: 0 0 10px;
    font-weight: 700;
}
.faq-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-dark);
}

/* CTA */
.article-cta {
    background: linear-gradient(135deg, var(--primary-color), #245a8e);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0 0;
}
.article-cta h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 800;
}
.article-cta p {
    font-size: 0.93rem;
    opacity: 0.88;
    margin-bottom: 24px;
    line-height: 1.7;
    color: white;
}
.article-cta .btn-primary {
    background: var(--secondary-color);
    font-size: 1rem;
    padding: 14px 36px;
}

/* Related */
.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--bg-light);
}
.related-articles h3 {
    font-size: 1.05rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 20px;
    font-weight: 700;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-card {
    display: block;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #e8edf4;
    transition: var(--transition);
}
.related-card:hover {
    background: white;
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.related-tag {
    font-size: 0.72rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}
.related-card h4 {
    font-size: 0.88rem;
    color: var(--primary-color);
    line-height: 1.45;
    margin: 0;
    font-weight: 600;
}

/* Nav active */
.nav-links a.active { color: var(--secondary-color); font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
    .article-container { grid-template-columns: 1fr; }
    .article-toc { position: static; margin-bottom: 24px; }
    .article-content { padding: 28px 24px; }
    .related-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
    .article-hero { padding: 110px 0 50px; }
    .article-hero h1 { font-size: 1.6rem; }
    .comparison-table { font-size: 0.8rem; }
    .article-cta { padding: 28px 20px; }
}
