/* ========================================
   BLOG PAGE - MODERN MAGAZINE LAYOUT
   Clean, professional blog listing design
   ======================================== */

/* Page Header - Hidden */
.page-header {
    display: none !important;
}

/* Blog Filter Tabs */
.blog-filter {
    padding: 32px 0 24px;
    background: #fafbfc;
    border-bottom: 2px solid #e5e7eb;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 28px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #0077BE;
    color: #0077BE;
}

.filter-tab.active {
    background: #0077BE;
    color: white;
    border-color: #0077BE;
}

/* Featured Posts Section */
.featured-posts {
    padding: 48px 0 32px;
    background: white;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid #0077BE;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ffd700;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.featured-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 0;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #0077BE;
}

.featured-post-image {
    width: 380px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.08);
}

.featured-post-content {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-category {
    display: inline-block;
    padding: 6px 14px;
    background: #0077BE;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.featured-post-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.featured-post-meta i {
    color: #0077BE;
    margin-right: 6px;
}

/* Blog Posts Section - ZingNews Style Layout */
.blog-posts {
    padding: 32px 0 80px;
    background: #fafbfc;
}

.blog-posts .section-title {
    margin-bottom: 32px;
}

/* ZingNews Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Featured Latest Post - Left Card (Smaller) */
.blog-card.featured-latest {
    grid-row: span 3;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card.featured-latest:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #0077BE;
}

.blog-card.featured-latest .blog-image {
    width: 100%;
    min-width: 100%;
    height: 280px;
    position: relative;
}

.blog-card.featured-latest .blog-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.blog-card.featured-latest .blog-category-badge {
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 11px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,119,190,0.4);
}

.blog-card.featured-latest .blog-content {
    padding: 24px;
}

.blog-card.featured-latest .blog-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.blog-card.featured-latest .blog-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Regular Blog Cards - Right Side */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: fit-content;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: #0077BE;
}

.blog-image {
    width: 160px;
    min-width: 160px;
    height: 120px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0077BE;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,119,190,0.3);
}

.blog-content {
    padding: 14px 14px 14px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.blog-card:hover .blog-title {
    color: #0077BE;
}

.blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: none;
}

.blog-card-meta {
    display: none !important;
}

.btn-read-more {
    display: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 56px;
}

.pagination button,
.pagination a {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover,
.pagination a:hover {
    background: #0077BE;
    color: white;
    border-color: #0077BE;
    transform: translateY(-2px);
}

.pagination button.active,
.pagination a.active {
    background: #0077BE;
    color: white;
    border-color: #0077BE;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination button:disabled:hover {
    transform: none;
    background: white;
    color: #555;
    border-color: #e5e7eb;
}

/* Responsive Blog Page */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card.featured-latest {
        grid-row: auto;
    }
    
    .blog-card.featured-latest .blog-image {
        height: 280px;
    }
    
    .blog-card.featured-latest .blog-title {
        font-size: 24px;
    }
    
    .blog-card {
        flex-direction: column;
    }
    
    .blog-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .blog-filter {
        padding: 24px 0 16px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .featured-posts {
        padding: 36px 0 24px;
    }
    
    .blog-posts {
        padding: 24px 0 60px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .blog-card.featured-latest .blog-image {
        height: 220px;
    }
    
    .blog-card.featured-latest .blog-content {
        padding: 24px;
    }
    
    .blog-card.featured-latest .blog-title {
        font-size: 22px;
    }
    
    .blog-card.featured-latest .blog-excerpt {
        font-size: 15px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .section-title {
        font-size: 20px;
    }
}
