/* Blog Styles - Professional Minimalist Design */

.blog-header {
    background: #ffffff;
    color: #1e293b;
    padding: 60px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.blog-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1e293b;
    position: relative;
    letter-spacing: -0.5px;
}

.blog-subtitle {
    font-size: 17px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    line-height: 1.6;
    font-weight: 400;
}

.blog-content {
    padding: 40px 0;
    background: #ffffff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: block;
    padding: 10px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.category-list a:hover {
    background: #f1f5f9;
    color: #4e9ae6;
}

.category-list a.active {
    background: #4e9ae6;
    color: white;
    font-weight: 600;
}

/* Search Form */
.blog-search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #4e9ae6;
    box-shadow: 0 0 0 3px rgba(78, 154, 230, 0.1);
}

.search-btn {
    padding: 10px 16px;
    background: #4e9ae6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #3d7bc4;
}

/* Main Content */
.blog-main {
    min-height: 400px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

/* Popular Articles */
.popular-articles {
    margin-bottom: 60px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.popular-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.popular-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.popular-article-card .article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.popular-article-card .article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #4e9ae6 0%, #3d7bc4 100%);
}

.popular-article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-article-card .article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
}

.popular-article-card .article-content {
    padding: 24px;
}

.popular-article-card .article-category {
    display: inline-block;
    background: #4e9ae6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.popular-article-card .article-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.popular-article-card .article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}

/* Category Sections */
.category-section {
    margin-bottom: 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #4e9ae6 0%, #3d7bc4 100%);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background: #4e9ae6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: #64748b;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 20px;
    }

    .blog-title {
        font-size: 32px;
        letter-spacing: -0.3px;
    }

    .blog-subtitle {
        font-size: 16px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar {
        position: static;
        order: -1;
    }

    .section-title {
        font-size: 24px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 28px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .article-content {
        padding: 16px;
    }
}
