/**
 * Neo-Brutalism Blog Card Styles
 * Based on the neo-brutalism design from the reference HTML
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=JetBrains+Mono:wght@400;600&family=Bebas+Neue&family=Montserrat:wght@400;600;700&display=swap');

/* Blog Grid Container - Cards expand to fill available width */
.custom-blog-featured-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    justify-content: stretch;
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
    contain: layout; /* Contain layout to prevent spilling */
}

/* Individual cards - expand to fill available space */
.custom-blog-featured-grid .neo-card {
    flex: 1 1 300px; /* Grow and shrink, with 300px base */
    min-width: 280px;
    max-width: 100%; /* Ensure cards don't exceed container */
    box-sizing: border-box;
}

/* Desktop: Cards expand to fill width with proper proportions - More cards per row for full width */
@media (min-width: 1200px) {
    .custom-blog-featured-grid {
        gap: 40px;
    }
    
    /* 1 card: takes reasonable width, centered */
    .custom-blog-featured-grid .neo-card:only-child {
        flex: 0 1 600px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* 2 cards: each takes ~50% minus gap */
    .custom-blog-featured-grid .neo-card:first-child:nth-last-child(2),
    .custom-blog-featured-grid .neo-card:first-child:nth-last-child(2) ~ .neo-card {
        flex: 1 1 calc(50% - 20px);
    }
    
    /* 3+ cards: each takes ~25% for 4 columns since we have full width */
    .custom-blog-featured-grid .neo-card {
        flex: 1 1 calc(25% - 30px);
        min-width: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .custom-blog-featured-grid {
        gap: 30px;
    }
    
    /* 1 card: takes reasonable width, centered */
    .custom-blog-featured-grid .neo-card:only-child {
        flex: 0 1 500px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* 2 cards: each takes ~50% minus gap */
    .custom-blog-featured-grid .neo-card:first-child:nth-last-child(2),
    .custom-blog-featured-grid .neo-card:first-child:nth-last-child(2) ~ .neo-card {
        flex: 1 1 calc(50% - 15px);
    }
    
    /* 3+ cards: wrap to next row, 2 per row */
    .custom-blog-featured-grid .neo-card {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .custom-blog-featured-grid {
        gap: 30px;
        flex-direction: column;
    }
    
    .custom-blog-featured-grid .neo-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        min-width: auto;
        margin: 0;
    }
}

/* Neo-Brutalism Card Base - High specificity to override blog.css */
.custom-blog-featured-grid .neo-card,
.featured-posts-grid .neo-card,
article.neo-card {
    background: #fff !important;
    border: 4px solid #000 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,0.8) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    aspect-ratio: auto !important; /* Reset any forced aspect ratio */
    width: auto !important; /* Let grid control width */
    display: block !important;
}

/* Full-card overlay link */
.custom-blog-featured-grid .neo-card-overlay,
.featured-posts-grid .neo-card-overlay,
.neo-card .neo-card-overlay {
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    bottom: 0 !important;
    z-index: 20 !important;
    text-indent: -9999px !important;
    color: transparent !important;
    background: transparent !important;
    text-decoration: none !important;
}

.custom-blog-featured-grid .neo-card-overlay:focus,
.featured-posts-grid .neo-card-overlay:focus,
.neo-card .neo-card-overlay:focus { 
    outline: 3px solid #ff69b4 !important; 
    outline-offset: 2px !important; 
}

.custom-blog-featured-grid .neo-card:hover,
.featured-posts-grid .neo-card:hover,
article.neo-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 10px 10px 0px 0px rgba(255,105,180,0.8) !important;
}

/* Photo Section - Maintains square aspect ratio regardless of card width */
.custom-blog-featured-grid .neo-photo-section,
.featured-posts-grid .neo-photo-section,
.neo-card .neo-photo-section {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1/1) {
    .custom-blog-featured-grid .neo-photo-section,
    .featured-posts-grid .neo-photo-section,
    .neo-card .neo-photo-section {
        height: 0 !important;
        padding-bottom: 100% !important;
    }
}

.custom-blog-featured-grid .neo-card:hover .neo-photo-section,
.featured-posts-grid .neo-card:hover .neo-photo-section,
article.neo-card:hover .neo-photo-section {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    z-index: 1 !important;
    padding-bottom: 0 !important; /* Remove padding on hover */
}

.custom-blog-featured-grid .neo-card-image,
.featured-posts-grid .neo-card-image,
.neo-card .neo-card-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

/* For fallback browsers without aspect-ratio support */
@supports not (aspect-ratio: 1/1) {
    .custom-blog-featured-grid .neo-card-image,
    .featured-posts-grid .neo-card-image,
    .neo-card .neo-card-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
}

.custom-blog-featured-grid .neo-card:hover .neo-card-image,
.featured-posts-grid .neo-card:hover .neo-card-image,
article.neo-card:hover .neo-card-image {
    transform: scale(1.05) !important;
}

/* Content Section */
.custom-blog-featured-grid .neo-content,
.featured-posts-grid .neo-content,
.neo-card .neo-content {
    padding: 25px !important;
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    background: none !important;
    color: #000 !important;
    text-align: left !important;
    height: auto !important;
}

.custom-blog-featured-grid .neo-card:hover .neo-content,
.featured-posts-grid .neo-card:hover .neo-content,
article.neo-card:hover .neo-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 30px !important;
    z-index: 3 !important;
}

/* Typography */
.custom-blog-featured-grid .neo-title,
.featured-posts-grid .neo-title,
.neo-card .neo-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 15px !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 1px !important;
    transition: color 0.3s ease !important;
    text-shadow: none !important;
}

.custom-blog-featured-grid .neo-card:hover .neo-title,
.featured-posts-grid .neo-card:hover .neo-title,
article.neo-card:hover .neo-title {
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.custom-blog-featured-grid .neo-excerpt,
.featured-posts-grid .neo-excerpt,
.neo-card .neo-excerpt {
    color: #333 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.custom-blog-featured-grid .neo-card:hover .neo-excerpt,
.featured-posts-grid .neo-card:hover .neo-excerpt,
article.neo-card:hover .neo-excerpt {
    color: #fff !important;
    opacity: 0.9 !important;
}

/* Meta Section */
.custom-blog-featured-grid .neo-meta,
.featured-posts-grid .neo-meta,
.neo-card .neo-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 2px solid #000 !important;
    padding-top: 15px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.custom-blog-featured-grid .neo-card:hover .neo-meta,
.featured-posts-grid .neo-card:hover .neo-meta,
article.neo-card:hover .neo-meta {
    border-top: 2px solid #fff !important;
}

.custom-blog-featured-grid .neo-author,
.featured-posts-grid .neo-author,
.neo-card .neo-author {
    color: #000 !important;
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease !important;
}

.custom-blog-featured-grid .neo-card:hover .neo-author,
.featured-posts-grid .neo-card:hover .neo-author,
article.neo-card:hover .neo-author {
    color: #fff !important;
}

.custom-blog-featured-grid .neo-read-more,
.featured-posts-grid .neo-read-more,
.neo-card .neo-read-more {
    background: #000 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Montserrat', sans-serif !important;
    border: 2px solid #000 !important;
    text-decoration: none !important;
    transform: none !important;
}

.custom-blog-featured-grid .neo-card:hover .neo-read-more,
.featured-posts-grid .neo-card:hover .neo-read-more,
article.neo-card:hover .neo-read-more {
    background: #ff69b4 !important;
    border-color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Ensure featured image is always at the top on mobile */
    .custom-blog-featured-grid .neo-card,
    .featured-posts-grid .neo-card,
    article.neo-card {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .custom-blog-featured-grid .neo-photo-section,
    .featured-posts-grid .neo-photo-section,
    .neo-card .neo-photo-section {
        order: -1 !important; /* Force image to be first */
        aspect-ratio: 4/3 !important; /* Slightly less square on mobile for better proportions */
    }
    
    .custom-blog-featured-grid .neo-content,
    .featured-posts-grid .neo-content,
    .neo-card .neo-content {
        order: 1 !important; /* Ensure content comes after image */
    }
    
    /* Fallback for browsers without aspect-ratio support */
    @supports not (aspect-ratio: 4/3) {
        .custom-blog-featured-grid .neo-photo-section,
        .featured-posts-grid .neo-photo-section,
        .neo-card .neo-photo-section {
            padding-bottom: 75% !important;
        }
    }
    
    .custom-blog-featured-grid .neo-title,
    .featured-posts-grid .neo-title,
    .neo-card .neo-title {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    .custom-blog-featured-grid .neo-card:hover .neo-title,
    .featured-posts-grid .neo-card:hover .neo-title,
    article.neo-card:hover .neo-title {
        font-size: 1.2rem !important;
    }
    
    .custom-blog-featured-grid .neo-excerpt,
    .featured-posts-grid .neo-excerpt,
    .neo-card .neo-excerpt {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    
    .custom-blog-featured-grid .neo-card:hover .neo-content,
    .featured-posts-grid .neo-card:hover .neo-content,
    article.neo-card:hover .neo-content {
        padding: 20px !important;
    }
    
    .custom-blog-featured-grid .neo-meta,
    .featured-posts-grid .neo-meta,
    .neo-card .neo-meta {
        padding-top: 10px !important;
    }
    
    .custom-blog-featured-grid .neo-author,
    .featured-posts-grid .neo-author,
    .neo-card .neo-author {
        font-size: 0.8rem !important;
    }
    
    .custom-blog-featured-grid .neo-read-more,
    .featured-posts-grid .neo-read-more,
    .neo-card .neo-read-more {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* MOBILE ONLY: Completely disable all CSS effects while keeping cards clickable */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
    
    /* Disable all hover and active effects on the main card */
    .custom-blog-featured-grid .neo-card:hover,
    .featured-posts-grid .neo-card:hover,
    .neo-card:hover,
    .custom-blog-featured-grid .neo-card:active,
    .featured-posts-grid .neo-card:active,
    .neo-card:active {
        transform: none !important;
        box-shadow: 8px 8px 0px 0px rgba(0,0,0,0.8) !important;
    }
    
    /* Keep photo section in normal position - no overlay effect */
    .custom-blog-featured-grid .neo-card:hover .neo-photo-section,
    .featured-posts-grid .neo-card:hover .neo-photo-section,
    .neo-card:hover .neo-photo-section,
    .custom-blog-featured-grid .neo-card:active .neo-photo-section,
    .featured-posts-grid .neo-card:active .neo-photo-section,
    .neo-card:active .neo-photo-section {
        position: relative !important;
        top: auto !important; 
        left: auto !important; 
        right: auto !important; 
        bottom: auto !important;
        height: auto !important;
        z-index: auto !important;
        padding-bottom: 0 !important;
    }
    
    /* Disable image scaling effect */
    .custom-blog-featured-grid .neo-card:hover .neo-card-image,
    .featured-posts-grid .neo-card:hover .neo-card-image,
    .neo-card:hover .neo-card-image,
    .custom-blog-featured-grid .neo-card:active .neo-card-image,
    .featured-posts-grid .neo-card:active .neo-card-image,
    .neo-card:active .neo-card-image {
        transform: none !important;
    }
    
    /* Keep content in normal position - no overlay effect */
    .custom-blog-featured-grid .neo-card:hover .neo-content,
    .featured-posts-grid .neo-card:hover .neo-content,
    .neo-card:hover .neo-content,
    .custom-blog-featured-grid .neo-card:active .neo-content,
    .featured-posts-grid .neo-card:active .neo-content,
    .neo-card:active .neo-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        background: none !important;
        display: block !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 25px !important;
        z-index: auto !important;
        order: 1 !important; /* Maintain content order on mobile */
    }
    
    /* Keep title styling normal */
    .custom-blog-featured-grid .neo-card:hover .neo-title,
    .featured-posts-grid .neo-card:hover .neo-title,
    .neo-card:hover .neo-title,
    .custom-blog-featured-grid .neo-card:active .neo-title,
    .featured-posts-grid .neo-card:active .neo-title,
    .neo-card:active .neo-title {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    /* Keep excerpt styling normal */
    .custom-blog-featured-grid .neo-card:hover .neo-excerpt,
    .featured-posts-grid .neo-card:hover .neo-excerpt,
    .neo-card:hover .neo-excerpt,
    .custom-blog-featured-grid .neo-card:active .neo-excerpt,
    .featured-posts-grid .neo-card:active .neo-excerpt,
    .neo-card:active .neo-excerpt {
        color: #333 !important;
        opacity: 1 !important;
    }
    
    /* Keep meta styling normal */
    .custom-blog-featured-grid .neo-card:hover .neo-meta,
    .featured-posts-grid .neo-card:hover .neo-meta,
    .neo-card:hover .neo-meta,
    .custom-blog-featured-grid .neo-card:active .neo-meta,
    .featured-posts-grid .neo-card:active .neo-meta,
    .neo-card:active .neo-meta {
        border-top: 2px solid #000 !important;
    }
    
    /* Keep author styling normal */
    .custom-blog-featured-grid .neo-card:hover .neo-author,
    .featured-posts-grid .neo-card:hover .neo-author,
    .neo-card:hover .neo-author,
    .custom-blog-featured-grid .neo-card:active .neo-author,
    .featured-posts-grid .neo-card:active .neo-author,
    .neo-card:active .neo-author {
        color: #000 !important;
    }
    
    /* Keep read-more button styling normal */
    .custom-blog-featured-grid .neo-card:hover .neo-read-more,
    .featured-posts-grid .neo-card:hover .neo-read-more,
    .neo-card:hover .neo-read-more,
    .custom-blog-featured-grid .neo-card:active .neo-read-more,
    .featured-posts-grid .neo-card:active .neo-read-more,
    .neo-card:active .neo-read-more {
        background: #000 !important;
        color: #fff !important;
        border-color: #000 !important;
        transform: none !important;
    }
    
    /* Ensure overlay link remains clickable and accessible */
    .custom-blog-featured-grid .neo-card-overlay,
    .featured-posts-grid .neo-card-overlay,
    .neo-card .neo-card-overlay {
        position: absolute !important;
        top: 0 !important; 
        left: 0 !important; 
        right: 0 !important; 
        bottom: 0 !important;
        z-index: 20 !important;
        text-indent: -9999px !important;
        color: transparent !important;
        background: transparent !important;
        text-decoration: none !important;
        cursor: pointer !important;
        /* Ensure touch targets are large enough for mobile */
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Focus states for accessibility - keep these active */
    .custom-blog-featured-grid .neo-card-overlay:focus,
    .featured-posts-grid .neo-card-overlay:focus,
    .neo-card .neo-card-overlay:focus { 
        outline: 3px solid #ff69b4 !important; 
        outline-offset: 2px !important; 
    }
}

/* Container max-width following theme guidelines */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 24px;
}

/* Archive Single Column Layout */
.archive-content-full {
    width: 100%;
    margin-bottom: 4rem;
}

.archive-sidebar-bottom {
    width: 100%;
    margin-top: 3rem;
    padding: 3rem 2rem;
    border-top: 4px solid #000;
    background: #f8fafc;
    box-shadow: 0 -8px 0 rgba(0, 0, 0, 0.1);
}

/* Sidebar layout for bottom positioning */
.archive-sidebar-bottom .blog-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.archive-sidebar-bottom .widget {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 0.8);
    padding: 2rem;
    transition: all 0.2s ease;
}

.archive-sidebar-bottom .widget:hover {
    transform: translateY(-3px);
    box-shadow: 10px 10px 0px 0px rgba(255, 105, 180, 0.8);
}

@media (max-width: 768px) {
    .archive-sidebar-bottom {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .archive-sidebar-bottom .blog-sidebar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .archive-sidebar-bottom .widget {
        padding: 1.5rem;
    }
}

/* Page-specific top spacing */
.site-main {
    padding-top: 80px !important; /* Add more top spacing */
}

@media (max-width: 768px) {
    .site-main {
        padding-top: 60px !important; /* Slightly less on mobile */
    }
}

/* Page title styling */
.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #000;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 0; /* Ensure no extra top margin */
}

/* Page header spacing */
.page-header {
    margin-bottom: 80px !important; /* More space between title and content sections */
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .page-header {
        margin-bottom: 60px !important; /* Less space on mobile */
    }
}

/* Section headers */
.section-title {
    font-size: 2.5rem !important;
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #000 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
}

.section-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.section-title a:hover {
    color: #ff69b4 !important;
}

.view-all-link {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    color: #000 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #ff69b4 !important;
}

/* Featured categories sections spacing */
.featured-categories-sections .featured-category-section {
    margin-bottom: 4rem !important;
}

.featured-categories-sections .featured-category-section:last-child {
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    .featured-categories-sections .featured-category-section {
        margin-bottom: 5rem !important;
    }
}

.featured-categories-sections .section-header {
    margin-bottom: 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* CRITICAL: Override all conflicting blog.css styles for neo-brutalism cards */
.custom-blog-featured-grid .post-card,
.featured-posts-grid .post-card {
    /* Reset all blog.css overrides */
    aspect-ratio: auto !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: #fff !important;
    border: 4px solid #000 !important;
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,0.8) !important;
    margin-bottom: 0 !important;
    display: block !important;
    overflow: hidden !important;
}

.custom-blog-featured-grid .post-card .post-thumbnail,
.featured-posts-grid .post-card .post-thumbnail {
    position: relative !important;
    height: 300px !important;
    width: 100% !important;
    display: block !important;
    z-index: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.custom-blog-featured-grid .post-card .entry-content,
.featured-posts-grid .post-card .entry-content {
    position: relative !important;
    background: none !important;
    color: #000 !important;
    padding: 25px !important;
    height: auto !important;
    display: block !important;
    z-index: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    text-align: left !important;
}

.custom-blog-featured-grid .post-card .entry-header,
.featured-posts-grid .post-card .entry-header {
    margin-bottom: 15px !important;
    padding: 0 !important;
}

.custom-blog-featured-grid .post-card h2.entry-title,
.featured-posts-grid .post-card h2.entry-title {
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 15px !important;
    color: #000 !important;
    text-shadow: none !important;
    font-family: 'Bebas Neue', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
}

/* Show all elements that were hidden by blog.css */
.custom-blog-featured-grid .post-card .entry-meta.mb-2,
.featured-posts-grid .post-card .entry-meta.mb-2,
.custom-blog-featured-grid .post-card .entry-summary,
.featured-posts-grid .post-card .entry-summary,
.custom-blog-featured-grid .post-card .entry-footer,
.featured-posts-grid .post-card .entry-footer,
.custom-blog-featured-grid .post-card .blog-read-more,
.featured-posts-grid .post-card .blog-read-more {
    display: none !important; /* Keep these hidden as we're using neo-brutalism structure */
}

/* Archive Pagination Styles */
.pagination-container {
    margin-top: 60px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    clear: both; /* Clear any floats */
}

.posts-navigation.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.posts-navigation .nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.posts-navigation .nav-item,
.posts-navigation .nav-current {
    display: inline-block;
}

.posts-navigation .nav-item a,
.posts-navigation .nav-current span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 4px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-navigation .nav-item a:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 0px 0px rgba(255, 105, 180, 0.8);
    background: #ff69b4;
    color: #fff;
}

.posts-navigation .nav-current span {
    background: #000;
    color: #fff;
    box-shadow: 6px 6px 0px 0px rgba(255, 105, 180, 0.8);
}

/* Previous/Next specific styles */
.posts-navigation .nav-item a[aria-label*="Previous"],
.posts-navigation .nav-item a[aria-label*="Next"] {
    min-width: auto;
    padding: 0 20px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .pagination-container {
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .posts-navigation .nav-links {
        gap: 10px;
    }
    
    .posts-navigation .nav-item a,
    .posts-navigation .nav-current span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.8rem;
        box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.8);
    }
    
    .posts-navigation .nav-item a:hover {
        box-shadow: 6px 6px 0px 0px rgba(255, 105, 180, 0.8);
    }
    
    .posts-navigation .nav-current span {
        box-shadow: 4px 4px 0px 0px rgba(255, 105, 180, 0.8);
    }
    
    .posts-navigation .nav-item a[aria-label*="Previous"],
    .posts-navigation .nav-item a[aria-label*="Next"] {
        padding: 0 15px;
        font-size: 0.75rem;
    }
}
