/* === BLOG PAGE === */
.page-content {
    position: relative;
    padding-top: var(--header-height);
}

/* Blog Hero - Small header with wallpaper */
.blog-hero {
    position: relative;
    max-height: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
    z-index: 2;
    overflow: hidden;
}

.blog-hero .bg-wallpaper {
    position: absolute;
    inset: 0;
    background-image: url('/static/images/wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.blog-hero .bg-wallpaper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.blog-hero .hero-container {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.blog-hero .section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.blog-hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.blog-hero .hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 500px;
}

/* Blog Posts Grid */
.blog-posts {
    position: relative;
    z-index: 2;
    padding: 4rem;
    background: var(--bg-primary);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: #ffffff;
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.2rem;
}

.blog-card .blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-card .read-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.blog-card .read-more-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .read-more-link:hover {
    color: #ffffff;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.15;
}

.empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0 4rem 4rem;
    background: var(--bg-primary);
    max-width: 1200px;
    margin: 0 auto;
}

.pages-container {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.page-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.page-btn.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-hero {
        padding: 2.5rem;
    }
    
    .blog-hero h2 {
        font-size: 2.8rem;
    }
    
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
        padding: 3rem 2.5rem;
    }
    
    .blog-pagination {
        padding: 0 2.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem;
        height: 280px;
        max-height: 280px;
    }
    
    .blog-hero h2 {
        font-size: 2.2rem;
    }
    
    .blog-hero .hero-description {
        font-size: 0.95rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        padding: 2.5rem 2rem;
        gap: 1rem;
    }
    
    .blog-pagination {
        padding: 0 2rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 1.5rem;
        height: 240px;
        max-height: 240px;
    }
    
    .blog-hero h2 {
        font-size: 1.8rem;
    }
    
    .blog-posts {
        padding: 2rem 1.5rem;
    }
    
    .blog-card h3 {
        font-size: 1rem;
    }
    
    .blog-card p {
        font-size: 0.8rem;
    }
    
    .blog-pagination {
        padding: 0 1.5rem 2rem;
    }
}