/* --- BLOG HEADER IMAGE --- */
.blog-header {
    background: linear-gradient(rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.8)), url('https://images.unsplash.com/photo-1432821596592-e2c18b78144f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}
.blog-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.breadcrumb { color: #ccc; }

/* --- LISTING PAGE --- */
.blog-filters { margin-bottom: 40px; }
.b-filter-btn {
    padding: 8px 25px; border: 1px solid #ddd; background: white;
    border-radius: 50px; margin: 5px; font-weight: 500; color: #555;
    cursor: pointer; transition: 0.3s;
}
.b-filter-btn:hover, .b-filter-btn.active {
    background: var(--secondary); color: white; border-color: var(--secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white; border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s;
    border: 1px solid #eee; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.blog-thumb { height: 220px; position: relative; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.1); }

.blog-date {
    position: absolute; top: 15px; left: 15px;
    background: var(--secondary); color: white;
    padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 700;
    text-align: center; line-height: 1.2;
}

.blog-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-size: 0.75rem; color: var(--secondary); text-transform: uppercase; font-weight: 600; margin-bottom: 8px; display: block; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.blog-content h3 a { color: var(--primary); text-decoration: none; transition: 0.3s; }
.blog-content h3 a:hover { color: var(--secondary); }
.blog-content p { font-size: 0.9rem; color: #666; margin-bottom: 20px; line-height: 1.6; flex: 1; }
.read-more { font-size: 0.9rem; color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 5px; margin-top: auto; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.pagination a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: white; border: 1px solid #eee; color: var(--primary); border-radius: 5px;
    text-decoration: none; transition: 0.3s;
}
.pagination a.active, .pagination a:hover { background: var(--secondary); color: white; border-color: var(--secondary); }


/* --- DETAIL PAGE LAYOUT --- */
.blog-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }

/* Main Article */
.article-box { background: white; padding: 0; border-radius: 10px; overflow: hidden; margin-bottom: 40px; }
.article-img { width: 100%; height: 400px; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }

.article-meta { display: flex; gap: 20px; padding: 25px 25px 10px; color: #888; font-size: 0.9rem; border-bottom: 1px solid #f5f5f5; }
.article-meta i { color: var(--secondary); margin-right: 5px; }

.article-title { padding: 15px 25px 0; font-size: 2rem; color: var(--primary); margin-bottom: 10px; line-height: 1.3; }

.article-body { padding: 25px; color: #555; line-height: 1.8; font-size: 1.05rem; }
.article-body h3 { font-size: 1.5rem; color: var(--primary); margin: 30px 0 15px; }
.article-body p { margin-bottom: 20px; }

.article-body blockquote {
    border-left: 5px solid var(--secondary);
    background: #f9fbfd; padding: 20px; font-style: italic;
    color: var(--primary); font-weight: 500; margin: 30px 0; border-radius: 0 5px 5px 0;
}

.article-list { padding-left: 20px; margin-bottom: 20px; }
.article-list li { margin-bottom: 10px; list-style-type: disc; }

.share-post { padding: 25px; border-top: 1px solid #eee; display: flex; align-items: center; gap: 15px; }
.share-post span { font-weight: 600; color: var(--primary); }
.share-post a {
    width: 35px; height: 35px; background: #f1f1f1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #555; transition: 0.3s;
}
.share-post a:hover { background: var(--secondary); color: white; }


/* --- SIDEBAR --- */
.blog-sidebar { position: sticky; top: 100px; height: fit-content; }

.sidebar-widget { background: white; padding: 25px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 30px; }
.widget-title { font-size: 1.1rem; color: var(--primary); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee; position: relative; }
.widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: var(--secondary); }

/* Search */
.search-widget form { display: flex; }
.search-widget input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; outline: none; }
.search-widget button { background: var(--secondary); color: white; border: none; padding: 0 15px; border-radius: 0 4px 4px 0; cursor: pointer; }

/* Categories */
.cat-list { list-style: none; padding: 0; }
.cat-list li { margin-bottom: 10px; border-bottom: 1px dashed #eee; padding-bottom: 10px; }
.cat-list li:last-child { border: none; }
.cat-list a { text-decoration: none; color: #555; display: flex; justify-content: space-between; transition: 0.3s; }
.cat-list a:hover { color: var(--secondary); padding-left: 5px; }

/* Recent Posts */
.rp-item { display: flex; gap: 15px; margin-bottom: 15px; align-items: center; }
.rp-item img { width: 60px; height: 60px; border-radius: 5px; object-fit: cover; }
.rp-item a { color: var(--primary); font-weight: 600; text-decoration: none; font-size: 0.9rem; line-height: 1.4; display: block; margin-bottom: 3px; }
.rp-item span { font-size: 0.8rem; color: #999; }

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-cloud a {
    padding: 5px 12px; background: #f4f6f8; color: #555;
    border-radius: 4px; font-size: 0.85rem; text-decoration: none; transition: 0.3s;
}
.tags-cloud a:hover { background: var(--secondary); color: white; }

/* Comment Box */
.comment-box { background: white; padding: 30px; border-radius: 10px; border: 1px solid #eee; }
.comment-box h3 { margin-bottom: 20px; color: var(--primary); }
.input-row { display: flex; gap: 20px; margin-bottom: 20px; }
.input-row input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 5px; outline: none; }
textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 20px; outline: none; }

/* Responsive */
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .article-img { height: 250px; }
    .input-row { flex-direction: column; }
}