/* Blog Article Styles */

/* Article Layout */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.article-content {
    min-width: 0;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.article-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
}

.article-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 2rem;
    border-left: 4px solid var(--amber);
    padding-left: 1.5rem;
}

.article-content ul, 
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

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

.article-content a {
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--amber-dark);
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.article-content th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--navy);
}

.article-content tr:hover td {
    background: rgba(237, 137, 54, 0.05);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    text-align: center;
}

.cta-box h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin-top: 3rem;
}

.author-avatar {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.toc {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.toc h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--gray-600);
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    padding: 0.375rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s;
}

.toc a:hover {
    color: var(--amber);
    border-left-color: var(--amber);
}

.related-posts {
    margin-bottom: 1.5rem;
}

.related-posts h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 0.75rem;
}

.related-posts a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.related-posts a:hover {
    color: var(--amber);
}

.sidebar-cta {
    background: var(--navy);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.sidebar-cta h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Blog Index */
.blog-index {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-index h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.blog-index .section-desc {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: var(--amber);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-badge {
    display: inline-block;
    background: rgba(237, 137, 54, 0.1);
    color: var(--amber-dark);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--navy);
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--amber);
}

.blog-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.category-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* Mobile */
@media (max-width: 968px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .toc {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
