/* Blog Layout */
.blog-page {
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: block;
    justify-content: initial;
}

.blog-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-nav-brand {
    font-weight: bold;
    font-size: 1.2rem;
    color: #667eea;
    text-decoration: none;
}

.blog-nav-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-nav-link.active {
    color: #667eea;
    font-weight: 600;
}

.blog-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.blog-header {
    margin-bottom: 2.5rem;
}

.blog-header h1 {
    font-size: 2.2rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.75rem;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.blog-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.blog-card.featured .blog-card-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.blog-card.featured h2 {
    font-size: 1.6rem;
    color: #fff;
}

.blog-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.blog-card.featured .blog-card-meta {
    color: rgba(255, 255, 255, 0.7);
}

.blog-card-category {
    display: inline-block;
    background: #f0f0ff;
    color: #667eea;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-card h2 {
    font-size: 1.2rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* Article Page */
.article-page {
    background: #fff;
}

.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.article-back {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.article-back:hover {
    text-decoration: underline;
}

.article-category {
    display: inline-block;
    background: #f0f0ff;
    color: #667eea;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.article-container h1 {
    font-size: 2.2rem;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.article-container h2 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.article-container h3 {
    font-size: 1.15rem;
    color: #333;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.article-container p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article-container ul,
.article-container ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.article-container li {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

.article-container strong {
    color: #1a202c;
}

.article-container a {
    color: #667eea;
}

.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2.5rem 0;
}

.article-cta h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.article-cta a {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.article-cta a:hover {
    transform: scale(1.05);
}

.article-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.article-related h3 {
    font-size: 1.1rem;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 1rem;
}

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

.article-related li {
    margin-bottom: 0.5rem;
}

.article-related a {
    color: #667eea;
    text-decoration: none;
    font-size: 1rem;
}

.article-related a:hover {
    text-decoration: underline;
}

/* Blog Footer */
.blog-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: 3rem;
}

.blog-footer a {
    color: #667eea;
    text-decoration: none;
}

.blog-footer a:hover {
    text-decoration: underline;
}

.blog-footer span {
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
    .blog-header h1,
    .article-container h1 {
        font-size: 1.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card.featured h2 {
        font-size: 1.3rem;
    }
}
