/* Force vertical layout for date sections */
#articles-grid {
    display: block !important;
}

.date-section {
    width: 100% !important;
    display: block !important;
    margin-bottom: 30px !important;
    float: none !important;
}

/* Rest of date section styles */
.date-section {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.date-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.date-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-bottom-color: #667eea;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.date-count {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.date-articles {
    transition: all 0.3s ease;
}

.date-articles.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.date-articles.expanded {
    max-height: none;
    opacity: 1;
    padding: 20px;
}

.articles-grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.show-more-btn {
    display: block;
    margin: 20px auto 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .date-header {
        padding: 15px 18px;
    }
    
    .date-title {
        font-size: 1.2rem;
    }
    
    .date-count {
        font-size: 0.85rem;
        padding: 3px 10px;
    }
    
    .date-articles.expanded {
        padding: 15px;
    }
    
    .articles-grid-section {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .show-more-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}
