/* Blog pages - uses the same theme variables as stylesheet.css */
.blogSection { padding: 60px 0; background: #f3f4f7; }

.blogCard {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: transform .2s, box-shadow .2s;
}
.blogCard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.blogCard .blogCardImg { display: block; aspect-ratio: 16 / 10; background: var(--boxcolor); overflow: hidden; }
.blogCard .blogCardImg img { width: 100%; height: 100%; object-fit: cover; }
.blogCard .blogCardBody { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blogCard .blogDate { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.blogCard .blogDate i { color: var(--maincolor); margin-right: 5px; }
.blogCard h3 { font-size: 19px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blogCard h3 a { color: var(--black); text-decoration: none; }
.blogCard h3 a:hover { color: var(--maincolor); }
.blogCard p { color: var(--text); font-size: 15px; flex: 1; }
.blogCard .readMore { color: var(--maincolor); font-weight: 700; text-decoration: none; font-size: 15px; }
.blogCard .readMore i { margin-left: 4px; }

.blogEmpty { text-align: center; padding: 60px 20px; color: var(--text); }

.blogPagination { margin-top: 40px; display: flex; justify-content: center; }
.blogPagination .page-link { color: var(--maincolor); }
.blogPagination .page-item.active .page-link { background: var(--maincolor); border-color: var(--maincolor); color: #fff; }

/* single post */
.blogDetail { background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.blogDetail .blogDetailImg { width: 100%; border-radius: 8px; margin-bottom: 25px; }
.blogDetail h1 { font-size: 30px; font-weight: 800; color: var(--black); margin-bottom: 10px; }
.blogDetail .blogDate { color: var(--text); font-size: 14px; margin-bottom: 25px; }
.blogDetail .blogDate i { color: var(--maincolor); margin-right: 5px; }
.blogContent { color: var(--text); font-size: 16px; line-height: 1.8; overflow-wrap: break-word; }
.blogContent h2, .blogContent h3, .blogContent h4 { color: var(--black); font-weight: 700; margin: 25px 0 12px; }
.blogContent img { max-width: 100%; height: auto; border-radius: 6px; }
.blogContent a { color: var(--maincolor); }
.blogContent blockquote { border-left: 4px solid var(--secondcolor); padding: 10px 20px; background: #f3f4f7; margin: 20px 0; }
.blogContent pre { background: #f3f4f7; padding: 15px; border-radius: 6px; }

.recentPosts { background: #fff; border-radius: 8px; padding: 25px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); margin-bottom: 25px; }
.recentPosts h4 { font-size: 18px; font-weight: 800; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--maincolor); }
.recentPosts a { display: flex; gap: 12px; text-decoration: none; color: var(--black); padding: 10px 0; border-bottom: 1px solid #eee; }
.recentPosts a:last-child { border-bottom: 0; }
.recentPosts a:hover span { color: var(--maincolor); }
.recentPosts img { width: 70px; height: 55px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.recentPosts span { font-size: 15px; font-weight: 600; line-height: 1.4; }

@media (max-width: 767px) {
    .blogDetail { padding: 20px; }
    .blogDetail h1 { font-size: 24px; }
}
