﻿/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
}

.blog-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
}

.blog-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.blog-search {
    max-width: 500px;
    margin: 0 auto;
}

.blog-search-input {
    width: 100%;
}

.blog-categories {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.featured-article {
    padding: 60px 0;
    background: #f8f9fa;
}

.featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 300px;
}

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

    .article-meta .category {
        background: var(--primary-color);
        color: #fff;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
    }

    .article-meta .date {
        color: #666;
        font-size: 14px;
    }

.featured-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
    line-height: 1.3;
}

.featured-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.read-more-btn {
    align-self: flex-start;
    height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #fa8c16;
    background-color: #fa8c16;
    color: white;
}

    .read-more-btn:hover {
        background-color: #e67d0e;
        border-color: #e67d0e;
        color: white;
        text-decoration: none;
    }

    .read-more-btn i {
        margin-left: 8px;
    }


.blog-articles {
    padding: 80px 0;
    background: #fff;
}

.articles-grid {
    margin-bottom: 40px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

    .article-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

.article-image {
    position: relative;
    height: 200px;
}

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.article-content {
    padding: 24px;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

    .article-meta .date,
    .article-meta .read-time {
        color: #666;
        font-size: 14px;
    }

.article-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 500;
}

    .read-more-link:hover {
        color: var(--primary-hover);
    }

.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-article {
    display: flex;
    gap: 12px;
    align-items: center;
}

.popular-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.popular-content h5 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
    line-height: 1.4;
}

.popular-date {
    font-size: 12px;
    color: #666;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}

    .category-link:hover {
        color: var(--primary-color);
    }

.category-count {
    color: #666;
    font-size: 14px;
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
}

    .newsletter-widget .widget-title {
        color: #fff;
    }

    .newsletter-widget p {
        margin-bottom: 20px;
        opacity: 0.9;
    }

.newsletter-input {
    margin-bottom: 16px;
}

.newsletter-btn {
    width: 100%;
    background: #fff;
    color: var(--primary-color);
    border: none;
}

    .newsletter-btn:hover {
        background: #f0f0f0;
    }

/* Responsive adjustments for blog page */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }

    .blog-title {
        font-size: 36px;
    }

    .blog-subtitle {
        font-size: 18px;
    }

    .categories-tabs {
        gap: 12px;
    }

    .category-tab {
        padding: 6px 16px;
        font-size: 13px;
    }

    .featured-content {
        padding: 24px;
    }

    .featured-title {
        font-size: 24px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 18px;
    }

    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}
