/* BLOG & BLOG DETAIL PAGE STYLES */

/* Shared Page Header */
.page-header {
    background: #fdfaf6;
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: var(--primary);
}

/* BLOG LISTING */
.blog-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.blog-main {
    flex-grow: 1;
}

.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* Featured Post */
.featured-post {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.featured-post:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.featured-post-img {
    height: 400px;
    width: 100%;
    display: block;
}

.featured-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-post-img img {
    transform: scale(1.03);
}

.featured-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(49, 29, 15, 0.95));
    padding: 40px;
    color: white;
}

.post-category-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-post-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    display: block;
    text-decoration: none;
}

.featured-post-title:hover {
    color: var(--accent);
}

.post-meta-light {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: 0.9;
}

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

.modern-blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.modern-blog-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.mbc-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    display: block;
}

.mbc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.modern-blog-card:hover .mbc-img img {
    transform: scale(1.05);
}

.mbc-content {
    padding: 25px;
}

.mbc-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 15px 0;
    line-height: 1.4;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.mbc-title:hover {
    color: var(--primary);
}

.mbc-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mbc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.mbc-readmore {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.mbc-readmore:hover {
    color: var(--primary-dark);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 0;
}

.blog-page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border-radius: 50%;
}

.blog-page-btn:hover {
    background: #f0f0f0;
    color: var(--text-main);
}

.blog-page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Sidebar Widgets */
.blog-widget {
    background: #fdfaf6;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
}

.search-widget {
    position: relative;
}

.search-widget input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-widget button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
    font-size: 15px;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--primary);
}

.category-list span {
    color: var(--text-muted);
    font-size: 13px;
}

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

.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.popular-post-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.popular-post-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.popular-post-info h4 a {
    color: var(--primary-dark);
    transition: color 0.3s;
}

.popular-post-info h4 a:hover {
    color: var(--primary);
}

.popular-post-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* BLOG DETAIL PAGE */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.article-meta img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-hero {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main);
}

.article-content h2 {
    font-size: 28px;
    color: var(--primary-dark);
    margin: 40px 0 20px;
    font-weight: 700;
}

.article-content h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 30px 0;
}

.article-content blockquote {
    background: #fdfaf6;
    border-left: 4px solid var(--primary);
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 18px;
    color: var(--primary-dark);
    border-radius: 0 8px 8px 0;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 0 auto 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-tags {
    display: flex;
    gap: 10px;
}

.article-tag {
    background: #f0f0f0;
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
}

.article-tag:hover {
    background: var(--primary);
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: var(--text-main);
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
}

/* Related Articles */
.related-articles {
    background: #fdfaf6;
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 998px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
        position: static;
    }
    .article-hero {
        height: 300px;
    }
    .article-title {
        font-size: 30px;
    }
    .article-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}
