/* ===== ARTICLE PAGES ===== */
.article-header {
    margin-bottom: 32px;
}
.article-header h1 {
    margin-bottom: 12px;
    font-size: 2rem;
}
.article-meta {
    display: flex;
    gap: 20px;
    font-size: .85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Table of contents */
.article-toc {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 32px;
    border-left: 4px solid var(--accent);
}
.article-toc h4 {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.article-toc ol {
    list-style: decimal;
    padding-left: 20px;
}
.article-toc li {
    margin-bottom: 6px;
    font-size: .92rem;
}
.article-toc a {
    color: var(--text-body);
}
.article-toc a:hover {
    color: var(--accent);
}

/* Article body */
.article-body {
    font-size: 1.02rem;
    line-height: 1.8;
}
.article-body h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 1.5rem;
}
.article-body h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}
.article-body p {
    margin-bottom: 16px;
}
.article-body ul, .article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.article-body strong { color: var(--text-dark); }

/* Callout / info box */
.callout {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin: 24px 0;
}
.callout.callout-warning {
    background: #fff8e1;
    border-color: #f59e0b;
}
.callout.callout-danger {
    background: #fef2f2;
    border-color: #e74c3c;
}
.callout h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}
.callout p {
    margin-bottom: 0;
    font-size: .92rem;
}

/* Article CTA inline */
.article-cta-inline {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    padding: 28px;
    margin: 32px 0;
    color: #fff;
    text-align: center;
}
.article-cta-inline h3 { color: #fff; margin-bottom: 10px; }
.article-cta-inline p { opacity: .85; margin-bottom: 16px; }

/* Related articles */
.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}
.related-articles h2 {
    margin-bottom: 24px;
    border: none;
    padding: 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Article listing page */
.articles-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    color: var(--text-body);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}
.faq-section h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item.open {
    border-color: var(--accent);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    line-height: 1.5;
    transition: background var(--transition);
}
.faq-question:hover {
    background: var(--bg-light);
}
.faq-chevron {
    flex-shrink: 0;
    transition: transform .25s ease;
    color: var(--text-muted);
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 20px;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}
.faq-answer div {
    font-size: .92rem;
    line-height: 1.7;
    color: var(--text-body);
}
.faq-answer a {
    color: var(--accent);
    font-weight: 500;
}

/* ===== PILLAR PAGE ===== */
.pillar-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 0;
}
.pillar-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.pillar-hero p {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 700px;
    line-height: 1.7;
}
.pillar-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.pillar-stat {
    text-align: center;
}
.pillar-stat .stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}
.pillar-stat .stat-label {
    font-size: .82rem;
    opacity: .7;
}

/* Cluster navigation */
.cluster-nav {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 36px;
    border-left: 4px solid var(--accent);
}
.cluster-nav h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.cluster-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.cluster-nav-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: .88rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.cluster-nav-grid a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(4px);
}
.cluster-nav-grid a::before {
    content: '→';
    color: var(--accent);
    font-weight: 700;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .9rem;
}
.comparison-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}
.comparison-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.comparison-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
.comparison-table tbody tr:hover { background: var(--bg-light); }
.comparison-table .highlight { background: var(--accent-light); font-weight: 600; }

/* Key takeaway box */
.key-takeaway {
    background: linear-gradient(135deg, var(--accent-light) 0%, #f0fdf4 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 28px 0;
}
.key-takeaway h4 {
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.key-takeaway p {
    font-size: .95rem;
    margin-bottom: 0;
}

/* Step by step */
.steps-list {
    counter-reset: step;
    margin: 24px 0;
}
.step-item {
    counter-increment: step;
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}
.step-item::before {
    content: counter(step);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}
.step-item h4 {
    margin-bottom: 6px;
}
.step-item p {
    font-size: .92rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .article-header h1 { font-size: 1.5rem; }
    .article-body h2 { font-size: 1.3rem; }
    .related-grid { grid-template-columns: 1fr; }
    .pillar-hero h1 { font-size: 1.8rem; }
    .pillar-stats { gap: 20px; }
    .cluster-nav-grid { grid-template-columns: 1fr; }
}
