/* =========================================================================
   BLOG ARCHIVE INDEX STYLES (home.php)
   Architecture: High-Performance Isolated Template Stylesheet
   ========================================================================= */

.blog-archive-container {
    max-width: 1140px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08);
}

.blog-card-media-link { 
    display: block; 
    width: 100%; 
    overflow: hidden; 
}

.blog-img-wrapper { 
    width: 100%; 
    aspect-ratio: 16 / 10; 
    background: #f1f5f9; 
    overflow: hidden; 
}

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

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

.blog-img-placeholder { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 100%; 
    color: #94a3b8; 
    font-size: 13px; 
    font-weight: 600; 
}

.blog-card-body { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.blog-title-link { 
    text-decoration: none !important; 
    color: inherit; 
}

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark, #0f172a);
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.15s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title:hover { 
    color: var(--fogya-red, #cc0e0e); 
}

.blog-card-excerpt { 
    font-size: 13px; 
    color: var(--text-muted, #64748b); 
    line-height: 1.6; 
    margin: 0; 
}

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

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 4px;
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-dark, #0f172a);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
}

.blog-pagination .page-numbers.current { 
    background: var(--text-dark, #0f172a); 
    color: #ffffff; 
    border-color: var(--text-dark, #0f172a); 
}

.blog-no-posts {
    text-align: center;
    color: var(--text-muted, #64748b);
}

@media (max-width: 1024px) { 
    .blog-posts-grid { grid-template-columns: repeat(2, 1fr); } 
}

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