/* ===== NEO Blog Styles v2 ===== */

/* Blog card grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.blog-card__img {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-card__img img {
    transform: scale(1.05);
}

.blog-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card__date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.blog-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
}
.blog-card__title a {
    color: #222;
    text-decoration: none;
}
.blog-card__title a:hover {
    color: #f28a72;
}
.blog-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
}
.blog-card__more {
    display: inline-block;
    padding: 10px 22px;
    background: #f28a72;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
    align-self: flex-start;
    border: none;
}
.blog-card__more:hover {
    background: #e07060;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* Blog post hero */
.blog-hero {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
}
.blog-hero img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Blog post content */
.blog-post {
    max-width: 800px;
}
.blog-post h1 {
    font-size: 28px;
    font-weight: 800;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.3;
}
.blog-post__meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.blog-post h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 28px 0 14px;
}
.blog-post h3 {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin: 20px 0 10px;
}
.blog-post p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}
.blog-post ul, .blog-post ol {
    margin: 12px 0 20px 20px;
}
.blog-post li {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 8px;
}
.blog-post a {
    color: #f28a72;
    text-decoration: underline;
}
.blog-post a:hover {
    color: #e07060;
}

/* Blog post image inside content */
.blog-post .view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* Blog post navigation — prev/next */
.blog-nav-posts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.blog-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f5f5f5;
    color: #444 !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    max-width: 48%;
}
.blog-nav-btn:hover {
    background: #f28a72;
    color: #fff !important;
    text-decoration: none !important;
}
.blog-nav-btn--next {
    margin-left: auto;
    text-align: right;
}

/* Blog tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.blog-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.blog-tag:hover {
    background: #f28a72;
    color: #fff;
    text-decoration: none;
}

/* Blog sidebar modern */
.blog-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.blog-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f28a72;
}
.blog-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-sidebar__list li {
    margin-bottom: 0;
}
.blog-sidebar__list a {
    display: block;
    padding: 10px 12px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}
.blog-sidebar__list a:hover {
    background: #fff5f3;
    color: #f28a72;
}

/* Blog pagination */
.blog-nav-pages {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    flex-wrap: wrap;
}

/* Tablet: left padding fix */
@media (min-width: 769px) and (max-width: 1100px) {
    #main .l-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 10px 0;
    }
    .blog-card__img {
        height: 180px;
    }
    .blog-hero {
        max-height: 220px;
        border-radius: 8px;
    }
    .blog-post h1 {
        font-size: 22px;
    }
    .blog-post h2 {
        font-size: 18px;
    }
    #sidebar-first {
        display: none;
    }
    .blog-nav-btn {
        max-width: 100%;
        font-size: 13px;
        padding: 10px 16px;
    }
}