/* Blog Section */
.blog-section {
    padding: 60px 0;
    background: #fff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .blog-layout {
        grid-template-columns: 8fr 4fr;
    }
}

/* Blog Main Content */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blog-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #eee;
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary-color);
    opacity: 0.7;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: gap 0.3s;
}

.blog-card-more:hover {
    gap: 12px;
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    text-align: center;
}

.btn-load-more {
    padding: 12px 30px;
    border: 2px solid #eee;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-sticky {
    position: sticky;
    top: 30px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

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

.widget-list li {
    border-bottom: 1px solid #f5f5f5;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.widget-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.widget-list li.active a {
    color: var(--primary-color);
    font-weight: 700;
}

.widget-list .count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #999;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.recent-post-thumb {
    width: 110px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h5 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-info .date {
    font-size: 12px;
    color: #999;
}

.recent-post-item:hover .recent-post-info h5 {
    color: var(--primary-color);
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 80px 0;
}

.empty-icon-box {
    width: 100px;
    height: 100px;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.empty-icon-box i {
    font-size: 40px;
    color: #ccc;
}

.blog-empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-empty p {
    color: #999;
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        order: 2;
    }
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}