/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Header */
    .blog-header {
        margin: 0 0 3rem 0;
        padding: 80px 1rem 3rem;
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        position: relative;
        overflow-x: hidden;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.4em;
    }
    
    .blog-header p {
        font-size: 1.1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    /* Navbar */
    .navbar {
        padding: 1rem;
    }
    
    .nav-brand {
        margin-right: auto;
    }
    
    .mobile-menu-btn {
        margin-left: auto;
    }
    
    /* Section headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title {
        margin-bottom: 0.5rem;
    }
    
    /* Card grids */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #popular-posts {
        grid-template-columns: 1fr;
    }
    
    /* Card proportions */
    .post-card {
        aspect-ratio: 16/9;
    }
    
    #popular-posts .post-card {
        aspect-ratio: 16/9;
    }
    
    /* Topic navigation */
    .topics-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .topic-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* List view */
    .post-list-item {
        padding: 0.75rem;
    }
    
    .post-list-title {
        font-size: 1rem;
    }
    
    .post-list-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .blog-header {
        padding-top: 70px;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .post-card-header {
        height: 50%;
    }
    
    .post-card-content {
        height: 50%;
        overflow: visible;
    }
    
    .post-card-title {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        min-height: 3.6em;
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .pagination button {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}